:root {
    /* BNB Chain Official Colors from their website */
    --bnb-primary: #ffc60c;  /* BNB Yellow */
    --bnb-purple: #8b8790;   /* Main purple */
    --bnb-purple-dark: #1a181f;
    --bnb-dark: #111117;     /* Dark background */
    --bnb-darker: #14151A;
    --bnb-light: #FFFFFF;
    --bnb-gray: #8C8CA1;
    --bnb-border: #2A2A3C;
    --bnb-card-bg: #1C1C2E;
    --bnb-text: #FFFFFF;
    --bnb-text-light: #B8B8C7;
    
    /* Gradients from BNB Chain site */
    --bnb-gradient: linear-gradient(90deg, #0e0c10 0%, #242325 100%);
    --bnb-gradient-yellow: linear-gradient(90deg, #F0B90B 0%, #FFD700 100%);
    
    /* Increased Logo settings */
    --logo-image-size: 38px; /* Increased from 30px to 48px */
    --footer-logo-size: 44px; /* Separate size for footer logo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bnb-dark);
    color: var(--bnb-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(16, 14, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(240, 185, 11, 0.05) 0%, transparent 50%);
}

/* Header Styles */
header {
    background-color: var(--bnb-darker);
    border-bottom: 1px solid var(--bnb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Styles - UPDATED with larger size */
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo Image - LARGER SIZE */
.logo-image {
    height: var(--logo-image-size);
    width: auto; /* Maintain aspect ratio */
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(255, 198, 12, 0.3));
}

/* .logo-image:hover {
    filter: drop-shadow(0 4px 8px rgba(255, 198, 12, 0.5));
    transform: rotate(5deg);
} */

/* Logo Text - Hidden as per your setup */
.logo-text {
    display: none;
}

/* Hide the old icon */
.logo-icon {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bnb-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: color 0.3s;
}

.mobile-menu-toggle:hover {
    color: var(--bnb-primary);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--bnb-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.nav-links a:hover {
    color: var(--bnb-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bnb-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 80px 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--bnb-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    background: var(--bnb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--bnb-text-light);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* Main Card */
.main-card {
    background-color: var(--bnb-card-bg);
    border: 1px solid var(--bnb-border);
    border-radius: 24px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bnb-gradient);
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--bnb-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.card-header h2 i {
    color: var(--bnb-primary);
}

.card-header p {
    color: var(--bnb-text-light);
    font-size: 1.1rem;
}

/* Wallet Status */
.wallet-status {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--bnb-border);
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--bnb-border);
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--bnb-text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-label i {
    color: var(--bnb-gray);
    font-size: 0.9rem;
}

.status-value {
    font-weight: 600;
    text-align: right;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connected {
    color: #4ADE80;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connected::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #4ADE80;
    border-radius: 50%;
    display: inline-block;
}

.not-connected {
    color: #F87171;
    display: flex;
    align-items: center;
    gap: 8px;
}

.not-connected::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #F87171;
    border-radius: 50%;
    display: inline-block;
}

/* Address Info */
.address-info {
    background: linear-gradient(135deg, rgba(178, 131, 239, 0.1) 0%, rgba(108, 25, 255, 0.05) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(140, 74, 236, 0.2);
    position: relative;
    overflow: hidden;
}

.address-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bnb-gradient);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.address-header i {
    color: var(--bnb-primary);
}

.address-header span {
    font-weight: 600;
    color: var(--bnb-light);
}

.address-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--bnb-text-light);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    border: 1px solid var(--bnb-border);
}

.address-note {
    font-size: 0.85rem;
    color: var(--bnb-gray);
    margin-top: 8px;
    font-style: italic;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 220px;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn-connect {
    background: var(--bnb-gradient);
    color: white;
    border: 1px solid rgba(140, 74, 236, 0.3);
}

.btn-connect:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(140, 74, 236, 0.4);
}

.btn-verify {
    background-color: rgba(240, 185, 11, 0.1);
    color: var(--bnb-primary);
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.btn-verify:hover:not(:disabled) {
    background-color: rgba(240, 185, 11, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 185, 11, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Info Note */
.info-note {
    text-align: center;
    margin-top: 32px;
    color: var(--bnb-text-light);
    font-size: 0.9rem;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--bnb-border);
}

.info-note i {
    color: var(--bnb-primary);
    margin-right: 8px;
}

/* Professional Footer Styles */
footer {
    background-color: var(--bnb-darker);
    border-top: 1px solid var(--bnb-border);
    padding: 60px 24px 24px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bnb-gradient);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Main Section */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bnb-primary);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateX(5px);
}

/* Footer Logo Image - LARGER */
.footer-logo-image {
    height: var(--footer-logo-size);
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-image {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.footer-logo-text {
    font-size: 1.5rem;
    color: var(--bnb-primary);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(255, 198, 12, 0.2);
}

.footer-tagline {
    color: var(--bnb-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    margin-top: 8px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bnb-border);
    border-radius: 10px;
    color: var(--bnb-text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--bnb-primary);
    color: var(--bnb-dark);
    border-color: var(--bnb-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 198, 12, 0.3);
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-heading {
    color: var(--bnb-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--bnb-primary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li a {
    color: var(--bnb-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 6px 0;
    position: relative;
}

.footer-links-list li a i {
    font-size: 0.85rem;
    color: var(--bnb-primary);
    width: 16px;
    text-align: center;
}

.footer-links-list li a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--bnb-primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.footer-links-list li a:hover {
    color: var(--bnb-primary);
    padding-left: 8px;
}

.footer-links-list li a:hover::before {
    height: 60%;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--bnb-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.copyright p:first-child {
    font-weight: 500;
    margin-bottom: 4px;
}

.copyright-note {
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 600px;
}

.footer-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-toggle,
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bnb-border);
    border-radius: 10px;
    color: var(--bnb-text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.theme-toggle:hover,
.back-to-top:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--bnb-primary);
    border-color: var(--bnb-primary);
    transform: translateY(-2px);
}

.back-to-top {
    position: relative;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--bnb-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
    opacity: 0.1;
}

/* Notification */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 20px;
    background-color: var(--bnb-card-bg);
    border: 1px solid var(--bnb-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--bnb-light);
}

.notification-message {
    color: var(--bnb-text-light);
    font-size: 0.95rem;
}

.notification.success {
    border-left: 4px solid #4ADE80;
}

.notification.error {
    border-left: 4px solid #F87171;
}

.notification.info {
    border-left: 4px solid var(--bnb-primary);
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--bnb-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =================== RESPONSIVE STYLES =================== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 24px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-grid {
        gap: 30px;
    }
}

/* SHORTER MOBILE NAVIGATION MENU */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .main-card {
        padding: 32px 24px;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .status-row {
        flex-direction: column;
        gap: 8px;
    }

    .status-value {
        text-align: left;
        max-width: 100%;
    }
    
    /* Footer Responsive */
    footer {
        padding: 40px 20px 20px;
    }
    
    .footer-main {
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .copyright {
        text-align: center;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    /* Logo adjustments for mobile */
    .logo-image {
        height: 36px; /* Slightly smaller on mobile */
        width: auto;
    }
    
    .footer-logo-image {
        height: 32px; /* Slightly smaller on mobile */
        width: auto;
    }
    
    /* SHORTER Mobile menu - UPDATED */
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 180px;
        height: auto;
        max-height: 280px;
        background-color: var(--bnb-darker);
        border-left: 1px solid var(--bnb-border);
        border-bottom: 1px solid var(--bnb-border);
        padding: 20px 12px 16px;
        transition: right 0.2s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 0 12px;
    }
    
    .main-nav.active {
        right: 0;
        top: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        margin-bottom: 2px;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .nav-links a {
        padding: 6px 5px;
        font-size: 0.78rem;
        gap: 6px;
        border-radius: 3px;
        min-height: 34px;
        transition: all 0.15s;
    }
    
    .nav-links a i {
        font-size: 0.75rem;
        width: 14px;
        color: var(--bnb-primary);
        text-align: center;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a:hover {
        color: var(--bnb-light);
        background: rgba(255, 198, 12, 0.08);
        transform: translateX(-2px);
        padding-left: 6px;
    }
    
    /* Overlay for mobile menu */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(1px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Close button inside menu */
    .mobile-menu-close {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--bnb-border);
        color: var(--bnb-text-light);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        z-index: 1001;
        font-size: 0.75rem;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 198, 12, 0.1);
        color: var(--bnb-primary);
        border-color: var(--bnb-primary);
        transform: scale(1.05);
    }
    
    /* Removed mobile-menu-header since we don't need it anymore */
    .mobile-menu-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 12px 16px;
    }
    
    /* Logo adjustments for very small screens */
    .logo-image {
        height: 32px; /* Even smaller on very small screens */
        width: auto;
    }
    
    .footer-logo-image {
        height: 28px; /* Even smaller on very small screens */
        width: auto;
    }
    
    .hero {
        padding: 60px 16px 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    /* Footer Responsive for Small Screens */
    footer {
        padding: 30px 16px 20px;
        margin-top: 60px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-links-group {
        gap: 12px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-tagline {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    /* Even more compact on very small screens */
    .main-nav {
        width: 160px;
        max-height: 260px;
        padding: 18px 10px 14px;
    }
    
    .nav-links a {
        padding: 5px 4px;
        font-size: 0.75rem;
        gap: 5px;
        min-height: 30px;
    }
    
    .nav-links a i {
        font-size: 0.7rem;
        width: 12px;
    }
    
    .mobile-menu-close {
        top: 6px;
        right: 6px;
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    .notification {
        left: 16px;
        right: 16px;
        max-width: none;
        top: 16px;
    }
}

/* Small animation for status changes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.status-update {
    animation: pulse 0.3s ease-in-out;
}

/* Animation for smooth appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Footer background pattern */
footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(255, 198, 12, 0.03) 0%, transparent 70%);
    pointer-events: none;
}