/* ============================================
   FlipperSwap - Glossy Lime & Black Theme
   ============================================ */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: linear-gradient(145deg, #141414 0%, #0d0d0d 100%);
    --bg-card-hover: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
    
    /* Lime Green Accents */
    --lime: #b4ff39;
    --lime-glow: rgba(180, 255, 57, 0.5);
    --lime-soft: rgba(180, 255, 57, 0.15);
    --lime-dark: #8fcc2d;
    
    /* 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(180, 255, 57, 0.3);
    
    /* Gloss Effect */
    --gloss: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    --gloss-lime: linear-gradient(180deg, rgba(180, 255, 57, 0.3) 0%, rgba(180, 255, 57, 0.1) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-lime: 0 0 30px rgba(180, 255, 57, 0.2);
    
    /* Spacing */
    --header-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    --bg-card-hover: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%);
    
    --lime: #2d8a00;
    --lime-glow: rgba(45, 138, 0, 0.4);
    --lime-soft: rgba(45, 138, 0, 0.1);
    --lime-dark: #236b00;
    
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #000000;
    
    --border: rgba(0, 0, 0, 0.15);
    --border-hover: rgba(45, 138, 0, 0.5);
    
    --gloss: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    --gloss-lime: linear-gradient(180deg, rgba(45, 138, 0, 0.2) 0%, rgba(45, 138, 0, 0.05) 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
    --shadow-lime: 0 0 30px rgba(45, 138, 0, 0.2);
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   Animated Background
   ============================================ */

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(180, 255, 57, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 255, 57, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .bg-grid {
    background-image: 
        linear-gradient(rgba(92, 184, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 184, 0, 0.05) 1px, transparent 1px);
}

/* Light theme - ensure all text is black and visible */
[data-theme="light"] .swap-label {
    color: #000000;
    font-weight: 700;
}

[data-theme="light"] .swap-amount {
    color: #000000;
}

[data-theme="light"] .swap-amount::placeholder {
    color: #666666;
}

[data-theme="light"] .swap-info {
    color: #000000;
}

[data-theme="light"] .address-input {
    color: #000000;
}

[data-theme="light"] .address-input::placeholder {
    color: #666666;
}

[data-theme="light"] .address-hint {
    color: #444444;
}

[data-theme="light"] .email-input {
    color: #000000;
}

[data-theme="light"] .email-input::placeholder {
    color: #666666;
}

[data-theme="light"] .email-hint {
    color: #444444;
}

[data-theme="light"] .crypto-name {
    color: #000000;
}

[data-theme="light"] .crypto-item-symbol {
    color: #000000;
}

[data-theme="light"] .crypto-item-name {
    color: #444444;
}

[data-theme="light"] .hero-title {
    color: #000000;
}

[data-theme="light"] .hero-subtitle {
    color: #000000;
}

[data-theme="light"] .feature h3 {
    color: #000000;
}

[data-theme="light"] .feature p {
    color: #333333;
}

[data-theme="light"] .disclaimer p {
    color: #333333;
}

[data-theme="light"] .fee-info {
    color: #444444;
}

[data-theme="light"] .modal-body p {
    color: #000000;
}

[data-theme="light"] .modal-header h2 {
    color: #000000;
}

[data-theme="light"] .info-label {
    color: #333333;
}

[data-theme="light"] .info-value {
    color: #000000;
}

[data-theme="light"] .status-text {
    color: #000000;
}

[data-theme="light"] .nav-link {
    color: #000000;
}

[data-theme="light"] .footer {
    color: #333333;
}

[data-theme="light"] .powered-by {
    color: #333333;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(180, 255, 57, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(180, 255, 57, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(180, 255, 57, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

[data-theme="light"] .orb-1,
[data-theme="light"] .orb-2,
[data-theme="light"] .orb-3 {
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s ease;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.8);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--lime);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text .highlight {
    color: var(--lime);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--lime);
    background: var(--lime-soft);
}

.nav-social {
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.lang-dropdown {
    position: relative;
}

.lang-toggle {
    height: 40px;
    padding: 0 12px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.lang-toggle:hover, .theme-toggle:hover {
    color: var(--lime);
    border-color: var(--lime);
    box-shadow: 0 0 15px var(--lime-glow);
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-current {
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-chevron {
    transition: transform 0.2s ease;
}

.lang-dropdown.active .lang-chevron {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 160px;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.15s ease;
    text-align: left;
}

.lang-option:hover {
    background: var(--lime-soft);
    color: var(--lime);
}

.lang-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-option.active {
    background: var(--lime-soft);
    color: var(--lime);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   Main Content
   ============================================ */

.main {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 580px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--lime);
    text-shadow: 0 0 30px var(--lime-glow);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Swap Card
   ============================================ */

.swap-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2px;
    box-shadow: var(--shadow-lg), var(--shadow-lime);
    position: relative;
    overflow: hidden;
}

.swap-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(145deg, var(--lime) 0%, transparent 50%, var(--lime-dark) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.swap-card-inner {
    background: var(--bg-card);
    border-radius: calc(var(--radius-xl) - 2px);
    padding: 28px;
    position: relative;
}

.swap-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--gloss);
    border-radius: calc(var(--radius-xl) - 2px) calc(var(--radius-xl) - 2px) 0 0;
    pointer-events: none;
}

.swap-section {
    margin-bottom: 20px;
}

.swap-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.swap-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.swap-input-group:focus-within {
    border-color: var(--lime);
    box-shadow: 0 0 20px var(--lime-glow);
}

.swap-amount {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 12px;
    outline: none;
    font-family: 'Exo 2', sans-serif;
}

.swap-amount::placeholder {
    color: var(--text-muted);
}

.swap-amount::-webkit-outer-spin-button,
.swap-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.crypto-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.crypto-select:hover {
    border-color: var(--lime);
    background: var(--lime-soft);
}

.crypto-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.crypto-name {
    font-size: 1rem;
}

.chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.crypto-select:hover .chevron {
    color: var(--lime);
}

.swap-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Swap Direction Button */
.swap-direction-btn {
    width: 48px;
    height: 48px;
    margin: -8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lime);
    border: 4px solid var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    color: #111;
}

.swap-direction-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.swap-direction-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--lime-glow);
}

.swap-direction-btn:hover svg {
    transform: rotate(180deg);
}

/* Address Section */
.address-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.address-input-wrapper {
    display: flex;
    gap: 8px;
}

.address-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.2s ease;
}

.address-input::placeholder {
    color: var(--text-muted);
}

.address-input:focus {
    border-color: var(--lime);
    box-shadow: 0 0 20px var(--lime-glow);
}

.paste-btn {
    width: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.paste-btn:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.paste-btn svg {
    width: 20px;
    height: 20px;
}

.address-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Email Section */
.email-section {
    margin-top: 16px;
}

.email-input-wrapper {
    display: flex;
    gap: 8px;
    position: relative;
}

.email-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    padding-right: 48px;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.2s ease;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    border-color: var(--lime);
    box-shadow: 0 0 20px var(--lime-glow);
}

.email-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.email-icon svg {
    width: 20px;
    height: 20px;
}

.email-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Rate Type Selector */
.rate-type-section {
    margin-top: 20px;
}

.rate-type-buttons {
    display: flex;
    gap: 12px;
}

.rate-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Exo 2', sans-serif;
    position: relative;
}

