﻿* {
    box-sizing: border-box;
}

body {
    background: #f3f4f8;
    color: #111;
}

.app-wrapper {
    max-width: 390px;
    margin: auto;
    min-height: 100vh;
    background: #ffffff;
}

/* HEADER */

.header {
    padding: 20px 16px 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.points-pill {
    background: linear-gradient(90deg,#7c4dff,#3a8dff);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.avatar-small {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CATEGORY */

.category-scroll {
    display: flex;
    gap: 10px;
    padding: 10px 16px 16px 16px;
    overflow-x: auto;
}

.category {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    background: #f1f1f4;
    white-space: nowrap;
    font-weight: 500;
}

    .category.active {
        background: linear-gradient(90deg,#7c4dff,#3a8dff);
        color: white;
    }

.divider {
    height: 1px;
    background: #eee;
}

/* CONTENT */

.content {
    flex: 1;
    padding: 24px 16px 120px 16px;
}

/* TITLE */

.title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

/* STUDENT CARD */



.student-card:active {
    transform: scale(0.97);
}


.avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.dark-page .vote-status {
    color: #9b87ff;
    font-weight: 600;
}

.dark-page .question-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.vote-status.used {
    color: #ff6b00;
}

.avatar-1 {
    background: linear-gradient(135deg,#ff4dc4,#7c4dff);
}

.avatar-2 {
    background: linear-gradient(135deg,#3a8dff,#00c6ff);
}

.avatar-3 {
    background: linear-gradient(135deg,#00c853,#00e676);
}

.avatar-4 {
    background: linear-gradient(135deg,#ff6d00,#ff1744);
}

.avatar-5 {
    background: linear-gradient(135deg,#7c4dff,#536dfe);
}


.student-name {
    font-weight: 600;
    font-size: 14px;
}

.student-meta {
    font-size: 12px;
    color: #999;
}

.vote-pill {
    background: #f3ecff;
    color: #7c4dff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* SKIP */

.skip {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 18px 0;
}

/* IMPACT CARD */

.impact-card {
    background: linear-gradient(135deg,#f6f1ff,#eef3ff);
    border-radius: 20px;
    padding: 18px;
}

.impact-title {
    font-weight: 600;
    margin-bottom: 14px;
}

.impact-stats {
    display: flex;
    justify-content: space-between;
}

.impact-item {
    text-align: center;
}

.impact-number {
    font-weight: 700;
    font-size: 18px;
    color: #7c4dff;
}

.impact-label {
    font-size: 11px;
    color: #888;
}

/* BOTTOM NAV */

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 390px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
}

.nav-item {
    font-size: 12px;
    color: #777;
}

    .nav-item.active {
        color: #7c4dff;
        font-weight: 600;
    }
/* LEADERBOARD */

.leaderboard-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 20px;
}

.leaderboard-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.top-three {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.rank-card {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 2px solid transparent;
}

    .rank-card.gold {
        border-color: #f4c542;
    }

    .rank-card.silver {
        border-color: #cfcfcf;
    }

    .rank-card.bronze {
        border-color: #e6a15a;
    }

.rank-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 20px;
}

.avatar-pink {
    background: linear-gradient(135deg,#ff4dc4,#7c4dff);
}

.avatar-blue {
    background: linear-gradient(135deg,#3a8dff,#536dfe);
}

.avatar-green {
    background: linear-gradient(135deg,#00c853,#00e676);
}

.rank-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.rank-points {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.rank-move-up {
    color: #16a34a;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34,197,94,0.6);
}

.rank-move-down {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
}

/* LIST ROW */

.rank-row {
    background: #f7f7fb;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .rank-row.highlight {
        background: linear-gradient(135deg,#f5f3ff,#ede9fe);
        border: 1px solid #8b5cf6;
        box-shadow: 0 8px 20px rgba(139,92,246,0.15);
    }

    .rank-row:first-child {
        background: linear-gradient(135deg,#fff9e6,#fff4cc);
        border: 1px solid #facc15;
        box-shadow: 0 10px 25px rgba(250,204,21,0.25);
    }

.rank-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-number {
    font-weight: 600;
    font-size: 14px;
}

.small-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: orange;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.rank-info-name {
    font-size: 14px;
    font-weight: 500;
}

.rank-info-points {
    font-size: 12px;
    color: #777;
}
/* PROFILE PAGE */

.profile-header {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 14px auto;
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-college {
    font-size: 13px;
    color: #888;
}

.stats-title {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 14px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.stat-icon {
    font-size: 18px;
    margin-bottom: 6px;
    color: #7c4dff;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.invite-btn {
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 14px;
    margin-top: 20px;
    background: linear-gradient(90deg,#7c4dff,#3a8dff);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.logout-btn {
    width: 100%;
    border-radius: 20px;
    padding: 14px;
    margin-top: 14px;
    background: #f1f1f4;
    border: 1px solid #e0e0e6;
    color: #444;
    font-size: 14px;
}
/* CELEBRATION PAGE */

.celebration-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.celebration-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(124,77,255,0.4);
}

.celebration-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.rank-compare {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.rank-box {
    background: white;
    border-radius: 16px;
    padding: 16px 22px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    min-width: 80px;
}

.rank-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.rank-number {
    font-size: 18px;
    font-weight: 700;
}

.rank-current {
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
    color: white;
}

    .rank-current .rank-label {
        color: rgba(255,255,255,0.8);
    }

.rank-arrow {
    font-size: 22px;
    color: #7c4dff;
}

.celebration-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.share-btn {
    width: 100%;
    border: none;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(90deg,#7c4dff,#3a8dff);
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
}

.back-btn {
    width: 100%;
    border-radius: 22px;
    padding: 14px;
    background: #f1f1f4;
    border: 1px solid #e0e0e6;
    color: #444;
    font-size: 14px;
}

<div class="celebration-wrapper" >

<div class="celebration-icon" >
🏆
</div >

<div class="celebration-title" >
You moved up<br/ >
5 positions!
</div >

<div class="rank-compare" >
<div class="rank-box" >
<div class="rank-label" > Previous</div >
<div class="rank-number" > #11</div >
</div >

<div class="rank-arrow" > →</div >

<div class="rank-box rank-current" >
<div class="rank-label" > Current</div >
<div class="rank-number" > #6</div >
</div >
</div >

<div class="celebration-text" >
You're crushing it in <strong>Funniest!</strong> Keep it up!
</div >

<button class="share-btn" > Share</button >
<button class="back-btn" > Back to Home</button >

</div >
/* ACTIVITY PAGE */
.activity-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 20px;
}

.activity-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.activity-card {
    background: white;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.activity-content {
    flex: 1;
}

.activity-message {
    font-size: 14px;
    font-weight: 500;
}

.activity-time {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.activity-empty {
    text-align: center;
    color: #888;
    margin-top: 40px;
}
/* GLOBAL POLISH */

.cycle-header {
    background: white;
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.cycle-category {
    font-weight: 700;
    font-size: 15px;
}

.cycle-remaining {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* NAV ACTIVE */

.nav-item {
    text-decoration: none;
    color: #888;
    font-size: 11px;
    text-align: center;
}

    .nav-item.active {
        color: #7c4dff;
        font-weight: 600;
    }

/* BIGGEST RISER BADGE */

.riser-badge {
    background: linear-gradient(90deg,#ffb347,#ffcc33);
    padding: 4px 10px;
    font-size: 10px;
    border-radius: 999px;
    margin-left: 8px;
    font-weight: 600;
}

/* VOTE CARD TAP EFFECT */

.student-card {
    transition: transform 0.15s ease;
}

    .student-card:active {
        transform: scale(0.97);
    }

/* TOAST */

.toast-success {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #7c4dff;
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 13px;
    display: none;
}

/* CELEBRATION POLISH */

.celebration-icon {
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% {
        transform: scale(0.6);
    }

    100% {
        transform: scale(1);
    }
}

.profile-motivation {
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
    color: #555;
}

.auth-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 20px;
    text-align: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #6C63FF;
}

.tagline {
    color: #777;
    margin-bottom: 30px;
}

.auth-card {
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4f;
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    animation: fadeInOut 1.2s ease forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.admin-container {
    padding: 20px;
}

.admin-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-sub {
    color: #777;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-number {
    font-size: 22px;
    font-weight: 600;
    color: #6C63FF;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.card {
    background: white;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 10px;
}

.progress-bar {
    background: #eee;
    height: 6px;
    border-radius: 6px;
    margin-top: 4px;
}

.progress-fill {
    background: linear-gradient(90deg,#7c4dff,#3a8dff);
    height: 100%;
    border-radius: 6px;
}

.top-user {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.circle-avatar {
    width: 32px;
    height: 32px;
    background: #7c4dff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-points {
    font-size: 12px;
    color: #777;
}
/* ===== ADMIN DASHBOARD ===== */

.admin-container {
    padding: 20px;
}

.admin-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-sub {
    color: #777;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    text-align: center;
    transition: 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-3px);
    }

.stat-number {
    font-size: 22px;
    font-weight: 600;
    color: #6C63FF;
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.celebration-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.celebration-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 320px;
    text-align: center;
    animation: pop 0.3s ease;
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.soft-text {
    color: #6b7280;
    margin-right: 6px;
}

.celebration-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px auto; /* centers horizontally */
    border-radius: 50%;
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.cycle-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cycle-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.rank-change {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.rank-prev {
    background: #eee;
    padding: 6px 12px;
    border-radius: 10px;
}

.rank-current {
    background: linear-gradient(90deg,#7c4dff,#3a8dff);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
}

.close-btn {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg,#7c4dff,#3a8dff);
    color: white;
    cursor: pointer;
}

.cycle-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    padding: 16px 0;
    border-top: 1px solid #f1f1f1;
}

button {
    border: none;
    outline: none;
    background: transparent;
}

.vote-form button {
    border: none !important;
}
/* Override default button styling */
.vote-form button {
    border: none !important;
    outline: none !important;
    background: white !important;
}

/* Fix container width */
.content {
    max-width: 480px;
    margin: 0 auto;
}

/* Remove browser default borders */
button {
    border: none;
}

.bottom-nav {
    color: #aaa;
}

.nav-item.active {
    color: #7c4dff;
}

.social-proof {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.vote-progress {
    text-align: center;
    font-size: 13px;
    margin-bottom: 20px;
    color: #7c4dff;
    font-weight: 600;
}



.student-card:active {
    transform: scale(0.96);
    box-shadow: 0 8px 20px rgba(124,77,255,0.3);
}

.vote-pill {
    background: #f3ecff;
    color: #7c4dff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.streak-enhanced {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #ff8c00;
    font-weight: 600;
}

.floating-success {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #7c4dff;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    animation: floatUp 1.5s ease forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}


.student-card:active {
    transform: scale(0.97);
}




.vote-pill {
    background: #f1eaff;
    color: #6C63FF;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.student-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hidden-user {
    display: none;
}

.show-more-wrapper {
    text-align: center;
    margin-top: 10px;
}

.show-more-btn {
    background: #f1eaff;
    color: #6C63FF;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
}

.question-block {
    text-align: center;
    margin-bottom: 30px;
}

.college-label {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.question-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.question-sub {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 14px;
}

.timer {
    font-size: 12px;
    opacity: 0.5;
}

.vote-status {
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #9b87ff;
}

    .vote-status.used {
        color: #ff6b6b;
    }

.candidate-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}



.candidate-card:active {
    transform: scale(0.97);
    background: #222232;
}

.left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
}

.name {
    font-weight: 600;
}

.tag {
    font-size: 11px;
    opacity: 0.6;
}

.right {
    font-size: 13px;
    font-weight: 600;
    color: #7c4dff;
}

.streak-block {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #ffa726;
}

.hidden-user {
    display: none;
}

.show-more-wrapper {
    text-align: center;
    margin-top: 12px;
}

.show-more-btn {
    background: #1f1f2a;
    color: #7c4dff;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
}

.floating-success {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #7c4dff;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}



/* Candidate card */
.candidate-card {
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(139,92,246,0.15);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s ease;
}

    /* Neon hover glow */
    .candidate-card:hover {
        border: 1px solid rgba(139,92,246,0.6);
        box-shadow: 0 0 15px rgba(139,92,246,0.4), 0 0 30px rgba(34,211,238,0.2);
        transform: translateY(-2px);
    }

/* Avatar neon gradient */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #8b5cf6, #22d3ee );
    box-shadow: 0 0 15px rgba(139,92,246,0.6);
}

/* Name */
.name {
    color: #ffffff;
    font-weight: 600;
}

/* Tag */
.tag {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* Vote button */
.right {
    font-weight: 600;
    font-size: 13px;
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34,211,238,0.8);
}

/* Show more button */
.show-more-btn {
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.4);
    color: #8b5cf6;
    padding: 10px 22px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 12px;
}

    .show-more-btn:hover {
        box-shadow: 0 0 20px rgba(139,92,246,0.6);
    }

/* Streak */
.streak-block {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #f97316;
    text-shadow: 0 0 10px rgba(249,115,22,0.7);
}
/* ========================= */
/* GEN Z WHITE NEON VOTING  */
/* ========================= */

body {
    background: #f3f4f8;
    font-family: 'Inter', sans-serif;
}

.app-wrapper {
    background: #ffffff;
}

/* QUESTION BLOCK */

.question-block {
    text-align: center;
    margin-bottom: 28px;
}

.college-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.question-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 10px;
}

.question-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}

.timer {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* VOTE STATUS */

.vote-status {
    text-align: center;
    margin-bottom: 26px;
    font-size: 14px;
    font-weight: 600;
    color: #8b5cf6;
}

    .vote-status.used {
        color: #f97316;
    }

/* CANDIDATE CARD */


.student-card:hover {
    box-shadow: 0 12px 30px rgba(139,92,246,0.15);
    transform: translateY(-2px);
}

.student-card:active {
    transform: scale(0.97);
}

/* LEFT */



.avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg,#8b5cf6,#22d3ee);
}

.student-card {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(139,92,246,0.05);
    transition: all 0.2s ease;
}

/* LEFT SIDE */
.card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1; /* THIS IS IMPORTANT */
}

/* Name container */
.student-info {
    display: flex;
    flex-direction: column;
}

/* RIGHT SIDE */
.card-right {
    margin-left: auto; /* pushes to extreme right */
}

/* Vote pill */
.vote-pill {
    background: #f3e8ff;
    color: #8b5cf6;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}


.student-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.student-meta {
    font-size: 11px;
    color: #6b7280;
}

/* RIGHT SIDE VOTE BUTTON */

.vote-pill {
    background: #f3e8ff;
    color: #8b5cf6;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}

.student-card:hover .vote-pill {
    background: #8b5cf6;
    color: #ffffff;
}

/* DISABLED STATE */

.student-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* SHOW MORE */

.show-more-wrapper {
    text-align: center;
    margin-top: 12px;
}

.show-more-btn {
    background: #f3f4f6;
    color: #8b5cf6;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
}

    .show-more-btn:hover {
        background: #ede9fe;
    }

/* STREAK */

.streak-enhanced {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #f97316;
}

/* FLOAT SUCCESS */

.floating-success {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #8b5cf6;
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(139,92,246,0.4);
    animation: floatUp 1.6s ease forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}
/* ===== FIX VOTE ALIGNMENT ONLY ===== */

.student-card {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.card-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    flex: 1 !important; /* THIS FIXES NAME VISIBILITY */
    min-width: 0; /* prevents overflow cut */
}

.student-info {
    min-width: 0;
}

.student-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-right {
    margin-left: auto !important; /* pushes vote to extreme right */
}

.vote-pill {
    white-space: nowrap;
}
/* ===== FORCE NAME VISIBLE ===== */
.student-name {
    color: #111827 !important;
    font-weight: 600;
}
/* ===== FIX CARD LAYOUT ===== */

.student-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.card-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    flex: 1 !important;
    min-width: 0;
}

.student-info {
    min-width: 0;
}

.student-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-right {
    margin-left: auto !important;
}

.vote-pill {
    white-space: nowrap;
}
/* ============================= */
/* FIGMA VOTING SCREEN OVERRIDE */
/* ============================= */

.vote-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 120px 16px;
}

/* QUESTION */

.question-block {
    text-align: center;
    margin-bottom: 28px;
}

.question-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 8px;
}

.question-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.timer {
    font-size: 13px;
    font-weight: 600;
    color: #7c4dff;
}

/* VOTE STATUS */

.vote-status {
    text-align: center;
    margin-bottom: 26px;
    font-size: 14px;
    font-weight: 600;
    color: #7c4dff;
}

    .vote-status.used {
        color: #ff6b6b;
    }

/* CANDIDATE CARD */

.candidate-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.student-card {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(124,77,255,0.05);
    transition: 0.2s ease;
}

    .student-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(124,77,255,0.12);
    }

    .student-card:active {
        transform: scale(0.97);
    }

/* LEFT SIDE */

.card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg,#7c4dff,#3a8dff);
}

.student-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.student-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* RIGHT SIDE */

.card-right {
    margin-left: auto;
}

.vote-pill {
    background: linear-gradient(90deg,#7c4dff,#3a8dff);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.student-card:hover .vote-pill {
    box-shadow: 0 6px 18px rgba(124,77,255,0.3);
}

/* SHOW MORE */

.show-more-wrapper {
    text-align: center;
    margin-top: 12px;
}

.show-more-btn {
    background: #f3f4f6;
    color: #7c4dff;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    transition: 0.2s ease;
}

    .show-more-btn:hover {
        background: #ede9fe;
    }

/* STREAK */

.streak-block {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #f97316;
}

/* FLOAT SUCCESS */

.floating-success {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg,#7c4dff,#3a8dff);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(124,77,255,0.4);
    animation: floatUp 1.6s ease forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}
/* ===== FIGMA STYLE TIMER ===== */

.timer {
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
    color: #6b7280; /* default gray */
}

    .timer strong {
        color: #7c4dff;
        font-weight: 700;
    }

.student-card {
    box-shadow: 0 12px 30px rgba(124,77,255,0.08);
}

.streak-block {
    text-shadow: 0 0 8px rgba(249,115,22,0.5);
}

.vote-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(124,77,255,0.3);
}
/* ===================== */
/* FINAL LEADERBOARD FIX */
/* ===================== */

.rank-row {
    background: #f8f9fc !important;
    border-radius: 18px !important;
    padding: 16px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #f0f0f5 !important;
    box-shadow: 0 10px 25px rgba(124,77,255,0.05) !important;
    transition: all 0.2s ease !important;
}

    .rank-row:first-child {
        background: linear-gradient(135deg,#fff9e6,#fff4cc) !important;
        border: 1px solid #facc15 !important;
        box-shadow: 0 12px 30px rgba(250,204,21,0.25) !important;
    }

    .rank-row.highlight {
        background: linear-gradient(135deg,#f5f3ff,#ede9fe) !important;
        border: 1px solid #8b5cf6 !important;
        box-shadow: 0 10px 25px rgba(139,92,246,0.2) !important;
    }

.rank-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.rank-number {
    font-weight: 700 !important;
    font-size: 15px !important;
}

.rank-info-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.rank-info-points {
    font-size: 12px !important;
    color: #6b7280 !important;
}

.rank-move-up {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #16a34a !important;
    text-shadow: 0 0 6px rgba(34,197,94,0.6) !important;
}
