:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #121826;
    --bg-card: #182030;
    --bg-input: #1e273a;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: 0 4px 20px rgba(16, 185, 129, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #242f44;
    --border-focus: #10b981;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Site Header (Desktop & Web) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.45);
    display: block;
}

.brand-logo-img-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: block;
}

.logo-icon {
    font-size: 22px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.35);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff 40%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tag {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 0.6; transform: scale(0.9); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Header Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.15s;
    outline: none;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown-trigger:hover,
.nav-dropdown.active .nav-dropdown-trigger {
    color: var(--text-primary);
}

.dropdown-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.active .dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 540px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(15, 22, 36, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nav-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}

.nav-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    padding: 6px 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 4px;
}

.dropdown-item {
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s, padding-left 0.12s;
    white-space: nowrap;
    border-radius: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.dropdown-item:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent);
    padding-left: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .trust-pill.desktop-only {
        display: none;
    }
}

.nav-tg-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.15s, opacity 0.15s;
}

.nav-tg-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Site Wrapper */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* Hero Section */
.hero-section {
    padding: 48px 0 24px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: flex-start;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    width: fit-content;
}

.badge-icon {
    display: inline-flex;
    align-items: center;
}

.badge-icon-svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.trust-icon-svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.step-icon-svg {
    width: 32px;
    height: 32px;
}

.card-icon-svg {
    width: 26px;
    height: 26px;
}

.btn-icon-svg {
    width: 20px;
    height: 20px;
}

.primary-cta-btn .btn-icon-svg {
    filter: brightness(0) invert(1);
}

.inline-icon-svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 3px;
}

.mockup-icon-svg {
    width: 18px;
    height: 18px;
}

.hero-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 560px;
}

.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.feature-bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.bullet-check {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.hero-cta-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: var(--accent-glow);
    transition: transform 0.15s, opacity 0.15s;
}

.hero-cta-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.hero-outline-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.15s, background-color 0.15s;
}

.hero-outline-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Hero Widget Column (Exchange Card) */
.hero-widget-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.exchange-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.card-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon-sm {
    font-size: 18px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-brand h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.mobile-brand .sub-label {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.trust-pill-sm {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 8px;
    border-radius: 12px;
}

.field-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s;
}

.field-group:focus-within {
    border-color: var(--border-focus);
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.input-select-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 800;
    outline: none;
    min-width: 0;
    letter-spacing: -0.5px;
}

.amount-input[readonly],
.amount-input.read-only {
    cursor: default;
    user-select: all;
}

.amount-input::placeholder {
    color: var(--text-muted, #64748b);
    font-weight: 600;
}

.select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 180px;
    max-width: 225px;
}

.select-curr-img {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    object-fit: contain;
}

.currency-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 26px 8px 34px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.15s;
}

.currency-select:hover, .currency-select:focus {
    border-color: var(--accent);
}

.select-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    font-size: 9px;
    color: var(--text-muted);
}

/* Quick Chips */
.chips-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 2px;
    scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.15s;
}

.chip-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.chip-btn.active {
    background: rgba(16, 185, 129, 0.16);
    border-color: #10b981;
    color: #34d399;
    font-weight: 700;
}

/* Swap divider */
.swap-divider {
    display: flex;
    justify-content: center;
    position: relative;
    margin: -6px 0;
    z-index: 2;
}

.swap-button,
.swap-circle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    outline: none;
}

.swap-button:hover,
.swap-circle-btn:hover {
    transform: rotate(180deg);
    border-color: var(--accent);
    background: var(--bg-input);
    color: #34d399;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.swap-button:active,
.swap-circle-btn:active {
    transform: rotate(180deg) scale(0.92);
}

/* Order Details Box & Exchange Details */
.order-details-box,
.exchange-details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-value.highlight,
.detail-value.highlighted {
    color: #ffffff;
    font-weight: 700;
}

.detail-value.text-accent,
.detail-value.green-text,
.text-accent {
    color: #34d399;
    font-weight: 700;
}

/* Error Banner */
.error-banner {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #f87171;
    font-weight: 600;
}

.error-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* CTA Container & Primary CTA Button */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.primary-cta-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    height: 52px;
    width: 100%;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
    box-shadow: var(--accent-glow);
    cursor: pointer;
    border: none;
    outline: none;
}

