:root {
    --primary: #FFD700;
    --primary-dark: #B8860B;
    --primary-glow: rgba(255, 215, 0, 0.4);
    --bg-dark: #0a0a0a;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: #1a1a1a;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent: #FF6B6B;
    --success: #4CAF50;
    --warning: #FFA500;
    --danger: #dc3545;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-glow);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.05);
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --accent: #00D4FF;
    --success: #28a745;
    --warning: #fd7e14;
    --danger: #dc3545;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15), 0 6px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s var(--ease-out-cubic), color 0.3s var(--ease-out-cubic);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Top Bar Controls */
.top-bar-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    z-index: 1000;
    animation: slideDown 0.5s var(--ease-out-quint);
}

.menu-toggle-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.menu-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.menu-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s var(--ease-out-cubic);
}

.top-bar-controls.expanded .menu-icon {
    transform: rotate(90deg);
}

.top-menu-expanded {
    display: none;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    animation: slideDown 0.3s var(--ease-out-quint);
}

.top-bar-controls.expanded .top-menu-expanded {
    display: flex;
}

.egg-btn,
.leaderboard-btn,
.profile-btn,
.social-btn,
.raid-btn,
.update-log-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.3s var(--ease-out-cubic);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    position: relative;
}

.menu-item-btn {
    width: auto;
    min-width: 50px;
    padding: 0 12px;
    border-radius: 25px;
    flex-direction: row;
    gap: 8px;
}

.menu-item-label {
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-cubic);
}

.top-bar-controls.expanded .menu-item-label {
    opacity: 1;
    max-width: 200px;
}

.egg-btn:hover,
.leaderboard-btn:hover,
.profile-btn:hover,
.social-btn:hover,
.raid-btn:hover,
.update-log-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.egg-btn {
    font-size: 1.3em;
}

.egg-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.leaderboard-btn {
    font-size: 1.3em;
}

.leaderboard-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.profile-btn.logged-in {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.1);
}

.profile-tier-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pin-input {
    text-align: center;
    font-size: 1.8em;
    letter-spacing: 15px;
    font-family: monospace;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Leaderboard Dropdown */
.leaderboard-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s var(--ease-out-quint);
    z-index: 999;
    overflow: hidden;
}

.leaderboard-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.leaderboard-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
}

.leaderboard-dropdown-header h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leaderboard-toggle {
    display: flex;
    gap: 5px;
    background: var(--bg-glass);
    border-radius: 20px;
    padding: 3px;
    border: 1px solid var(--border);
}

.toggle-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
}

.toggle-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.toggle-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#leaderboard-dropdown-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

/* Podium Styles */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 20px 10px;
    position: relative;
    overflow: hidden;
}

/* Leaderboard Confetti Animation */
.leaderboard-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    animation: confetti-fall-leaderboard 3s linear infinite;
}

.confetti-piece:nth-child(odd) {
    background: var(--accent);
}

.confetti-piece:nth-child(3n) {
    background: var(--success);
}

.confetti-piece:nth-child(4n) {
    background: var(--warning);
}

.confetti-piece:nth-child(5n) {
    background: #FFD700;
}

@keyframes confetti-fall-leaderboard {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(400px) rotate(360deg);
        opacity: 0;
    }
}

.confetti-piece:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.confetti-piece:nth-child(2) {
    left: 20%;
    animation-delay: 0.5s;
    animation-duration: 3s;
}

.confetti-piece:nth-child(3) {
    left: 30%;
    animation-delay: 1s;
    animation-duration: 2.8s;
}

.confetti-piece:nth-child(4) {
    left: 40%;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.confetti-piece:nth-child(5) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 2.7s;
}

.confetti-piece:nth-child(6) {
    left: 60%;
    animation-delay: 0.3s;
    animation-duration: 3.1s;
}

.confetti-piece:nth-child(7) {
    left: 70%;
    animation-delay: 0.8s;
    animation-duration: 2.9s;
}

.confetti-piece:nth-child(8) {
    left: 80%;
    animation-delay: 1.3s;
    animation-duration: 3.3s;
}

.confetti-piece:nth-child(9) {
    left: 90%;
    animation-delay: 1.8s;
    animation-duration: 2.6s;
}

.confetti-piece:nth-child(10) {
    left: 15%;
    animation-delay: 2.3s;
    animation-duration: 3.4s;
}

.confetti-piece:nth-child(11) {
    left: 25%;
    animation-delay: 0.7s;
    animation-duration: 2.4s;
}

.confetti-piece:nth-child(12) {
    left: 35%;
    animation-delay: 1.2s;
    animation-duration: 3.5s;
}

.confetti-piece:nth-child(13) {
    left: 45%;
    animation-delay: 1.7s;
    animation-duration: 2.8s;
}

.confetti-piece:nth-child(14) {
    left: 55%;
    animation-delay: 2.2s;
    animation-duration: 3.1s;
}

.confetti-piece:nth-child(15) {
    left: 65%;
    animation-delay: 0.4s;
    animation-duration: 2.9s;
}

.confetti-piece:nth-child(16) {
    left: 75%;
    animation-delay: 0.9s;
    animation-duration: 3.2s;
}

.confetti-piece:nth-child(17) {
    left: 85%;
    animation-delay: 1.4s;
    animation-duration: 2.7s;
}

.confetti-piece:nth-child(18) {
    left: 95%;
    animation-delay: 1.9s;
    animation-duration: 3.3s;
}

.confetti-piece:nth-child(19) {
    left: 5%;
    animation-delay: 2.4s;
    animation-duration: 2.5s;
}

.confetti-piece:nth-child(20) {
    left: 12%;
    animation-delay: 0.6s;
    animation-duration: 3.4s;
}

/* Different confetti shapes */
.confetti-piece:nth-child(even) {
    border-radius: 50%;
}

.confetti-piece:nth-child(3n) {
    border-radius: 0;
    transform: rotate(45deg);
}

.confetti-piece:nth-child(5n) {
    border-radius: 2px;
    width: 6px;
    height: 12px;
}

.confetti-piece:nth-child(7n) {
    border-radius: 50% 0;
    width: 10px;
    height: 10px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.podium-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.podium-username {
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-rank {
    font-size: 2em;
    margin-bottom: 8px;
    animation: bounce-in 0.6s var(--ease-out-quint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.medal-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header-medal-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.fire-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.orders-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.podium-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.points-display .points-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.first-bar {
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border-color: #FFD700;
    animation: grow-up 0.8s var(--ease-out-quint);
}

.second-bar {
    height: 90px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.1));
    border-color: #C0C0C0;
    animation: grow-up 0.8s 0.1s var(--ease-out-quint) backwards;
}

.third-bar {
    height: 70px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.1));
    border-color: #CD7F32;
    animation: grow-up 0.8s 0.2s var(--ease-out-quint) backwards;
}

.podium-stats {
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Leaderboard Rest (4-5th place) */
.leaderboard-rest {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-mini-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-glass);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s var(--ease-out-cubic);
}

.leaderboard-mini-entry:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

.mini-rank {
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 30px;
}

