/* ============================================
   RESET & ROOT VARIABLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000;
    --bg: #fff;
    --bg-soft: #f5f5f7;
    --bg-card: #fafafa;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --text-dim: #86868b;
    --border: #d2d2d7;
    --border-light: #e5e5e7;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 980px;
    --ease: cubic-bezier(.4,0,.2,1);
    --dur: .25s;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 17px;
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================
   UTILITY
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }

*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ============================================
   LAYOUT
   ============================================ */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
    animation: fadeIn .4s var(--ease);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
}

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

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

.navbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    transition: background var(--dur) var(--ease);
}
.navbar-icon img { width: 20px; height: 20px; object-fit: contain; opacity: .85; }
.navbar-icon:hover { background: var(--bg-card); }
.navbar-icon:hover img { opacity: 1; }

.navbar-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    transition: all var(--dur) var(--ease);
}
.navbar-link:hover { background: var(--bg-card); }
.navbar-link.active { background: var(--primary); color: #fff; font-weight: 500; }

.navbar-auth { display: flex; align-items: center; gap: 12px; }

.auth-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font: 500 14px/1 inherit;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.auth-button:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.auth-button:active { transform: scale(.98); }

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.user-info:hover { background: var(--bg-soft); box-shadow: var(--shadow-sm); }

.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-name { font: 500 14px/1 inherit; }

.logout-button {
    padding: 6px 12px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font: 500 13px/1 inherit;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.logout-button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (min-width: 768px) {
    .home { order: 1; }
    .airdrop { order: 2; }
    .roadmap { order: 3; }
    .pump { order: 4; margin-left: 4px; }
    .x { order: 5; }
}

/* ============================================
   HERO / PAGE HEADINGS
   ============================================ */
.hero-section,
.airdrop-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f7 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
    animation: fadeInUp .8s var(--ease);
}

.hero-section { padding: 50px 20px; }

.hero-title,
.airdrop-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.05;
}

.airdrop-title { font-size: clamp(2.5rem, 5vw, 4rem); }

.hero-subtitle,
.airdrop-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

.airdrop-subtitle { font-size: 18px; margin-bottom: 48px; }

.miss-kol-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--dur) var(--ease);
}
.miss-kol-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ============================================
   SEARCH
   ============================================ */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    font: inherit;
    font-size: 17px;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.search-input::placeholder { color: var(--text-dim); }

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
}
.search-suggestions.hidden { display: none; }

.search-suggestion {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--dur) var(--ease);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover { background: var(--bg-card); }

.search-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section { margin-bottom: 40px; animation: fadeInUp .8s var(--ease) both; }
.content-section:nth-child(2) { animation-delay: .1s; }
.content-section:nth-child(3) { animation-delay: .2s; }
.content-section:nth-child(4) { animation-delay: .3s; }

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.section-header-center { text-align: center; margin-bottom: 48px; }

.section-icon-container {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.section-icon { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; fill: none; }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.section-title-airdrop { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin-top:30px; margin-bottom: 30px; color: var(--text); letter-spacing: -.02em; }
.section-description { color: var(--text-muted); font-size: 17px; margin-top: 6px; }

/* ============================================
   INFINITE SCROLL MARQUEE
   ============================================
   Soluzione semplice e robusta:
   - JS duplica il contenuto 2× nell'innerHTML
   - CSS anima translateX da 0% a -50% (= esattamente 1 set di card)
   - Il loop è invisibile: quando il primo set esce a sinistra,
     il secondo set identico è già in posizione → nessuno stacco
   - Velocità FISSA a 40s per tutte le sezioni (indipendente dal numero di card)
   - data-direction="right" inverte il verso
   - Pausa al hover solo su desktop (pointer fine)
   ============================================ */

@keyframes marquee-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.scroll-section {
    overflow: auto;
    position: relative;
    padding: 16px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

@media (hover: hover) and (pointer: fine) {
    .scroll-section {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
      .scroll-section:hover .scroll-track {
        animation-play-state: paused;
    }
    .scroll-section::-webkit-scrollbar {
        display: none;
    }
}

.scroll-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* will-change per performance GPU */
    will-change: transform;
}

/* Velocità fissa 40s — identica per TopKols, Caution e Reviewers */
.scroll-track.marquee-running {
    animation: marquee-left 40s linear infinite;
}

/* Direzione destra (sezione Caution) */
.scroll-track.marquee-running[data-direction="right"] {
    animation: marquee-right 40s linear infinite;
}


/* ============================================
   KOL CARD
   ============================================ */
.kol-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-width: 300px;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    user-select: none;
}
.kol-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-lg); }