.rate-type-btn:hover {
    border-color: var(--lime);
    background: var(--lime-soft);
}

.rate-type-btn.active {
    border-color: var(--lime);
    background: var(--lime-soft);
    box-shadow: 0 0 20px var(--lime-glow);
}

.rate-type-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.rate-type-btn.active .rate-type-icon {
    background: var(--lime);
    color: #111;
}

.rate-type-icon svg {
    width: 20px;
    height: 20px;
}

.rate-type-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.rate-type-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.rate-type-fee {
    font-size: 0.8rem;
    color: var(--lime);
    font-weight: 500;
}

.rate-type-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border);
    color: transparent;
    transition: all 0.2s ease;
}

.rate-type-btn.active .rate-type-check {
    background: var(--lime);
    border-color: var(--lime);
    color: #111;
}

.rate-type-check svg {
    width: 14px;
    height: 14px;
}

.rate-type-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 480px) {
    .rate-type-buttons {
        flex-direction: column;
    }
    
    .rate-type-btn {
        padding: 12px 14px;
    }
}

/* Exchange Button */
.exchange-btn {
    width: 100%;
    margin-top: 24px;
    padding: 18px;
    background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.exchange-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gloss);
    pointer-events: none;
}

.exchange-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--lime-glow);
}

.exchange-btn:active {
    transform: translateY(0);
}

.btn-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 1px;
}

