* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    
    --primary: #000000;
    --primary-hover: #000000;
    --accent: #e0e0e0;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fafafa;
    --bg-card: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --border: #d2d2d7;
    --border-light: #e5e5e7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.47059;
    font-size: 17px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    width: 100%;
    min-height: 100vh;
}

/* ============================================ */
/* NAVBAR - APPLE STYLE */
/* ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

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

/* ============================================ */
/* NAVBAR INLINE ICONS */
/* ============================================ */

.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 0.2s ease;
}

.navbar-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.85;
}

.navbar-icon:hover {
    background: var(--bg-tertiary);
}

.navbar-icon:hover img {
    opacity: 1;
}


.navbar-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.navbar-link.active {
    color: #ffffff;
    background: var(--primary);
    font-weight: 500;
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* ============================================ */
/* NAVBAR SOCIAL ICONS */
/* ============================================ */

.navbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.85;
}

.navbar-social a:hover {
    background: var(--bg-tertiary);
}

.navbar-social a:hover img {
    opacity: 1;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 980px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.auth-button:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.auth-button:active {
    transform: scale(0.98);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 980px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.user-info:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.logout-button {
    padding: 6px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.logout-button:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ============================================ */
/* PAGE CONTAINER */
/* ============================================ */

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
    animation: fadeIn var(--transition-slow) var(--transition-smooth);
}

.page-container.hidden {
    display: none;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */

.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f7 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 60px;
    animation: fadeInUp 0.8s var(--transition-smooth);
    border: 1px solid var(--border-light);
}

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

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

/* ============================================ */
/* SEARCH */
/* ============================================ */

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

.search-input {
    width: 100%;
    padding: 16px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 17px;
    font-family: inherit;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

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

.search-suggestions.hidden {
    display: none;
}

.search-suggestion {
    padding: 14px 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: var(--bg-tertiary);
}

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

/* ============================================ */
/* CONTENT SECTIONS */
/* ============================================ */

.content-section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s var(--transition-smooth);
    animation-fill-mode: both;
}

.content-section:nth-child(2) { animation-delay: 0.1s; }
.content-section:nth-child(3) { animation-delay: 0.2s; }
.content-section:nth-child(4) { animation-delay: 0.3s; }
.content-section:nth-child(5) { animation-delay: 0.4s; }

.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-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.section-icon {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-description {
    color: var(--text-secondary);
    font-size: 17px;
    margin-top: 6px;
    font-weight: 400;
}

/* ============================================ */
/* INFINITE SCROLL - CSS ONLY (NO JAVASCRIPT) */
/* ============================================ */

.auto-scroll-container {
    overflow: hidden;
    position: relative;
    padding: 4px 0;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.auto-scroll-track {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    width: fit-content;
}

/* Animazione scroll sinistra */
.auto-scroll-track.scroll-left {
    animation: scroll-left 40s linear infinite;
}

/* Animazione scroll destra */
.auto-scroll-track.scroll-right {
    animation: scroll-right 40s linear infinite;
}

/* Pause on hover */
.auto-scroll-container:hover .auto-scroll-track {
    animation-play-state: paused;
}

/* Keyframes per scroll da destra a sinistra */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Keyframes per scroll da sinistra a destra */
@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ============================================ */
/* KOL CARD */
/* ============================================ */

.kol-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-width: 300px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    animation: fadeInScale 0.6s var(--transition-smooth) both;
    flex-shrink: 0;
}

.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);
}

.kol-info {
    flex: 1;
}

.kol-username {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star {
    width: 16px;
    height: 16px;
    transition: all var(--transition-fast);
}

.star.filled {
    fill: #000000;
    stroke: #000000;
}

.star.empty {
    fill: none;
    stroke: var(--border);
}

.rating-number {
    margin-left: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.review-count {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================ */
/* RANKING CONTAINER */
/* ============================================ */

.ranking-container {
    background: var(--bg-primary);
    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);
    transition: all var(--transition-fast);
}

.ranking-row:last-child {
    border-bottom: none;
}

.ranking-row:hover {
    background: var(--bg-tertiary);
}

.ranking-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    cursor: pointer;
}

.ranking-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    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;
    color: var(--text-primary);
    font-size: 17px;
    letter-spacing: -0.01em;
}

.ranking-rating {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 17px;
}

.ranking-rating-single {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ranking-rating-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.ranking-star {
    width: 20px;
    height: 20px;
    fill: #000000;
    stroke: #000000;
}

/* ============================================ */
/* DETAIL PAGE */
/* ============================================ */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 32px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.back-button:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateX(-4px);
}

.detail-header {
    background: var(--bg-primary);
    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;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.twitter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    transition: all var(--transition-base);
    border: 1px solid var(--border);
}

.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-secondary);
    font-size: 17px;
    margin-bottom: 24px;
}

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

.detail-stat {
    text-align: center;
}

.detail-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.detail-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

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