.kol-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }

.kol-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.kol-info { flex: 1; }
.kol-username { font-size: 18px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.review-count { color: var(--text-muted); font-size: 14px; }

/* ============================================
   STARS — piena / mezza / vuota
   ============================================ */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Stelle visualizzazione (generateStars) */
.star {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: all var(--dur) var(--ease);
}
.star.filled  { fill: #000; stroke: #000; }
.star.empty   { fill: none; stroke: var(--border); stroke-width: 1.5; }

/* Mezza stella: SVG con linearGradient 50/50 */
.star.half-star {
    overflow: visible;
}

.rating-number { margin-left: 8px; font-weight: 600; font-size: 15px; }

/* ============================================
   RATING INPUT — mezze stelle
   ============================================ */
.rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    align-items: center;
}

/* Wrapper per ciascuna stella nel form */
.star-input-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
}

/* SVG stella di default (vuota) */
.star-input-wrapper svg {
    position: absolute;
    inset: 0;
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--border);
    stroke-width: 1.5;
    pointer-events: none;       /* i click vengono catturati dalle zone */
    transition: fill .15s ease, stroke .15s ease;
}

/* Stella piena */
.star-input-wrapper svg.selected {
    fill: #000;
    stroke: #000;
}

/* Mezza stella: gradiente 50/50 */
.star-input-wrapper svg.half-selected {
    fill: url(#halfGradInput);
    stroke: #000;
}

/* Zone cliccabili: metà sinistra e metà destra dell'SVG */
.star-left,
.star-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 2;
}
.star-left  { left: 0; }
.star-right { right: 0; }

/* ============================================
   RANKING TABLE
   ============================================ */
.ranking-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ranking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}
.ranking-row:last-child { border-bottom: none; }
.ranking-row:hover { background: var(--bg-card); }

.ranking-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.ranking-number { font-size: 18px; font-weight: 700; min-width: 40px; text-align: center; }
.ranking-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-light); }
.ranking-username { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.ranking-reviews { font-size: 13px; color: var(--text-muted); }

.ranking-rating-single { display: flex; align-items: center; gap: 6px; }
.ranking-rating-number { font-size: 18px; font-weight: 700; }
.ranking-star { width: 20px; height: 20px; fill: #000; stroke: #000; }

/* ============================================
   DETAIL PAGE
   ============================================ */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font: 500 14px/1 inherit;
    cursor: pointer;
    margin-bottom: 32px;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.back-button:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateX(-4px); }

.detail-header {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.detail-header-content { display: flex; align-items: center; gap: 32px; }

.detail-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-light); }

.detail-info { flex: 1; }

.detail-username-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.detail-username { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.02em; }

.twitter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all var(--dur) var(--ease);
}
.twitter-link:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }
.twitter-icon-img { width: 20px; height: 20px; filter: brightness(0); }
.twitter-link:hover .twitter-icon-img { filter: brightness(0) invert(1); }

.detail-bio { color: var(--text-muted); font-size: 17px; margin-bottom: 24px; }

.detail-stats { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.detail-stat { text-align: center; }
.detail-stat-value { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.detail-stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.detail-divider { width: 1px; height: 60px; background: var(--border); }

.detail-content { display: grid; gap: 32px; }

.detail-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.detail-section-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.detail-section-description { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

.copy-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.copy-button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.copy-button .icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============================================
   REVIEWS
   ============================================ */
.add-review-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font: 600 15px/1 inherit;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.add-review-button:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.reviews-list { display: grid; gap: 16px; }

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--dur) var(--ease);
    animation: fadeInUp .4s var(--ease) both;
}
.review-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }

.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }

.review-username { font-weight: 600; color: var(--text); font-size: 15px; cursor: pointer; }
.review-username:hover { text-decoration: underline; }
.review-kol-ref { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.review-kol-ref span { color: var(--primary); cursor: pointer; font-weight: 500; }
.review-kol-ref span:hover { text-decoration: underline; }
.review-date { color: var(--text-dim); font-size: 13px; }
.review-content { color: var(--text); line-height: 1.6; margin-bottom: 16px; font-size: 15px; }

.review-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.like-button,
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font: 500 13px/1 inherit;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    text-decoration: none;
}
.like-button:hover { border-color: var(--border); background: var(--bg-card); color: var(--text); }
.like-button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.share-button:hover { background: #000; color: #fff; border-color: #000; transform: scale(1.04); }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn var(--dur);
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    animation: modalSlideUp .4s var(--ease);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-wide { max-width: 680px; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-title { font-size: 24px; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all var(--dur) var(--ease);
    flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-card); color: var(--text); }

.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }

.form-textarea,
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    transition: all var(--dur) var(--ease);
}
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-textarea:focus,
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.form-textarea::placeholder,
.form-input::placeholder { color: var(--text-dim); }

.submit-button,
.task-button,
.add-review-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font: 600 15px/1 inherit;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.submit-button:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.submit-button:active { transform: scale(.98); }
.submit-button:disabled { background: var(--bg-soft); color: var(--text-dim); cursor: not-allowed; opacity: .6; }

.miss-kol-body { display: flex; flex-direction: column; gap: 0; }
.miss-kol-description { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

/* ============================================
   TOAST
   ============================================ */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 10001; display: flex; flex-direction: column; gap: 12px; }