.primary-cta-btn:hover {
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.45);
}

.primary-cta-btn:active {
    transform: scale(0.98);
}

.primary-cta-btn .btn-icon-svg {
    transition: transform 0.2s ease;
}

.primary-cta-btn:hover .btn-icon-svg {
    transform: translateX(3px);
}

/* Partner Discount Explanatory Caption under CTA */
.partner-discount-caption,
.partner-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 8px 0 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--text-secondary, #94a3b8);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    box-sizing: border-box;
    user-select: none;
    pointer-events: none;
    cursor: default;
    white-space: nowrap;
}

.partner-discount-caption strong,
.partner-discount-badge strong {
    color: #10b981;
    font-weight: 600;
}

.partner-discount-caption:hover,
.partner-discount-badge:hover {
    background: transparent !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.partner-discount-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
    flex-shrink: 0;
    animation: discountPulse 2.2s infinite ease-in-out;
}

.partner-discount-arrow {
    display: none !important;
}

.cta-discount-subtext {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    text-align: center;
}

.cta-discount-subtext .discount-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
    flex-shrink: 0;
    animation: discountPulse 2.2s infinite ease-in-out;
}

@keyframes discountPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(0.85);
    }
}

/* Card Trust Footer & Trust Badges Grid */
.card-trust-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    flex: 1;
}

.trust-badge-item .inline-icon-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (max-width: 440px) {
    .trust-badge-item {
        font-size: 10px;
        gap: 3px;
    }
    .trust-badge-item .inline-icon-svg {
        width: 13px;
        height: 13px;
    }
    .card-trust-footer {
        gap: 3px;
    }
}

