/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: white;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('../images/sprite.min.png?v=b6ede40e');
    background-repeat: repeat;
    background-size: 134px 301px;
    animation: diagonalScroll 20s linear infinite;
    min-height: 100vh;
    color: #333;
    padding-bottom: 20px;
}

hr {
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* God Pack background effect */
.god-pack-mode {
    background: radial-gradient(circle at center, #ff8efb, #8c8cd4 60%, #93edb8 100%);
    background-size: 200% 200%;
    animation: godPackSpin 8s ease-in-out infinite;
}

@keyframes godPackSpin {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Exchange info styles */
.exchange-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Fixed message container for exchanges */
#message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
    width: auto;
}

#message-container .success-message,
#message-container .error-message {
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.5s ease;
}

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

/* Disabled button style */
.btn-disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Small button style */
.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: 60px;
}

.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* Request bonus page styles */
.request-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.request-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.request-info h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.request-info p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.request-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.request-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.request-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.char-count {
    text-align: right;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.request-status {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.request-details {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.request-message {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    text-align: left;
}

.request-message h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.request-message p {
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.pending-info, .approved-info, .rejected-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.approved-info {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.rejected-info {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.cooldown-message {
    background: linear-gradient(135deg, #f1b761 0%, #c27b33 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cooldown-message h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cooldown-message p {
    margin: 10px 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.cooldown-message strong {
    color: #fff3e0;
    font-weight: bold;
}

/* Admin request management styles */
.admin-actions .request-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.admin-actions .request-message {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

/* Button styles for admin actions */
.btn-success {
    background: #4caf50;
    border-color: #4caf50;
}

.btn-success:hover {
    background: #45a049;
    border-color: #45a049;
}

.btn-danger {
    background: #f44336;
    border-color: #f44336;
}

.btn-danger:hover {
    background: #d32f2f;
    border-color: #d32f2f;
}

/* Soon page styles */
.release-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.release-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.release-info p {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.release-info .countdown-container {
    margin-top: 15px;
}

.release-info .countdown-timer {
    font-size: 2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: #9ad892;
    border-color: #5ebd57;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.no-cards {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    color: white;
    margin: 20px 0;
}

.no-cards h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.no-cards p {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.future-releases {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.future-releases h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
}

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

.future-release-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 0.9em;
}

.release-date {
    font-weight: bold;
    color: #333;
}

.release-count {
    color: #666;
}

.release-days {
    color: #888;
    font-style: italic;
}

.exchange-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    text-align: center;
}

.exchange-rules {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.rule {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.rule-symbol {
    font-size: 1.2em;
    min-width: 40px;
    text-align: center;
}

.rule-text {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.4;
}

.exchange-note {
    text-align: center;
    font-style: italic;
    margin: 0;
    opacity: 0.9;
    font-size: 0.9em;
}

/* Collection filters */
.collection-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .collection-filters {
        flex-direction: column;
        gap: 15px;
    }
}

@keyframes diagonalScroll {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 134px 301px;
    }
}

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

/* Header */
header {
    margin-bottom: 30px;
    text-align: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    text-align: left;
    display: flex;
}

.header-left-text {
    margin-left: 10px;
}

.header-left img {
    height: 80px;
    border-radius: 20px;
}

.header-right {
    text-align: right;
}

.user-level-mini {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.level-mini-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-text {
    font-size: 0.9em;
    font-weight: bold;
    opacity: 0.9;
    color: white;
    text-align: center;
}

.xp-progress-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.xp-bar-mini {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.xp-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.xp-text-mini {
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0.9;
    white-space: nowrap;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* Status card */
.status-card {
    margin-bottom: 30px;
    text-align: center;
}

.status {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.status h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.status p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
}

.status.available {
    position: relative;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 50%, #fff0c4 100%);
    border: 2px solid #ffd700;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.2),
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.2),
        0 0 60px rgba(255, 215, 0, 0.1);
}

.status.available h2 {
    color: #b8860b;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.status.available p {
    color: #8b6914;
}

.status.unavailable h2 {
    color: #dc3545;
}

.small {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

/* Countdown styles */
.countdown-container {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.countdown-label {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 10px;
    font-weight: 500;
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #dc3545;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #dc3545;
    display: inline-block;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    display: inline-block;
    min-width: 2ch;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 10px;
    margin-right: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Navigation */
.navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.nav-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.nav-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #667eea;
}

.nav-card p {
    color: #666;
    font-size: 0.9rem;
}

.nav-card.highlight {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #ffc107;
}

.nav-card.highlight h3 {
    color: #856404;
}

.nav-card.info-exchange {
    /* green */
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    color: #1b5e20;
}

.nav-card.info-exchange h3 {
    color: #1b5e20;
}

.nav-card.info-exchange p {
    color: #4caf50;
}

.nav-card.info-card {
    /* blue */
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    color: #1565c0;
}

.nav-card.info-card h3 {
    color: #1565c0;
}

.nav-card.info-card p {
    color: #1976d2;
}

.nav-card.info-request {
    /* pink */
    background: linear-gradient(135deg, #fce4ec 0%, #f5c9df 100%);
    border: 2px solid #ae667f;
    color: #880e4f;
}

.nav-card.info-request h3 {
    color: #880e4f;
}

.nav-card.info-request p {
    color: #c2185b;
}

/* User level card */
.user-level-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
}

.level-info h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.xp-progress {
    margin: 20px 0;
}

.xp-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.xp-text {
    font-size: 1.1em;
    font-weight: bold;
    opacity: 0.9;
}

.daily-claimed {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    opacity: 0.8;
}

/* Daily XP claim button in navigation */
.claim-daily-xp-btn:not(.daily-claimed-nav) {
    background: linear-gradient(135deg, #ebdef9 0%, #c8b0f3 100%);
    border: 2px solid #bd89db;
    color: #880e4f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.claim-daily-xp-btn:not(.daily-claimed-nav) h3 {
    color: #7629ac;
}

.claim-daily-xp-btn:not(.daily-claimed-nav) p {
    color: #7629ac;
}

.daily-claimed-nav h3 {
    color: #5b5966;
}

.daily-claimed-nav p {
    color: #495057;
}

.claim-daily-xp-btn:disabled {
    cursor: not-allowed;
    transform: none;
}

.daily-claimed-nav {
    background: linear-gradient(135deg, #c8c7cf 0%, #aaafb4 100%);
    border: 2px solid gray;
    /* background: rgba(255, 255, 255, 0.1); */
    /* opacity: 0.7; */
    cursor: not-allowed;
}

/* XP notification */
.xp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: slideInRight 0.3s ease-out;
}

.xp-notification-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.xp-notification-content p {
    margin: 5px 0;
    opacity: 0.9;
}

.level-up {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
}

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

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

/* XP summary in unpack */
.xp-summary {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* XP summary in final cards container */
.xp-summary-final {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 680px;
    text-align: center;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.5s ease-out;
    gap: 10px;
    flex-direction: column;
    display: flex;
}

.xp-summary-final-text {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.xp-summary h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.xp-summary p {
    margin: 10px 0;
    opacity: 0.9;
}

.xp-bar-mini {
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.xp-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.upcoming-feature-card {
    /* gray */
    background: linear-gradient(135deg, #c8c7cf 0%, #aaafb4 100%);
    border: 2px solid gray;
}

.upcoming-feature-card h3 {
    color: #5b5966;
}

.upcoming-feature-card p {
    color: #495057;
}

/* Feature unlock info styles */
.feature-unlock-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-lock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.feature-lock:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    min-width: 30px;
}

.feature-name {
    flex: 1;
    color: #e0e0e0;
    font-weight: 500;
}

.feature-level {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* Admin feature levels styles */
.feature-levels-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.feature-level-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.feature-level-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.feature-levels-note {
    color: #aaa;
    font-style: italic;
    margin-top: 10px;
}

/* Back link */
.back-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 10px;
}

.back-link:hover {
    opacity: 1;
}

/* Pack container */
.pack-container {
    text-align: center;
}

.pack {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.pack.opening {
    transform: scale(0.95);
    opacity: 0.8;
}

.pack-front h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #856404;
}

.pack-front p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #856404;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid goldenrod;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cards reveal container */
.cards-reveal-container, .cards-container {
    text-align: center;
    padding-bottom: 100px;
    overflow: hidden;
}

.cards-reveal-container h2, .cards-container h2, .empty-state h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.reveal-instruction, .empty-state {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

/* Deck container for stacked cards */
.deck-container {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Deck cards - stacked effect */
.card.deck-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    width: 280px;
    height: 400px;
}

/* Cards reveal grid (for final summary) */
.cards-reveal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Face-down cards for reveal */
.face-down-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.face-down-card:hover {
    transform: translateY(-5px) rotateY(180deg) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.face-down-card.revealed {
    cursor: default;
}

.face-down-card.revealed:hover {
    transform: translateY(-5px) rotateY(0deg) scale(1.05);
}

/* Card faces for flip animation */
.card-face {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
}

.card-back {
    position: absolute;
    background: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-front {
    background: white;
    transform: rotateY(0deg);
    padding: 15px;
}

/* Cards */
.cards-container {
    margin-top: 30px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card, .random-card .card-face {
    border: 2px solid #BAB3AC;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    max-width: 280px;
    text-align: center;
}

.card::before, .card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/sprite-front-card-overlay.min.png?v=b6ede40e');
    background-repeat: repeat;
    background-size: 67px 150px;
    mix-blend-mode: luminosity;
    opacity: 0.1;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-image {
    position: relative;
    padding: 10px;
    overflow: hidden;
    max-height: 220px;
}

.random-card .card-image {
    max-height: 260px;
}

.card-image .card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* background-color: rgba(255, 255, 255, 0.5);
    background-blend-mode: lighten; */
    filter: blur(5px);
    opacity: 0.4;
    border-radius: 10px;
    overflow: hidden;
}

.card-image img {
    position: relative;
    z-index: 10;
    object-fit: cover;
    border-radius: 5px;
    height: 100%;
    /* width: 100%; */
    object-position: center;
    max-height: 200px;
}

.random-card .card-image img {
    max-height: 240px;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 200;
}

.count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 200;
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.card-catchphrase {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 36px;
}

.card-rarity {
    font-size: 1.1rem;
}

.card.locked .card-image {
    filter: grayscale(100%);
    opacity: 0.5;
    border-radius: 13px 13px 0 0;
}

.card-face-rarity {
    overflow: hidden;
}

.card-face-rarity-4 {
    background: linear-gradient(135deg, #f8fdff 0%, #e7f8ff 100%);
    border-color: #BAB3AC !important;
}

.card-face-rarity-5 {
    background: linear-gradient(135deg, #f1e8ff 0%, #d9faff 100%);
    border-color: rgb(175, 204, 204) !important;
}

.card-face-rarity-6 {
    background: linear-gradient(135deg, #d9faff 0%, #d4ff9d 100%);
    border-color: rgb(148, 181, 148) !important;
}

.card-face-rarity-7 {
    background: linear-gradient(135deg, #d9faff 0%, #aaf4ff 100%);
    border-color: rgb(112, 164, 228) !important;
}

.card-face-rarity-8 {
    background: linear-gradient(135deg, #fff6c0 0%, #f9e52b 100%);
    border-color: goldenrod !important;
}

.card-face-rarity-9 {
    background: linear-gradient(135deg, #fff6c0 0%, #f9e52b 100%);
    border-color: goldenrod !important;
    position: relative;
    overflow: hidden;
}

.card-face-rarity-9::before {
    content: '';
    z-index: 150;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%);
    animation: shinyEffect 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shinyEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-icon {
    font-size: 3rem;
    color: white;
    z-index: 100;
}

.locked-text {
    color: #999 !important;
    font-style: italic;
}

/* Pack actions */
.pack-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Random card */
.random-container {
    text-align: center;
}

.card-container {
    padding: 10px;
    overflow: hidden;
}

.random-card {
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in;
    transform: translateY(100vh) rotateY(180deg) scale(0.67) rotateZ(90deg) rotateX(90deg);
}

.random-card:hover {
    transform: rotateY(0deg);
}

.random-card .card-image {
    height: 250px;
    margin-bottom: 20px;
}

.random-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.card-count {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #495057;
}

.random-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Collection */
.collection-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Card overlay */
.card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.overlay-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.overlay-card-container {
    position: relative;
    z-index: 10000;
    cursor: default;
    flex-grow: 1;
    max-width: 360px;
}

.collection-grid {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.final-card {
    margin: auto;
    animation: cardReveal 0.4s ease-out forwards;
    /* opacity: 0; */
    transform: scale(0.8) translateY(100px);
}

@keyframes cardReveal {
    to {
        /* opacity: 1; */
        transform: scale(1) translateY(0);
    }
}

/* Ripple effect for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ios-bottom-bar {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .ios-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding-bottom: env(safe-area-inset-bottom, 20px);
        background: white;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        z-index: 500;
    }

    .ios-bottom-bar-content {
        display: flex;
        flex-direction: row;
        /* background: red; */
        /* border-top: 1px solid blue; */
        justify-content: space-around;
        align-items: center;
        height: 60px;
        font-size: 12px;
        font-weight: bold;
        color: #333;
        text-align: center;
    }

    .ios-bottom-bar-item {
        flex-grow: 1;
        flex-basis: 0;
        height: 100%;
        align-items: end;
        justify-content: center;
        display: flex;
    }

    .ios-bottom-bar-item:nth-of-type(even) {
        /* background: blue; */
    }

    .ios-bottom-bar-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: #333;
        text-decoration: none;
        font-weight: normal;
        padding: 5px 5px 0 5px;
    }

    .ios-bottom-bar-item.active .ios-bottom-bar-link {
        font-weight: bold;
        color: rgb(54 110 255);
    }

    .ios-bottom-bar-item .ios-bottom-bar-icon, .ios-bottom-bar-item .ios-bottom-bar-icon-fill {
        height: 20px;
        width: 20px;
    }

    .ios-bottom-bar-item.active .ios-bottom-bar-icon-fill {
        display: block;
        filter: invert(0.4) sepia(1) saturate(5) hue-rotate(185deg);
    }

    .ios-bottom-bar-item.active .ios-bottom-bar-icon {
        display: none;
    }

    .ios-bottom-bar-item .ios-bottom-bar-icon-fill {
        display: none;
    }

    .ios-bottom-bar-item.available .ios-bottom-bar-icon {
        filter: invert(0.4) sepia(1) saturate(5) hue-rotate(135deg);
    }

    .ios-bottom-bar-item.available:not(.active) .ios-bottom-bar-text {
        color: rgb(45, 136, 157);
    }

    .container {
        padding: 15px;
    }

    .header-content {
        flex-direction: row;
    }

    body {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .header-left, .header-main {
        padding: 5px 5px 10px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        z-index: 500;
    }

    .header-main {
        padding: 0;
        display: flex;
        flex-direction: row-reverse;
        min-height: 50px;
    }

    .header-main .back-link {
        width: 60px;
        height: 50px;
        /* background-color: blue; */
        color: rgba(255,255,255,0.0);
        overflow: hidden;
    }

    .header-main .back-link::before {
        content: ' ';
        background: url('../icons/back.svg?v=b6ede40e') no-repeat center center;
        background-size: 30px;
        color: white;
        position: absolute;
        top: 0;
        left: 0;
        width: 60px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-main h1 {
        margin: 0;
        padding: 0;
        flex-grow: 1;
        /* background-color: green; */
        display: flex;
        align-items: center;
        justify-content: left;
    }

    .header-main h1 {
        font-size: 20px;
    }

    .header-left h1, .header-main h1 {
        color: rgb(54 110 255);
        text-shadow: none;
    }

    .header-content h1 {
        font-size: 26px;
    }

    .header-content .header-left img {
        height: 52px;
        border-radius: 16px;
    }

    .header-content .header-left-text .subtitle {
        font-size: 14px;
    }

    .header-right {
        flex-grow: 1;
    }

    .subtitle {
        color: rgb(73, 106, 189);
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        margin: 5px 0;
    }

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

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .cards-reveal-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .collection-grid h3 {
        font-size: 1rem;
    }

    .collection-grid .card-info {
        padding: 10px;
    }

    .collection-grid .card-image img {
        max-height: 140px;
    }

    .collection-grid h3 {
        font-size: 14px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .collection-grid .card-catchphrase {
        font-size: 12px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .collection-stats .stat-item {
        /*  make them take the same width */
        min-width: 80px;
        padding: 10px;
        text-align: center;
    }

    .countdown-timer {
        font-size: 1.5rem;
        min-width: 150px;
        padding: 10px 15px;
    }

    .pack-actions,
    .random-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .deck-container {
        width: 280px;
        height: 380px;
    }

    .deck-card {
        width: 260px;
        height: 360px;
    }

    .level-mini-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .level-mini-info .xp-progress-mini {
        margin: 0;
    }

    .xp-summary-final {
        margin: 20px 10px;
    }

    .xp-summary-final-text h3 {
        font-size: 16px
    }

    .xp-summary-final-text p {
        font-size: 12px;
    }
}

/* Admin styles */
.admin-login,
.admin-dashboard {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-header h2 {
    margin: 0;
    color: #333;
}

.admin-form {
    max-width: 400px;
}

.admin-form-big {
    max-width: 100%;
}

.admin-form-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-form-section .admin-actions {
    flex-grow: 1;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.form-group label {
    display: flex;
    margin-bottom: 0;
    color: #333;
    flex: 1;
    /* avoid select taking more width than its container */
    max-width: 100%;
    align-items: baseline;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-right: 10px;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

.admin-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.admin-actions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.admin-actions h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.admin-info {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

.admin-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1565c0;
}

.admin-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-info li {
    padding: 8px 0;
    border-bottom: 1px solid #bbdefb;
}

.admin-info li:last-child {
    border-bottom: none;
}

.admin-info strong {
    color: #1565c0;
}

/* Web Push Button Styles */
.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
    margin-left: 10px;
}

.form-help {
    font-size: 0.875rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Web Push specific form group */
.form-group:has(#channel_web_push) {
    flex-direction: column;
    align-items: flex-start;
}

.form-group:has(#channel_web_push) label {
    width: 100%;
    justify-content: flex-start;
}
