/* ================================================
   DESIGN SYSTEM — SocialBoost
   ================================================ */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;

    /* Instagram Palette */
    --ig-pink: #E1306C;
    --ig-purple: #833AB4;
    --ig-orange: #F77737;
    --ig-yellow: #FCAF45;
    --ig-gradient: linear-gradient(135deg, #833AB4, #E1306C, #F77737);

    /* TikTok Palette */
    --tt-cyan: #25F4EE;
    --tt-pink: #FE2C55;
    --tt-dark: #010101;
    --tt-gradient: linear-gradient(135deg, #25F4EE, #FE2C55);

    /* General */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================================================
   RESET & BASE
   ================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================
   ANIMATED BACKGROUND
   ================================================ */

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--ig-purple);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--tt-cyan);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--ig-pink);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ================================================
   HEADER
   ================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ig-purple), var(--ig-pink));
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
    position: relative;
    z-index: 1;
    padding: 160px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.gradient-text {
    background: var(--ig-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ================================================
   TAB SWITCHER
   ================================================ */

.platforms {
    position: relative;
    z-index: 1;
    padding: 0 0 40px;
}

.tab-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.tab-btn[data-tab="instagram"]::before {
    background: var(--ig-gradient);
}

.tab-btn[data-tab="tiktok"]::before {
    background: var(--tt-gradient);
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.tab-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.tab-btn span,
.tab-btn {
    position: relative;
    z-index: 1;
}

/* ================================================
   SERVICES SECTIONS
   ================================================ */

.services-section {
    position: relative;
    z-index: 1;
    padding: 20px 0 80px;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.services-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.platform-badge {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instagram-badge {
    background: var(--ig-gradient);
    color: #fff;
}

.tiktok-badge {
    background: var(--tt-gradient);
    color: #000;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ================================================
   SERVICE CARDS
   ================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.instagram-card .card-glow {
    background: radial-gradient(circle at center, rgba(225, 48, 108, 0.08), transparent 50%);
}

.tiktok-card .card-glow {
    background: radial-gradient(circle at center, rgba(37, 244, 238, 0.08), transparent 50%);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.instagram-card .card-icon {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.15), rgba(225, 48, 108, 0.15));
    color: var(--ig-pink);
}

.instagram-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.25), rgba(225, 48, 108, 0.25));
    box-shadow: 0 0 30px rgba(225, 48, 108, 0.2);
}

.tiktok-card .card-icon {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.1), rgba(254, 44, 85, 0.1));
    color: var(--tt-cyan);
}

.tiktok-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.2), rgba(254, 44, 85, 0.2));
    box-shadow: 0 0 30px rgba(37, 244, 238, 0.15);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.card-cta svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-spring);
}

.instagram-card .card-cta {
    color: var(--ig-pink);
}

.tiktok-card .card-cta {
    color: var(--tt-cyan);
}

.service-card:hover .card-cta svg {
    transform: translateX(6px);
}

/* Stagger animations for cards */
.service-card:nth-child(1) { animation: cardIn 0.6s ease-out 0.05s backwards; }
.service-card:nth-child(2) { animation: cardIn 0.6s ease-out 0.12s backwards; }
.service-card:nth-child(3) { animation: cardIn 0.6s ease-out 0.19s backwards; }
.service-card:nth-child(4) { animation: cardIn 0.6s ease-out 0.26s backwards; }

/* ================================================
   MODAL OVERLAY & PANEL
   ================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-spring);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

/* Modal Steps */
.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

/* Step 1: Input */
.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.8rem;
}

.modal-icon.instagram {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.2), rgba(225, 48, 108, 0.2));
    color: var(--ig-pink);
}

.modal-icon.tiktok {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.15), rgba(254, 44, 85, 0.15));
    color: var(--tt-cyan);
}

.modal-icon svg {
    width: 30px;
    height: 30px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Input Group */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0 16px;
    transition: var(--transition-fast);
}

.input-group:focus-within {
    border-color: rgba(225, 48, 108, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.1);
}

.input-prefix {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 4px;
    user-select: none;
}

.modal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    padding: 16px 0;
    width: 100%;
}

.modal-input::placeholder {
    color: var(--text-muted);
}

.modal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.modal-submit.instagram {
    background: var(--ig-gradient);
}

.modal-submit.tiktok {
    background: var(--tt-gradient);
    color: #000;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.modal-submit:active {
    transform: translateY(0);
}

.modal-submit svg {
    width: 18px;
    height: 18px;
}

/* Step 2: Loading */
.modal-step-loading {
    text-align: center;
    padding: 40px 0;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: loaderSpin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--ig-pink);
    animation-duration: 1.5s;
}

.loader-ring:nth-child(2) {
    inset: 8px;
    border-right-color: var(--ig-purple);
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    inset: 16px;
    border-bottom-color: var(--ig-orange);
    animation-duration: 1s;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--ig-gradient);
    border-radius: 100px;
    transition: width 0.3s ease;
}

/* Step 3: Results */
.results-header {
    text-align: center;
    margin-bottom: 20px;
}

.results-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 4px;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    position: relative;
}

