/* =============================================
   CRIBOX - Main Stylesheet
   Paleta: Rojo, Amarillo, Verde (del logo)
   Dark Theme Premium Crypto Exchange
   ============================================= */

/* ── CSS Variables / Design Tokens ── */
:root {
    /* Core Brand Colors */
    --red: #E63946;
    --red-dark: #C1121F;
    --red-light: #FF6B6B;
    --yellow: #FFB703;
    --yellow-dark: #FB8500;
    --yellow-light: #FFD166;
    --green: #2DC653;
    --green-dark: #208B3A;
    --green-light: #57E87A;
    
    /* Dark Theme */
    --bg-primary: #0A0E17;
    --bg-secondary: #111827;
    --bg-card: #161D2F;
    --bg-card-hover: #1C2541;
    --bg-input: #0D1321;
    --bg-glass: rgba(22, 29, 47, 0.7);
    --bg-glass-strong: rgba(22, 29, 47, 0.92);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-active: rgba(255, 183, 3, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    /* Text */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-accent: var(--yellow);
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--red) 0%, var(--yellow) 50%, var(--green) 100%);
    --gradient-cta: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    --gradient-cta-hover: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
    --gradient-hero: radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.12) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 20%, rgba(255, 183, 3, 0.08) 0%, transparent 50%),
                     radial-gradient(ellipse at 50% 80%, rgba(45, 198, 83, 0.06) 0%, transparent 50%);
    --gradient-widget: linear-gradient(180deg, rgba(22, 29, 47, 0.95) 0%, rgba(13, 19, 33, 0.98) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.45);
    --shadow-glow-green: 0 0 30px rgba(45, 198, 83, 0.2);
    --shadow-glow-yellow: 0 0 20px rgba(255, 183, 3, 0.15);
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--yellow-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Container ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

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

.brand-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-icon {
    width: 16px;
    height: 16px;
}

.cta-nav-btn {
    background: var(--gradient-cta) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: var(--shadow-glow-green);
}

.cta-nav-btn:hover {
    background: var(--gradient-cta-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(45, 198, 83, 0.3);
}

/* Nav User Pill */
.nav-user-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--border-glass);
    padding: 5px 14px 5px 5px !important;
    gap: 8px !important;
}

.nav-user-pill:hover {
    border-color: var(--border-active);
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.nav-user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}


.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar-toggle.active .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-50px, 50px) scale(1.2); opacity: 1; }
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(45, 198, 83, 0.1);
    border: 1px solid rgba(45, 198, 83, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge i {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-title .highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: 32px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-value .accent {
    color: var(--yellow);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Exchange Widget ── */
.exchange-widget-wrapper {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.exchange-widget {
    background: var(--gradient-widget);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Widget Steps */
.widget-steps {
    position: relative;
}

.widget-step {
    display: none;
    padding: 28px;
}

.widget-step.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Widget Header / Tabs */
.widget-header {
    display: flex;
    align-items: center;
    padding: 20px 28px 0;
    gap: 4px;
}

.widget-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: center;
}

.widget-tab.active {
    background: rgba(255, 183, 3, 0.12);
    color: var(--yellow);
}

.widget-tab:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

/* Amount Box */
.amount-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: border-color var(--transition-fast);
}

.amount-box:focus-within {
    border-color: var(--border-active);
}

.amount-box-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-box-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amount-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    outline: none;
    width: 100%;
    min-width: 0;
}

.amount-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

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

.amount-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.amount-output {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
}

/* Currency Selector */
.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.currency-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-active);
}

.currency-info {
    text-align: right;
}

.currency-code {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.currency-network {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.currency-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

/* Currency Dropdown */
.currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.currency-dropdown.open {
    display: block;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--text-secondary);
}

.currency-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.currency-option.selected {
    background: rgba(255, 183, 3, 0.08);
    color: var(--yellow);
}

.currency-option-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

/* Swap arrow */
.swap-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -6px 0;
    position: relative;
    z-index: 2;
}

.swap-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.swap-arrow-btn i {
    width: 18px;
    height: 18px;
}

/* Rate Info */
.rate-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    gap: 8px;
}

.rate-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.rate-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.rate-timer i {
    width: 13px;
    height: 13px;
}

/* CTA Button */
.btn-cta {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-cta);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-glow-green);
}

.btn-cta:hover {
    background: var(--gradient-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(45, 198, 83, 0.35);
}

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

.btn-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-cta i {
    width: 18px;
    height: 18px;
}

/* Secondary button */
.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 10px;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-active);
}

/* ── Widget Step 2: User Info ── */
.step-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-title i {
    width: 20px;
    height: 20px;
    color: var(--yellow);
}

.step-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast);
}