.exchange-btn.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #111;
    border-radius: 50%;
    opacity: 0;
    animation: none;
}

.exchange-btn.loading .btn-loader {
    opacity: 1;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Disclaimer */
.disclaimer {
    margin-top: 20px;
    text-align: center;
}

.disclaimer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.disclaimer a {
    color: var(--lime);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.disclaimer a:hover {
    text-decoration: underline;
}

.fee-info {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================
   Features
   ============================================ */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.feature {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--lime);
    box-shadow: var(--shadow-lime);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lime-soft);
    border-radius: var(--radius-md);
    color: var(--lime);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.powered-by {
    margin-top: 8px;
    font-size: 0.8rem;
}

.powered-by a {
    color: var(--lime);
    text-decoration: none;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* ============================================
   Modals
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-large {
    max-width: 600px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.modal-close:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.modal-body {
    padding: 24px;
}

.modal-scroll {
    max-height: 50vh;
    overflow-y: auto;
}

.modal-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-body h3 {
    font-size: 1rem;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.modal-body h3:first-child {
    margin-top: 0;
}

/* Policy Content Styling */
.policy-content {
    font-size: 0.9rem;
    line-height: 1.8;
}

.policy-content .policy-date {
    color: var(--lime);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.policy-content h3 {
    color: var(--lime);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.policy-content h3:first-of-type {
    margin-top: 0;
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.policy-content ul {
    margin: 12px 0 16px 0;
    padding-left: 24px;
}

.policy-content li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
}

.policy-content li::marker {
    color: var(--lime);
}

.policy-content strong {
    color: var(--text-primary);
}

.policy-content a {
    color: var(--lime);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.policy-content a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.policy-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.policy-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* FAQ Accordion Styles */
.faq-content {
    padding: 0 !important;
}

.faq-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.faq-section:last-of-type {
    border-bottom: none;
}

.faq-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lime);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--lime-soft);
}

.faq-item {
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--lime);
}

.faq-item.active {
    border-color: var(--lime);
    box-shadow: 0 0 15px var(--lime-glow);
}

.faq-question {
    width: 100%;
    padding: 16px;
    background: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: var(--lime-soft);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    width: 18px;
    height: 18px;
    color: var(--lime);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-secondary);
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.7;
    font-size: 0.9rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul, .faq-answer ol {
    margin: 8px 0 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-answer li::marker {
    color: var(--lime);
}

.faq-answer strong {
    color: var(--text-primary);
}

.faq-answer a {
    color: var(--lime);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-footer {
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.faq-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.faq-footer a {
    color: var(--lime);
    text-decoration: none;
    font-weight: 500;
}

.faq-footer a:hover {
    text-decoration: underline;
}

/* Support */
.support-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.support-btn:hover {
    border-color: var(--lime);
    background: var(--lime-soft);
}

.support-btn svg {
    width: 24px;
    height: 24px;
    color: var(--lime);
}

/* Crypto Modal */
.crypto-modal .modal-content {
    max-width: 420px;
}

.modal-search {
    padding: 0 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
    margin: 0 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-top: -8px;
}

.modal-search svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
}

.modal-search input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 12px 14px 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    font-family: 'Exo 2', sans-serif;
}

.modal-search input::placeholder {
    color: var(--text-muted);
}

.crypto-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 24px 24px;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.crypto-item:hover {
    background: var(--lime-soft);
}

.crypto-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.crypto-item-info {
    flex: 1;
}

.crypto-item-symbol {
    font-weight: 600;
    color: var(--text-primary);
}

.crypto-item-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.crypto-item-network {
    font-size: 0.75rem;
    color: var(--lime);
    background: var(--lime-soft);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Maintenance Status */
.crypto-item.crypto-maintenance {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.crypto-item.crypto-maintenance:hover {
    background: var(--bg-secondary);
    border-color: var(--border);
    transform: none;
}

.crypto-item.crypto-maintenance img {
    filter: grayscale(100%);
}

.maintenance-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ff9500;
    background: rgba(255, 149, 0, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 149, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.maintenance-badge svg {
    stroke: #ff9500;
    flex-shrink: 0;
}

/* Order Modal */
.order-details {
    text-align: center;
}

.order-status {
    margin-bottom: 24px;
}

.status-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lime-soft);
    color: var(--lime);
}

.status-icon svg {
    width: 32px;
    height: 32px;
}

.status-icon.pending svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.order-info {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.deposit-address {
    margin-bottom: 20px;
}

.deposit-address label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--lime);
    border-radius: var(--radius-md);
    padding: 14px;
}

.address-box span {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--lime);
}

.copy-btn {
    padding: 8px;
    background: var(--lime-soft);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--lime);
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--lime);
    color: #111;
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

.qr-code {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.qr-code canvas {
    border-radius: var(--radius-md);
}

.qr-image {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-md);
    background: white;
    padding: 8px;
}

.qr-loading, .qr-error {
    width: 180px;
    height: 180px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.qr-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--lime);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.qr-error svg {
    color: var(--text-muted);
    opacity: 0.5;
}

.order-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

/* Order Actions */
.order-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.order-warning {
    font-size: 0.85rem;
    color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.order-close-btn {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-close-btn:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.order-modal-content {
    max-width: 500px;
}

/* Flipped Success State */
.status-icon.flipped {
    animation: flipCelebrate 0.6s ease-out;
    box-shadow: 0 0 30px var(--lime-glow);
}

.flipped-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes flipCelebrate {
    0% { transform: scale(0.5) rotateY(0deg); }
    50% { transform: scale(1.2) rotateY(180deg); }
    100% { transform: scale(1) rotateY(360deg); }
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: var(--lime-soft);
    color: var(--lime);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-controls {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-content {
        gap: 12px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .swap-card-inner {
        padding: 20px;
    }

    .swap-amount {
        font-size: 1.25rem;
    }

    .crypto-select {
        padding: 10px 12px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .swap-input-group {
        flex-direction: column;
    }

    .crypto-select {
        width: 100%;
        justify-content: flex-start;
    }

    .address-input-wrapper {
        flex-direction: column;
    }

    .paste-btn {
        width: 100%;
        height: 44px;
    }
}

/* ============================================
   Cookie & Terms Consent Banner
   ============================================ */

.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.consent-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.consent-overlay.hidden {
    display: none !important;
}

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--lime);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--lime-glow);
    pointer-events: none;
}

.consent-banner.active {
    transform: translateY(0);
    pointer-events: auto;
}

.consent-banner.hidden {
    display: none !important;
    pointer-events: none;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.consent-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--lime-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--lime);
    box-shadow: 0 0 20px var(--lime-glow);
}

.cookie-emoji {
    font-size: 28px;
    line-height: 1;
}

.consent-text {
    flex: 1;
}

.consent-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.consent-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.consent-text a {
    color: var(--lime);
    text-decoration: none;
    font-weight: 500;
}

.consent-text a:hover {
    text-decoration: underline;
}

.consent-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

.consent-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.consent-accept {
    background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
    color: #111;
}

.consent-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--lime-glow);
}

.consent-accept svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-icon {
        margin: 0 auto;
    }
    
    .consent-actions {
        width: 100%;
        justify-content: center;
    }
    
    .consent-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .consent-banner {
        padding: 16px;
    }
    
    .consent-text h3 {
        font-size: 0.95rem;
    }
    
    .consent-text p {
        font-size: 0.85rem;
    }
    
    .consent-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ============================================
   Disclaimer Modal
   ============================================ */

.disclaimer-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.disclaimer-modal.active {
    opacity: 1;
    visibility: visible;
}

.disclaimer-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.disclaimer-modal.active .disclaimer-content {
    transform: scale(1) translateY(0);
}

.disclaimer-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255, 149, 0, 0.15);
    border: 2px solid #ff9500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-icon svg {
    width: 32px;
    height: 32px;
    stroke: #ff9500;
}

.disclaimer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.disclaimer-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.disclaimer-text a {
    color: var(--lime);
    text-decoration: underline;
}

.disclaimer-text a:hover {
    color: var(--lime-dark);
}

.disclaimer-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.disclaimer-cancel-btn,
.disclaimer-confirm-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.disclaimer-cancel-btn {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.disclaimer-cancel-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.disclaimer-confirm-btn {
    background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
    color: #111;
}

.disclaimer-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--lime-glow);
}

@media (max-width: 480px) {
    .disclaimer-content {
        padding: 24px;
    }
    
    .disclaimer-buttons {
        flex-direction: column;
    }
    
    .disclaimer-cancel-btn,
    .disclaimer-confirm-btn {
        width: 100%;
    }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lime);
}

/* ============================================
   Selection
   ============================================ */

::selection {
    background: var(--lime);
    color: #111;
}