.mini-username {
    flex: 1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-spent {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tier-icon-mini {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@keyframes grow-up {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

header {
    text-align: center;
    margin-bottom: 20px;
    animation: slideDown 0.6s var(--ease-out-quint);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 300;
    margin-bottom: 15px;
}

/* Ship Journey Tracker Styles */
.ship-journey-tracker {
    background: var(--bg-card);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    animation: ocean-wave 4s ease-in-out infinite;
    box-shadow: var(--shadow);
}

@keyframes ocean-wave {

    0%,
    100% {
        border-color: rgba(0, 150, 255, 0.3);
    }

    50% {
        border-color: rgba(0, 200, 255, 0.6);
    }
}

.journey-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.journey-icon {
    width: 40px;
    height: 40px;
    animation: ship-bob 2s ease-in-out infinite;
}

.journey-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1em;
}

.journey-map {
    position: relative;
    margin: 20px 0;
}

.journey-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: linear-gradient(90deg, rgba(0, 150, 255, 0.1), rgba(0, 200, 255, 0.1));
    border-radius: 25px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 120px;
}

.journey-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.crate-modal-content {
    text-align: center;
    background: #1a1a1a;
    border: 1px solid #333;
    max-width: 500px;
    /* Reduced width */
    padding: 20px;
    /* Reduced padding */
    max-height: 90vh;
    /* Prevent overflow */
    overflow-y: auto;
}

.crate-title {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.crate-window {
    width: 100%;
    height: 100px;
    /* Reduced height */
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
}

.crate-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #ffd700;
    z-index: 10;
    box-shadow: 0 0 15px #ffd700;
}

.crate-strip {
    display: flex;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    align-items: center;
    width: max-content;
    /* Ensure it doesn't wrap */
    will-change: transform;
    /* Optimize for animation */
}

.crate-item {
    width: 70px;
    /* Reduced from 100px */
    height: 70px;
    /* Reduced from 100px */
    margin: 0 4px;
    /* Reduced margin */
    background: #2d2d2d;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #444;
    /* Thinner border */
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.crate-item img {
    width: 40px;
    /* Reduced from 60px */
    height: 40px;
    object-fit: contain;
    margin-bottom: 0;
    /* Remove margin */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.crate-item.legendary {
    border-color: #ffeb3b;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.2) 0%, #2d2d2d 100%);
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.4);
}

.crate-item.epic {
    border-color: #9c27b0;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.2) 0%, #2d2d2d 100%);
}

.crate-item.rare {
    border-color: #2196f3;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.2) 0%, #2d2d2d 100%);
}

.crate-item.common {
    border-color: #4caf50;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.2) 0%, #2d2d2d 100%);
}

.crate-item.nothing {
    border-color: #555;
    opacity: 0.7;
}

.crate-result-message {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: var(--text-primary);
    margin-top: 20px;
    font-weight: bold;
}

.crate-result-highlight {
    color: var(--primary);
    margin-left: 8px;
    font-size: 1.1em;
}

transform: translateY(-50%);
}

.checkpoint,
.dock-goal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 3;
    transition: all 0.3s ease;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.checkpoint.reached {
    transform: scale(1.1);
}

.dock-goal.reached {
    animation: dock-celebration 1s ease-in-out;
}

.anchor-icon,
.dock-emoji {
    width: 35px;
    height: 35px;
    filter: grayscale(0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: milestone-sway 3s ease-in-out infinite;
}

.checkpoint.reached .anchor-icon {
    filter: grayscale(1);
    animation: milestone-sway-fainted 4s ease-in-out infinite, anchor-glow 2s ease-in-out infinite;
}

.checkpoint-start .anchor-icon {
    filter: grayscale(0) !important;
}

.dock-goal.reached .dock-emoji {
    filter: grayscale(1);
    animation: milestone-sway-fainted 4s ease-in-out infinite, dock-glow 2s ease-in-out infinite;
}

.checkpoint-label,
.goal-label {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.checkpoint-label .coin-inline,
.goal-label .coin-inline {
    width: 12px;
    height: 12px;
    margin-right: 2px;
}

.ship-container {
    position: absolute;
    top: 0px;
    left: 10px;
    transition: left 0.8s ease-in-out;
    z-index: 4;
}

.ship-emoji {
    width: 40px;
    height: 40px;
    animation: ship-bob 2s ease-in-out infinite;
    transform: scaleX(1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-stats {
    text-align: center;
    margin-top: 15px;
}

.current-progress {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.journey-message {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-style: italic;
}

@keyframes milestone-sway-fainted {

    0%,
    100% {
        transform: rotate(-1deg) translateX(0px);
    }

    25% {
        transform: rotate(0.5deg) translateX(-0.5px);
    }

    50% {
        transform: rotate(1deg) translateX(0.5px);
    }

    75% {
        transform: rotate(-0.5deg) translateX(-0.5px);
    }
}

@keyframes milestone-sway {

    0%,
    100% {
        transform: rotate(-2deg) translateX(0px);
    }

    25% {
        transform: rotate(1deg) translateX(-1px);
    }

    50% {
        transform: rotate(2deg) translateX(1px);
    }

    75% {
        transform: rotate(-1deg) translateX(-1px);
    }
}

@keyframes ship-bob {

    0%,
    100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

@keyframes anchor-glow {

    0%,
    100% {
        filter: grayscale(0) brightness(1);
    }

    50% {
        filter: grayscale(0) brightness(1.3) drop-shadow(0 0 10px var(--primary));
    }
}

@keyframes dock-glow {

    0%,
    100% {
        filter: grayscale(0) brightness(1);
    }

    50% {
        filter: grayscale(0) brightness(1.5) drop-shadow(0 0 15px var(--success));
    }
}

@keyframes dock-celebration {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) rotate(5deg);
    }

    100% {
        transform: scale(1.1);
    }
}

#welcome-message {
    color: var(--text-secondary);
    font-size: 0.9em;
    min-height: 20px;
    margin-top: 10px;
}

#welcome-message a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.points-badge,
.streak-badge {
    background: var(--bg-glass);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

.skeleton-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: skeleton-pulse 1.5s infinite;
}

@keyframes skeleton-pulse {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s var(--ease-out-cubic);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
}

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

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-top: 5px;
    padding: 10px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out-cubic);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.suggestion-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.suggestion-icon {
    font-size: 1.2em;
}

.suggestion-item span:last-child {
    font-weight: 500;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 12px 20px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    transform: scale(1.05) translateY(-2px);
    border-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 100px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s var(--ease-out-quint);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform, box-shadow;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn-stagger 0.5s var(--ease-out-quint) forwards;
    animation-play-state: paused;
    box-shadow: var(--shadow);
}

@keyframes fadeIn-stagger {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card::before {
    /* Shimmer effect */
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    z-index: 2;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s var(--ease-out-quint);
}

.product-card:hover::before {
    left: 150%;
}

.product-card::after {
    /* Gradient overlay on hover */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-quint);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-hover), 0 0 15px var(--primary-glow);
    border-color: rgba(255, 215, 0, 0.3);
}

.product-card.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 600;
    z-index: 3;
}

.out-of-stock-badge {
    background: var(--text-secondary);
    color: var(--bg-card);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
    z-index: 2;
}

.detail-new-badge {
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.product-image {
    width: 80px;
    height: 80px;
    margin: 15px 0;
    transition: transform 0.4s var(--ease-out-quint);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    z-index: 2;
}

/* Lazy Loading Styles */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    transition: opacity 0.3s ease;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Dark mode skeleton */
[data-theme="dark"] .image-placeholder {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* Bundle Deals Styles */
.bundle-deal-card {
    background: var(--bg-card);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

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

.bundle-header h3 {
    color: var(--primary);
    font-size: 1.5em;
    margin: 0;
}

.bundle-discount {
    background: linear-gradient(135deg, var(--primary), #FFA500);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1em;
}

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

.bundle-section {
    margin-bottom: 25px;
}

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

.bundle-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.bundle-item {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    position: relative;
}

.bundle-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.bundle-item.selected {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.bundle-item.selected::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

.bundle-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
}

.bundle-item-name {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.bundle-item-price {
    font-size: 0.85em;
    color: var(--primary);
    font-weight: 600;
}

.bundle-total {
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.bundle-selection-count {
    font-size: 1.1em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.bundle-savings {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 15px;
}

.bundle-add-btn {
    background: linear-gradient(135deg, var(--primary), #FFA500);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    opacity: 0.5;
}

.bundle-add-btn.ready {
    opacity: 1;
}

.bundle-add-btn:hover.ready {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.bundle-add-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.product-card:hover .product-image {
    transform: scale(1.2);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
    transition: transform 0.4s var(--ease-out-quint);
}

.product-card:hover .product-info {
    transform: translateY(-10px);
}

.product-name {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-primary);
}

.product-desc {
    font-size: 0.85em;
    color: var(--text-secondary);
    line-height: 1.3;
}

.product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
    z-index: 2;
    transition: color 0.4s var(--ease-out-quint);
}

.product-card:hover .product-price {
    color: #fff;
}

.favorite-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5em;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.2s var(--ease-out-cubic), color 0.2s var(--ease-out-cubic);
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.favorited {
    color: var(--accent);
}

.fly-to-cart-img {
    position: fixed;
    z-index: 9999;
    border-radius: 15px;
    transition: all 0.5s cubic-bezier(0.5, 0, 1, 0.5);
    pointer-events: none;
}

.cart-button {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 460px;
    height: 80px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px 25px;
    border-radius: 25px 25px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s var(--ease-out-cubic);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-button:hover {
    transform: translateX(-50%) translateY(-5px);
}

.cart-button.pulsate {
    animation: pulsate 0.5s var(--ease-out-cubic);
}

@keyframes pulsate {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.03);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.cart-button-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-button-title {
    font-size: 1.2em;
    font-weight: 700;
}

.cart-button-details {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.cart-button-total {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 15px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-quint);
}

.modal.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-out-quint) forwards;
}

.modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 30px 30px 0 0;
    padding: 35px 25px 25px 25px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-quint);
    will-change: transform;
}

.modal.active .modal-content {
    transform: translateY(0);
}

#product-detail-modal .modal-content {
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.detail-image-container {
    width: 100%;
    height: 40vh;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px 30px 0 0;
    position: relative;
    flex-shrink: 0;
}

.detail-main-image {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.3s var(--ease-out-cubic);
}

.detail-main-image:hover {
    transform: scale(1.05);
}

.detail-info-container {
    padding: 25px;
    background: var(--bg-card);
    flex-grow: 1;
    text-align: center;
}

#product-detail-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.modal-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2.5px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideDown 0.5s var(--ease-out-quint);
}

.checkout-step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
    animation: slideDown 0.5s var(--ease-out-quint);
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.3s var(--ease-out-cubic);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 11;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.close-modal:active {
    transform: scale(0.9) rotate(90deg);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-size: 200% auto;
    color: var(--bg-dark);
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-quint);
    box-shadow: 0 8px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 12px 25px var(--primary-glow);
    transform: scale(1.02) translateY(-1px);
}

.btn-primary.added {
    background-image: none;
    background-color: var(--success);
    color: white;
}

.btn-primary:active,
.action-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s var(--ease-out-cubic);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background-color: rgba(255, 255, 255, 0.7);
}

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

.detail-name {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.detail-price {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.detail-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.detail-quantity .qty-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2em;
}

.stock-info {
    color: var(--warning);
    font-size: 0.85em;
    margin-bottom: 20px;
    height: 20px;
}

.promo-section {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-glass);
    border-radius: 12px;
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input {
    flex: 1;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.promo-apply-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
}

.promo-success {
    color: var(--success);
    font-size: 0.85em;
    margin-top: 10px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-glass);
    border-radius: 15px;
    margin-bottom: 10px;
    transition: all 0.3s var(--ease-out-cubic);
    transform: translateX(0);
    gap: 15px;
}

.cart-item.removing {
    transform: translateX(-100%);
    opacity: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-card);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 5px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s var(--ease-out-cubic);
}

.qty-btn:active {
    transform: scale(0.9);
}

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-total {
    text-align: center;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: 15px;
    margin-bottom: 20px;
}

.total-label {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.total-amount {
    font-size: 2em;
    font-weight: 800;
    color: var(--primary);
}

.discount-amount,
.savings-amount,
.points-earn-amount {
    color: var(--success);
    font-size: 0.9em;
    margin-top: 5px;
    line-height: 1.4;
}

.savings-amount del {
    color: var(--danger);
    opacity: 0.8;
}

.points-earn-amount {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.2));
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);

}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.checkout-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-cubic);
}

.checkout-section.active {
    display: block;
    animation: fadeIn 0.3s var(--ease-out-quint) forwards;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
    animation: slideInUp 0.5s var(--ease-out-quint);
}

.step-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.step-navigation .btn-secondary {
    flex: 1;
}

.step-navigation .btn-primary {
    flex: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift-option {
    padding: 15px;
    background: var(--bg-glass);
    border-radius: 12px;
    margin-bottom: 20px;
}

.gift-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gift-fields {
    display: none;
    margin-top: 10px;
}

.gift-fields.active {
    display: block;
    animation: slideDown 0.3s var(--ease-out-quint);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

#tip-section {
    margin-bottom: 20px;
}

.tip-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tip-option {
    padding: 10px;
    background: var(--bg-glass);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s var(--ease-out-cubic);
}

.tip-option.selected {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s var(--ease-out-cubic);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 15px var(--primary-glow), 0 0 0 4px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* Auth Modal Improvements */
#auth-modal .modal-content {
    animation: slideInUp 0.5s var(--ease-out-quint);
}

#auth-modal .input-group {
    animation: slideDown 0.4s var(--ease-out-quint);
    animation-fill-mode: backwards;
}

#auth-modal .input-group:nth-child(1) {
    animation-delay: 0.05s;
}

#auth-modal .input-group:nth-child(2) {
    animation-delay: 0.1s;
}

#auth-modal .input-group:nth-child(3) {
    animation-delay: 0.15s;
}

#auth-modal .btn-primary {
    animation: slideDown 0.4s var(--ease-out-quint);
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

.input-group select option {
    background: var(--bg-card);
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.datetime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.delivery-option {
    padding: 15px;
    background: var(--bg-glass);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s var(--ease-out-cubic);
}

.delivery-option.selected {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
}

.pickup-instructions {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: center;
}

.pickup-instructions h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.pickup-instructions p {
    color: var(--text-secondary);
}

.payment-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    padding: 15px;
    background: var(--bg-glass);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--ease-out-cubic);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
}

.payment-icon {
    font-size: 1.5em;
}

.btn-secondary {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-logout {
    width: 100%;
    padding: 15px;
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: var(--danger);
    transform: translateY(-2px);
}

.btn-logout:active {
    transform: scale(0.98);
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8em;
}

/* --- NEW: Checkout Progress Bar --- */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    counter-reset: step;
}

.progress-bar .step {
    position: relative;
    text-align: center;
    width: 33.33%;
    color: var(--text-secondary);
    font-size: 0.9em;
    transition: color 0.3s var(--ease-out-cubic);
}

.progress-bar .step::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    margin: 0 auto 8px auto;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out-cubic);
}

.progress-bar .step.active {
    color: var(--primary);
    font-weight: 600;
}

.progress-bar .step.active::before {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* --- NEW: Order Summary Accordion --- */
.order-summary {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.order-summary summary {
    cursor: pointer;
    font-weight: 600;
    padding: 5px 0;
    list-style-type: none;
    /* Hide default arrow */
    position: relative;
}

.order-summary summary::-webkit-details-marker {
    display: none;
}

/* Chrome */
.order-summary summary::after {
    /* Custom arrow */
    content: '▼';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s var(--ease-out-cubic);
}

.order-summary[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

#summary-items-list {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    animation: slideDown 0.3s var(--ease-out-quint);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--text-secondary);
}

.summary-item span:first-child {
    color: var(--text-primary);
}

/* --- NEW/MODIFIED: Swipe-Right-To-Order --- */
.swipe-right-container {
    margin-top: 20px;
    position: relative;
    width: 100%;
    height: 70px;
    /* Reduced height for horizontal bar */
    background: var(--bg-glass);
    border-radius: 35px;
    /* Fully rounded ends */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.swipe-right-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 70px;
    /* Initial width matches thumb */
    background: rgba(255, 215, 0, 0.3);
    border-radius: 35px;
    z-index: 1;
    transition: width 0.2s var(--ease-out-quint);
    /* Smooth transition on release */
}

.swipe-right-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 35px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.22, 1.5, 0.36, 1);
    font-weight: 700;
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Ultraball icon */
.ultraball-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.4s cubic-bezier(0.22, 1.5, 0.36, 1);
}

/* Ultraball continuous rotation animation when swiping */
.swipe-right-thumb.swiping .ultraball-icon {
    animation: ultraball-continuous-rotate 2s ease-in-out infinite;
}

@keyframes ultraball-continuous-rotate {
    0% {
        transform: rotate(0deg);
    }

    80% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ultraball success state - stop rotation and show success */
.swipe-right-thumb.success .ultraball-icon {
    animation: none;
    transform: rotate(0deg);
    filter: brightness(1.2) saturate(1.2);
}

.swipe-right-thumb::after {
    /* The arrow icon */
    content: '»';
    font-size: 2em;
    opacity: 0.8;
    transform: scaleX(1.5);
    transition: opacity 0.3s;
}

.swipe-right-thumb .thumb-text,
.swipe-right-thumb.processing::after,
.swipe-right-thumb.success::after {
    display: none;
}

.swipe-right-thumb .spinner {
    display: none;
}

.swipe-right-thumb.processing .spinner {
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.swipe-right-thumb.success {
    background: var(--success);
    font-size: 2em;
    animation: pop 0.3s var(--ease-out-quint) forwards;
}

.swipe-right-thumb:active {
    cursor: grabbing;
}

.swipe-right-text {
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1em;
    animation: pulse-arrow-right 2.5s infinite;
    pointer-events: none;
    /* Make sure it doesn't block dragging */
}

@keyframes pulse-arrow-right {

    0%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(8px);
    }
}

.success-message {
    display: none;
    text-align: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-cubic);
}

.success-message.active {
    display: block;
    animation: fadeIn 0.5s var(--ease-out-quint) forwards;
}

.success-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: pop 0.5s var(--ease-out-quint);
}

.success-text {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.order-number {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

#payment-instructions {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: var(--bg-card);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.4s var(--ease-out-quint);
    box-shadow: var(--shadow);
    min-width: 250px;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--accent);
}

