/* Index Page Styles */

/* Theme Color Overrides Only - Do NOT redefine base.css variables */
:root {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --accent-color: #14b8a6;
}

/* Index Page Specific Styles - Remove all globals, keep only page components */

.coin-ticker {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    padding: 20px 0 70px 0;
    width: fit-content;
    gap: 16px;
    transition: transform 0.4s ease;
}

.coin-ticker-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

/* Coin Carousel Arrow Buttons */
.coin-carousel-arrow {
    background: rgba(59, 130, 246, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Arrows row - centered below the ticker on all screen sizes */
.carousel-arrows-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    padding-bottom: 8px;
}

.coin-carousel-arrow:hover:not(:disabled) {
    background: rgba(59, 130, 246, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
}

.coin-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(59, 130, 246, 0.5);
}

.coin-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 22px 18px;
    margin: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.05));
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    min-width: 320px;
    width: 320px;
    height: auto;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.coin-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.coin-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.coin-item:not(:last-child)::after {
    content: none;
}


.coin-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.15));
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35), 0 0 20px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.6);
}

.coin-icon {
    width: 52px;
    height: 52px;
    margin-right: 0;
    margin-bottom: 14px;
    border-radius: 50%;
}

.coin-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.2;
    flex: 1;
}

.coin-symbol {
    font-weight: 700;
    font-size: 1.5rem;
    color: #f8fafc;
    letter-spacing: 0.3px;
}

.coin-price {
    font-size: 1.25rem;
    opacity: 0.85;
    font-family: 'Roboto Mono', monospace;
    color: #cbd5e1;
    font-weight: 600;
}

.coin-change {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* New coin item layout with chart */
.coin-item-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.coin-chart-container {
    width: 100%;
    height: 80px;
    margin-top: 8px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.chart-loading {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }
}

.coin-mini-chart-svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
    animation: fadeIn 0.3s ease-in;
}

.coin-change {
    gap: 4px;
    margin-left: 0;
}

.coin-change.positive {
    color: #22c55e;
}

.coin-change.negative {
    color: #ef4444;
}

.change-icon {
    font-size: 0.65rem;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for coin carousel */
@media screen and (max-width: 768px) {
    .coin-carousel-section {
        padding: 16px 0 10px;
    }

    /* Wrapper becomes a fixed viewport - one card wide */
    .coin-ticker-wrapper {
        overflow: hidden;
        max-width: 100%;
        padding: 0 16px;
    }

    /* Ticker becomes a flex row - JS slides it by 100% per card */
    .coin-ticker {
        display: flex;
        gap: 16px;
        padding: 8px 0 8px 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    /* Each card fills the wrapper width */
    .coin-item {
        min-width: calc(100vw - 32px);
        width: calc(100vw - 32px);
        flex-shrink: 0;
        padding: 24px 20px;
        border-radius: 20px;
        height: auto;
    }

    .coin-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }

    .coin-symbol {
        font-size: 1.6rem;
    }

    .coin-price {
        font-size: 1.35rem;
    }

    .coin-change {
        font-size: 1.1rem;
    }

    .change-icon {
        font-size: 0.85rem;
    }

    .coin-chart-container {
        height: 100px;
        min-height: 100px;
    }

    /* Arrows: slightly bigger on mobile */
    .coin-carousel-arrow {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/firstSectionBackground.png') center/cover no-repeat,
        radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        #020617;
    position: relative;
    overflow: hidden;
    padding-top: 110px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.5);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: center;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 60%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24 !important;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: #01040a;
    border-top: 1px solid rgba(59, 130, 246, 0.12);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.stats .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Trust Banner */
.trust-banner {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.trust-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 193, 7, 0.1), transparent 50%);
    pointer-events: none;
}

.trust-number {
    flex: 1;
    min-width: 300px;
    z-index: 1;
}

.trust-number h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    text-align: left;
}

.trust-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fbbf24;
    margin: 10px 0 5px 0;
    letter-spacing: 1px;
}