@media (max-width: 360px) {
    .trust-badge-item {
        font-size: 9.5px;
    }
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.trust-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.trust-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.trust-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.trust-desc {
    font-size: 9.5px;
    color: var(--text-muted);
    line-height: 1.25;
}

/* Landing Section General */
.landing-section {
    padding: 60px 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-main-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.section-sub-title {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 540px;
}

/* Popular Pairs Catalog Grid */
.pairs-grid,
.popular-pills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pair-card {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.22s ease;
    position: relative;
}

.pair-card:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(24, 32, 48, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.pair-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pair-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pair-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    background: rgba(17, 24, 39, 0.8);
    display: block;
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.icon-circle.fiat {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.icon-circle.crypto {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pair-arrow {
    font-size: 13px;
    color: var(--text-muted);
}

.pair-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pair-badge.hot {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.pair-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pair-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

.pair-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.pill-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.pill-card:hover {
    border-color: var(--accent);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.pill-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pill-rate {
    font-size: 14px;
    font-weight: 700;
    color: #34d399;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.steps-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .steps-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .steps-grid, .steps-grid.four-cols {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform 0.15s, border-color 0.15s;
    height: 100%;
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.step-num {
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.step-icon {
    font-size: 26px;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.feature-card {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(24, 32, 48, 0.9);
    transform: translateY(-2px);
}

.card-icon,
.feat-icon {
    font-size: 24px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.feat-icon-svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* FAQ Section */
.faq-container {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

details.faq-item,
.faq-item {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

details.faq-item:hover,
.faq-item:hover {
    border-color: rgba(16, 185, 129, 0.35);
}

details.faq-item[open],
.faq-item.active {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(24, 32, 48, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

summary.faq-question,
.faq-question {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    user-select: none;
    list-style: none;
    outline: none;
    gap: 16px;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron,
.faq-toggle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
}

details.faq-item[open] .faq-chevron,
.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: #34d399;
}

.faq-answer {
    padding: 0 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-top: 12px;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: none;
}

/* Telegram Bot CTA Banner */
.bot-banner-section {
    padding: 48px 0 20px;
}

.bot-banner-container,
.bot-banner-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(2, 132, 199, 0.12) 100%), rgba(18, 24, 38, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.bot-banner-content,
.bot-banner-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bot-banner-badge,
.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bot-banner-title,
.bot-banner-left h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.bot-banner-desc,
.bot-banner-left p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bot-banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2px;
}

.bot-feat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.feat-check {
    color: #34d399;
    font-weight: 800;
}

.bot-banner-actions {
    margin-top: 4px;
}

.banner-tg-btn,
.banner-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s;
}

.banner-tg-btn:hover,
.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(14, 165, 233, 0.45);
    opacity: 0.95;
}

.bot-banner-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Mockup in Banner */
.tg-app-mockup,
.bot-phone-mockup {
    background: #0d121c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
}

.mockup-dot.red {
    background: #ef4444;
}

.mockup-dot.yellow {
    background: #f59e0b;
}

.mockup-dot.green {
    background: #10b981;
}

.mockup-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-bot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.mockup-icon {
    font-size: 16px;
}

.mockup-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
}

.mockup-sub {
    font-size: 10px;
    color: #34d399;
}

.mockup-chat-bubble {
    background: rgba(24, 32, 48, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #ffffff;
}

/* Full Footer */
.site-footer {
    width: 100%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 56px 0 40px;
    margin-top: 0;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1.1fr 1fr;
    gap: 32px;
    box-sizing: border-box;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 380px;
}

.footer-copy {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.footer-links-col a:hover {
    color: var(--accent);
}

/* Visibility Utilities */
.mobile-only {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-features-list {
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats-row {
        width: 100%;
        max-width: 500px;
    }

    .steps-grid, .steps-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pairs-grid,
    .popular-pills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bot-banner-container,
    .bot-banner-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        text-align: center;
        gap: 28px;
    }

    .bot-banner-content,
    .bot-banner-left {
        align-items: center;
        text-align: center;
    }

    .bot-banner-features {
        justify-content: center;
    }

    .bot-banner-actions {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .site-header {
        display: none; /* Mobile header inside card is used */
    }

    .site-wrapper {
        padding: 12px 12px 40px;
    }

    .hero-section {
        padding: 0;
    }

    .hero-content {
        padding: 16px 4px 8px;
    }

    .hero-title {
        font-size: 26px;
    }

    .steps-grid, .steps-grid.four-cols {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pairs-grid,
    .popular-pills-grid {
        grid-template-columns: 1fr;
    }

    .bot-banner-container,
    .bot-banner-card {
        padding: 24px 18px;
    }

    .bot-banner-title {
        font-size: 22px;
    }

    .hero-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .stat-value {
        font-size: 15px;
    }
}

/* ==============================================
   Telegram WebApp Mode (When opened inside TG bot)
   ============================================== */
body.is-tg-webapp {
    background-color: var(--bg-primary);
    padding: 8px 12px max(16px, env(safe-area-inset-bottom, 16px));
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

body.is-tg-webapp .top-notice-bar,
body.is-tg-webapp .site-header,
body.is-tg-webapp .hero-content,
body.is-tg-webapp .metrics-strip,
body.is-tg-webapp #guides-preview,
body.is-tg-webapp #how-it-works,
body.is-tg-webapp #ecosystem,
body.is-tg-webapp #security,
body.is-tg-webapp #reviews,
body.is-tg-webapp #features,
body.is-tg-webapp #faq,
body.is-tg-webapp .bot-banner-section,
body.is-tg-webapp .site-footer {
    display: none !important;
}

body.is-tg-webapp .site-wrapper {
    max-width: 440px;
    width: 100%;
    padding: 0;
}

body.is-tg-webapp .hero-section {
    padding: 0;
}

body.is-tg-webapp .hero-container {
    display: block;
}

body.is-tg-webapp .mobile-only {
    display: flex !important;
}

body.is-tg-webapp .popular-pills-grid {
    grid-template-columns: repeat(2, 1fr);
}

body.is-tg-webapp .landing-section {
    padding: 20px 0 0;
}

body.is-tg-webapp .section-header {
    margin-bottom: 14px;
    text-align: left;
    align-items: flex-start;
}

body.is-tg-webapp .section-tag,
body.is-tg-webapp .section-sub-title {
    display: none;
}

body.is-tg-webapp .section-main-title {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 20px 0 0;
    margin-bottom: -10px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.crumb-sep {
    color: var(--border-color);
}

/* Specification Key-Value Table */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.spec-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.spec-value.green {
    color: #34d399;
}

/* Security Callout Box */
.safety-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 24px;
}

.safety-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.safety-icon-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.safety-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.safety-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

@media (max-width: 960px) {
    .spec-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Guides & Knowledge Base Section Styles
   ========================================================================== */

.guides-hero {
    text-align: center;
    padding: 32px 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

.guide-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.guide-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.guide-category-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.guide-read-time {
    font-size: 12px;
    color: var(--text-muted);
}

.guide-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 12px;
}

.guide-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.guide-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.guide-card-footer svg {
    transition: transform 0.15s;
}

.guide-card:hover .guide-card-footer svg {
    transform: translateX(4px);
}

/* Single Guide Article Page */
.article-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 0 60px;
}

.article-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 28px;
}

.article-title {
    font-size: 34px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 16px 0;
}

@media (max-width: 640px) {
    .article-title {
        font-size: 26px;
    }
}

.article-lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-verified-badge {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Table of Contents */
.article-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 36px;
}

.article-toc-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-toc ol {
    margin: 0;
    padding-left: 20px;
}

.article-toc li {
    margin-bottom: 8px;
}

.article-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.article-toc a:hover {
    color: var(--accent);
}

/* Article Body Content */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 40px 0 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 28px 0 14px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: #ffffff;
    font-weight: 600;
}

.article-body code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    color: #34d399;
    font-size: 14.5px;
    font-family: monospace;
}

/* Step-by-Step Article Cards */
.guide-step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 22px;
    position: relative;
}

.guide-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #0b0f19;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.guide-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.guide-step-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Inline Exchange CTA Box in Article */
.guide-exchange-cta {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 78, 59, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 36px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.guide-cta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.guide-cta-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.guide-cta-discount {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 14px;
}

.guide-cta-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.guide-cta-btn-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.guide-cta-action-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--accent-glow);
    transition: transform 0.12s, opacity 0.15s;
}

.guide-cta-action-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.guide-cta-note {
    font-size: 12.5px;
    color: var(--text-muted);
}


/* ==========================================================================
   Custom Currency Select Dropdown
   ========================================================================== */
.custom-select-container {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-sizing: border-box;
}

.custom-select-trigger:hover,
.custom-select-container.open .custom-select-trigger {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.08);
}

.custom-trigger-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.custom-trigger-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.custom-trigger-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.custom-trigger-chevron {
    width: 10px;
    height: 6px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.custom-select-container.open .custom-trigger-chevron {
    transform: rotate(180deg);
    color: var(--accent-green);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 270px;
    max-height: 340px;
    overflow-y: auto;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
    padding: 6px;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.custom-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.custom-select-container.open .custom-dropdown-menu {
    display: block;
    animation: fadeInDown 0.15s ease-out;
}

.custom-dropdown-group-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding: 8px 10px 4px;
}

.custom-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.custom-dropdown-option:hover {
    background: rgba(16, 185, 129, 0.12);
}

.custom-dropdown-option.selected {
    background: rgba(16, 185, 129, 0.18);
}

.custom-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.custom-option-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.custom-option-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.custom-option-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-option-sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-dropdown-option.selected .custom-option-name {
    color: #10b981;
}

.custom-option-check {
    width: 16px;
    height: 16px;
    color: #10b981;
    display: none;
    flex-shrink: 0;
}

.custom-dropdown-option.selected .custom-option-check {
    display: block;
}

/* Hide native elements when customized */
.select-wrapper.customized .currency-select,
.select-wrapper.customized .select-curr-img,
.select-wrapper.customized .select-arrow {
    display: none !important;
}

@media (max-width: 600px) {
    .custom-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: 60vh;
        z-index: 99999;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}


/* ==========================================================================
   Metrics Strip, Reviews & Guides Preview Styles (v5.0)
   ========================================================================== */

/* Steps Grid: Ensure standard 4-column alignment */
.steps-grid,
.steps-grid.four-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px;
}

/* Features Grid: Standard 4-column alignment */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
}

/* Metrics Strip */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0 10px;
}

.metric-box {
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.85) 0%, rgba(13, 18, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.metric-box:hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(24, 32, 48, 0.95) 0%, rgba(16, 22, 34, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.metric-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon-wrap svg {
    color: #10b981;
}

.metric-text {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.metric-lbl {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.35;
}

/* Guides Preview Grid on Index */
.guides-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.guide-preview-card {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guide-preview-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(24, 32, 48, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.guide-preview-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.guide-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 10px;
}

.guide-preview-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}

.guide-preview-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
}

.guide-preview-footer svg {
    transition: transform 0.15s ease;
}

.guide-preview-card:hover .guide-preview-footer svg {
    transform: translateX(4px);
}

.guides-action-row {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.guides-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guides-all-btn:hover {
    background: #10b981;
    border-color: #10b981;
    color: #0a0e17;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.review-card {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
}

.review-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(24, 32, 48, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.review-stars {
    color: #fbbf24;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.review-pair {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    font-weight: 600;
}

.review-comment {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.55;
    flex-grow: 1;
}

.review-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-user-info {
    display: flex;
    flex-direction: column;
}

.review-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.review-user-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .steps-grid,
    .steps-grid.four-cols,
    .features-grid,
    .metrics-strip,
    .reviews-grid,
    .guides-preview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .steps-grid,
    .steps-grid.four-cols,
    .features-grid,
    .metrics-strip,
    .reviews-grid,
    .guides-preview-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   Top Notice Bar & Calculator Maintenance Callout (v5.2)
   ========================================================================== */

/* Top System Notice Bar */
.top-notice-bar {
    width: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.96) 50%, rgba(16, 185, 129, 0.08) 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.22);
    padding: 9px 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
}

.top-notice-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-primary, #ffffff);
    white-space: nowrap;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.notice-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
    display: inline-block;
    animation: discountPulse 2s infinite ease-in-out;
}

.notice-text {
    color: #e2e8f0;
}

.notice-text strong {
    color: #10b981;
    font-weight: 700;
}

.notice-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-link:hover {
    background: #10b981;
    color: #0a0e17;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .top-notice-bar {
        padding: 8px 12px;
    }
    .top-notice-inner {
        white-space: normal;
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        line-height: 1.4;
    }
    .notice-badge {
        font-size: 10px;
        padding: 2px 7px;
    }
    .notice-link.desktop-only {
        display: none !important;
    }
}

/* Calculator Callout: Partner Maintenance Gateway */
.calc-maintenance-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius-md, 12px);
    padding: 12px 14px;
    margin: 12px 0 6px;
    box-sizing: border-box;
}

.maintenance-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.maintenance-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.maintenance-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: -0.01em;
}

.maintenance-desc {
    font-size: 11.5px;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.45;
}

.maintenance-desc strong {
    color: #ffffff;
    font-weight: 600;
}