.toast.info {
    border-color: var(--primary);
}

.toast-icon {
    font-size: 1.5em;
}

.toast-message {
    flex: 1;
    font-size: 0.9em;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dashboard-section {
    padding: 20px 0;
}

/* Enhanced Dashboard Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    animation: slideDown 0.6s var(--ease-out-quint);
}

.dashboard-main-title {
    font-size: 2em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 300;
}

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

.stat-card-large {
    background: linear-gradient(135deg, var(--bg-glass), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.4s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    animation: fadeIn-stagger 0.6s var(--ease-out-quint) forwards;
    animation-play-state: running;
}

.stat-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out-quint);
}

.stat-card-large:hover::before {
    transform: scaleX(1);
}

.stat-card-large:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
    border-color: rgba(255, 215, 0, 0.4);
}

.stat-revenue {
    animation-delay: 0.1s;
}

.stat-orders {
    animation-delay: 0.2s;
}

.stat-customers {
    animation-delay: 0.3s;
}

.stat-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    transition: all 0.4s var(--ease-out-cubic);
}

.stat-card-large:hover .stat-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.stat-icon {
    font-size: 2.5em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-info {
    flex: 1;
    text-align: center;
    width: 100%;
}

.stat-value {
    font-size: 2em;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.stat-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.chart-container {
    background: linear-gradient(135deg, var(--bg-glass), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.7s var(--ease-out-quint);
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
    border-color: rgba(255, 215, 0, 0.3);
}

.chart-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
}

.chart-header {
    margin-bottom: 20px;
    text-align: center;
}

.chart-title {
    color: var(--primary);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 5px;
}

.chart-subtitle {
    color: var(--text-secondary);
    font-size: 0.85em;
    font-weight: 300;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--bg-glass), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    transition: all 0.4s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    animation: fadeIn-stagger 0.6s var(--ease-out-quint) forwards;
    animation-play-state: running;
}

.card-customers {
    animation-delay: 0.1s;
}

.card-items {
    animation-delay: 0.2s;
}

.card-activity {
    animation-delay: 0.3s;
}

.card-status {
    animation-delay: 0.4s;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-quint);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--primary-glow);
    border-color: rgba(255, 215, 0, 0.3);
}

.card-header {
    padding: 20px 20px 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-title {
    color: var(--text-primary);
    font-size: 1.05em;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.card-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.card-content::-webkit-scrollbar {
    width: 6px;
}

.card-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.card-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Dashboard Empty State */
.dashboard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
}

.empty-state-icon {
    font-size: 5em;
    margin-bottom: 20px;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.empty-state-title {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 1.1em;
    max-width: 400px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.empty-state-graphic {
    position: relative;
    width: 100px;
    height: 100px;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: pulse-ring-animation 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes pulse-ring-animation {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-card {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Customer and Activity Lists */
.customer-item,
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.customer-item:last-child,
.activity-item:last-child {
    border-bottom: none;
}

.customer-info,
.activity-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-tier {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
}

.activity-time {
    font-size: 0.8em;
    color: var(--text-secondary);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: var(--warning);
}

.status-fulfilled {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.status-cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

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

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

.popular-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popular-item-count {
    font-weight: 600;
    color: var(--primary);
}

.tracking-section {
    display: none;
    padding: 20px;
}

.tracking-section.active {
    display: block;
}

.order-card {
    background: var(--bg-glass);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-id {
    font-weight: 600;
    color: var(--primary);
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.order-status.pending {
    background: rgba(255, 165, 0, 0.2);
    color: var(--warning);
}

.order-status.fulfilled {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.order-status.cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

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

.order-details ul {
    list-style-type: none;
    padding-left: 10px;
    margin-top: 5px;
}

.order-details li {
    font-size: 0.95em;
    color: var(--text-primary);
    padding: 2px 0;
}

.order-details strong {
    color: var(--text-primary);
}

.order-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.order-meta-item {
    font-size: 0.85em;
}

.admin-section {
    display: none;
    padding: 0;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

.admin-section.active {
    display: block;
}

.admin-section::-webkit-scrollbar {
    width: 8px;
}

.admin-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.admin-section::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

.admin-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.admin-content {
    padding: 20px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin: 20px;
    margin-bottom: 0;
    background: var(--bg-glass);
    padding: 6px;
    border-radius: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.admin-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-cubic);
    position: relative;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.admin-order-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

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

.inventory-search-container {
    position: relative;
    margin-bottom: 20px;
}

.inventory-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95em;
    transition: all 0.3s var(--ease-out-cubic);
    backdrop-filter: blur(5px);
}

.inventory-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 15px var(--primary-glow), 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.inventory-search-container .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1em;
}

.inventory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    background: var(--bg-glass);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s var(--ease-out-cubic);
}

.inventory-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.inventory-item.hidden {
    display: none;
}

.inventory-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.inventory-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.stock-input {
    width: 60px;
    padding: 5px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    text-align: center;
}

.promo-card {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-code-badge {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.promo-value {
    color: var(--text-secondary);
}

.add-promo-form {
    background: var(--bg-glass);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

#upsell-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.upsell-card {
    background: var(--bg-glass);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upsell-add-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.1em;
    cursor: pointer;
}

.upsell-add-btn:disabled {
    background: var(--success);
}

/* Redeem Points Section */
.redeem-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: rgba(255, 215, 0, 0.3);
    }

    50% {
        border-color: rgba(255, 215, 0, 0.6);
    }
}

.redeem-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 600;
}

.btn-primary.small,
.btn-secondary.small {
    padding: 8px 16px;
    font-size: 0.9em;
    width: auto;
}

/* Profile Dashboard Styles */
.profile-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: 15px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: 0 5px 20px var(--primary-glow);
    animation: float 3s ease-in-out infinite;
}

.profile-avatar.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.profile-avatar.silver {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.profile-avatar.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.profile-avatar.platinum {
    background: linear-gradient(135deg, #E5E4E2, #B0B0B0);
}

.tier-icon-large {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.profile-pet-avatar {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    animation: gentle-bounce 2s ease-in-out infinite;
}

.tier-icon-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 4px;
}

.tier-icon-inline {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 2px;
}

.coin-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
    animation: coin-spin 3s ease-in-out infinite;
}

.coin-inline {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 2px;
}

@keyframes coin-spin {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.profile-info {
    flex: 1;
}

.profile-username {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-primary);
}

.profile-tier {
    color: var(--primary);
    font-size: 1.1em;
    margin-top: 5px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: var(--bg-glass);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out-cubic);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-box .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

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

/* Daily Reward Section in Profile */
.daily-reward-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.daily-reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1em;
}

.daily-reward-amount {
    background: rgba(255, 215, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--primary);
}

#daily-reward-status {
    text-align: center;
}

.btn-claim-reward {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-claim-reward:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6);
}

.btn-claim-reward:active {
    transform: translateY(0);
}

.daily-reward-claimed {
    padding: 12px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    color: #4CAF50;
    font-weight: 600;
}

.daily-reward-weekend {
    padding: 12px;
    background: rgba(158, 158, 158, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.daily-reward-claiming {
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 600;
}

.tier-progress-section {
    background: var(--bg-glass);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.tier-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.tier-progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.tier-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    transition: width 1s var(--ease-out-quint);
    box-shadow: 0 0 15px var(--primary-glow);
    animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.max-tier-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
    animation: celebrate 2s ease-in-out infinite;
}

@keyframes celebrate {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-actions button {
    flex: 1;
}

/* Info Section */
.info-section {
    text-align: center;
    margin-bottom: 20px;
}

.info-btn {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    font-size: 0.9em;
    font-weight: 600;
}

.info-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.info-panel {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s var(--ease-out-quint);
    text-align: left;
}

.info-panel h4 {
    color: var(--primary);
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1em;
}

.info-panel h4:first-child {
    margin-top: 0;
}

.info-panel p {
    margin: 5px 0;
    padding-left: 10px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Utilities */
.loading,
.error {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.profile-achievements h3 {
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}

#achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.achievement-badge {
    background: var(--bg-glass);
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s var(--ease-out-cubic);
}

.achievement-badge.unlocked {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    cursor: pointer;
}

.achievement-badge.unlocked:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.achievement-badge.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.achievement-badge-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.achievement-badge-name {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.achievement-badge-desc {
    font-size: 0.75em;
    color: var(--text-secondary);
}

/* Achievement Toast Notification */
.achievement-toast {
    position: fixed;
    top: 100px;
    right: -400px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3500;
    min-width: 300px;
    transition: right 0.5s var(--ease-out-quint);
}

.achievement-toast.show {
    right: 20px;
}

.achievement-icon {
    font-size: 3em;
    animation: bounce-in 0.5s var(--ease-out-cubic);
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.achievement-name {
    font-size: 1.2em;
    font-weight: 700;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 5000;
    animation: confetti-fall 3s linear;
    pointer-events: none;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Success Points Celebration */
.points-celebration {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border: 2px solid var(--success);
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
    font-size: 1.1em;
    animation: pulse-success 1s ease-in-out 3;
}

@keyframes pulse-success {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes pop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.empty-cart-icon {
    width: 60px;
    height: 60px;
}

.admin-badge {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 999;
    transition: all 0.3s var(--ease-out-cubic);
}

.admin-badge:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-overview {
        grid-template-columns: 1fr;
    }

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

    .dashboard-main-title {
        font-size: 1.5em;
    }

    .stat-card-large {
        flex-direction: row;
        text-align: left;
    }

    .stat-info {
        text-align: left;
    }

    .stat-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .stat-icon {
        font-size: 2em;
    }

    .stat-value {
        font-size: 1.5em;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 15px;
    }

    .logo {
        font-size: 2em;
    }

    .products-grid {
        gap: 10px;
    }

    .product-card {
        padding: 12px;
    }

    .product-image {
        width: 70px;
        height: 70px;
    }

    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
    }

    #achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-overview {
        gap: 15px;
    }

    .stat-card-large {
        padding: 20px 15px;
    }

    .card-header {
        padding: 15px;
    }

    .card-badge {
        font-size: 0.65em;
        padding: 3px 8px;
    }

    .inventory-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .inventory-header h3 {
        margin-bottom: 10px;
    }
}

/* Egg Modal Styles */
#egg-modal .modal-content.egg-modal-content {
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}

.egg-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.egg-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.egg-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.egg-tab:hover {
    color: var(--primary);
}

/* Tab icons */
.tab-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.egg-points-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.egg-tab-content {
    display: none;
}

.egg-tab-content.active {
    display: block;
}

/* Shop Tab */
.egg-shop-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.egg-shop-info h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.egg-shop-info p {
    color: var(--text-secondary);
    font-size: 0.95em;
}



.theme-dates {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.egg-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.egg-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.egg-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
    z-index: -1;
}

.egg-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.2), 0 0 40px rgba(255, 215, 0, 0.1);
}

.egg-card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.egg-card-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.egg-card:hover .egg-card-image {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.4));
}

.egg-card h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.egg-card-description {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.egg-card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.egg-buy-btn {
    width: 100%;
}

/* Drop Rates Tooltip */
.egg-drop-info {
    margin-bottom: 10px;
}

.drop-rates-btn {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.15));
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.drop-rates-btn::before {
    content: '✨';
    margin-right: 6px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.drop-rates-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.3));
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.drop-rates-btn .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(35, 35, 35, 0.98));
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 15px;
    min-width: 240px;
    max-width: 300px;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.2);
    margin-bottom: 10px;
}

.drop-rates-btn .tooltip-content::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary);
}

.drop-rates-btn:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.drop-rates-tooltip {
    text-align: left;
}

.rarity-group {
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.rarity-group:last-child {
    margin-bottom: 0;
}

.rarity-header {
    font-size: 0.85em;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rarity-group.common .rarity-header {
    color: #b0b0b0;
}

.rarity-group.rare .rarity-header {
    color: #3498db;
}

.rarity-group.epic .rarity-header {
    color: #9b59b6;
}

.rarity-group.legendary .rarity-header {
    color: #f39c12;
}

.pet-drop-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.8em;
}

.pet-name {
    color: var(--text-primary);
    font-weight: 500;
}

.pet-percentage {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9em;
}

.shiny-chance {
    color: #FFD700;
    font-weight: 600;
    font-size: 0.8em;
    margin-left: 8px;
}

/* Collection Type Tabs */
.collection-type-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    padding: 0 20px;
}

.collection-type-tab {
    background: var(--card-bg);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.collection-type-tab:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    color: var(--text-primary);
}

.collection-type-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.collection-type-tab.active:hover {
    background: var(--primary-hover);
}