.toast {
    padding: 16px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    animation: slideInRight var(--dur) var(--ease);
}
.toast.toast-success { border-color: #000; background: var(--bg-soft); }
.toast.toast-error   { border-color: var(--border); background: #fafafa; }
.toast.toast-hiding  { animation: slideOutRight var(--dur) var(--ease); }

/* ============================================
   AIRDROP PAGE
   ============================================ */
.points-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.points-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.points-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.points-value { font-size: 48px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.points-label { font-size: 15px; color: var(--text-muted); font-weight: 500; }

.tasks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.task-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.task-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.task-card.completed { background: var(--bg-card); border-color: var(--border); }

.task-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }

.task-icon {
    width: 48px; height: 48px;
    background: #b1b1b1;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.task-card.completed .task-icon { background: #e0e0e0; }

.task-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.task-points { font-size: 14px; color: var(--text-muted); font-weight: 600; }

.task-progress { margin-top: 12px; }
.task-progress-bar { width: 100%; height: 6px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.task-progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width .4s var(--ease); }
.task-progress-text { font-size: 13px; color: var(--text-muted); }

.task-button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font: 600 14px/1 inherit;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.task-button:hover:not(:disabled) { transform: scale(1.02); box-shadow: var(--shadow-md); }
.task-button:active:not(:disabled) { transform: scale(.98); }
.task-button:disabled {  cursor: not-allowed; opacity: .6; }
.task-button.completed { background: #e0e0e0; color: var(--text); }

.leaderboard-list {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--dur) var(--ease);
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { background: var(--bg-card); }
.leaderboard-item.current-user { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.leaderboard-rank { font-size: 20px; font-weight: 700; min-width: 60px; text-align: center; }
.leaderboard-user { display: flex; align-items: center; gap: 16px; flex: 1; }
.leaderboard-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-light); }
.leaderboard-name { font-weight: 600; font-size: 17px; }
.leaderboard-points { font-size: 18px; font-weight: 700; }

/* ============================================
   ROADMAP
   ============================================ */
.airdrop-roadmap {
    max-width: 900px;
    margin: 0 auto 80px;
}

.roadmap-timeline {
    position: relative;
    padding: 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--border) 5%,
        var(--border) 95%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.roadmap-phase {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.roadmap-phase.visible {
    opacity: 1;
    transform: translateY(0);
}
.roadmap-phase:nth-child(2) { transition-delay: .15s; }
.roadmap-phase:nth-child(3) { transition-delay: .3s; }

.roadmap-node {
    grid-column: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 24px;
    position: relative;
    z-index: 2;
}

.roadmap-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--bg-soft), var(--shadow-md);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    position: relative;
}

.roadmap-bubble::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: pulse-ring 2.4s ease-out infinite;
}
.roadmap-phase:nth-child(2) .roadmap-bubble::after { animation-delay: .8s; }
.roadmap-phase:nth-child(3) .roadmap-bubble::after { animation-delay: 1.6s; }

@keyframes pulse-ring {
    0%   { opacity: .5; transform: scale(1); }
    100% { opacity: 0;  transform: scale(1.7); }
}

.roadmap-content-left,
.roadmap-content-right {
    padding: 0 32px;
}

.roadmap-phase:nth-child(odd) .roadmap-content-left  { grid-column: 1; }
.roadmap-phase:nth-child(odd) .roadmap-content-right { grid-column: 3; display: flex; align-items: flex-start; padding-top: 20px; }

.roadmap-phase:nth-child(even) .roadmap-content-left  { grid-column: 1; display: flex; align-items: flex-start; padding-top: 20px; }
.roadmap-phase:nth-child(even) .roadmap-content-right { grid-column: 3; }

.roadmap-card {
    background: var(--bg);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.04), transparent);
    transition: left .5s var(--ease);
    pointer-events: none;
}
.roadmap-card:hover::before { left: 140%; }
.roadmap-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.removal-request-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font: 500 13px/1 inherit;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    margin-bottom: 8px;
}
.removal-request-button:hover {
    background: #fff0f0;
    color: #c0392b;
    border-color: #f5c6c6;
}
.removal-request-button svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.roadmap-phase-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding: 5px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    flex-direction: row-reverse;
}
.phase-dot-cmpleted {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgb(99, 228, 99);
    animation: blink 1.8s ease-in-out infinite;
}
.phase-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: blink 1.8s ease-in-out infinite;
}
.roadmap-phase:nth-child(2) .phase-dot { animation-delay: .6s; }
.roadmap-phase:nth-child(3) .phase-dot { animation-delay: 1.2s; }

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .35; transform: scale(.7); }
}

.roadmap-phase-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.roadmap-phase-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.roadmap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.roadmap-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all .2s var(--ease);
}
.roadmap-card:hover .roadmap-tag {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.roadmap-card:hover .roadmap-tag:nth-child(1) { transition-delay: 0s; }
.roadmap-card:hover .roadmap-tag:nth-child(2) { transition-delay: .05s; }
.roadmap-card:hover .roadmap-tag:nth-child(3) { transition-delay: .10s; }
.roadmap-card:hover .roadmap-tag:nth-child(4) { transition-delay: .15s; }

.roadmap-connector {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 44px;
    opacity: .25;
    font-size: 18px;
}

@media (max-width: 700px) {
    .roadmap-timeline::before { left: 28px; }

    .roadmap-phase {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto;
    }
    .roadmap-node {
        grid-column: 1;
        grid-row: 1;
        padding-top: 16px;
        justify-content: center;
    }
    .roadmap-bubble { width: 44px; height: 44px; font-size: 18px; box-shadow: 0 0 0 5px var(--bg-soft), var(--shadow-sm); }

    .roadmap-phase:nth-child(odd)  .roadmap-content-left,
    .roadmap-phase:nth-child(even) .roadmap-content-right {
        grid-column: 2; grid-row: 1;
        padding: 0 0 0 16px;
    }
    .roadmap-phase:nth-child(odd)  .roadmap-content-right,
    .roadmap-phase:nth-child(even) .roadmap-content-left,
    .roadmap-connector { display: none !important; }

    .roadmap-card { padding: 24px 20px; }
    .roadmap-phase { margin-bottom: 40px; }
}

/* ============================================
   PRIVACY/TERMS MODAL CONTENT
   ============================================ */
.legal-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.legal-content ul { padding-left: 20px; }
.legal-content .legal-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.legal-content .legal-tab {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font: 500 14px/1 inherit;
    cursor: pointer;
    background: transparent;
    transition: all var(--dur) var(--ease);
}
.legal-content .legal-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-dim);
    font-size: 13px;
    border-top: 1px solid var(--border-light);
}
.site-footer a { color: var(--text-muted); text-decoration: none; cursor: pointer; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin .8s linear infinite;
    margin: 40px auto;
}

