:root {
    --usm-purple-dark: #2a0b33;
    --usm-purple-primary: #521c5d;
    --usm-purple-light: #7b2c8a;
    --usm-gold: #f59e0b;
    --usm-gold-light: #fbbf24;
    --bg-page: #0f0714;
    --card-bg: rgba(36, 17, 46, 0.75);
    --card-border: rgba(245, 158, 11, 0.2);
    --text-main: #f9fafb;
    --text-muted: #d1b8db;
    --text-subtle: #9d7ba9;
    --star-empty: #4a2d54;
    --star-active: #f59e0b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(123, 44, 138, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    padding: 16px 12px 32px;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Header - Fancy Colour Pro */
.app-header {
    position: relative;
    text-align: center;
    padding: 24px 18px 22px;
    margin-bottom: 22px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #180527 0%, #2e0843 35%, #4a0d66 70%, #1f072d 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 
        0 16px 36px -8px rgba(123, 44, 138, 0.45),
        0 0 24px rgba(245, 158, 11, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.app-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: 
        radial-gradient(circle at 18% 25%, rgba(236, 72, 153, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.42) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.25) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: headerAuraFlow 10s ease-in-out infinite alternate;
}

.app-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 15%, 
        rgba(245, 158, 11, 0.85) 45%, 
        rgba(236, 72, 153, 0.85) 75%, 
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

.app-header > * {
    position: relative;
    z-index: 1;
}

@keyframes headerAuraFlow {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(3%, 2%) rotate(2deg) scale(1.04);
    }
    100% {
        transform: translate(-3%, -2%) rotate(-2deg) scale(1.02);
    }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.42);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    color: #fde68a;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 4px #34d399;
    animation: badgePulse 2s infinite ease-in-out;
}

.badge-dot.dot-gold {
    background: var(--usm-gold);
    box-shadow: 0 0 10px var(--usm-gold), 0 0 4px #fde68a;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.35);
        opacity: 0.7;
    }
}

.header-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.15;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #ffdf7a 25%, #ff9e3b 55%, #f43f5e 80%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(245, 158, 11, 0.4));
    margin-bottom: 8px;
}

.header-sub {
    font-size: 13.5px;
    color: #e2d4e8;
    line-height: 1.45;
    padding: 0 8px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.header-power-divider {
    width: 52px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.header-nav-back {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #f3e8ff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateX(-2px);
}

/* Progress Tracker */
.progress-container {
    margin-bottom: 16px;
    padding: 0 4px;
}

.progress-bar-wrapper {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--usm-purple-light), var(--usm-gold));
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-subtle);
}

/* Staff Card */
.cards-wrapper {
    position: relative;
    min-height: 480px;
}

.staff-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.staff-card.active {
    display: block;
}

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

.card-num-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--usm-purple-primary), var(--usm-purple-light));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.num-hash {
    color: var(--usm-gold-light);
    font-size: 14px;
}

/* Avatar with USM 2026 Badge */
.avatar-container {
    width: 210px;
    height: 210px;
    margin: 0 auto 16px;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.staff-role {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Staff Name Quiz Box */
.quiz-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fde68a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.staff-name-quiz-box {
    margin: 14px 0 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.quiz-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--usm-gold-light);
    margin-bottom: 8px;
}

.quiz-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.staff-name-input {
    width: 100%;
    background: rgba(15, 7, 20, 0.85);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    padding: 10px 38px 10px 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.staff-name-input:focus {
    border-color: var(--usm-gold);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.staff-name-input.input-valid {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.staff-name-input.input-invalid {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.25) !important;
}

.quiz-status-icon {
    position: absolute;
    right: 12px;
    font-size: 16px;
    pointer-events: none;
}

.quiz-feedback-msg {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
    line-height: 1.35;
}

.quiz-feedback-msg.feedback-valid {
    color: #34d399;
}

.quiz-feedback-msg.feedback-invalid {
    color: #fb7185;
}

.directory-hint-wrap {
    margin-top: 8px;
    text-align: right;
}

.directory-hint-link {
    font-size: 11px;
    color: #d8b4fe;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.directory-hint-link:hover {
    color: var(--usm-gold-light);
}

.rating-label-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #f3e8ff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 5-Star Rating Box */
.rating-box {
    margin: 20px 0 24px;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stars-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-btn:active {
    transform: scale(1.3);
}

.star-icon {
    width: 38px;
    height: 38px;
    stroke: var(--star-empty);
    fill: transparent;
    transition: all 0.2s ease;
}

.star-btn.active .star-icon {
    stroke: var(--star-active);
    fill: var(--star-active);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

.rating-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--usm-gold-light);
    min-height: 20px;
}

/* Card Navigation Buttons */
.card-navigation {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 20px;
}

.btn {
    flex: 1;
    min-height: 48px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--usm-gold), #d97706);
    color: #1a0822;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.14);
}

.btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-submit:active {
    transform: translateY(2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-subtle);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 13px;
    margin-top: 8px;
}

/* Review Step (Step 7) */
.step-review {
    text-align: left;
}

.review-header-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 8px;
}

.step-review .staff-name {
    text-align: center;
}

.review-subtext {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.anonymous-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 12.5px;
    color: #6ee7b7;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.lock-icon {
    font-size: 16px;
}

.review-box {
    margin-bottom: 16px;
}

.review-textarea {
    width: 100%;
    background: rgba(15, 7, 20, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.review-textarea:focus {
    border-color: var(--usm-gold);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.review-textarea.textarea-invalid {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.3) !important;
}

.required-tag {
    font-size: 11px;
    font-weight: 700;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.word-counter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-subtle);
}

.word-count-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-muted);
}