/* Shiny Badge */
.shiny-badge {
    color: #FFD700;
    font-size: 1.2em;
    margin-left: 8px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Collection Loading State */
.collection-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.collection-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.rarity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.rarity-badge.common {
    background: rgba(128, 128, 128, 0.2);
    color: #a0a0a0;
}

.rarity-badge.rare {
    background: rgba(64, 156, 255, 0.2);
    color: #4c9fff;
}

.rarity-badge.epic {
    background: rgba(138, 43, 226, 0.2);
    color: #a855f7;
}

.rarity-badge.legendary {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* Collection Tab */
.collection-progress {
    text-align: center;
    margin-bottom: 20px;
}

.collection-progress span {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.collection-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-glass);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.collection-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.5s ease;
    width: 0%;
}

.pet-collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pet-card {
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: translateY(0);
    will-change: transform, box-shadow;
    backdrop-filter: blur(10px);
}

.pet-card.locked {
    opacity: 0.4;
}

.pet-card:not(.locked):hover {
    border-color: var(--primary);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.pet-card-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pet-card.locked .pet-card-image {
    filter: brightness(0) opacity(0.3);
}

.pet-card-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 0.95em;
}

.pet-card-quantity {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: var(--bg-primary);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: 700;
}

.pet-card-rarity {
    font-size: 0.8em;
    margin-top: 4px;
}

/* Egg Opening Modal */
#egg-opening-modal .modal-content.egg-opening-content {
    max-width: 600px;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Opening Stage - Video */
.egg-opening-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    width: 100%;
}

.egg-hatch-video {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* White Flash Transition Effect */
.white-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    opacity: 0;
    z-index: 10000;
    transition: opacity 0.3s ease-out;
}

.white-flash.active {
    opacity: 1;
    animation: flash-fade 0.8s ease-out forwards;
}

@keyframes flash-fade {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Keep old styles for fallback */
.egg-shake-container {
    position: relative;
}

.egg-opening-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.3));
}

.egg-opening-text {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.opening-dots {
    display: inline-block;
    min-width: 140px;
    text-align: left;
}

/* Result Stage */
.egg-result {
    position: relative;
    min-height: 400px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.rarity-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: 15px;
}

.rarity-flash.flash {
    animation: flashEffect 0.8s ease-out;
}

@keyframes flashEffect {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
    }
}

.rarity-flash.common {
    background: radial-gradient(circle, rgba(176, 176, 176, 0.4) 0%, transparent 70%);
}

.rarity-flash.rare {
    background: radial-gradient(circle, rgba(52, 152, 219, 0.5) 0%, transparent 70%);
}

.rarity-flash.epic {
    background: radial-gradient(circle, rgba(155, 89, 182, 0.6) 0%, transparent 70%);
}

.rarity-flash.legendary {
    background: radial-gradient(circle, rgba(243, 156, 18, 0.8) 0%, transparent 70%);
}

.result-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.egg-result-badge {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: badgeBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.egg-result-badge.new-badge {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.egg-result-badge.duplicate-badge {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    color: white;
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.3);
}

@keyframes badgeBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Pet Reveal Container */
.pet-reveal-container {
    position: relative;
    margin: 20px 0;
}

.pet-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

.pet-glow-ring.common {
    background: radial-gradient(circle, rgba(176, 176, 176, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 40px rgba(176, 176, 176, 0.5);
}

.pet-glow-ring.rare {
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(52, 152, 219, 0.6);
}

.pet-glow-ring.epic {
    background: radial-gradient(circle, rgba(155, 89, 182, 0.4) 0%, transparent 70%);
    box-shadow: 0 0 60px rgba(155, 89, 182, 0.7);
}

.pet-glow-ring.legendary {
    background: radial-gradient(circle, rgba(243, 156, 18, 0.5) 0%, transparent 70%);
    box-shadow: 0 0 80px rgba(243, 156, 18, 0.9);
}

@keyframes glowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
    }
}

.egg-result-pet {
    width: 180px;
    height: 180px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
}

.egg-result-pet.reveal-bounce {
    animation: revealBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes revealBounce {
    0% {
        transform: scale(0) rotate(-360deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.reveal-name {
    font-size: 2em;
    font-weight: 800;
    color: var(--text-primary);
    margin: 15px 0 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.reveal-name.slide-in {
    animation: slideInFromLeft 0.6s ease-out 0.2s both;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.reveal-description {
    color: var(--text-secondary);
    margin: 10px 0 25px;
    font-size: 1em;
    max-width: 350px;
}

.reveal-description.fade-in-up {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.continue-btn {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.continue-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.continue-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.continue-btn:hover .continue-arrow {
    transform: translateX(5px);
}

@keyframes petAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.egg-result h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.egg-result-rarity {
    display: inline-block;
    margin-bottom: 15px;
}

.egg-result p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #egg-modal .modal-content.egg-modal-content {
        max-width: 95vw;
    }

    .pet-collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .egg-card-image {
        width: 100px;
        height: 100px;
    }

    .egg-opening-image {
        width: 120px;
        height: 120px;
    }

    .egg-result-pet {
        width: 120px;
        height: 120px;
    }
}

/* Admin Pet & Egg Management */
.admin-pet-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.admin-pet-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.admin-pet-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-secondary);
    padding: 10px;
}

.admin-pet-info {
    flex: 1;
}

.admin-pet-info h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-pet-info p {
    color: var(--text-secondary);
    margin: 4px 0;
    font-size: 0.9em;
}

.pet-description {
    font-style: italic;
    color: var(--text-muted);
}

.admin-pet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-pet-actions button {
    min-width: 80px;
}

.admin-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.1em;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .admin-pet-card {
        flex-direction: column;
        text-align: center;
    }

    .admin-pet-actions {
        flex-direction: row;
        width: 100%;
    }

    .admin-pet-actions button {
        flex: 1;
    }
}

/* Pet Profile Picture Styles */
.profile-pet-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Podium Pet Icons */
.podium-pet-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    margin-top: 4px;
    animation: gentle-bounce 2s ease-in-out infinite;
}

/* Pet Collection Selection Styles */
.pet-card.selected {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.pet-card-selected-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
    animation: pop-in 0.3s var(--ease-out-quint);
}

@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pet-card-hover-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.pet-card:hover .pet-card-hover-hint {
    opacity: 1;
    bottom: -35px;
}

/* Pet card entrance animation */
.pet-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collection Header Styles */
.collection-header {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.collection-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.refresh-collection-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.refresh-collection-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.collection-progress {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: var(--text-secondary);
}

.collection-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.collection-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 4px;
    transition: width 0.6s var(--ease-out-quint);
}

.collection-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--text-muted);
    padding: 8px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.collection-tip svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* Egg Shake Animation */
/* Enhanced Egg Opening Animations */
.gentle-shake {
    animation: gentle-shake 1s ease-in-out;
}

.intense-shake {
    animation: intense-shake 0.5s ease-in-out;
}

.shake {
    animation: shake-eggs 2s ease-in-out;
}

@keyframes gentle-shake {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-4px) rotate(-2deg);
    }

    75% {
        transform: translateX(4px) rotate(2deg);
    }
}

@keyframes intense-shake {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-12px) rotate(-5deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(12px) rotate(5deg);
    }
}

@keyframes shake-eggs {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-8px) rotate(-3deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(8px) rotate(3deg);
    }
}

/* Opening Sparkles Effect */
.opening-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.opening-sparkles::before,
.opening-sparkles::after {
    content: '✨';
    position: absolute;
    font-size: 2em;
    animation: sparkle-float 2s ease-in-out infinite;
}

.opening-sparkles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.opening-sparkles::after {
    top: 60%;
    right: 15%;
    animation-delay: 0.5s;
}

@keyframes sparkle-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Enhanced Sparkle Particles */
.sparkle-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-burst 2s ease-out forwards;
}

@keyframes sparkle-burst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Reveal Animations */
.legendary-glow {
    animation: legendary-pulse 2s ease-in-out infinite;
}

.epic-glow {
    animation: epic-pulse 1.5s ease-in-out infinite;
}

.rare-glow {
    animation: rare-pulse 1s ease-in-out infinite;
}

.shiny-sparkle {
    animation: shiny-sparkle 1s ease-in-out infinite;
}

@keyframes legendary-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 30px #FFD700) brightness(1.3);
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 40px #FFD700) brightness(1.5);
        transform: scale(1.05);
    }
}

@keyframes epic-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px #9C27B0) brightness(1.2);
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 30px #9C27B0) brightness(1.4);
        transform: scale(1.03);
    }
}

@keyframes rare-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 15px #2196F3) brightness(1.1);
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 25px #2196F3) brightness(1.3);
        transform: scale(1.02);
    }
}

@keyframes shiny-sparkle {

    0%,
    100% {
        filter: drop-shadow(0 0 10px #FF69B4) brightness(1.1);
    }

    50% {
        filter: drop-shadow(0 0 20px #FF69B4) brightness(1.3);
    }
}

/* Particle Explosion Effects */
.reveal-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-explosion 2s ease-out forwards;
}

@keyframes particle-explosion {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 1;
    }

    100% {
        transform: scale(1) translate(calc(var(--random-x, 0) * 200px - 100px), calc(var(--random-y, 0) * 200px - 100px));
        opacity: 0;
    }
}

/* Shiny Tracker Box */
.shiny-tracker-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.shiny-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 8px;
}

.shiny-tracker-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shiny-chance-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
}

.shiny-tracker-details {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.tracker-row {
    margin-bottom: 4px;
}

.community-progress-bar {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    border: none;
}

.community-text {
    display: block;
    color: #ccc;
}

.highlight-text {
    color: #fff;
    font-weight: 600;
}

/* 2X Boosted Items Styles - Black & Gold Theme */
.boosted-deal-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #ffd700;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.boosted-deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    animation: gold-glow 2s ease-in-out infinite alternate;
}

@keyframes gold-glow {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

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

.boosted-header h3 {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.boosted-discount {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    animation: gold-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

@keyframes gold-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    }
}

.boosted-description {
    color: #cccccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.boosted-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.boosted-item {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.boosted-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.boosted-item-image {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ffd700;
}

.boosted-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boosted-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.boosted-item-info {
    text-align: center;
}

.boosted-item-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.boosted-item-price {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.boosted-item-points {
    color: #90EE90;
    font-size: 0.8rem;
    font-weight: 600;
}

.boosted-footer {
    border-top: 1px solid #444;
    padding-top: 16px;
    text-align: center;
}

.boosted-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #cccccc;
    font-size: 0.85rem;
}

.timer-icon {
    animation: timer-tick 1s ease-in-out infinite;
}

@keyframes timer-tick {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

/* Responsive adjustments for boosted items */
@media (max-width: 768px) {
    .boosted-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .boosted-item {
        padding: 12px;
    }

    .boosted-item-image {
        width: 50px;
        height: 50px;
    }

    .boosted-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Premium Recharge Buttons Styling */
.btn-recharge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-recharge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-recharge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-recharge:hover::before {
    left: 100%;
}

.btn-recharge:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.recharge-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.recharge-option {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #ffd700;
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.recharge-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recharge-option:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #ffed4e;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.recharge-option:hover::before {
    opacity: 1;
}

.recharge-option:active {
    transform: translateY(-2px) scale(1);
}

.recharge-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.recharge-points {
    font-size: 0.9rem;
    color: #90EE90;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Add a pulsing glow animation for the recharge amount */
@keyframes recharge-glow {

    0%,
    100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.3);
    }

    50% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

.recharge-option:hover .recharge-amount {
    animation: recharge-glow 2s ease-in-out infinite;
}

/* Add shimmer effect to preset buttons */
@keyframes recharge-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.recharge-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.1),
            transparent);
    background-size: 200% 100%;
    animation: recharge-shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Responsive design for recharge modal */
@media (max-width: 480px) {
    .recharge-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .recharge-option {
        padding: 20px 12px;
    }

    .recharge-amount {
        font-size: 1.5rem;
    }
}

/* ===== EVOLUTION SYSTEM STYLES ===== */

/* Materials Tab */
.materials-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: 12px;
}