.detail-section {
    background: var(--bg-primary);
    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;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.detail-section-description {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

/* ============================================ */
/* WALLET CARDS */
/* ============================================ */

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

.wallet-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.wallet-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.wallet-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 6px;
}

.wallet-address {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    color: var(--text-secondary);
    font-size: 14px;
}

.wallet-full {
    display: inline;
}

.wallet-short {
    display: none;
}

.copy-button {
    padding: 10px 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-button:hover {
    background: var(--primary);
    color: #ffffff;
    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: #ffffff;
    border: none;
    border-radius: 980px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.add-review-button:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.add-review-button:active {
    transform: scale(0.98);
}

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

.review-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-base);
    animation: fadeInUp 0.4s var(--transition-smooth) both;
}

.review-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

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

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.review-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
}

.review-username:hover {
    text-decoration: underline;
}

.review-kol-ref {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.review-kol-ref span {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.review-kol-ref span:hover {
    text-decoration: underline;
}

.review-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 15px;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-actions {
    display: flex;
    gap: 12px;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 980px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
}

.like-button:hover {
    border-color: var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.like-button.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.review-date {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ============================================ */
/* MODAL */
/* ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn var(--transition-base);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp var(--transition-slow) var(--transition-smooth);
}

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 15px;
}

.rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.rating-star-input {
    width: 32px;
    height: 32px;
    cursor: pointer;
    fill: none;
    stroke: var(--border);
    stroke-width: 2;
    transition: all var(--transition-fast);
}

.rating-star-input:hover,
.rating-star-input.selected {
    fill: #000000;
    stroke: #000000;
    transform: scale(1.1);
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all var(--transition-base);
    line-height: 1.6;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 980px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.submit-button:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:disabled {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================ */
/* TOAST NOTIFICATIONS */
/* ============================================ */

.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-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight var(--transition-base) var(--transition-smooth);
    max-width: 400px;
    font-size: 15px;
}

.toast.toast-success {
    border-color: #000000;
    background: #f5f5f7;
}

.toast.toast-error {
    border-color: #d2d2d7;
    background: #fafafa;
}

.toast.toast-hiding {
    animation: slideOutRight var(--transition-base) var(--transition-smooth);
}

/* ============================================ */
/* AIRDROP PAGE */
/* ============================================ */

.airdrop-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f7 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 60px;
    border: 1px solid var(--border-light);
}

.airdrop-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.airdrop-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.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-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
    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;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.points-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.airdrop-tasks,
.airdrop-leaderboard {
    margin-bottom: 60px;
}

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

.task-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
    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-tertiary);
    border-color: var(--border);
}

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

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

.task-card.completed .task-icon {
    background: var(--accent);
}

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

.task-points {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.task-progress {
    margin-top: 12px;
}

.task-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.task-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width var(--transition-slow);
}

.task-progress-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.task-button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 980px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.task-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.task-button:active:not(:disabled) {
    transform: scale(0.98);
}

.task-button:disabled {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.task-button.completed {
    background: var(--accent);
}

.task-button.completed:hover {
    background: var(--primary-hover);
}

.leaderboard-list {
    background: var(--bg-primary);
    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: all var(--transition-fast);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background: var(--bg-tertiary);
}

.leaderboard-item.current-user {
    background: var(--bg-secondary);
    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;
    color: var(--text-primary);
}

.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;
    color: var(--text-primary);
    font-size: 17px;
}

.leaderboard-points {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@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(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================ */
/* LOADING SPINNER */
/* ============================================ */

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

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .airdrop-title {
        font-size: 2.5rem;
    }

    .hero-subtitle,
    .airdrop-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .detail-header {
        padding: 32px 24px;
    }

    .detail-header-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .detail-username {
        font-size: 2rem;
    }

    .detail-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .wallet-address .wallet-full {
        display: none;
    }

    .wallet-address .wallet-short {
        display: block;
    }

    .points-display {
        grid-template-columns: 1fr;
    }

    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .navbar-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .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;
    }

    .ranking-left {
        gap: 12px;
    }

    .ranking-number {
        font-size: 16px;
        min-width: 30px;
    }

    .ranking-avatar {
        width: 40px;
        height: 40px;
    }

    .detail-section {
        padding: 24px 20px;
    }

    .hero-section {
        padding: 60px 16px;
    }

    .airdrop-hero {
        padding: 60px 16px;
    }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.hidden {
    display: none !important;
}

.visible {
    opacity: 1 !important;
}

.text-center {
    text-align: center;
}

/* ============================================ */
/* SMOOTH SCROLLING */
/* ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================ */
/* FOCUS VISIBLE */
/* ============================================ */

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

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* ============================================ */
/* DESKTOP: move pump after airdrop */
/* ============================================ */

@media (min-width: 768px) {
    .navbar-links {
        gap: 10px;
    }

    .home { order: 1; }
    .airdrop { order: 2; }

    /* sposta pump a destra di airdrop */
    .pump {
        order: 3;
        margin-left: 4px;
    }

    .x { order: 4; }
}
