/* Modern Fintech Dark & Mobile Dashboard Styling System */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

:root {
    --bg-dark-app: #0b0f19;
    --bg-card-dark: #151c2c;
    --bg-card-hover: #1c263b;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --agent-green: #00b09b;
    --premium-gold: #f7b733;
}

body.bg-dark-app {
    background-color: var(--bg-dark-app) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-bottom: 70px; /* Space for mobile bottom nav */
}

@media (min-width: 768px) {
    body.bg-dark-app {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Embedded Task Video Box */
.task-video-box {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #000000 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.task-video-box iframe, 
.task-video-box video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

.font-handwriting {
    font-family: 'Caveat', cursive;
}

/* Glassmorphism Classes */
.bg-glass {
    background: rgba(21, 28, 44, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

.bg-card-dark {
    background-color: var(--bg-card-dark) !important;
}

.bg-card-pill {
    background: rgba(255, 255, 255, 0.05);
}

/* Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    color: #0b0f19 !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
}

/* Dashboard Banner Header */
.dashboard-header-banner {
    background: linear-gradient(135deg, #091a38 0%, #003d99 100%);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.dashboard-header-banner::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

/* Top Action Pill Buttons */
.action-pill-btn {
    border-radius: 18px;
    padding: 14px 16px;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-pill-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.action-btn-deposit {
    background: linear-gradient(135deg, #005ce6 0%, #0088ff 100%);
}

.action-btn-withdrawal {
    background: linear-gradient(135deg, #e60073 0%, #ff1a8c 100%);
}

.action-btn-connect {
    background: linear-gradient(135deg, #00994d 0%, #00cc66 100%);
}

.action-pill-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Metrics Bar */
.metrics-card-white {
    background: #ffffff;
    color: #1a202c;
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.icon-badge-pink {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ffe6ee;
    color: #ff0055;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-badge-green {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #e6f9f0;
    color: #00b359;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Announcement Amber Notice */
.notice-amber-card {
    background: #fff8e6;
    border: 1px solid #ffe0b2;
    color: #664d00;
    border-radius: 18px;
    padding: 14px 18px;
}

/* Big Colorful Balance Cards */
.balance-card-gradient {
    border-radius: 22px;
    padding: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: block;
}

.balance-card-gradient:hover {
    transform: translateY(-4px);
    color: #ffffff;
}

.bg-card-blue {
    background: linear-gradient(135deg, #0059ff 0%, #0044cc 100%);
}

.bg-card-orange {
    background: linear-gradient(135deg, #ff8000 0%, #e65c00 100%);
}

.bg-card-pink {
    background: linear-gradient(135deg, #ff0077 0%, #cc005f 100%);
}

.bg-card-green {
    background: linear-gradient(135deg, #009944 0%, #007733 100%);
}

.balance-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chevron-circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Call to Action Card */
.cta-promo-card {
    background: #ffffff;
    color: #1a202c;
    border-radius: 22px;
    padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: #00f2fe;
}

/* Sidebar Customizations */
.sidebar {
    min-height: calc(100vh - 60px);
    z-index: 1000;
}

.sidebar .nav-link {
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(0, 242, 254, 0.15) !important;
    color: var(--primary-cyan) !important;
}

/* Spin Wheel Styling */
.wheel-pointer {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 30px solid #ff4b2b;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-app);
}
::-webkit-scrollbar-thumb {
    background: #2a3854;
    border-radius: 4px;
}