.materials-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.materials-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.materials-display {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.material-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.material-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.material-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.material-info {
    flex-grow: 1;
}

.material-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.material-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.material-quantity {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    text-align: right;
}

.materials-guide {
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.materials-guide h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.guide-section {
    margin-bottom: 20px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section p {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.guide-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-section li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

/* Pet Card Actions */
.pet-card {
    position: relative;
    overflow: visible;
}

.pet-card-stage {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pet-card-image-container {
    cursor: pointer;
    position: relative;
}

.pet-card-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.pet-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: calc(50% - 4px);
}

.sell-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.sell-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.evolve-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.evolve-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.pet-max-evo {
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    margin-top: 12px;
    width: 100%;
}

/* Rarity Badges in Guide */
.guide-section .rarity-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 4px;
}

/* Responsive Design for Materials */
@media (max-width: 768px) {
    .materials-display {
        gap: 12px;
    }

    .material-card {
        padding: 12px;
    }

    .material-icon {
        width: 40px;
        height: 40px;
    }

    .material-quantity {
        font-size: 1.25rem;
    }
}

/* Audio Controls */
.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 8px 12px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.audio-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.audio-btn.muted {
    opacity: 0.5;
}

/* Daily Reward Popup */
.daily-reward-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.daily-reward-popup {
    background: var(--bg-glass);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.5);
    animation: popIn 0.5s var(--ease-out-cubic);
}

.daily-reward-popup-icon {
    font-size: 4em;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

.daily-reward-popup-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.daily-reward-popup-message {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Social Users Grid */
.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-viewer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.social-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.social-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.social-tab:hover {
    color: var(--text-primary);
}

.egg-openings-list {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.egg-opening-item {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.egg-opening-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.egg-opening-item.shiny-opening {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: var(--primary);
}

.opening-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.tier-icon-tiny {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.opening-username {
    font-weight: 600;
    color: var(--text-primary);
}

.opening-time {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.85em;
}

.opening-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.opening-egg-info {
    flex-shrink: 0;
}

.egg-label {
    background: rgba(255, 215, 0, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.opening-arrow {
    font-size: 1.5em;
    color: var(--primary);
    font-weight: 700;
}

.opening-pet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.opening-pet-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.opening-pet-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.opening-pet-name {
    font-weight: 600;
    font-size: 1.1em;
}

.new-pet-badge {
    display: inline-block;
    background: var(--success);
    color: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 8px;
}

.social-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.social-user-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.social-user-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

.social-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.social-user-name {
    flex: 1;
    font-weight: 600;
    font-size: 1.1em;
}

.social-user-count {
    font-size: 0.85em;
    color: var(--text-secondary);
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.social-user-pets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.social-pet-mini {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.social-pet-mini:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.social-pet-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.social-pet-name {
    font-size: 0.8em;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
}

/* Expanded showcase for 4-6 pets */
.social-user-pets.showcase-expanded {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.social-user-pets.showcase-expanded .social-pet-mini {
    padding: 8px;
}

.social-user-pets.showcase-expanded .social-pet-image {
    width: 45px;
    height: 45px;
}

.social-user-pets.showcase-expanded .social-pet-name {
    font-size: 0.7em;
}

/* Current user card highlight */
.social-user-card.current-user-card {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), var(--bg-glass));
}

/* Edit showcase button */
.edit-showcase-btn {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.edit-showcase-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Custom showcase badge */
.custom-showcase-badge {
    font-size: 0.8em;
    vertical-align: middle;
}

/* Social user avatar container for stacking */
.social-user-avatar-container {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.social-user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.social-user-tier-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-user-info {
    flex: 1;
    overflow: hidden;
}

/* ==============================================
   SHOWCASE MANAGER MODAL
   ============================================== */

.showcase-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.showcase-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.showcase-info p {
    margin: 0;
}

.showcase-selected-section {
    margin-bottom: 20px;
}

.showcase-selected-section h3,
.showcase-available-section h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

#showcase-count {
    color: var(--primary);
    font-weight: 400;
}

/* Selected showcase grid */
.selected-showcase-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    min-height: 100px;
    justify-content: center;
    align-items: center;
}

.showcase-empty-slot {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    width: 100%;
}

.showcase-slot {
    position: relative;
    width: 100px;
    background: var(--bg-glass);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: grab;
    transition: all 0.3s ease;
}

.showcase-slot:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.showcase-slot:active {
    cursor: grabbing;
}

.showcase-slot-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
}

.showcase-slot img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.showcase-slot-name {
    font-size: 0.75em;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.remove-showcase-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--error);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.remove-showcase-btn:hover {
    transform: scale(1.2);
}

.showcase-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.showcase-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* Available pets grid */
.available-pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.available-pet-card {
    position: relative;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.available-pet-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.available-pet-card.selected {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.15);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

.available-pet-card img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.available-pet-card .pet-card-name {
    font-size: 0.75em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.shiny-badge-mini {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.8em;
}

.selected-checkmark {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.no-pets-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .showcase-modal {
        max-width: 100%;
        margin: 10px;
    }

    .showcase-slot {
        width: 80px;
    }

    .showcase-slot img {
        width: 45px;
        height: 45px;
    }

    .available-pets-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    }

    .available-pet-card img {
        width: 45px;
        height: 45px;
    }
}

/* ==============================================
   BATTLE PET SYSTEM - PVP COMPETITION
   ============================================== */

/* Battle PC Tab Content */
.battle-pc-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 69, 0, 0.1));
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.battle-pc-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    color: var(--primary);
}

.battle-pc-header p {
    margin: 0;
    color: var(--text-secondary);
}

/* Battle Pets Grid */
.battle-pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px;
}

.battle-pet-card {
    position: relative;
    background: var(--bg-glass);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-pet-card.shiny {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.battle-pet-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.shiny-sparkle {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.5em;
    animation: sparkle 2s infinite;
}

.battle-pet-image-container {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.battle-pet-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    image-rendering: pixelated;
}

.battle-pet-name {
    text-align: center;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 4px;
}

.battle-pet-species {
    text-align: center;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.battle-pet-stats-mini {
    display: flex;
    justify-content: space-around;
    gap: 4px;
    font-size: 0.85em;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.grade-icon-tiny {
    width: 16px;
    height: 16px;
}

.grade-icon-small {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    vertical-align: middle;
}

.grade-icon-medium {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

/* Awaken Pet Modal */
.awaken-confirmation {
    padding: 20px;
}

.awaken-pet-preview {
    text-align: center;
    margin-bottom: 24px;
}

.awaken-pet-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    image-rendering: pixelated;
}

.awaken-info {
    background: var(--bg-glass);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.awaken-info h4 {
    margin-top: 0;
    color: var(--primary);
}

.awaken-info ul {
    padding-left: 20px;
}

.awaken-info li {
    margin-bottom: 8px;
}

.grade-info {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.grade-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.grade-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.awaken-cost {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary);
}

.material-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.material-icon {
    width: 32px;
    height: 32px;
}

.material-status {
    margin-top: 8px;
    font-size: 0.95em;
}

.awaken-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.awaken-actions button {
    flex: 1;
}

/* Battle Pet Details Modal */
.battle-pet-details-container {
    padding: 20px;
}

.battle-pet-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: 12px;
}

.battle-pet-image-large {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    flex-shrink: 0;
}

.battle-pet-image-large img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    image-rendering: pixelated;
}

.shiny-badge-large {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
}

.battle-pet-info {
    flex: 1;
}

.battle-pet-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.8em;
    color: var(--primary);
}

.species-name {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin: 4px 0;
}

.awakened-date,
.reroll-count {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 4px 0;
}

/* Battle Stats Display */
.battle-pet-stats {
    background: var(--bg-glass);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.battle-pet-stats h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--primary);
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
}

.stat-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    min-width: 120px;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

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

.stat-arrow {
    color: var(--primary);
}

.final-stat {
    font-size: 1.2em;
    font-weight: 700;
    color: #4CAF50;
}

.stat-buff {
    font-size: 0.9em;
    color: var(--primary);
}

.reroll-stat-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.reroll-stat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
}

/* Reroll Actions Section */
.reroll-actions {
    background: var(--bg-glass);
    padding: 20px;
    border-radius: 12px;
}

.reroll-actions h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--primary);
}

.reroll-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.reroll-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.reroll-chip-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.reroll-option-info {
    flex: 1;
}

.reroll-option-info h5 {
    margin: 0 0 4px 0;
    color: var(--primary);
}

.reroll-option-info p {
    margin: 0;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.chip-count {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9em;
}

/* Awaken Button on Pet Card */
.awaken-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

.awaken-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5) !important;
}

/* Empty State for Battle PC */
.no-battle-pets {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px;
}

.no-battle-pets .empty-state {
    text-align: center;
    max-width: 400px;
}

.no-battle-pets h3 {
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.no-battle-pets p {
    color: var(--text-secondary);
    margin: 8px 0;
}

/* Responsive Design */
/* ==============================================
   EXPEDITIONS SYSTEM
   ============================================== */

.expeditions-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(3, 169, 244, 0.1));
    border-radius: 12px;
    border: 2px solid #2196F3;
}

.expeditions-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    color: #2196F3;
}

.expeditions-header p {
    margin: 0;
    color: var(--text-secondary);
}

/* Active Expeditions */
.active-expeditions-section {
    margin-bottom: 30px;
}

.active-expeditions-section h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.active-expeditions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.no-active-expeditions {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.active-expedition-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.active-expedition-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.active-expedition-card.common {
    border-left: 4px solid #a0a0a0;
}

.active-expedition-card.rare {
    border-left: 4px solid #3498db;
}

.active-expedition-card.epic {
    border-left: 4px solid #9b59b6;
}

.exp-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.exp-tier-badge {
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    align-self: flex-start;
}

.exp-tier-badge.common {
    background: #a0a0a0;
    color: #000;
}

.exp-tier-badge.rare {
    background: #3498db;
    color: #fff;
}

.exp-tier-badge.epic {
    background: #9b59b6;
    color: #fff;
}

.exp-timer {
    font-family: monospace;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
}

.exp-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.exp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 1s linear;
}

.exp-actions {
    display: flex;
    gap: 8px;
}

.speedup-btn {
    font-size: 0.85em;
    padding: 6px 12px;
}

.claim-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    animation: pulse 2s infinite;
}

/* Available Missions */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mission-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

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

.mission-card.common {
    border-top: 4px solid #a0a0a0;
}

.mission-card.rare {
    border-top: 4px solid #3498db;
}

.mission-card.epic {
    border-top: 4px solid #9b59b6;
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-tier {
    font-weight: 700;
    font-size: 1.1em;
}

.mission-card.common .mission-tier {
    color: #a0a0a0;
}

.mission-card.rare .mission-tier {
    color: #3498db;
}

.mission-card.epic .mission-tier {
    color: #9b59b6;
}

.mission-time {
    font-size: 0.9em;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
}

.mission-rewards {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.reward-item img {
    width: 24px;
    height: 24px;
}

/* Expedition Modal */
.expedition-info-box {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.warning-text {
    color: #ff6b6b;
    font-weight: 600;
    margin-top: 8px;
    font-size: 0.9em;
}

.expedition-pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 20px;
}

.expedition-pet-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.expedition-pet-card:hover {
    opacity: 1;
    transform: scale(1.05);
}

.expedition-pet-card.selected {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

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

.expedition-actions button {
    flex: 1;
}

@media (max-width: 600px) {
    .active-expedition-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .exp-actions {
        justify-content: flex-end;
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* ==============================================
   RAID SYSTEM - WEEKLY BOSS BATTLES
   ============================================== */

.raid-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Raid Modal */
.raid-modal-content {
    max-width: 900px;
    max-height: 90vh;
}

.raid-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.raid-boss-info {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.25), rgba(255, 215, 0, 0.25));
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.raid-boss-display {
    display: flex;
    gap: 24px;
    align-items: center;
}

.boss-image-container {
    position: relative;
    flex-shrink: 0;
}

.boss-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.4));
    animation: bossPulse 3s ease-in-out infinite;
}

@keyframes bossPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.boss-label {
    text-align: center;
    font-weight: 700;
    margin-top: 8px;
    font-size: 1.1em;
}

.boss-stats-info {
    flex: 1;
}

.boss-stats-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.8em;
    color: var(--primary);
}

.boss-typing {
    margin: 8px 0;
}

.type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary);
}

.boss-health-bar {
    margin: 16px 0;
}

.health-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.health-bar-container {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.health-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f44336, #ff9800, #ffd700);
    transition: width 0.5s ease;
}

.health-percent {
    text-align: center;
    margin-top: 4px;
    font-weight: 600;
    color: var(--primary);
}

.boss-week-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-week-info p {
    margin: 4px 0;
    font-size: 0.9em;
}

/* Raid Tabs */
.raid-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.raid-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.raid-tab:hover {
    color: var(--primary);
}

.raid-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.raid-tab-content {
    display: none;
}

.raid-tab-content.active {
    display: block;
}

/* Team Selection */
.raid-team-selection h3 {
    margin-bottom: 16px;
}

.raid-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.raid-pet-card {
    background: var(--bg-glass);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.raid-pet-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.raid-pet-card.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.raid-pet-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 8px;
}