.word-count-badge.exceeded {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.word-error-msg {
    margin-top: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    color: #fca5a5;
    line-height: 1.4;
}

/* Already Voted Card */
.already-voted-card {
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.voted-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.already-voted-card h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 8px;
}

.already-voted-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.voted-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Leaderboard Page Styles */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--usm-gold-light);
}

.stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-subtle);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 12px;
    padding: 0 4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.btn-refresh:active {
    background: rgba(255, 255, 255, 0.18);
}

/* Leaderboard Item Cards */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.lb-card.rank-1 {
    border-color: rgba(245, 158, 11, 0.7);
    background: linear-gradient(135deg, rgba(82, 28, 93, 0.9), rgba(42, 11, 51, 0.9));
}

.lb-rank-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-card.rank-1 .lb-rank-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a0822;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.lb-card.rank-2 .lb-rank-badge {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #0f172a;
}

.lb-card.rank-3 .lb-rank-badge {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.lb-avatar-wrap {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.lb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-info {
    flex: 1;
    min-width: 0;
}

.lb-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-meta {
    font-size: 12px;
    color: var(--text-subtle);
    margin-top: 2px;
}

.lb-score-col {
    text-align: right;
    flex-shrink: 0;
}

.lb-stars-avg {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--usm-gold-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.lb-votes-sub {
    font-size: 11px;
    color: var(--text-subtle);
}

/* Reviews List */
.reviews-section {
    margin-top: 28px;
}

.reviews-sub {
    font-size: 12.5px;
    color: var(--text-subtle);
    margin-bottom: 12px;
    padding: 0 4px;
}

.badge-anonymous {
    font-size: 11px;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-card-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    position: relative;
}

.review-quote-text {
    font-size: 13.5px;
    color: #e5e7eb;
    line-height: 1.5;
    margin-bottom: 8px;
    font-style: italic;
}

.review-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-subtle);
}

.empty-state {
    text-align: center;
    padding: 24px 12px;
    color: var(--text-subtle);
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

/* Footer */
.app-footer {
    text-align: center;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-link {
    color: var(--usm-gold-light);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 11.5px;
    color: var(--text-subtle);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1126;
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--usm-gold);
    z-index: 1000;
    max-width: 90%;
    text-align: center;
    animation: toastIn 0.25s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* QR Code Modal & Pill */
.btn-qr-pill {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--usm-gold);
    color: var(--usm-gold-light);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-qr-pill:active {
    background: rgba(245, 158, 11, 0.3);
    transform: scale(0.97);
}

.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.qr-modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px 20px 20px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: modalIn 0.25s ease forwards;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.qr-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: #f3f4f6;
    border: none;
    font-size: 26px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

.qr-modal-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    margin-bottom: 12px;
}

.qr-modal-tip {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.qr-modal-tip strong {
    color: var(--usm-purple-primary);
}

.hidden {
    display: none !important;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-top-color: var(--usm-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto 10px;
}

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