.trust-badges {
    display: flex;
    gap: 30px;
    z-index: 1;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 193, 7, 0.15);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2);
}

.badge-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffc107;
    line-height: 1;
}

.badge-subtitle {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Stat Cards Row */
.stat-cards-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-card {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: #818cf8;
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-card p {
    color: #D4AF37;
    font-size: 0.95rem;
}

/* ── Slot-machine digit rolling ─────────────────────────────── */
.slot-counter {
    display: inline-flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
}

/* Clip window - shows exactly one digit */
.slot-col {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    vertical-align: bottom;
}

/* Vertical strip: 10 digits stacked. Moved with translateY(px). */
.slot-reel {
    display: block;
    will-change: transform;
}

/* Single digit cell */
.slot-cell {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}

/* Punctuation ($  ,  +  space) */
.slot-sep {
    display: inline-block;
    vertical-align: bottom;
    line-height: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .trust-banner {
        flex-direction: column;
        text-align: center;
    }

    .trust-number {
        min-width: 100%;
    }

    .trust-number h3 {
        font-size: 2.8rem;
    }

    .trust-badges {
        flex-direction: column;
        width: 100%;
    }

    .badge-item {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .trust-number h3 {
        font-size: 2.2rem;
    }

    .trust-subtitle {
        font-size: 1.3rem;
    }

    .badge-title {
        font-size: 1.4rem;
    }
}

/* AI Trading Section */
.ai-trading {
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        #020617;
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ai-trading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.ai-trading h2 {
    color: var(--white);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #fbbf24;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.features-group {
    margin-bottom: 60px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.features-group h3 {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.ai-feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-feature-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.ai-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    margin: 0 auto 25px;
    font-size: 2rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.ai-feature-card h3 {
    color: #D4AF37;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.ai-feature-card p {
    color: var(--white);
    line-height: 1.7;
    flex-grow: 1;
}

/* Pricing Card Styles */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5), 0 0 30px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.price-badge {
    display: inline-block;
    align-self: center;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: white;
    padding: 8px 28px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.pricing-card .btn {
    width: auto;
    display: block;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.feature-benefits {
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: auto;
}

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

.feature-list li {
    color: #fbbf24;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition);
}

.feature-list li:hover {
    color: #fcd34d;
}

.feature-list i {
    color: var(--accent-color);
}


/* Security Section */
.security {
    background: radial-gradient(circle at 10% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        #020617;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.security::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.security .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.security-content {
    flex: 1;
}

.security-content h2,
.security-content p {
    color: var(--white);
    text-align: left;
}

.security-intro {
    color: #fbbf24 !important;
    font-weight: 500;
}

.feature-subtitle,
small.feature-subtitle,
#on-chain-tracking small,
#on-chain-tracking .feature-subtitle {
    color: #fbbf24 !important;
    display: block;
}

.security-features {
    list-style: none;
    margin: 30px 0;
}

.security-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.security-features li i {
    color: var(--primary-light);
    margin-right: 10px;
}

.security-image {
    flex: 1;
    text-align: center;
}

/* Get Started Section */
.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 50px 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 30px;
    right: -50px;
    width: 70px;
    height: 2px;
    background-color: var(--border-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.step h3 {
    color: #fbbf24;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Mobile App Section */
.mobile-app {
    background:
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.07) 0%, transparent 55%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 55%),
        #020617;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.mobile-app .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ── Phone column ───────────────────────────────────── */
.mobile-app-image {
    flex: 0 0 31.25%;
    max-width: 31.25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-glow-wrap {
    position: relative;
    display: inline-block;
}

.phone-glow-wrap::before {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.mobile-app-image img,
.mobile-app-image svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(6, 182, 212, 0.2));
}

/* ── Content column ─────────────────────────────────── */
.mobile-app-content {
    flex: 1;
    min-width: 0;
}

.mobile-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.mobile-app-content h2 {
    text-align: left;
    margin-bottom: 16px;
    line-height: 1.2;
}

.mobile-app-desc {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Feature pills grid */
.app-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.app-feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.875rem;
    color: #e2e8f0;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.app-feature-pill:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
}

.app-feature-pill i {
    color: #22d3ee;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mobile-app-security {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    margin-bottom: 28px !important;
}

.mobile-app-security i {
    color: #22d3ee;
}

/* Platform logos */
.platform-logos-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.platform-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.platform-logo-item:hover {
    opacity: 1;
}

.platform-logo-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.platform-logo-item span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Get Started Section */
.get-started {
    background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.12) 0%, transparent 60%),
        #020617;
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.get-started h2 {
    text-align: center;
    margin-bottom: 50px;
}




/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TradingView Widget Modal */
#tradingview_widget_container {
    height: 600px;
    width: 100%;
}

.modal-content {
    border-radius: var(--radius-md);
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border-bottom: none;
    padding: 16px 20px;
}

.modal-header .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.modal-header .modal-title::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../icons/ultraview-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.modal-header .btn-close {
    color: var(--white);
    filter: brightness(0) invert(1);
    opacity: 0.8;
    padding: 12px;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    border-top: none;
    background: var(--light-gray);
    justify-content: space-between;
    padding: 12px 20px;
}

.modal-footer .btn-secondary {
    background: var(--secondary-color);
    border: none;
    transition: all 0.2s ease;
}

.modal-footer .btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.trading-info {
    font-size: 0.85rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.trading-info strong {
    color: var(--primary-color);
    margin: 0 4px;
}

.trading-info::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233a7bd5'%3E%3Cpath d='M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 900px;
    }
}

.modal-footer .btn-secondary {
    background: var(--secondary-color);
    border: none;
}

/* Make coin items clickable with a pointer cursor */
.coin-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coin-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .hero .container,
    .security .container,
    .mobile-app .container {
        flex-direction: column;
    }

    .security-image,
    .mobile-app-image {
        order: -1;
        margin-bottom: 30px;
        text-align: center;
    }

    .security-image img,
    .mobile-app-image img {
        max-width: 280px;
        width: 100%;
    }

    .mobile-app-image {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .mobile-app-content h2,
    .mobile-app-content p,
    .mobile-app-badge {
        text-align: center;
    }

    .mobile-app-content h2 {
        text-align: center;
    }

    .mobile-app-badge {
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
    }

    .platform-logos-row {
        justify-content: center;
    }

    .app-features {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Features grid: 2 columns on tablet */
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Pricing cards: stack on tablet */
    .pricing-card {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Hero */
    .hero .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 40px 15px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Stats / Trust Banner */
    .trust-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .trust-number {
        min-width: 100%;
    }

    .trust-number h3 {
        font-size: 2rem;
        text-align: center;
    }

    .trust-badges {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .badge-item {
        justify-content: flex-start;
        padding: 15px 30px;
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }

    /* Stat cards row */
    .stat-cards-row {
        justify-content: center;
        gap: 12px;
    }

    .stat-card {
        min-width: 140px;
        flex: 1 1 40%;
    }

    .stat-card h3 {
        font-size: 1.6rem;
    }

    /* AI Trading / Features section */
    .ai-trading {
        padding: 60px 0;
    }

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

    .ai-feature-card {
        padding: 24px;
    }

    .features-group {
        margin-bottom: 40px;
    }

    .features-group h3 {
        font-size: 1.2rem;
    }

    /* Pricing cards */
    .pricing-card {
        width: 100%;
    }

    .price-badge {
        font-size: 1.6rem;
    }

    /* On-chain tracking section */
    #on-chain-tracking .row {
        justify-content: center;
    }

    #on-chain-tracking .col-md-6 {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Security section */
    .security .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .security-content {
        order: 2;
    }

    .security-image {
        order: 1;
        margin-bottom: 20px;
        text-align: center;
    }

    .security-image img {
        max-width: 280px;
        width: 100%;
    }

    .security-content h2,
    .security-content p {
        text-align: center;
    }

    .security-features {
        display: inline-block;
        text-align: left;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Get Started Steps */
    .get-started {
        padding: 60px 0;
    }

    .steps {
        flex-direction: column;
        gap: 20px;
    }

    .step:not(:last-child):after {
        display: none;
    }

    .step {
        text-align: center;
        padding: 25px 20px;
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    /* Mobile App section */
    .mobile-app .container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 0 20px;
    }

    .mobile-app-image {
        order: 1;
        flex: 0 0 auto;
        max-width: 100%;
    }

    .mobile-app-image img,
    .mobile-app-image svg {
        max-width: 240px;
        width: 100%;
    }

    .mobile-app-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-app-content h2 {
        text-align: center;
        font-size: 1.5rem;
    }

    .mobile-app-desc {
        text-align: center;
    }

    .app-features {
        grid-template-columns: 1fr 1fr;
        max-width: 360px;
        width: 100%;
    }

    .mobile-app-security {
        justify-content: center;
    }

    .platform-logos-row {
        justify-content: center;
        gap: 16px;
    }

    section {
        padding: 40px 0;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 12px;
    }

    /* Hero */
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        letter-spacing: -0.3px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.8px;
    }

    .hero-cta .btn {
        max-width: 100%;
        padding: 14px 20px;
    }

    /* Trust banner */
    .trust-number h3 {
        font-size: 1.8rem;
    }

    .trust-subtitle {
        font-size: 1.1rem;
    }

    .badge-title {
        font-size: 1.3rem;
    }

    .badge-icon {
        font-size: 2rem;
    }

    /* Stat cards: single column */
    .stat-cards-row {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 320px;
        flex: none;
        padding: 15px;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    /* Features grid: 1 column */
    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-feature-card {
        padding: 20px;
    }

    .features-group h3 {
        font-size: 1.1rem;
    }

    /* On-chain tracking */
    #on-chain-tracking {
        padding: 40px 0 !important;
    }

    #on-chain-tracking h2 {
        font-size: 1.3rem;
    }

    #on-chain-tracking .col-md-6 {
        width: 100%;
        padding: 0 10px;
    }

    /* Pricing */
    .price-badge {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .pricing-card .btn {
        width: auto;
        margin: 0 auto;
    }

    /* Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step h3 {
        font-size: 1rem;
    }

    /* Security */
    .security-features li {
        font-size: 0.9rem;
    }

    .security-features {
        max-width: 100%;
    }

    /* Mobile app */
    .mobile-app-image img,
    .mobile-app-image svg {
        max-width: 190px;
    }

    .app-features {
        grid-template-columns: 1fr;
        max-width: 260px;
    }
}

/* Features group section headings */
.features-group-heading {
    color: var(--white);
    font-size: 1.5rem;
}

/* Pricing card CTA button */
.pricing-card .btn-get-started {
    margin-top: auto;
}

/* Pricing card title */
.pricing-card h3 {
    color: #f59e0b;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Pricing card subtitle tagline */
.pricing-card-subtitle {
    color: rgba(245, 158, 11, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
}

/* Pricing commitment note */
.pricing-commitment-note {
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-style: italic;
    width: 100%;
    display: block;
    padding: 18px 0 4px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: 32px !important;
}

/* On-Chain Tracking Section */
#on-chain-tracking {
    text-align: center;
    padding: 60px 0;
}

.on-chain-inner {
    max-width: 800px;
    margin: 0 auto;
}

.on-chain-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.on-chain-feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.on-chain-feature-item h6 {
    margin-bottom: 5px;
}

/* Mobile App platform logos */
.platform-logos {
    margin: 30px 0;
}

.platform-logos-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.platform-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.platform-logo-item img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.platform-logo-item span {
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Text Yellow */
.text-yellow {
    color: #fbbf24;
}