.raid-pet-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.selected-check {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.raid-pet-name {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.raid-pet-stats {
    font-size: 0.75em;
    color: var(--text-secondary);
}

.raid-selected-team {
    background: var(--bg-glass);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.raid-selected-team h4 {
    margin: 0 0 12px 0;
}

.selected-pets-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-pet-badge {
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    font-size: 0.85em;
}

.raid-battle-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.raid-ticket-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ticket-icon {
    width: 24px;
    height: 24px;
}

/* Battle Results */
.raid-battle-result {
    background: var(--bg-glass);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.battle-result-header {
    text-align: center;
    margin-bottom: 20px;
}

.damage-dealt {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
}

.damage-label {
    font-size: 1.1em;
}

.damage-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary);
}

.battle-log-container {
    margin-top: 20px;
}

.battle-log-container h4 {
    margin-bottom: 12px;
}

.battle-log {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85em;
    line-height: 1.6;
}

.log-entry {
    padding: 4px 0;
}

.log-entry.player-entry {
    color: #4CAF50;
}

.log-entry.boss-entry {
    color: #f44336;
}

.log-entry.system-entry {
    color: var(--text-secondary);
    font-style: italic;
}

/* Leaderboard */
.raid-leaderboard h3 {
    margin-bottom: 16px;
    text-align: center;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-entry.top-three {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 69, 0, 0.1));
}

.leaderboard-rank {
    font-weight: 700;
    font-size: 1.2em;
    min-width: 40px;
}

.leaderboard-name {
    flex: 1;
    font-weight: 600;
}

.leaderboard-damage {
    color: var(--primary);
    font-weight: 700;
}

.leaderboard-you {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary);
}

.no-leaderboard,
.no-pets-message {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Update Log Modal Styles */
.update-log-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.update-section {
    margin-bottom: 20px;
}

.update-section h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.update-date {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.update-category {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--card-background);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.update-category h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.update-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-category li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
}

.update-category li:last-child {
    border-bottom: none;
}

.update-footer {
    text-align: center;
    padding: 20px;
    background: var(--card-background);
    border-radius: 8px;
    margin-top: 20px;
}

.update-footer p {
    margin: 0;
    color: var(--text-secondary);
}

/* Update Log Button Icon */
.update-log-btn svg {
    width: 24px;
    height: 24px;
}

/* Battle Animation Styles */
#battle-animation-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

#battle-animation-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
}

#battle-animation-modal .modal-content,
#battle-animation-modal.active .modal-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    transform: none !important;
    max-height: 90vh;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto;
    animation: battleModalPop 0.4s var(--ease-out-quint);
}

@keyframes battleModalPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.battle-animation-content {
    max-width: 900px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
}

.battle-arena {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 400px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.battle-arena::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.battle-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.player-side {
    align-items: flex-start;
}

.boss-side {
    align-items: flex-end;
}

.battle-center {
    flex: 0.5;
    text-align: center;
    z-index: 1;
}

.battle-title {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    font-size: 1.5em;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.battle-status {
    color: var(--text-primary);
    font-size: 1em;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.battle-turn-info {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 10px;
}

/* Pet Container */
.battle-pets-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.battle-pet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.battle-pet.attacking {
    animation: attackJump 0.6s ease-out;
}

.battle-pet.damaged {
    animation: takeDamage 0.5s ease-out;
}

.battle-pet.fainted {
    opacity: 0.3;
    filter: grayscale(100%);
}

@keyframes attackJump {
    0% {
        transform: translateX(0) scale(1);
    }

    30% {
        transform: translateX(80px) scale(1.1);
    }

    50% {
        transform: translateX(80px) scale(1.1);
    }

    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes takeDamage {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.battle-pet-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.pet-health-container {
    width: 120px;
}

.health-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.health-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.health-bar-fill {
    height: 100%;
    transition: width 0.5s ease-out;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.health-bar-fill.low {
    background: linear-gradient(90deg, #ff9800, #ff5722);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.health-bar-fill.critical {
    background: linear-gradient(90deg, #f44336, #d32f2f);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* Boss Container */
.boss-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.boss-battle-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(255, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.boss-container.attacking .boss-battle-img {
    animation: bossAttack 0.6s ease-out;
}

.boss-container.damaged .boss-battle-img {
    animation: bossDamaged 0.5s ease-out;
}

@keyframes bossAttack {
    0% {
        transform: translateX(0) scale(1);
    }

    30% {
        transform: translateX(-80px) scale(1.15);
    }

    50% {
        transform: translateX(-80px) scale(1.15);
    }

    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes bossDamaged {

    0%,
    100% {
        transform: translateX(0);
        filter: drop-shadow(0 8px 16px rgba(255, 0, 0, 0.4));
    }

    50% {
        transform: translateX(-5px);
        filter: drop-shadow(0 8px 16px rgba(255, 0, 0, 1));
    }
}

.boss-container.super-effective-hit .boss-battle-img {
    animation: superEffectiveShake 0.8s ease-out;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) drop-shadow(0 0 50px rgba(255, 215, 0, 0.8));
}

@keyframes superEffectiveShake {

    0%,
    100% {
        transform: translateX(0) scale(1);
    }

    10% {
        transform: translateX(-10px) scale(1.05);
    }

    20% {
        transform: translateX(10px) scale(1.05);
    }

    30% {
        transform: translateX(-10px) scale(1.05);
    }

    40% {
        transform: translateX(10px) scale(1.05);
    }

    50% {
        transform: translateX(-5px) scale(1.05);
    }

    60% {
        transform: translateX(5px) scale(1.05);
    }

    70% {
        transform: translateX(-5px) scale(1.05);
    }

    80% {
        transform: translateX(5px) scale(1.05);
    }

    90% {
        transform: translateX(-2px) scale(1.02);
    }
}

.boss-health-container {
    width: 200px;
}

.boss-health {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
}

/* Battle Log Mini */
.battle-log-mini {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.battle-log-entry {
    padding: 6px 0;
    font-size: 0.9em;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideIn 0.3s ease-out;
}

.battle-log-entry:last-child {
    border-bottom: none;
}

.battle-log-entry.player-attack {
    color: #4CAF50;
}

.battle-log-entry.boss-attack {
    color: #f44336;
}

.battle-log-entry.critical {
    color: var(--primary);
    font-weight: bold;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skip-battle-btn {
    margin-top: 15px;
    width: 100%;
}

/* Damage Number Animation */
.damage-number {
    position: absolute;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 999;
    animation: floatUp 1s ease-out forwards;
}

.damage-number.player-damage {
    color: #4CAF50;
}

.damage-number.boss-damage {
    color: #f44336;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .raid-boss-display {
        flex-direction: column;
        text-align: center;
    }

    .raid-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .raid-battle-actions {
        flex-direction: column;
    }

    .update-log-content {
        max-height: 60vh;
    }

    /* Battle Animation Mobile */
    .battle-arena {
        flex-direction: column;
        min-height: 300px;
        padding: 15px;
    }

    .battle-arena::before {
        width: 100%;
        height: 2px;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(to right, transparent, var(--primary), transparent);
    }

    .battle-side {
        width: 100%;
    }

    .battle-center {
        order: -1;
        margin-bottom: 15px;
    }

    .battle-title {
        font-size: 1.2em;
    }

    .battle-pets-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .battle-pet-img {
        width: 60px;
        height: 60px;
    }

    .boss-battle-img {
        width: 100px;
        height: 100px;
    }

    .pet-health-container {
        width: 100px;
    }

    .boss-health-container {
        width: 150px;
    }

    @keyframes attackJump {
        0% {
            transform: translateY(0) scale(1);
        }

        30% {
            transform: translateY(-40px) scale(1.1);
        }

        50% {
            transform: translateY(-40px) scale(1.1);
        }

        100% {
            transform: translateY(0) scale(1);
        }
    }

    @keyframes bossAttack {
        0% {
            transform: translateY(0) scale(1);
        }

        30% {
            transform: translateY(40px) scale(1.15);
        }

        50% {
            transform: translateY(40px) scale(1.15);
        }

        100% {
            transform: translateY(0) scale(1);
        }
    }
}

/* Marketplace Styles */
.marketplace-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10px;
}

.marketplace-actions {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.my-listings-section {
    background: rgba(156, 39, 176, 0.05);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.my-listings-section h3 {
    margin-bottom: 20px;
    color: #ce93d8;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(156, 39, 176, 0.2);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-listings-section h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.listing-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 215, 0, 0.1);
}

.listing-card.my-listing {
    border-color: rgba(156, 39, 176, 0.3);
    background: linear-gradient(180deg, rgba(156, 39, 176, 0.05) 0%, var(--bg-card) 100%);
}

.listing-card.my-listing:hover {
    border-color: #9C27B0;
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.2);
}

.listing-image {
    position: relative;
    aspect-ratio: 1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.1);
}

.listing-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #FFD700;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.listing-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

.listing-name {
    font-weight: 700;
    font-size: 1em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-seller {
    font-size: 0.8em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.listing-rarity {
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.listing-rarity.common {
    color: #b0b0b0;
    background: rgba(176, 176, 176, 0.1);
    border: 1px solid rgba(176, 176, 176, 0.2);
}

.listing-rarity.rare {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.listing-rarity.epic {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.listing-rarity.legendary {
    color: #f1c40f;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(241, 196, 15, 0.05));
    border: 1px solid rgba(241, 196, 15, 0.3);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.1);
}

.my-listing-badge {
    font-size: 0.8em;
    color: #ce93d8;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(156, 39, 176, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.no-listings {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 2px dashed var(--border);
    font-style: italic;
}

.awaken-pet-preview {
    text-align: center;
    margin-bottom: 20px;
}

.awaken-pet-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

/* Social User Avatar Styles */
.social-user-avatar-container {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.social-user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
}

.social-user-tier-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

/* Raid Boss Animation Improvements */
@keyframes boss-shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px) rotate(-2deg);
    }

    50% {
        transform: translateX(5px) rotate(2deg);
    }

    75% {
        transform: translateX(-5px) rotate(-2deg);
    }

    100% {
        transform: translateX(0);
    }
}

.boss-shake {
    animation: boss-shake 0.4s ease-in-out;
}

.boss-flash-red {
    filter: sepia(100%) hue-rotate(-50deg) saturate(600%) contrast(1.2) !important;
    transition: filter 0.1s ease;
}

.floating-damage {
    position: absolute;
    color: #ff4444;
    font-weight: 900;
    font-size: 1.5em;
    pointer-events: none;
    animation: float-up-fade 1s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 100;
}

@keyframes float-up-fade {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px) scale(1.2);
        opacity: 0;
    }
}

.raid-boss-image-container {
    position: relative;
    /* For positioning overlays */
}

.impact-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 0, 0, 0) 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.impact-active {
    animation: impact-flash 0.2s ease-out;
}

@keyframes impact-flash {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.5);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.battle-result-damage {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-secondary);
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.highlight-damage {
    color: #ff4444;
    font-weight: bold;
    font-size: 1.3em;
}

/* =============================================
   VALUE TAB STYLES
   ============================================= */

.value-deal-card {
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.15) 0%, rgba(46, 125, 50, 0.1) 100%);
    border: 2px solid #4CAF50;
    border-radius: 20px;
    padding: 20px;
    margin: 10px 0;
}

.value-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.value-header h3 {
    color: #4CAF50;
    font-size: 1.5em;
    margin: 0;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.value-discount-badge {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    animation: pulse 2s infinite;
}

.value-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border-left: 3px solid #4CAF50;
}

.value-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.value-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.value-item:hover {
    transform: translateY(-3px);
    border-color: #4CAF50;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.value-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.value-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.slow-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-size: 0.65em;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.value-item-info {
    flex: 1;
}

.value-item-name {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.value-item-category {
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: capitalize;
}

.value-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.value-item-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #4CAF50;
}

.value-item-stock {
    font-size: 0.75em;
    color: var(--text-muted);
}

.value-add-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.value-add-btn:hover {
    background: linear-gradient(135deg, #66BB6A, #43A047);
    transform: scale(1.02);
}

.value-add-btn:active {
    transform: scale(0.98);
}

.value-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
}

.value-tip {
    color: var(--text-secondary);
    font-size: 0.85em;
    text-align: center;
    font-style: italic;
}

/* Value discount display in cart */
.value-discount-display {
    color: #4CAF50;
    font-weight: bold;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .value-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-header {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   AFK SCREENSAVER OVERLAY
   ============================================= */

.afk-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    z-index: 999999;
    display: none;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

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

/* Animated background gradient */
.afk-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(156, 39, 176, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(76, 175, 80, 0.08) 0%, transparent 40%);
    animation: afkBackgroundMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes afkBackgroundMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2%, 2%) rotate(5deg);
    }

    50% {
        transform: translate(-2%, 1%) rotate(-5deg);
    }

    75% {
        transform: translate(1%, -2%) rotate(3deg);
    }
}

.afk-header {
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 2;
}

.afk-logo {
    font-size: 3.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    animation: afkLogoGlow 3s ease-in-out infinite;
}

@keyframes afkLogoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9));
    }
}

.afk-tagline {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    letter-spacing: 2px;
}

.afk-slideshow {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 20px 0;
}

.afk-slide-track {
    display: flex;
    gap: 40px;
    animation: afkSlide var(--slide-duration, 30s) linear infinite;
    padding: 20px 0;
}

@keyframes afkSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.afk-product-card {
    flex-shrink: 0;
    width: 220px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.afk-product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.afk-product-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}

.afk-product-card:hover .afk-product-image {
    transform: scale(1.1) rotate(-3deg);
}

.afk-product-name {
    font-size: 1.1em;
    font-weight: 600;
    color: white;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afk-product-price {
    font-size: 1.4em;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.afk-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF6B6B, #FF4444);
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
}

.afk-footer {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.afk-hint {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.6);
    animation: afkPulse 2s ease-in-out infinite;
}

@keyframes afkPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Floating particles for extra visual appeal */
.afk-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: afkFloat 10s ease-in-out infinite;
}

@keyframes afkFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-50px) translateX(-10px) scale(0.8);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-20px) translateX(15px) scale(1.1);
        opacity: 0.3;
    }
}