.form-group:focus-within .form-label {
    color: var(--yellow);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.92rem;
    transition: all var(--transition-base);
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.form-input:focus {
    border-color: var(--yellow);
    background: rgba(255, 183, 3, 0.03);
    box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-weight: 400;
}

.form-input.error {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
}

/* Select premium */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-input option {
    background: #1a2035;
    color: var(--text-primary);
    padding: 8px;
}

/* Textarea premium */
textarea.form-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form hint text */
.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-hint i {
    width: 12px;
    height: 12px;
}

/* Step Navigation */
.step-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.step-nav .btn-back {
    flex: 0 0 auto;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.step-nav .btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.step-nav .btn-back i {
    width: 16px;
    height: 16px;
}

.step-nav .btn-cta {
    flex: 1;
    margin-top: 0;
}

/* ── Widget Step 3: Wallet / TX Hash ── */
.wallet-display {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.wallet-display-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-display-title i {
    width: 14px;
    height: 14px;
    color: var(--yellow);
}

.wallet-address-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border-active);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.wallet-address-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--yellow);
    word-break: break-all;
    line-height: 1.5;
}

.btn-copy {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 183, 3, 0.12);
    border: none;
    color: var(--yellow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    background: rgba(255, 183, 3, 0.2);
}

.btn-copy i {
    width: 16px;
    height: 16px;
}

.wallet-network-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(45, 198, 83, 0.1);
    border: 1px solid rgba(45, 198, 83, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green);
    margin-top: 10px;
}

.wallet-network-badge i {
    width: 12px;
    height: 12px;
}

/* Instruction steps */
.instruction-steps {
    background: rgba(255, 183, 3, 0.05);
    border: 1px solid rgba(255, 183, 3, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.instruction-steps-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.instruction-steps-title i {
    width: 15px;
    height: 15px;
}

.instruction-step {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.instruction-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 183, 3, 0.15);
    color: var(--yellow);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Summary */
.exchange-summary {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.82rem;
}

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

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

.summary-value.highlight {
    color: var(--green);
    font-family: var(--font-display);
    font-size: 1rem;
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 6px 0;
}

/* ── Step 4: Success ── */
.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(45, 198, 83, 0.1);
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease infinite;
}

.success-icon i {
    width: 36px;
    height: 36px;
    color: var(--green);
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 198, 83, 0.3); }
    50% { box-shadow: 0 0 0 15px rgba(45, 198, 83, 0); }
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.success-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reference-code-box {
    background: var(--bg-input);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.reference-code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.reference-code-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 1px;
}

/* ── How it Works Section ── */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 16px;
}

.section-badge i {
    width: 14px;
    height: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.step-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid rgba(255, 183, 3, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--yellow);
}

.step-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Benefits Section ── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon i {
    width: 24px;
    height: 24px;
}

.benefit-icon.red {
    background: rgba(230, 57, 70, 0.1);
    color: var(--red);
}

.benefit-icon.yellow {
    background: rgba(255, 183, 3, 0.1);
    color: var(--yellow);
}

.benefit-icon.green {
    background: rgba(45, 198, 83, 0.1);
    color: var(--green);
}

.benefit-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Footer ── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links-col h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-col a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 5px 0;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-links-col a:hover {
    color: var(--text-primary);
}

.footer-links-col a i {
    width: 14px;
    height: 14px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 999;
    transition: bottom var(--transition-slow);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 16px 24px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-content p i {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    flex-shrink: 0;
}

.cookie-accept {
    flex-shrink: 0;
    padding: 8px 24px;
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.cookie-accept:hover {
    background: var(--gradient-cta-hover);
}

/* ── Error state ── */
.form-error {
    font-size: 0.72rem;
    color: var(--red);
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

/* ── Alert message ── */
.alert-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
    line-height: 1.5;
}

.alert-message.visible {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-message.error {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.2);
    color: var(--red-light);
}

.alert-message.success {
    background: rgba(45, 198, 83, 0.08);
    border: 1px solid rgba(45, 198, 83, 0.2);
    color: var(--green-light);
}

/* ── Legal / Info Pages ── */
.legal-page {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--bg-primary);
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid rgba(255, 183, 3, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.legal-icon-wrap i {
    width: 28px;
    height: 28px;
    color: var(--yellow);
}

.legal-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.legal-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Card style for about page */
.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    transition: border-color var(--transition-base);
}

.legal-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.legal-card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.legal-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.legal-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 183, 3, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.legal-card-icon i {
    width: 22px;
    height: 22px;
    color: var(--yellow);
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.legal-list li:last-child {
    border-bottom: none;
}

.legal-list li i {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Text style for terms/privacy/cookies */
.legal-text .legal-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 16px;
}

.legal-text h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.legal-text h2 i {
    width: 18px;
    height: 18px;
    color: var(--yellow);
}

.legal-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.legal-text h3 i {
    width: 16px;
    height: 16px;
    color: var(--yellow);
}

.legal-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.legal-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.legal-text ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.legal-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
}

.cookie-type {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 3px solid var(--yellow);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.cookie-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.cookie-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cookie-table code {
    background: rgba(255, 183, 3, 0.1);
    color: var(--yellow);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* How it works steps (about page) */
.how-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.how-step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.how-step strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.how-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .exchange-widget {
        margin: 0 auto;
        max-width: 440px;
    }

    .exchange-widget-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 8px;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--border-glass);
        z-index: 1000;
    }
    
    .navbar-links.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat-value {
        font-size: 1.4rem;
    }
    
    .exchange-widget {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .amount-input,
    .amount-output {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .widget-step {
        padding: 20px;
    }
    
    .widget-header {
        padding: 16px 20px 0;
    }
}
