/* ===================================================
   CRYPTO STAKING PLATFORM — Design System
   =================================================== */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary palette */
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4834d4;
    --primary-glow: rgba(108, 92, 231, 0.3);

    /* Accent (Purple/White/Dark Blue Overhaul) */
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-dark: #4834d4;
    --accent-glow: rgba(108, 92, 231, 0.3);

    /* Success / Warning / Danger */
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;

    /* Backgrounds */
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===================================================
   SIDEBAR LAYOUT
   =================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 40px;
    padding-left: 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.nav-item:hover,
.nav-item.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-light);
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding-bottom: 60px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 24px 12px;
        align-items: center;
    }

    .sidebar-header {
        padding-left: 0;
        margin-bottom: 32px;
    }

    .logo span,
    .nav-item span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .main-content {
        margin-left: 80px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        padding: 24px;
        align-items: stretch;
        display: flex;
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .logo span,
    .nav-item span {
        display: inline;
    }
    
    .nav-item {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .main-content {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .plans-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-deposit-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-pages-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* table overflow for mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Updated Navbar for Sidebar Layout */
.navbar-dashboard {
    background: rgba(10, 10, 26, 0.9);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(20px);
}

.mobile-nav-logo {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-logo {
        display: block;
    }
    .mobile-nav-title {
        font-size: 1.2rem;
    }
    .navbar-dashboard {
        padding: 16px;
    }
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: var(--primary-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-content h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(20px);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-glow), transparent, var(--accent-glow));
    z-index: -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    font-weight: 600;
}

.balance-display {
    margin-bottom: 24px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.balance-change {
    font-size: 0.9rem;
    color: var(--success);
    margin-top: 4px;
}

.mini-chart {
    width: 100%;
    height: 80px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.coin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    transition: var(--transition);
}

.coin-row:hover {
    background: var(--bg-card-hover);
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.coin-icon.btc {
    background: linear-gradient(135deg, #f7931a, #e68a1a);
}

.coin-icon.eth {
    background: linear-gradient(135deg, #627eea, #4e6bd6);
}

.coin-icon.usdt {
    background: linear-gradient(135deg, #26a17b, #1a8c6c);
}

.coin-icon.bnb {
    background: linear-gradient(135deg, #f3ba2f, #d9a626);
}

.coin-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.coin-symbol {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.coin-price {
    text-align: right;
}

.coin-price-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.coin-price-change {
    font-size: 0.75rem;
}

.coin-price-change.up {
    color: var(--success);
}

.coin-price-change.down {
    color: var(--danger);
}

/* ===================================================
   SECTION SHARED
   =================================================== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(0, 206, 201, 0.1);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================
   FEATURES SECTION
   =================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: var(--bg-glass);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================================
   STAKING PLANS
   =================================================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.plan-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, var(--bg-card) 100%);
}

.plan-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: white;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.plan-apy {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.plan-apy-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.plan-details {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.plan-details li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-details li:last-child {
    border: none;
}

.plan-details li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* ===================================================
   HOW IT WORKS
   =================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    position: relative;
    z-index: 1;
}

.step-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===================================================
   SECURITY SECTION
   =================================================== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.security-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.security-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.security-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.security-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.security-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
    text-align: center;
    padding: 100px 0;
}

.cta-box {
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.1));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow), transparent);
    opacity: 0.5;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    position: relative;
}

.cta-box .btn {
    position: relative;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================================
   AUTH MODAL
   =================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal .subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 6px;
    display: none;
}

.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary-light);
    font-weight: 600;
    cursor: pointer;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Toast notification */
.toast {
    position: fixed;
    top: 80px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    display: none;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast.success {
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.toast.error {
    background: rgba(225, 112, 85, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================================================
   DASHBOARD
   =================================================== */
.dashboard {
    padding-top: 80px;
    min-height: 100vh;
}

.dashboard-header {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.dashboard-welcome h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.dashboard-welcome p {
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dash-stat {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.dash-stat:hover {
    border-color: var(--border-hover);
}

.dash-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.dash-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.dash-stat-change {
    font-size: 0.8rem;
    margin-top: 4px;
}

.dash-stat-change.up {
    color: var(--success);
}

.dash-stat-change.down {
    color: var(--danger);
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow-x: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1rem;
    font-weight: 700;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 14px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
}

.table tr:last-child td {
    border: none;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(225, 112, 85, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

/* Quick action cards */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    text-align: left;
    width: 100%;
}

.quick-action:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.quick-action-icon.deposit {
    background: rgba(0, 184, 148, 0.15);
}

.quick-action-icon.withdraw {
    background: rgba(225, 112, 85, 0.15);
}

.quick-action-icon.stake {
    background: rgba(108, 92, 231, 0.15);
}

.quick-action-icon.transfer {
    background: rgba(0, 206, 201, 0.15);
}

.quick-action h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.quick-action p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .steps-grid::before {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95%;
        padding: 28px;
    }

    .cta-box {
        padding: 48px 28px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }
}

/* Loading shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-card-hover) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}