/* Admin AFK button */
.admin-afk-btn {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.admin-afk-btn:hover {
    background: linear-gradient(135deg, #AB47BC, #8E24AA);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.4);
}

/* =============================================
   ROTATING EGG SECTION
   ============================================= */

.rotating-egg-section {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(103, 58, 183, 0.1) 100%);
    border: 2px solid #9C27B0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.rotating-egg-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(156, 39, 176, 0.1) 0%, transparent 50%);
    animation: rotatingGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotatingGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rotating-egg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.rotating-egg-header h3 {
    color: #CE93D8;
    font-size: 1.3em;
    margin: 0;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
}

.rotating-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(156, 39, 176, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: #FFD700;
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

.timer-icon {
    font-size: 1.2em;
}

.rotating-egg-description {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.rotating-egg-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.rotating-egg-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #9C27B0;
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.3);
}

.rotating-egg-card::before {
    content: '🔄 LIMITED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #9C27B0, #673AB7);
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 15px;
    letter-spacing: 1px;
}

.rotating-egg-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 20px auto 15px;
    filter: drop-shadow(0 0 15px rgba(156, 39, 176, 0.5));
    animation: eggFloat 3s ease-in-out infinite;
}

@keyframes eggFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.rotating-egg-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #CE93D8;
    margin-bottom: 8px;
}

.rotating-egg-price {
    font-size: 1.1em;
    color: #FFD700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.rotating-egg-buy-btn {
    background: linear-gradient(135deg, #9C27B0, #673AB7);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.rotating-egg-buy-btn:hover {
    background: linear-gradient(135deg, #AB47BC, #7E57C2);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.5);
}

.egg-section-title {
    color: var(--text-primary);
    font-size: 1.2em;
    margin: 0 0 15px 0;
    padding-left: 5px;
}

/* =============================================
   SHINY GALLERY
   ============================================= */

.shiny-gallery-container {
    padding: 10px 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-header h3 {
    color: #FFD700;
    font-size: 1.5em;
    margin: 0 0 5px 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

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

.shiny-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gallery-rarity-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid var(--border);
}

.gallery-rarity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.gallery-rarity-header.common {
    color: #90CAF9;
}

.gallery-rarity-header.rare {
    color: #4FC3F7;
}

.gallery-rarity-header.epic {
    color: #BA68C8;
}

.gallery-rarity-header.legendary {
    color: #FFD700;
}

.gallery-rarity-header h4 {
    margin: 0;
    font-size: 1.1em;
}

.gallery-rarity-count {
    font-size: 0.85em;
    opacity: 0.7;
}

.gallery-pets-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.gallery-pet-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.gallery-pet-item:hover {
    transform: translateY(-3px);
    border-color: #FFD700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.gallery-pet-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.gallery-pet-name {
    font-size: 0.75em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-shiny-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8em;
}

/* Gallery pet modal for larger view */
.gallery-pet-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.gallery-pet-modal img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.gallery-pet-modal h3 {
    color: #FFD700;
    margin: 0;
}

.gallery-pet-modal p {
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .rotating-egg-header {
        flex-direction: column;
        text-align: center;
    }

    .gallery-pets-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-pet-image {
        width: 55px;
        height: 55px;
    }
}

/* =============================================
   MYSTERY BOX STYLES
   ============================================= */

/* Mystery Box Selection Grid */
.mystery-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.mystery-box-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mystery-box-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--box-color, #4FC3F7);
}

.mystery-box-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--box-color, #4FC3F7);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px var(--box-glow, rgba(79, 195, 247, 0.3));
}

.mystery-box-card.small {
    --box-color: #4FC3F7;
    --box-glow: rgba(79, 195, 247, 0.3);
}

.mystery-box-card.medium {
    --box-color: #AB47BC;
    --box-glow: rgba(171, 71, 188, 0.3);
}

.mystery-box-card.large {
    --box-color: #FFD700;
    --box-glow: rgba(255, 215, 0, 0.3);
}

.mystery-box-emoji {
    font-size: 4em;
    text-align: center;
    margin-bottom: 15px;
    animation: boxFloat 3s ease-in-out infinite;
}

@keyframes boxFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.mystery-box-name {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: white;
    margin-bottom: 8px;
}

.mystery-box-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.mystery-box-value {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.mystery-box-value-item {
    text-align: center;
}

.mystery-box-value-label {
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mystery-box-value-amount {
    font-size: 1.3em;
    font-weight: bold;
}

.mystery-box-value-amount.price {
    color: var(--box-color);
}

.mystery-box-value-amount.worth {
    color: #4CAF50;
}

.mystery-box-value-amount.save {
    color: #FFD700;
}

.mystery-box-buy-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--box-color) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mystery-box-buy-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

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

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.mystery-box-buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 25px var(--box-glow);
}

.mystery-box-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF6B6B, #FF4444);
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
}

.mystery-box-items-preview {
    font-size: 0.85em;
    text-align: center;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Mystery Box Unboxing Overlay */
.mystery-unbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(20, 20, 40, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mystery-unbox-overlay.active {
    display: flex;
}

.mystery-unbox-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Box Animation Stage */
.unbox-stage {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unbox-box {
    font-size: 8em;
    animation: boxPulse 1s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 30px var(--box-glow));
}

@keyframes boxPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.unbox-box.shaking {
    animation: boxShake 0.1s ease-in-out infinite;
}

@keyframes boxShake {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-5px) rotate(-3deg);
    }

    75% {
        transform: translateX(5px) rotate(3deg);
    }
}

.unbox-box.opening {
    animation: boxOpen 0.8s ease-out forwards;
}

@keyframes boxOpen {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: scale(3) rotate(0deg);
        opacity: 0;
    }
}

/* Particles during opening */
.unbox-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.unbox-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: particleBurst 1s ease-out forwards;
}

@keyframes particleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: var(--particle-end);
        opacity: 0;
    }
}

/* Light rays effect */
.unbox-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    background: conic-gradient(from 0deg,
            rgba(255, 215, 0, 0.3) 0deg,
            transparent 30deg,
            rgba(255, 215, 0, 0.3) 60deg,
            transparent 90deg,
            rgba(255, 215, 0, 0.3) 120deg,
            transparent 150deg,
            rgba(255, 215, 0, 0.3) 180deg,
            transparent 210deg,
            rgba(255, 215, 0, 0.3) 240deg,
            transparent 270deg,
            rgba(255, 215, 0, 0.3) 300deg,
            transparent 330deg,
            rgba(255, 215, 0, 0.3) 360deg);
    border-radius: 50%;
    opacity: 0;
    animation: raysAppear 1s 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes raysAppear {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.5) rotate(45deg);
        opacity: 0;
    }
}

/* Items reveal area */
.unbox-items-area {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.unbox-items-area.revealed {
    display: flex;
    animation: itemsSlideUp 0.5s ease-out;
}

@keyframes itemsSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.unbox-items-header {
    text-align: center;
}

.unbox-items-header h2 {
    font-size: 2em;
    color: #FFD700;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.unbox-items-header .savings {
    font-size: 1.2em;
    color: #4CAF50;
    margin-top: 5px;
}

.unbox-items-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
}

.unbox-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 15px;
    width: 120px;
    text-align: center;
    opacity: 0;
    animation: itemReveal 0.5s ease-out forwards;
    animation-delay: var(--reveal-delay, 0s);
}

@keyframes itemReveal {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.unbox-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
}

.unbox-item-name {
    font-size: 0.8em;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unbox-item-price {
    font-size: 0.75em;
    color: #4CAF50;
    margin-top: 4px;
}

.unbox-close-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 0.5s 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.unbox-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.4);
}

/* Click instruction */
.unbox-instruction {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
    animation: pulse 2s ease-in-out infinite;
}

/* Confetti effect */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mystery Box Header */
.mystery-header {
    text-align: center;
    padding: 20px;
    margin-bottom: 10px;
}

.mystery-header h2 {
    color: #FFD700;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.mystery-header p {
    color: var(--text-secondary);
    margin: 0;
}

.mystery-refresh-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 107, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #FF6B6B;
}

/* Responsive */
@media (max-width: 480px) {
    .mystery-box-grid {
        grid-template-columns: 1fr;
    }

    .unbox-item {
        width: 90px;
        padding: 10px;
    }

    .unbox-item img {
        width: 50px;
        height: 50px;
    }

    .unbox-box {
        font-size: 6em;
    }
}

/* =============================================
   CS:GO STYLE SPINNING REEL
   ============================================= */

.spin-header {
    text-align: center;
    margin-bottom: 20px;
}

.spin-header h2 {
    font-size: 1.8em;
    color: #FFD700;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.spin-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 10px 0 0;
}

.spin-reel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.spin-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: #FFD700;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    animation: pointerPulse 1s ease-in-out infinite;
}

@keyframes pointerPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

.spin-reel-viewport {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border: 3px solid transparent;
    border-image: linear-gradient(90deg, #FFD700, #FF6B6B, #AB47BC, #4FC3F7, #FFD700) 1;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.6);
    position: relative;
}

.spin-reel {
    display: flex;
    gap: 10px;
    padding: 20px;
    transform: translateX(0);
    will-change: transform;
}

.spin-glow-left,
.spin-glow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 5;
}

.spin-glow-left {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.spin-glow-right {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.spin-item {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s ease;
}

.spin-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.spin-item-name {
    font-size: 0.65em;
    color: white;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.spin-item-price {
    font-size: 0.6em;
    color: #4CAF50;
}

.spin-item.winner {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.spin-item.winner.landed {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    animation: winnerFlash 0.5s ease-out;
}

@keyframes winnerFlash {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.spin-item-counter {
    text-align: center;
    margin: 20px 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}

.spin-item-counter span {
    color: #FFD700;
    font-weight: bold;
}

.spin-won-items {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

.spin-won-items h3 {
    color: #FFD700;
    margin: 0 0 15px;
    font-size: 1.1em;
    text-align: center;
}

.spin-won-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: 50px;
}

.spin-won-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 25px;
    padding: 5px 12px 5px 5px;
    transition: all 0.3s ease;
}

.spin-won-item.new {
    transform: scale(0);
    opacity: 0;
}

.spin-won-item:not(.new) {
    transform: scale(1);
    opacity: 1;
}

.spin-won-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
}

.spin-won-item span {
    font-size: 0.8em;
    color: white;
}

.spin-summary {
    text-align: center;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.spin-summary-header h2 {
    font-size: 1.8em;
    color: #FFD700;
    margin: 0;
}

.spin-savings {
    color: #4CAF50;
    font-size: 1.2em;
    margin-top: 10px;
}

/* Responsive for spin reel */
@media (max-width: 480px) {
    .spin-reel-viewport {
        height: 120px;
    }

    .spin-item {
        width: 80px;
        height: 80px;
    }

    .spin-item img {
        width: 40px;
        height: 40px;
    }

    .spin-won-item {
        padding: 4px 8px 4px 4px;
    }

    .spin-won-item img {
        width: 24px;
        height: 24px;
    }
}

/* =============================================
   DROP BOX STYLES
   ============================================= */

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

.dropbox-header {
    text-align: center;
    margin-bottom: 25px;
}

.dropbox-icon {
    font-size: 4em;
    animation: boxBounce 2s ease-in-out infinite;
}

@keyframes boxBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.dropbox-header h2 {
    font-size: 2em;
    color: #FFD700;
    margin: 15px 0 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.dropbox-header p {
    color: var(--text-secondary);
    margin: 0;
}

.dropbox-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.1);
}

.dropbox-amount-section {
    margin-bottom: 25px;
}

.dropbox-amount-section label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.dropbox-slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.dropbox-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4FC3F7, #AB47BC, #FFD700);
    outline: none;
    cursor: pointer;
}

.dropbox-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.dropbox-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.dropbox-amount-display {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 15px;
    padding: 10px 20px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    min-width: 80px;
    justify-content: center;
}

.dropbox-currency {
    font-size: 1.2em;
    font-weight: bold;
    color: #1a1a1a;
}

.dropbox-amount-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #1a1a1a;
}

.dropbox-quick-amounts {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.dropbox-quick-amounts button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropbox-quick-amounts button:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.dropbox-quick-amounts button.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    border-color: #FFD700;
    color: #FFD700;
}

.dropbox-value-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.dropbox-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dropbox-value-label {
    color: var(--text-secondary);
}

.dropbox-value-amount {
    font-weight: bold;
    font-size: 1.2em;
}

.dropbox-value-amount.pay {
    color: #FFD700;
}

.dropbox-value-amount.value {
    color: #4CAF50;
}

.dropbox-jackpot-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #FF6B6B;
    font-size: 0.9em;
    animation: jackpotPulse 2s ease-in-out infinite;
}