.result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.result-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Blur effect on result items */
.result-item.blurred .result-info,
.result-item.blurred .result-time {
    filter: blur(var(--blur-amount, 6px));
    user-select: none;
    pointer-events: none;
}

.result-item.blurred .result-avatar {
    filter: blur(var(--blur-amount, 6px));
}

/* Account Info Item Styles */
.account-info-item {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
}

.account-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-info-icon svg {
    width: 20px;
    height: 20px;
}

.account-info-content {
    flex: 1;
    min-width: 0;
}

.account-info-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.account-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* Blur only the value in account-info, keep label visible */
.result-item.account-info-item.blurred .account-info-value {
    filter: blur(var(--blur-amount, 6px));
    user-select: none;
    pointer-events: none;
}

.result-item.account-info-item.blurred .account-info-icon {
    filter: none;
}

.result-item.account-info-item.blurred .account-info-label {
    filter: none;
}

/* Private View - Photo Grid */
.private-view-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(225, 48, 108, 0.08);
    border: 1px solid rgba(225, 48, 108, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: rgba(225, 48, 108, 0.9);
    line-height: 1.4;
}

.private-view-note svg {
    flex-shrink: 0;
    color: rgba(225, 48, 108, 0.7);
}

.private-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: filter 0.6s ease-out;
}

.private-photo-grid.blurred {
    filter: blur(var(--blur-amount, 6px));
    user-select: none;
    pointer-events: none;
}

.private-photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    animation: fadeIn 0.4s ease-out backwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.private-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.private-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    gap: 8px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.private-photo-item:hover .private-photo-overlay {
    opacity: 1;
}

/* Unlock area */
.results-unlock {
    text-align: center;
}

.unlock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    animation: pulseGlow 2s ease-in-out infinite;
}

.unlock-btn svg {
    width: 20px;
    height: 20px;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.35);
}

.unlock-btn:active {
    transform: translateY(0);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(74, 222, 128, 0.2); }
    50% { box-shadow: 0 0 30px rgba(74, 222, 128, 0.4); }
}

/* Code Input Section */
.code-input-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.code-input-group {
    display: flex;
    gap: 8px;
}

.code-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
    letter-spacing: 0.1em;
    text-align: center;
}

.code-input::placeholder {
    color: var(--text-muted);
    letter-spacing: 0;
}

.code-input:focus {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.1);
}

.code-submit {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.code-submit:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.code-submit:active {
    transform: scale(0.97);
}

/* Shake animation for invalid code */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-6px); }
    30%, 70% { transform: translateX(6px); }
}

/* Smooth unblur transition */
.result-item {
    transition: filter 0.6s ease-out;
}

/* Modal mobile */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        padding: 28px 20px 32px;
        max-height: 85vh;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal {
        transform: translateY(0);
    }

    .modal-icon {
        width: 52px;
        height: 52px;
    }

    .modal-icon svg {
        width: 24px;
        height: 24px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .results-list {
        max-height: 250px;
    }
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-brand .logo-icon {
    font-size: 1.2rem;
    width: 34px;
    height: 34px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================================
   RESPONSIVE — MOBILE FIRST (Phones)
   ================================================ */

@media (max-width: 768px) {
    .hero {
        padding: 110px 0 40px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    /* Stats — horizontal row */
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 0;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-lg);
        padding: 16px 8px;
    }

    .stat {
        flex: 1;
        position: relative;
    }

    .stat:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.04em;
    }

    /* Tab switcher */
    .platforms {
        padding: 0 0 20px;
    }

    .tab-switcher {
        padding: 4px;
        width: calc(100% - 32px);
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .tab-icon {
        width: 16px;
        height: 16px;
    }

    /* Section header */
    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.3rem;
        flex-direction: row;
        gap: 8px;
    }

    .platform-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .section-desc {
        font-size: 0.88rem;
    }

    .services-section {
        padding: 10px 0 40px;
    }

    /* ======================================
       MOBILE CARDS — 2 Column Compact Grid
       ====================================== */

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-card {
        padding: 16px 14px;
        border-radius: var(--radius-md);
        /* Ensure good touch target */
        min-height: 160px;
    }

    .service-card:hover {
        transform: none;
    }

    /* Active/tap state for mobile */
    .service-card:active {
        transform: scale(0.97);
        background: var(--bg-card-hover);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .card-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
        border-radius: var(--radius-sm);
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }

    .card-title {
        font-size: 0.88rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .card-desc {
        font-size: 0.72rem;
        line-height: 1.5;
        margin-bottom: 12px;
        color: var(--text-muted);
    }

    .card-cta {
        font-size: 0.78rem;
        padding: 8px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        margin-top: auto;
    }

    .card-cta svg {
        width: 14px;
        height: 14px;
    }

    /* Nav */
    .nav-link {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer {
        padding: 24px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-brand .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }
}

/* ================================================
   EXTRA SMALL PHONES (< 380px)
   ================================================ */

@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .stat-number {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .cards-grid {
        gap: 8px;
    }

    .service-card {
        padding: 14px 12px;
        min-height: 148px;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }

    .card-icon svg {
        width: 18px;
        height: 18px;
    }

    .card-title {
        font-size: 0.82rem;
    }

    .card-desc {
        font-size: 0.68rem;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}
