/* CSS Variables for Theme */
:root {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --header-bg: #499af1;
    --timer-bar-bg: yellow;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #404040;
    --header-bg: #1e3a8a;
    --timer-bar-bg: #fbbf24;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding-top: 0; /* Only offset when timer is active */
    transition: background-color 0.3s ease, color 0.3s ease;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--timer-bar-bg);
    z-index: 1000;
    transition: width 1s linear, background-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--header-bg);
    color: white;
    padding: 5px 0;
    position: sticky;
    top: 0; /* Default: no gap at top */
    z-index: 999;
    transition: background-color 0.3s ease;
}

/* When timer is active, push header below the timer bar height */
body.timer-active header {
    top: 5px; /* Height of the timer bar */
}

.navbar-label {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    font-weight: bold;
    color: white;
}

#timer {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    font-weight: bold;
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.theme-icon {
    font-size: 1.0em;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header h1 {
    margin: 0;
    font-size: 1.2em;
}

.quiz-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.questions-area {
    flex: 3;
}

.description {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.question {
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.options {
    list-style: none;
    padding: 0;
}

/* Dark theme glass effect for questions */
[data-theme="dark"] .question {
    background-color: rgba(45, 45, 45, 0.6);
}

.options li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.sidebar {
    flex: 1;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 20px;
    position: sticky;
    top: 20px;
    height: 100%;
    display: none; /* Hide by default */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.answers-grid h2 {
    margin-top: 0;
}

#answers-navigation {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

#answers-navigation a, #answers-navigation button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid #bbb;
    margin: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1em;
    transition: background 0.18s, border 0.18s;
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
    text-decoration: none;
    color: #666;
}

/* Dark mode styling for question numbers */
[data-theme="dark"] #answers-navigation a, 
[data-theme="dark"] #answers-navigation button {
    background: #555;
    border: 1.5px solid #777;
    color: #ccc;
}

#answers-navigation a.answered,
#answers-navigation button.answered {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}


#finish-btn {
    width: 100%;
    padding: 15px;
    background-color: #499af1;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1em;
}

.upload-container {
    margin-top: 20px;
    text-align: center;
}

.hidden-file-input {
    display: none;
}

.custom-file-upload {
    border: 2px dashed #aaa;
    border-radius: 10px;
    display: inline-block;
    padding: 30px 60px;
    cursor: pointer;
    font-size: 1.4em;
    font-weight: bold;
    color: #555;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #f0f2f5;
    border-color: #499af1;
    color: #499af1;
}

.upload-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

#user-count-container {
    margin-top: 20px;
    font-size: 1.1em;
    color: #555;
}

/* Donation Section Styles */
.donation-container {
    margin-top: 30px;
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.donation-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.donation-text {
    flex: 1;
    text-align: left;
}

.bank-card-container {
    flex: 0 0 auto;
    perspective: 1000px;
}

.donation-container h3 {
    color: var(--header-bg);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.donation-container p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.bank-details {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    margin-top: 15px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bank-info h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.bank-info p {
    margin: 8px 0;
    font-size: 1em;
    color: var(--text-primary);
}

.bank-info strong {
    color: var(--header-bg);
    font-weight: 600;
}

.donation-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.donation-note p {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    font-size: 0.95em;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}

h3 {
    margin-top: 0;
}

input[type="radio"] {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    flex-shrink: 0;
}

.answered {
    background-color: #499af1;
    color: white;
}

#result-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#result-overlay.show-overlay {
  opacity: 1;
  pointer-events: auto;
}
.result-table-box {
  background: #fff;
  padding: 32px 32px 24px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  min-width: 340px;
  max-width: 95vw;
  margin: 0 auto;
}
.result-table-box h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: left;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
.result-table th {
  text-align: left;
  padding: 4px 10px 4px 0;
  font-weight: 500;
  color: #444;
  width: 150px;
}
.result-table td {
  padding: 4px 0 4px 0;
  color: #222;
}
#close-result-btn {
  background: #f1f1f1;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s;
}
#close-result-btn:hover {
  background: #e4e4e4;
}

/* Modal Content Custom Styling */
.modal-content-custom {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.start-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

/* Bootstrap Modal Dark Mode Override */
[data-theme="dark"] .modal-content {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-footer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* Result Overlay Dark Mode */
[data-theme="dark"] #result-overlay {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .result-table-box {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .result-table-box h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .result-table th {
    color: var(--text-secondary);
}

[data-theme="dark"] .result-table td {
    color: var(--text-primary);
}

[data-theme="dark"] #close-result-btn {
    background: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] #close-result-btn:hover {
    background: var(--text-secondary);
}