@keyframes jackpotPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.dropbox-guarantees {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 10px 16px;
    border-radius: 25px;
    color: #4CAF50;
    font-size: 0.9em;
}

.dropbox-buy-btn {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B6B 100%);
    color: #1a1a1a;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropbox-buy-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: btnShimmer 2s infinite;
}

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

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.dropbox-buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.dropbox-btn-icon {
    font-size: 1.5em;
}

.dropbox-btn-price {
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
}

.dropbox-info {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dropbox-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.dropbox-info-item span:first-child {
    font-size: 1.2em;
}

/* Drop Box Unboxing */
.dropbox-unbox {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropbox-unbox.jackpot {
    animation: jackpotGlow 1s ease-in-out infinite alternate;
}

@keyframes jackpotGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6));
    }
}

.dropbox-unbox-header {
    text-align: center;
    margin-bottom: 30px;
}

.dropbox-unbox-header h2 {
    font-size: 2em;
    color: #FFD700;
    margin: 0;
}

.dropbox-unbox-header p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

/* 3D Box */
.dropbox-box-stage {
    perspective: 800px;
    width: 200px;
    height: 200px;
    margin: 30px 0;
    position: relative;
}

.dropbox-3d-box {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-10deg) rotateY(0deg);
    margin: 25px auto;
    transition: transform 0.1s ease-out;
}

.dropbox-3d-box.opened {
    animation: boxExplode 0.5s ease-out forwards;
}

@keyframes boxExplode {
    0% {
        transform: rotateX(-30deg) scale(1);
    }

    50% {
        transform: rotateX(-30deg) scale(1.2);
    }

    100% {
        transform: rotateX(-30deg) scale(0.8);
        opacity: 0.5;
    }
}

.box-face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.box-front {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateZ(75px);
}

.box-back {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: rotateY(180deg) translateZ(75px);
}

.box-left {
    background: linear-gradient(135deg, #d63031, #b71c1c);
    transform: rotateY(-90deg) translateZ(75px);
}

.box-right {
    background: linear-gradient(135deg, #d63031, #b71c1c);
    transform: rotateY(90deg) translateZ(75px);
}

.box-top {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    transform: rotateX(90deg) translateZ(75px);
    transform-origin: center bottom;
    transition: transform 0.3s ease-out;
}

.box-bottom {
    background: linear-gradient(135deg, #922b21, #7b241c);
    transform: rotateX(-90deg) translateZ(75px);
}

/* Ribbon */
.box-ribbon {
    position: absolute;
    width: 30px;
    height: 200px;
    background: linear-gradient(180deg, #FFD700, #FFA500);
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    z-index: 10;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.box-ribbon::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 30px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.box-ribbon-pull {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    cursor: grab;
    z-index: 20;
    padding: 15px;
    user-select: none;
}

.box-ribbon-pull:active {
    cursor: grabbing;
}

.ribbon-handle {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9em;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    animation: pullHint 1.5s ease-in-out infinite;
}

@keyframes pullHint {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Particles for drop box */
.dropbox-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dropbox-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dropboxParticleBurst 0.8s ease-out forwards;
}

.dropbox-particle.jackpot-particle {
    width: 15px;
    height: 15px;
    box-shadow: 0 0 10px currentColor;
}

@keyframes dropboxParticleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Items reveal */
.dropbox-items-reveal {
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
}

.dropbox-items-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    animation: revealSlideUp 0.5s ease-out;
}

@keyframes revealSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-header {
    text-align: center;
    margin-bottom: 25px;
}

.reveal-header h3 {
    color: #FFD700;
    font-size: 1.5em;
    margin: 0 0 15px;
}

.reveal-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.reveal-value .paid {
    color: var(--text-secondary);
}

.reveal-value .divider {
    color: rgba(255, 255, 255, 0.3);
}

.reveal-value .got {
    color: white;
    font-weight: bold;
}

.reveal-value .got.profit {
    color: #4CAF50;
    font-size: 1.2em;
}

.reveal-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.reveal-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    opacity: 0;
    animation: itemPopIn 0.4s ease-out forwards;
}

@keyframes itemPopIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-20deg);
    }

    70% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.reveal-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.reveal-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reveal-item-name {
    color: white;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reveal-item-price {
    color: #4CAF50;
    font-size: 0.8em;
}

.dropbox-close-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropbox-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.4);
}

/* Jackpot special effects */
.dropbox-unbox.jackpot .reveal-header h3 {
    animation: jackpotText 0.5s ease-in-out infinite alternate;
}

@keyframes jackpotText {
    0% {
        color: #FFD700;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    100% {
        color: #FF6B6B;
        text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .dropbox-container {
        padding: 10px;
    }

    .dropbox-card {
        padding: 20px;
    }

    .dropbox-slider-container {
        flex-direction: column;
        gap: 15px;
    }

    .dropbox-3d-box {
        width: 120px;
        height: 120px;
    }

    .box-face {
        width: 120px;
        height: 120px;
        font-size: 3em;
    }

    .box-front {
        transform: translateZ(60px);
    }

    .box-back {
        transform: rotateY(180deg) translateZ(60px);
    }

    .box-left {
        transform: rotateY(-90deg) translateZ(60px);
    }

    .box-right {
        transform: rotateY(90deg) translateZ(60px);
    }

    .box-top {
        transform: rotateX(90deg) translateZ(60px);
    }

    .box-bottom {
        transform: rotateX(-90deg) translateZ(60px);
    }

    .reveal-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   POKEMON REWARD STYLES
   ============================================= */

.dropbox-pokemon-reward {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dropbox-pokemon-reward::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: rewardShimmer 3s infinite;
}

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

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.dropbox-pokemon-reward.claimable {
    border-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(46, 125, 50, 0.15));
    animation: claimablePulse 2s ease-in-out infinite;
}

@keyframes claimablePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(76, 175, 80, 0.5);
    }
}

.pokemon-reward-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.pokemon-reward-header .reward-icon {
    font-size: 1.5em;
    animation: starSpin 3s linear infinite;
}

@keyframes starSpin {

    0%,
    100% {
        transform: rotate(-10deg) scale(1);
    }

    50% {
        transform: rotate(10deg) scale(1.2);
    }
}

.pokemon-reward-header .boxes-needed {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.3em;
}

.pokemon-reward-carousel {
    margin-top: 15px;
    position: relative;
    z-index: 1;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-pokemon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: pokemonBounce 0.5s ease-in-out;
}

@keyframes pokemonBounce {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.carousel-pokemon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.carousel-pokemon span {
    color: #FFD700;
    font-size: 0.85em;
    font-weight: 500;
}

/* Pokemon Reward Modal */
.pokemon-reward-modal {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
}

.reward-modal-header h2 {
    font-size: 2em;
    color: #FFD700;
    margin: 0 0 10px;
    animation: celebrateText 1s ease-in-out infinite alternate;
}

@keyframes celebrateText {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.reward-modal-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 25px;
}

.reward-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.reward-pokemon-option {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reward-pokemon-option:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.reward-pokemon-option img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.reward-pokemon-option:hover img {
    transform: scale(1.1);
    animation: pokemonWiggle 0.5s ease-in-out infinite;
}

@keyframes pokemonWiggle {

    0%,
    100% {
        transform: scale(1.1) rotate(-5deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.reward-pokemon-option span {
    color: white;
    font-size: 0.9em;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .dropbox-pokemon-reward {
        padding: 15px;
    }

    .pokemon-reward-header {
        font-size: 0.9em;
    }

    .reward-pokemon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reward-pokemon-option img {
        width: 50px;
        height: 50px;
    }
}

/* =============================================
   ADMIN TOOLS STYLES
   ============================================= */

.admin-tools-section {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(233, 30, 99, 0.1));
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 15px;
}

.admin-tools-section h3 {
    margin: 0 0 15px;
    color: #FF5722;
    font-size: 1.1em;
}

.admin-tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #FF5722, #E91E63);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 87, 34, 0.4);
}

.btn-admin span {
    font-size: 1.2em;
}

.admin-tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.admin-tool-card h4 {
    margin: 0 0 5px;
    color: var(--primary);
}

/* Claimable Pokemon Reward State */
.dropbox-pokemon-reward {
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropbox-pokemon-reward:hover {
    transform: scale(1.02);
}

.dropbox-pokemon-reward.claimable {
    border: 2px solid #FFD700 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2)) !important;
    animation: claimablePulse 2s ease-in-out infinite;
    cursor: pointer;
}

.dropbox-pokemon-reward.claimable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

@keyframes claimablePulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

/* ==============================================
   EXPLORE SYSTEM STYLES
   ============================================== */

.explore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.explore-header h3 {
    margin: 0;
    color: var(--primary);
}

.explore-timer {
    background: rgba(255, 215, 0, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

.explore-timer #explore-countdown {
    font-weight: bold;
    color: var(--primary);
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 15px;
}

.explore-subtitle {
    color: var(--text-secondary);
    margin: 0 15px 15px 15px;
    font-size: 0.9em;
}

.trainer-card {
    background: linear-gradient(135deg, #1e1e2e, #2a2a3e);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trainer-card:hover:not(.defeated) {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.trainer-card.defeated {
    opacity: 0.5;
}

.trainer-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trainer-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.trainer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trainer-name {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-primary);
}

.trainer-level-display {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.85em;
    display: inline-block;
}

.trainer-pokemon-count {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 5px;
}

.challenge-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.challenge-btn:hover {
    background: linear-gradient(135deg, #66BB6A, #43A047);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

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

.defeated-badge {
    background: #4CAF50;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
}

/* Pokemon Team Preview */
.trainer-team-preview {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.trainer-card:hover .trainer-team-preview {
    max-height: 200px;
    opacity: 1;
}

.preview-pokemon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.preview-pokemon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
}

.preview-level {
    font-size: 0.65em;
    color: var(--primary);
    font-weight: bold;
}

/* Trainer Battle Modal */
.trainer-battle-content {
    max-width: 600px;
}

.trainer-battle-header {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 20px;
}

.trainer-battle-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.trainer-level-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
}

.trainer-team-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.mini-pokemon {
    position: relative;
    width: 45px;
    height: 45px;
}

.mini-pokemon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
}

.mini-pokemon .mini-level {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--bg-dark);
    color: var(--primary);
    font-size: 0.65em;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: bold;
}

.battle-team-selection {
    padding: 20px;
}

.battle-team-selection h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.battle-pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.battle-pet-select-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

.battle-pet-select-card:hover {
    border-color: var(--primary);
}

.battle-pet-select-card.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.battle-pet-select-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.pet-select-name {
    font-size: 0.8em;
    font-weight: bold;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-select-level {
    font-size: 0.75em;
    color: var(--primary);
}

.pet-select-check {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

.battle-pet-select-card.selected .pet-select-check {
    display: flex;
}

.battle-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

/* Battle Result Overlay */
.battle-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.battle-result-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: scaleIn 0.4s ease;
}

.battle-result-content.victory {
    border: 3px solid #FFD700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.battle-result-content.defeat {
    border: 3px solid #ff6b6b;
}

.result-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.battle-result-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.battle-result-content.victory h2 {
    color: #FFD700;
}

.battle-result-content.defeat h2 {
    color: #ff6b6b;
}

.xp-gained {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    padding: 15px 25px;
    border-radius: 25px;
    margin: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.xp-icon {
    font-size: 1.3em;
    margin-right: 10px;
}

.level-ups {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
}

.level-ups h4 {
    margin-bottom: 10px;
    color: #FFD700;
}

.level-up-item {
    padding: 5px 0;
}

.level-up-item .new-level {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1em;
}

.defeat-message {
    color: var(--text-secondary);
    font-style: italic;
}

/* Level badge on pet cards */
.pet-level-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 5;
    text-shadow: none;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* XP Progress Bar on Battle Pet Cards */
.xp-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 5px 0;
    overflow: hidden;
}

.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}