/* ============================================
   LAST REVIEWS SECTION
   ============================================ */
.last-reviews-list {
    display: grid;
    gap: 16px;
}

.last-review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.last-review-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.last-review-kol {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    flex-shrink: 0;
}

.last-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.last-review-kol-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.last-review-body {
    flex: 1;
    min-width: 0;
}

.last-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.last-review-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.last-review-date {
    font-size: 12px;
    color: var(--text-dim);
    margin-left: auto;
}

.last-review-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 480px) {
    .last-review-card { flex-direction: column; gap: 12px; }
    .last-review-kol { flex-direction: row; min-width: unset; }
    .last-review-kol-name { max-width: unset; }
    .last-review-date { margin-left: 0; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn       { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInUp     { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slideInRight { from { transform: translateX(400px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
@keyframes slideOutRight{ from { transform: translateX(0); opacity: 1 } to { transform: translateX(400px); opacity: 0 } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(50px) scale(.95) } to { opacity: 1; transform: translateY(0) scale(1) } }
@keyframes spin         { to { transform: rotate(360deg) } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .navbar-content { flex-direction: column; gap: 12px; padding: 12px 16px; }
    .detail-header { padding: 32px 24px; }
    .detail-header-content { flex-direction: column; text-align: center; gap: 24px; }
    .detail-stats { justify-content: center; }
    .points-display { grid-template-columns: 1fr; }
    .tasks-grid { grid-template-columns: 1fr; }
    .toast-container { right: 12px; left: 12px; }
    .toast { max-width: none; }
    .modal-content { padding: 24px; }
}

@media (max-width: 480px) {
    .page-container { padding: 32px 16px; }
    .kol-card { min-width: 280px; padding: 20px; }
    .detail-section { padding: 24px 20px; }
    .hero-section, .airdrop-hero { padding: 60px 16px; }
    .review-actions { gap: 8px; }
    .share-button { font-size: 12px; padding: 5px 10px; }
}

/* ============================================
   iOS INSTALL SHEET
   ============================================ */
.install-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: flex-end;
    justify-content: center;
}
.install-overlay.active { display: flex; }

.install-sheet {
    background: var(--bg);
    border-radius: 24px 24px 0 0;
    padding: 32px 28px 48px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
    animation: sheetSlideUp .45s cubic-bezier(.32,1.2,.42,1) both;
}

.install-sheet::before {
    content: '';
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.install-close {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--bg-soft);
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dur) var(--ease);
}
.install-close:hover { background: var(--border); color: var(--text); }

.install-app-icon {
    width: 80px; height: 80px;
    border-radius: 18px;
    margin: 16px auto 16px;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.install-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.install-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.5;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.install-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.install-step-num {
    width: 28px; height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.install-step-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.install-share-icon {
    width: 16px; height: 16px;
    vertical-align: middle;
    margin: 0 2px;
    stroke: var(--primary);
}

.install-arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.install-arrow-bounce {
    font-size: 28px;
    animation: arrowBounce 1.2s ease-in-out infinite;
    color: var(--primary);
}

.install-arrow-label {
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes sheetSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}