#result-box {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    width: 400px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#close-result-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #499af1;
    color: white;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .quiz-container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        margin-top: 20px;
        height: auto;
    }

    #answers-navigation {
        grid-template-columns: repeat(6, 1fr);
    }
    
    #answers-navigation button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid #bbb;
    margin: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1em;
    transition: background 0.18s, border 0.18s;
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
    color: #666;
}

    #answers-navigation button.answered {
        background: #1976d2;
        color: #fff;
        border-color: #1976d2;
    }
    #answers-navigation button:hover {
        background: #e3f0fc;
        border-color: #1976d2;
    }

    .navbar-label, #timer {
        font-size: 1.2em;
    }

    .custom-file-upload {
        padding: 20px 30px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    #answers-navigation {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Footer Styles */
.footer {
    margin-top: 50px;
    padding: 30px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-picture:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.footer-text {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9em;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
    border: none;
    cursor: pointer;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #0077b3, #0099e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    color: white;
    text-decoration: none;
}

.telegram-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.telegram-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Dark mode footer adjustments */
[data-theme="dark"] .footer {
    background-color: var(--bg-primary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .telegram-btn {
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.4);
}

[data-theme="dark"] .telegram-btn:hover {
    background: linear-gradient(135deg, #0077b3, #0099e6);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.5);
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer {
        margin-top: 30px;
        padding: 20px 0;
    }
    
    .footer-content {
        gap: 8px;
    }
    
    .telegram-btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .telegram-icon {
        width: 18px;
        height: 18px;
    }
    
    .profile-picture {
        width: 35px;
        height: 35px;
    }
    
    .profile-section {
        gap: 10px;
    }
}

/* Profile Picture Modal Styles */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal.show {
    opacity: 1;
    visibility: visible;
}

.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.profile-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.profile-modal.show .profile-modal-content {
    transform: scale(1);
}

.profile-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.profile-modal-close:hover {
    color: var(--text-primary);
}

.profile-modal-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.profile-modal-image:hover {
    transform: scale(1.05);
    border-color: var(--header-bg);
}

.profile-modal-info h3 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.profile-modal-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1em;
}

/* Dark mode modal adjustments */
[data-theme="dark"] .profile-modal-overlay {
    background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .profile-modal-content {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .profile-modal-content {
        padding: 20px;
        max-width: 350px;
    }
    
    .profile-modal-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-modal-info h3 {
        font-size: 1.3em;
    }
}

/* Bank Card Design */
.bank-card {
    width: 300px;
    height: 190px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Courier New', monospace;
    animation: float 3s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.bank-card:hover {
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) rotateY(2deg);
    }
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 6px;
    position: absolute;
    top: 20px;
    left: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 15px;
    background: linear-gradient(45deg, #c9a96e, #e6c547);
    border-radius: 3px;
}

.card-number {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder {
    font-size: 0.7em;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-expiry {
    font-size: 0.8em;
    font-weight: bold;
    letter-spacing: 1px;
}

.card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
}

.humo-logo {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Dark mode bank card */
[data-theme="dark"] .bank-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .bank-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Mobile responsive bank card */
@media (max-width: 768px) {
    .donation-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .donation-text {
        text-align: center;
    }
    
    .bank-card {
        width: 280px;
        height: 175px;
        margin: 0 auto;
    }
    
    .card-number {
        font-size: 1.1em;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .bank-card {
        width: 260px;
        height: 165px;
        padding: 15px;
    }
    
    .card-number {
        font-size: 1em;
        letter-spacing: 1px;
    }
    
    .card-chip {
        width: 35px;
        height: 25px;
    }
}

/* Achievement System Styles */
.achievement-container {
    margin-top: 30px;
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.achievement-container h3 {
    color: var(--header-bg);
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.achievement-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--header-bg);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

.badge.locked {
    background: var(--border-color);
    color: var(--text-secondary);
    box-shadow: none;
    animation: none;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6); }
}

/* Mobile responsive achievements */
@media (max-width: 768px) {
    .achievement-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .achievement-badges {
        justify-content: center;
    }
    
    .badge {
        font-size: 0.7em;
        padding: 6px 10px;
    }
}