* {
    box-sizing: border-box;
}

*::before, *::after {
    box-sizing: inherit;
}

:root {
    --bg-main: #0a0a0c;
    --bg-surface: #141417;
    --accent-primary: #7c4dff;
    --accent-secondary: #00e5ff;
    --text-main: #ffffff;
    --text-dim: #a0a0a5;
    --common: #b0b0b0;
    --rare: #03dac6;
    --epic: #d500f9;
    --legendary: #ffab00;
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #0a0a0c 100%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar - Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.2);
}

/* Custom Scrollbar - Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-main);
}

.app-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header Styling */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass);
    position: relative;
    z-index: 1000;
}

/* Ukrywanie nawigacji dla niezalogowanych */
body.is-guest .main-nav,
body.is-guest .menu-toggle {
    display: none !important;
}

.brand { 
    justify-self: start;
    grid-column: 1;
}

.brand a {
    display: flex;
    flex-direction: column;
}

.brand h1 {
    margin: 0;
    line-height: 1.1;
}

.alpha-tag {
    color: #ff5252;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.main-nav { 
    grid-column: 2;
    justify-self: center; 
    display: flex; 
    gap: 15px; 
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(0, 229, 255, 0.1);
}

.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.coin-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 171, 0, 0.1);
    border: 1px solid var(--legendary);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--legendary);
    font-weight: 800;
    font-size: 0.9rem;
}

.coin-display i {
    font-size: 0.8rem;
    filter: drop-shadow(0 0 5px var(--legendary));
}

#global-notices-wrapper {
    width: 100%;
    display: block;
}

footer {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid var(--glass);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-notice-bar, .happy-hour-bar {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    color: white;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 700;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 100;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.notice-marquee {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    will-change: transform;
}

.notice-marquee span { margin-left: 10px; }

@keyframes marquee {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}

.footer-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.pack-status-info {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 10px;
}

.pity-status-info, .streak-status-info {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout na stronie głównej */
.homepage-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto minmax(320px, 1fr);
    gap: 40px;
    width: 100%;
    align-items: start;
}

/* Tryb otwierania paczki - pełna szerokość i ukrywanie elementów */
.homepage-layout.opening-mode {
    grid-template-columns: 1fr;
}

.homepage-layout.opening-mode .recent-pulls-sidebar,
.homepage-layout.opening-mode #pack-status,
.homepage-layout.opening-mode .pack-inventory {
    display: none !important;
}

.pack-section {
    grid-column: 2;
}

.recent-pulls-sidebar {
    grid-column: 3;
    width: 100%;
    max-width: 320px;
    justify-self: end;
    background: var(--bg-surface);
    border: 1px solid var(--glass);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.homepage-layout.opening-mode .pack-section {
    grid-column: 1;
    width: 100%;
}

.sidebar-title {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass);
}

.pull-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pull-item:last-child { border-bottom: none; }

.pull-card-img {
    width: 35px;
    height: 50px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    border: 1px solid;
    flex-shrink: 0;
}

.pull-info { flex: 1; min-width: 0; }
.pull-user { font-size: 0.8rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pull-card-name { font-size: 0.65rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pull-time-ago { font-size: 0.6rem; color: var(--text-dim); opacity: 0.7; margin-top: 2px; }
.pull-rarity { font-size: 0.6rem; font-weight: 900; }
.pull-serial { color: var(--accent-secondary); font-weight: 800; margin-left: 3px; }

.footer-legal {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.footer-legal p {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: 0.3s;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
.pack-status-info .status-ready { color: var(--rare); font-weight: 700; }
.pack-status-info .status-wait { color: var(--legendary); font-weight: 700; }

.glitch-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* User Dropdown Styling */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-toggle {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.user-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-primary);
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-primary);
}

.arrow {
    font-size: 0.7rem;
    transition: 0.3s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    min-width: 180px;
    z-index: 1100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.dropdown-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(124, 77, 255, 0.1);
    color: white;
}

.logout-link {
    border-top: 1px solid #222;
    color: var(--legendary) !important;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary, .btn-open-pack {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #5e35b1 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 0 #4a2b9d, 0 6px 15px rgba(0,0,0,0.4);
    text-shadow: 0 0 8px var(--accent-primary);
    position: relative;
    overflow: hidden;
    text-indent: 1.5px;
    transform: translateY(0); /* Ensure a base for transition */
}

/* Efekt połysku (Diagonal Shine) dla wszystkich profesjonalnych przycisków */
.btn-primary::before, .btn-success::before, .btn-danger::before, .btn-market-list::before {
    content: '';
    position: absolute;
    /* ... (pozostałe style bez zmian) ... */
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-primary:hover::before, .btn-success:hover::before, .btn-danger:hover::before, .btn-market-list:hover::before {
    left: 150%;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px); /* Przycisk unosi się */
    box-shadow: 0 4px 0 #4a2b9d, 0 15px 30px rgba(0,0,0,0.6); /* Cień "głębokości" pozostaje, cień unoszenia się jest większy */
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a2b9d, 0 3px 10px rgba(0,0,0,0.4);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-success {
    background: linear-gradient(135deg, rgba(3, 218, 198, 0.15) 0%, rgba(3, 218, 198, 0.05) 100%); /* Zmieniono na rgba dla lepszego efektu hover */
    color: var(--rare);
    border: 1px solid var(--rare);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer; /* Dodano transition dla wszystkich właściwości */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #028a7d, 0 6px 15px rgba(0,0,0,0.4);
    text-shadow: 0 0 8px var(--rare);
    position: relative;
    overflow: hidden;
    text-indent: 1px;
    transform: translateY(0);
}
.btn-success:hover {
    background: linear-gradient(135deg, var(--rare) 0%, #02b3a3 100%); color: #000;
    transform: translateY(-3px);
    box-shadow: 0 4px 0 #028a7d, 0 15px 30px rgba(0,0,0,0.6);
    text-shadow: none;
}
.btn-success:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #028a7d, 0 3px 10px rgba(0,0,0,0.4);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.15) 0%, rgba(255, 82, 82, 0.05) 100%);
    color: #ff5252;
    border: 1px solid #ff5252;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer; /* Dodano transition dla wszystkich właściwości */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #b71c1c, 0 6px 15px rgba(0,0,0,0.4);
    text-shadow: 0 0 8px #ff5252;
    position: relative;
    overflow: hidden;
    text-indent: 1px;
    transform: translateY(0);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%); color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 0 #b71c1c, 0 15px 30px rgba(255, 82, 82, 0.6);
    text-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.btn-danger:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b71c1c, 0 3px 10px rgba(0,0,0,0.4);
}

.btn-market-list {
    background: linear-gradient(135deg, #0c8721 0%, #096b1b 100%);
    color: white;
    border: 1px solid #0a6e1a;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer; /* Dodano transition dla wszystkich właściwości */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #08611b, 0 6px 15px rgba(0,0,0,0.4);
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    text-indent: 1px;
    transform: translateY(0);
}
.btn-market-list:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 0 #08611b, 0 15px 30px rgba(0,0,0,0.6);
}
.btn-market-list:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #08611b, 0 3px 10px rgba(0,0,0,0.4);
}

/* Stan nieaktywny dla przycisków */
.btn-primary:disabled, .btn-market-list:disabled, .btn-success:disabled, .filter-btn:disabled {
    background: #222 !important;
    border-color: #444 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
    text-shadow: none !important;
}

.btn-open-pack.disabled {
    background: #333;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-dev {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
    border: 1px solid #ff5252;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-dev:hover { background: #ff5252; color: white; }

.dev-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    opacity: 0.6;
    transition: 0.3s;
}

.dev-panel:hover {
    opacity: 1;
}

.limit-info {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 700;
}

.btn-primary {
    animation: pulse-purple 2s infinite ease-in-out;
}

.pack-inventory {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: -15px;
}

#pack-count-value {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-left: 5px;
}

.btn-open-pack:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(124, 77, 255, 0.5);
}

/* Booster Pack Styling */
.pack-container {
    perspective: 1000px;
    margin-bottom: 40px;
    cursor: pointer;
}

.booster-pack {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #2a2a35 0%, #1a1a20 100%);
    border: 3px solid var(--accent-primary);
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.booster-pack.disabled-pack {
    filter: grayscale(1);
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.booster-pack.disabled-pack:hover {
    transform: none;
    box-shadow: none;
}

.booster-pack:hover {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: 0 20px 50px rgba(124, 77, 255, 0.4);
}

/* Efekt otwierania paczki */
@keyframes pack-open-burst {
    0% { transform: scale(1); filter: brightness(1); }
    20% { transform: scale(1.1) rotate(-3deg); filter: brightness(1.2); }
    40% { transform: scale(1.2) rotate(3deg); filter: brightness(1.4); }
    60% { transform: scale(1.3) rotate(-3deg); filter: brightness(1.6); }
    80% { transform: scale(1.4) rotate(3deg); filter: brightness(1.8); }
    100% { 
        transform: scale(2); 
        filter: brightness(3) blur(20px); 
        opacity: 0;
    }
}

/* Card Preview Modal Styles */
.preview-content {
    position: relative;
    padding: 20px;
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
}

#card-preview-navigation {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between buttons and card */
}

#card-preview-container {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px; /* Max width for the card container */
    height: 600px; /* Max height for the card container */
}

.preview-card-inner {
    width: 340px; /* Actual card width */
    height: 500px; /* Actual card height */
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border: 3px solid rgba(255,255,255,0.1);
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

.card-preview-glow.epic { box-shadow: 0 0 40px rgba(213, 0, 249, 0.4), 0 30px 60px rgba(0,0,0,0.8); }
.card-preview-glow.legendary { box-shadow: 0 0 50px rgba(255, 171, 0, 0.4), 0 30px 60px rgba(0,0,0,0.8); }

.nav-button {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.nav-button:hover {
    transform: scale(1.1);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: var(--glass);
    border-color: rgba(255,255,255,0.1);
}

@media (max-width: 480px) {
    #card-preview-navigation { flex-direction: column; gap: 10px; }
    #card-preview-container { width: 300px; height: 450px; }
    .preview-card-inner { width: 280px; height: 410px; }
    .nav-button { width: 40px; height: 40px; font-size: 1.2rem; }
}

.preview-card-inner {
    width: 340px;
    height: 500px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border: 3px solid rgba(255,255,255,0.1);
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

.pack-opening-effect {
    animation: pack-open-burst 0.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
    pointer-events: none;
}

.pack-front {
    text-align: center;
}

.pack-limit {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-secondary);
    margin-top: 10px;
    letter-spacing: 2px;
}

.pack-hint {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse-hint 2s infinite;
}
.drop-info-icon {
    margin-left: 8px;
    font-size: 0.8rem;
    cursor: help;
    vertical-align: middle;
    color: var(--accent-secondary);
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Cards Reveal Grid */
.cards-reveal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    width: 100%;
    grid-template-rows: auto;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    perspective: 1500px;
}

/* Sizing for the grid children (wrappers) */
.cards-reveal-grid > div {
    width: 200px;
    height: 360px;
    opacity: 0; /* Start hidden for animation */
}

.card-appear-anim {
    animation: card-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes card-appear {
    0% { 
        opacity: 0; 
        transform: translateY(50px) scale(0.5) rotateX(20deg); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotateX(0); 
    }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Individual Card sizing in Grid */
.cards-reveal-grid .card-inner {
    width: 100%;
    height: 300px;
}

/* Adjustments for the stage */
.game-area { padding-top: 50px; }
.pack-section { 
    grid-column: 2;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 30px; 
}

#pack-actions {
    display: none; /* Sterowane przez JS */
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.card-inner.flipped { transform: rotateY(180deg); }
.card-inner {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Animacja potrząsania dla rzadkich kart */
@keyframes card-anticipation {
    0%, 100% { transform: translate(0, 0) rotateY(0deg); }
    25% { transform: translate(-1px, 1px) rotateY(-1deg) scale(1.02); }
    50% { transform: translate(1px, -1px) rotateY(1deg) scale(1.02); }
    75% { transform: translate(-1px, -1px) rotateY(-1deg) scale(1.02); }
}

.card-inner.shaking {
    animation: card-anticipation 0.12s infinite;
    z-index: 10;
}

/* System cząsteczek */
.particle {
    position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    animation: particle-explode 0.6s ease-out forwards;
}

@keyframes particle-explode {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0); opacity: 0; }
}

/* Card Design (Full Print) */
.card {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    backface-visibility: hidden;
    transform: rotateY(180deg);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-inner.flipped { transform: rotateY(180deg); }
.card-inner {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-front {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e1e26 0%, #111116 100%);
    backface-visibility: hidden;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--accent-primary);
}

.card-author {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 20px 15px;
}

.rarity-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.serial-badge {
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent-secondary);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid var(--accent-secondary);
    display: inline-block;
    vertical-align: middle;
}

.card-collection {
    font-size: 0.6rem;
    color: var(--accent-secondary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.sell-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.card-status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-new { 
    color: var(--accent-secondary); 
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    opacity: 0; /* Ukryte na starcie */
}

.card-inner.flipped + .sell-container .status-new {
    animation: statusJumpIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.5s; /* Animacja startuje w połowie obrotu karty */
}

@keyframes statusJumpIn {
    0% { transform: scale(0) translateY(15px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.status-duplicate { color: var(--text-dim); opacity: 0.7; }

.card-inner.flipped + .sell-container {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.btn-sell {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    border: 1px solid #ff5252;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}
.btn-sell:hover { background: #ff5252; color: white; transform: scale(1.05); }

.btn-sell-mini {
    position: absolute;
    bottom: 85px;
    left: 10px;
    right: 10px;
    background: #ff5252;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.btn-sell-mini:hover { transform: scale(1.1); background: #ff1744; }

/* Collection Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}

.mini-card {
    aspect-ratio: 2/3;
    border-radius: 12px;
    background-size: cover;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.mini-card:hover { transform: scale(1.02); }

/* Unowned cards styling */
.mini-card.not-owned {
    filter: grayscale(1) brightness(0.6);
    opacity: 0.5;
    cursor: default;
}
.mini-card.not-owned:hover {
    transform: none;
    box-shadow: none;
}

/* Rarity Glows */
.card.common, .mini-card.common { border-color: rgba(176, 176, 176, 0.4); }
.card.rare, .mini-card.rare { border-color: rgba(3, 218, 198, 0.5); }

.card.epic { box-shadow: 0 0 25px var(--epic); border-color: var(--epic); }
.mini-card.epic { border-color: var(--epic); box-shadow: 0 0 15px rgba(213, 0, 249, 0.3); }

.card.legendary { box-shadow: 0 0 30px var(--legendary); border-color: var(--legendary); }
.mini-card.legendary { border-color: var(--legendary); box-shadow: 0 0 15px rgba(255, 171, 0, 0.3); }

/* Efekt holograficzny dla rzadkich kart */
@keyframes holo-shine {
    0% { transform: translateX(-200%) skewX(-25deg); opacity: 0; }
    5% { opacity: 0.5; }
    12% { opacity: 0.8; }
    19% { opacity: 0.5; }
    24% { transform: translateX(200%) skewX(-25deg); opacity: 0; }
    100% { transform: translateX(200%) skewX(-25deg); opacity: 0; }
}

.card.epic::after, .card.legendary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.card-inner.flipped .card.epic::after,
.card-inner.flipped .card.legendary::after {
    animation: holo-shine 5s ease-in-out 0.8s infinite;
}

/* Modals */
.modal {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center; align-items: center;
}

.modal.active { display: flex; }

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover { color: white; }

.auth-card {
    background: var(--bg-surface);
    padding: 40px; border-radius: 8px;
    width: 100%; max-width: 400px;
    border: 1px solid var(--accent-primary);
    position: relative;
    box-shadow: 0 0 40px rgba(124, 77, 255, 0.2);
    text-align: center;
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 1px;
}

.collection-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* margin-bottom: 30px; Usunięto, aby wyrównać elementy w jednej linii */
}

.filter-btn {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 700;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Gaming Toggle Switch */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}
.switch-container:hover {
    border-color: var(--accent-secondary);
    background: rgba(0, 229, 255, 0.03);
    color: white;
}
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2a2a2e;
    transition: .3s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 12px; width: 12px;
    left: 3px; bottom: 3px;
    background-color: var(--text-dim);
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent-secondary); box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
input:checked + .slider:before { transform: translateX(16px); background-color: #000; }

/* Rarity Specific Filter Buttons */
.rarity-selector .filter-btn {
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.65rem;
    font-weight: 800;
}
.rarity-selector .filter-btn:hover { transform: scale(1.05); background: rgba(255, 255, 255, 0.05); }
.filter-btn[data-rarity="common"].active { background: rgba(176, 176, 176, 0.2); border-color: var(--common); box-shadow: 0 4px 0 #555, 0 8px 15px rgba(0,0,0,0.4); color: #fff; text-shadow: 0 0 8px var(--common); }
.filter-btn[data-rarity="rare"].active { background: rgba(3, 218, 198, 0.2); border-color: var(--rare); box-shadow: 0 4px 0 #028a7d, 0 8px 15px rgba(0,0,0,0.4); color: #fff; text-shadow: 0 0 8px var(--rare); }
.filter-btn[data-rarity="epic"].active { background: rgba(213, 0, 249, 0.2); border-color: var(--epic); box-shadow: 0 4px 0 #9100a8, 0 8px 15px rgba(0,0,0,0.4); color: #fff; text-shadow: 0 0 8px var(--epic); }
.filter-btn[data-rarity="legendary"].active { background: rgba(255, 171, 0, 0.2); border-color: var(--legendary); box-shadow: 0 4px 0 #b37700, 0 8px 15px rgba(0,0,0,0.4); color: #fff; text-shadow: 0 0 8px var(--legendary); }

/* Podświetlenie kategorii z nagrodą */
@keyframes pulse-reward-glow {
    0% { box-shadow: 0 0 0 0 rgba(3, 218, 198, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(3, 218, 198, 0); }
    100% { box-shadow: 0 0 0 0 rgba(3, 218, 198, 0); }
}

.filter-btn.has-reward {
    border-color: var(--rare) !important;
    animation: pulse-reward-glow 2s infinite;
    position: relative;
}

.filter-btn.has-reward::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--rare);
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 5px var(--rare);
}

.collection-group-title {
    grid-column: 1 / -1;
    color: var(--accent-secondary);
    border-bottom: 1px solid var(--glass);
    padding-bottom: 5px;
    margin: 20px 0 10px;
    font-size: 1.1rem;
    text-align: left;
}

.mass-sell-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--glass);
    margin-bottom: 30px;
    text-align: center;
}

/* Sell All Modal Styles */
.sell-list-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid var(--glass);
}
.sell-list-item {
    aspect-ratio: 2/3;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.sell-list-item.common { border-color: rgba(176, 176, 176, 0.5); }
.sell-list-item.rare { border-color: rgba(3, 218, 198, 0.6); }
.sell-list-item.epic { border-color: var(--epic); box-shadow: 0 0 15px rgba(213, 0, 249, 0.5); }
.sell-list-item.legendary { border-color: var(--legendary); box-shadow: 0 0 15px rgba(255, 171, 0, 0.5); }

/* Tooltip Styles */
.card-tooltip {
    position: fixed;
    pointer-events: none;
    background: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    padding: 0;
    border-radius: 8px;
    z-index: 4000;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    width: 200px;
    backdrop-filter: blur(5px);
}

.tooltip-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}
.tooltip-rarity {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    display: inline-block;
    color: #000;
}
.tooltip-name { 
    font-weight: 800; 
    font-size: 1rem; 
    margin-bottom: 4px; 
    color: #fff;
}
.tooltip-collection { font-size: 0.75rem; color: var(--accent-secondary); margin-bottom: 10px; font-weight: 600; }
.tooltip-price { font-size: 0.9rem; color: var(--legendary); font-weight: 800; border-top: 1px solid var(--glass); padding-top: 8px; }

/* Shop Layout */
.shop-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.shop-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    text-align: center;
    transition: 0.3s;
}
.shop-card:hover { border-color: var(--accent-primary); transform: translateY(-5px); }
.shop-card h3 { margin: 15px 0 5px; color: var(--accent-secondary); }
.shop-card .price { font-weight: 800; color: var(--legendary); margin-bottom: 20px; display: block; }

.shop-preview-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 5;
}
.shop-preview-btn:hover {
    background: var(--accent-secondary);
    color: #000;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.cart-box {
    background: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cart-items {
    margin: 20px 0;
    border-top: 1px solid var(--glass);
    padding-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}
.cart-item {
    display: grid;
    grid-template-columns: 1fr 80px 70px 30px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    gap: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}
.qty-btn:hover { background: var(--accent-primary); }

.remove-btn {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: 0.2s;
    padding: 0;
    justify-self: center;
}
.remove-btn:hover { opacity: 1; transform: scale(1.2); }

/* Profile Avatar Styling */
.profile-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    background: var(--bg-surface);
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.3);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--accent-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.avatar-edit-btn:hover { transform: scale(1.1); background: white; }

/* Rankings Styles */
.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 20px;
}
.ranking-table tr { background: var(--bg-surface); transition: 0.3s; }
.ranking-table tr:hover { transform: scale(1.01); background: rgba(255,255,255,0.05); }
.ranking-table td { padding: 15px; border-top: 1px solid var(--glass); border-bottom: 1px solid var(--glass); }
.ranking-table td:first-child { border-left: 1px solid var(--glass); border-radius: 8px 0 0 8px; width: 60px; text-align: center; font-weight: 800; color: var(--accent-secondary); }
.ranking-table td:last-child { border-right: 1px solid var(--glass); border-radius: 0 8px 8px 0; text-align: right; font-weight: 800; color: var(--legendary); }

/* Podium Colors */
.ranking-table tr.rank-1 td:first-child { color: #ffd700; text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); font-size: 1.2rem; }
.ranking-table tr.rank-2 td:first-child { color: #c0c0c0; text-shadow: 0 0 15px rgba(192, 192, 192, 0.4); font-size: 1.1rem; }
.ranking-table tr.rank-3 td:first-child { color: #cd7f32; text-shadow: 0 0 15px rgba(205, 127, 50, 0.4); font-size: 1.05rem; }

.ranking-user { display: flex; align-items: center; gap: 15px; }
.ranking-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent-primary); }

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--glass);
    border: 1px solid var(--text-dim);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    color: var(--text-dim);
}
.info-icon:hover::after {
    content: "WARTOŚĆ KART:\A • Common: 1 pkt\A • Rare: 2 pkt\A • Epic: 3 pkt\A • Legendary: 5 pkt\A\A Power Score to suma punktów wszystkich kart w Twoim posiadaniu (wliczając duplikaty).";
    white-space: pre-wrap;
    text-align: left;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-main);
    border: 1px solid var(--accent-primary);
    padding: 10px;
    border-radius: 6px;
    width: 240px;
    font-style: normal;
    font-size: 0.75rem;
    line-height: 1.4;
    color: white;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

/* Collection Modal Specifics */
.collection-box {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    width: 95%;
    max-width: 1400px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--accent-primary);
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

/* Sticky Header in Collection */
.collection-modal-header {
    position: sticky;
    top: -40px; /* Offset match box padding */
    margin: -40px -40px 20px -40px;
    padding: 30px 40px 20px;
    background: var(--bg-surface);
    z-index: 100;
    border-bottom: 1px solid var(--glass);
    transition: all 0.3s ease;
}

.collection-modal-header.scrolled {
    padding: 15px 40px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom-color: var(--accent-primary);
}

.collection-modal-header.scrolled h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.collection-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn.unowned-toggle {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
    color: var(--accent-secondary);
}

.filter-btn.unowned-toggle.active {
    background: var(--accent-secondary);
    color: #000;
}

.card-count-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-secondary);
    color: #000;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    z-index: 5;
    box-shadow: 0 0 15px var(--accent-secondary);
    border: 2px solid var(--bg-surface);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
}

.auth-tabs button {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 10px 0;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-tabs button.active {
    color: var(--accent-secondary);
    border-bottom: 2px solid var(--accent-secondary);
}

.input-group {
    position: relative; margin: 25px 0;
}

.input-group input {
    width: 100%; background: none; border: none;
    border-bottom: 2px solid #333; color: white;
    padding: 10px 0; outline: none;
}

.input-group label {
    position: absolute; top: 10px; left: 0;
    color: #666; pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

#password-strength-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                margin 0.3s ease;
    text-align: left;
}

#password-strength-wrapper.visible {
    max-height: 300px; /* Wartość wystarczająca na pasek i listę */
    opacity: 1;
    margin-top: -15px;
    margin-bottom: 20px;
}

.strength-meter-bg {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    overflow: hidden;
}
.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#password-requirements {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 0.65rem;
    color: var(--text-dim);
}

#password-requirements li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

#password-requirements li i { font-size: 0.5rem; transition: 0.3s; }
#password-requirements li.met { color: #66bb6a; }

.toggle-password {
    position: absolute;
    right: 5px;
    top: 12px;
    cursor: pointer;
    color: var(--text-dim);
    transition: 0.3s;
    z-index: 10;
}
.toggle-password:hover { color: var(--accent-secondary); }

.auth-options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -10px 0 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: left;
}

.auth-options input { accent-color: var(--accent-secondary); cursor: pointer; }
.auth-options label { cursor: pointer; }

.cta-button {
    width: 100%;
    margin-top: 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.cta-button:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.4);
}

.error-text {
    color: #ff5252;
    font-size: 0.85rem;
    margin-top: 20px;
    min-height: 1.2rem;
}

.guest-notice {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: -10px;
    opacity: 0.7;
    font-style: italic;
}

.login-prompt {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-surface);
    border: 1px solid var(--glass);
    border-radius: 15px;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.login-prompt p {
    color: var(--text-dim);
    margin-top: 15px;
    line-height: 1.6;
}

.feature-list {
    text-align: left;
    color: var(--text-dim);
    margin: 30px 0;
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
}

.feature-list li span { font-size: 1.2rem; }

@keyframes pulse-purple {
    0% { box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(124, 77, 255, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3); }
}

@keyframes pulse-legendary {
    0% { box-shadow: 0 0 5px var(--legendary); border-color: var(--legendary); }
    50% { box-shadow: 0 0 25px var(--legendary); border-color: #fff; }
    100% { box-shadow: 0 0 5px var(--legendary); border-color: var(--legendary); }
}

/* Trading Center Styles */
.market-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 30px;
    table-layout: fixed;
}
.market-table th { 
    text-align: left; 
    padding: 10px 15px; 
    color: var(--text-dim);
    white-space: nowrap;
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    user-select: none;
    transition: color 0.2s;
}
.market-table th.sortable {
    cursor: pointer;
}
.market-table th.sortable:hover {
    color: var(--accent-secondary);
}
.market-table th.sortable::after {
    content: " ↕";
    opacity: 0.3;
    margin-left: 5px;
}
.market-table td { padding: 15px; background: var(--bg-surface); border-top: 1px solid var(--glass); border-bottom: 1px solid var(--glass); }
.market-table td:first-child { border-left: 1px solid var(--glass); border-radius: 8px 0 0 8px; }
.market-table td:last-child { border-right: 1px solid var(--glass); border-radius: 0 8px 8px 0; }
.market-table tr:hover td { background: rgba(255,255,255,0.05); }

.market-card-info { display: flex; align-items: center; gap: 15px; }
.market-card-img { width: 45px; height: 65px; border-radius: 6px; background-size: cover; background-position: center; border: 1px solid var(--glass); flex-shrink: 0; }

/* Custom Card Selector */
.custom-card-selector {
    position: relative;
    margin-top: 10px;
    user-select: none;
}
.selector-trigger {
    background: var(--bg-main);
    border: 1px solid var(--glass);
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: border-color 0.3s;
}
.custom-card-selector.open .selector-trigger { border-color: var(--accent-secondary); }
.selector-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0; right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.custom-card-selector.open .selector-options { display: block; }
.selector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--glass);
    transition: 0.2s;
    text-align: left;
}
.selector-item:hover { background: rgba(255,255,255,0.05); }
.selector-item img { width: 35px; height: 50px; border-radius: 4px; object-fit: cover; border: 1px solid transparent; }
.selector-item .item-name { font-weight: 700; font-size: 0.85rem; color: #fff; }
.selector-item .item-meta { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-top: 2px; }

/* Ukrywanie domyślnych strzałek w polach typu number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Market Search Styling */
.market-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.market-search-wrapper input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 40px 12px 42px;
    color: white;
    border-radius: 6px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.market-search-wrapper input:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    background: var(--bg-main);
}

.market-search-wrapper input::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
}

.market-search-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0.6;
}

.market-search-wrapper .clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    transition: color 0.2s;
    line-height: 1;
}

.market-search-wrapper .clear-search:hover {
    color: #ff5252;
}

/* Contracts Page Styles */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 5px;
    gap: 15px;
}

.inventory-header h2 {
    font-size: 1rem;
    letter-spacing: 1px;
    margin: 0;
}

#add-dupes-btn {
    margin-left: 10px;
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.contracts-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin: 40px 0 0; /* Zredukowano górny margines */
    align-items: start;
}

.contract-box {
    background: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 15px; /* Zredukowano padding z 20px */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contracts-inventory {
    max-height: calc(100vh - 280px); /* Większy margines bezpieczeństwa dla stopki */
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-gutter: stable; /* Zapobiega skakaniu treści przy pojawianiu się scrolla */
}

.contract-slots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.contract-slot {
    aspect-ratio: 2/3;
    border-radius: 6px;
    background: rgba(0,0,0,0.3);
    border: 1px dashed var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: 0.3s;
}

.contract-slot.empty:hover { border-color: var(--accent-secondary); color: var(--accent-secondary); }
.contract-slot.filled { border-style: solid; border-width: 2px; }
.contract-slot.filled.common { border-color: var(--common); }
.contract-slot.filled.rare { border-color: var(--rare); }
.contract-slot.filled.epic { border-color: var(--epic); box-shadow: 0 0 10px rgba(213, 0, 249, 0.3); }
.contract-slot.filled.legendary { border-color: var(--legendary); box-shadow: 0 0 15px rgba(255, 171, 0, 0.4); }

/* Animacja wskakiwania karty do slotu */
@keyframes slot-bounce-in {
    0% { transform: scale(0.6) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.contract-slot.just-added {
    animation: slot-bounce-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.contract-reward-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--glass);
}

.reward-preview-card {
    width: 120px;
    height: 180px;
    border-radius: 12px;
    background: #000;
    border: 2px solid var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Animacja lewitacji i mistycznej poświaty */
@keyframes float-mystic {
    0% { 
        transform: translateY(0); 
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3)); 
    }
    50% { 
        transform: translateY(-12px); 
        filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.7)); 
    }
    100% { 
        transform: translateY(0); 
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3)); 
    }
}

/* Specyficzna korekta stopki dla Kontraktów */
.contracts-page footer {
    margin-top: 0;
}

.mini-card.unknown {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}

.reward-preview-card.active { 
    border-color: var(--accent-secondary); 
    animation: float-mystic 3s ease-in-out infinite; 
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, #000 70%);
    cursor: help;
}

.reward-preview-card.active.rare { border-color: var(--rare); box-shadow: 0 0 20px var(--rare); }
.reward-preview-card.active.epic { border-color: var(--epic); box-shadow: 0 0 25px var(--epic); }
.reward-preview-card.active.legendary { border-color: var(--legendary); box-shadow: 0 0 30px var(--legendary); }

@media (max-width: 1024px) {
    .contracts-layout { grid-template-columns: 1fr; }
    .contracts-panel { order: -1; }
    
    .contracts-inventory {
        max-height: 410px; /* Zwiększono o 60px na telefonach */
        margin-top: 20px;
    }

    .inventory-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    #inventory-rarity-filter {
        justify-content: center;
        width: 100%;
        gap: 6px;
    }

    #add-dupes-btn {
        margin-left: 0;
        flex-basis: 100%;
        margin-top: 5px;
        font-size: 0.75rem; /* Nieco większy tekst dla lepszej czytelności na telefonie */
    }
}

.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
}

/* Header Bonus Icon */
.header-bonus-icon {
    cursor: pointer;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--accent-secondary));
    animation: bonus-pulse 2s infinite ease-in-out;
    transition: 0.3s;
}

.header-bonus-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px var(--accent-secondary));
}

@keyframes bonus-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Mystery Box UI */
.mystery-box-container {
    position: relative;
    width: 100%;
    height: 120px;
    background: #0d0d0f;
    border: 1px solid var(--glass);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.mystery-pointer {
    position: absolute;
    left: 50%;
    top: -2px;
    z-index: 5;
    transform: translateX(-50%);
    color: var(--accent-secondary);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent-secondary));
    pointer-events: none;
}

.mystery-track {
    display: flex;
    padding: 0 50%;
    transition: transform 6s cubic-bezier(0.1, 0, 0.1, 1);
    will-change: transform;
}

.mystery-item {
    width: 100px;
    box-sizing: border-box;
    height: 100px;
    margin: 0 5px;
    background: #1a1a1f;
    border: 1px solid var(--glass);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

.mystery-item.pack {
    border-color: var(--accent-primary);
    background: rgba(124, 77, 255, 0.05);
}

.mystery-item span {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-secondary);
    white-space: nowrap;
    overflow: hidden;
}

/* Stylizacja wyszukiwarki w kolekcji */
.collection-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

.collection-search-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass);
    padding: 12px 20px 12px 45px;
    color: white;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.collection-search-wrapper input:focus {
    border-color: var(--accent-secondary);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.collection-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 1rem;
    pointer-events: none;
}

/* Missions Styles */
.mission-type-title {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    border-bottom: 1px solid var(--glass);
    padding-bottom: 8px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.mission-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.mission-info h4 { margin: 0; font-size: 0.9rem; color: #fff; }
.mission-info p { margin: 5px 0 0; font-size: 0.75rem; color: var(--text-dim); }

.mission-lvl-badge {
    font-size: 0.6rem;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.mission-progress-container { width: 120px; text-align: right; }
.mission-bar-bg { width: 100%; height: 6px; background: #000; border-radius: 3px; margin-bottom: 5px; overflow: hidden; }
.mission-bar-fill { height: 100%; background: var(--accent-secondary); transition: 0.5s; }

.mission-reward { font-size: 0.7rem; font-weight: 800; color: var(--legendary); margin-top: 5px; display: block; }

.btn-claim {
    background: var(--rare);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
}
.btn-claim:disabled { opacity: 0.3; cursor: not-allowed; }
.mission-item.completed { border-color: var(--rare); background: rgba(3, 218, 198, 0.05); }

/* Ustawienie sztywnego nagłówka i przewijalnej listy w modalu misji */
#missions-modal .collection-box {
    display: flex;
    flex-direction: column;
    overflow-y: hidden; /* Wyłączamy scroll całego modala */
    height: 85vh;
}

#active-missions-list {
    overflow-y: auto; /* Włączamy scroll tylko dla listy */
    flex: 1; /* Lista zajmie całą pozostałą przestrzeń */
    padding-right: 10px; /* Miejsce na scrollbar, żeby nie nachodził na karty */
    margin-top: 10px;
    scrollbar-gutter: stable; /* Zapobiega "skakaniu" treści przy pojawieniu się scrolla */
}

/* Powiadomienia o gotowych misjach */
@keyframes pulse-mission {
    0% { box-shadow: 0 0 0px rgba(0, 229, 255, 0); border-color: rgba(255,255,255,0.1); background: var(--glass); }
    50% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.8); border-color: var(--accent-secondary); background: rgba(0, 229, 255, 0.15); }
    100% { box-shadow: 0 0 0px rgba(0, 229, 255, 0); border-color: rgba(255,255,255,0.1); background: var(--glass); }
}

.user-toggle.highlight-missions {
    animation: pulse-mission 1s infinite ease-in-out;
}

@keyframes mission-text-blink {
    0%, 100% { color: var(--accent-secondary); text-shadow: 0 0 10px rgba(0, 229, 255, 0.8); }
    50% { color: #fff; text-shadow: none; }
}

.dropdown-menu a.mission-highlight {
    color: var(--accent-secondary) !important;
    background: rgba(0, 229, 255, 0.1);
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: mission-text-blink 1s infinite ease-in-out;
    border-left: 3px solid var(--accent-secondary);
    padding-left: 17px; /* Skompensowanie bordera */
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-item {
    background: var(--bg-surface);
    border: 1px solid var(--accent-secondary);
    color: white;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: auto;
    animation: toastIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, 
               fadeOut 1s ease forwards 3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-item i {
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

@keyframes toastIn {
    from { transform: translateX(-150%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-40px); }
}

.mission-timer {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-dim);
    margin-left: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.admin-link {
    color: #ff5252 !important;
    font-weight: 800 !important;
}

.admin-link:hover {
    background: rgba(255, 82, 82, 0.1) !important;
}

/* Kolor sumy w koszyku */
#cart-total {
    color: var(--legendary);
}

/* Animacja powiększania ceny w koszyku */
@keyframes cart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--legendary); }
    100% { transform: scale(1); }
}

.cart-pop-effect {
    display: inline-block;
    transition: 0.2s;
    animation: cart-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#checkout-btn:disabled {
    box-shadow: none;
}

/* Notification Styles */
.notification-container {
    position: relative;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dim);
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.notification-container:hover { color: var(--accent-secondary); }

.notif-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff5252;
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid var(--bg-surface);
    min-width: 10px;
    text-align: center;
}

.notif-dropdown {
    width: 320px;
    right: -100px;
    top: calc(100% + 20px);
    padding: 0;
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid var(--glass);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 1px;
}

.notif-header span {
    font-size: 0.6rem;
    color: var(--text-dim);
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
}
.notif-header span:hover { color: var(--accent-primary); }

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    font-size: 0.8rem;
    line-height: 1.4;
    transition: 0.2s;
    color: var(--text-dim);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.notif-delete-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.2s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.notif-icon {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    color: var(--accent-secondary);
    font-size: 1.1rem;
    padding-top: 2px;
}

.notif-delete-btn:hover {
    color: #ff5252;
    transform: scale(1.1);
}

.notif-item strong {
    color: var(--text-main);
    transition: 0.2s;
}

.notif-item.unread { border-left: 3px solid var(--accent-secondary); background: rgba(0, 229, 255, 0.02); }
.notif-item:hover { 
    background: rgba(255, 255, 255, 0.08); 
    color: var(--accent-secondary);
}
.notif-item:hover strong { color: var(--accent-secondary); }
.notif-date { display: block; font-size: 0.65rem; color: var(--text-dim); margin-top: 5px; }

/* Profile Showcase */
.profile-showcase {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.showcase-slot {
    width: 180px;
    height: 260px;
    border-radius: 12px;
    border: 2px dashed rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s;
}

.showcase-slot.empty.is-owner {
    cursor: pointer;
    border-color: var(--glass);
}

.showcase-slot.empty.is-owner:hover {
    background: rgba(124, 77, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.showcase-slot .slot-plus {
    font-size: 2rem;
    color: var(--text-dim);
    opacity: 0.3;
}

.showcase-slot .mini-card { width: 100%; height: 100%; transform: none !important; margin: 0; }
.showcase-slot .slot-actions { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    z-index: 10; 
    display: none; 
    gap: 8px;
}
.showcase-slot:hover .slot-actions { display: flex; }

.showcase-slot .action-btn { 
    width: 36px; 
    height: 36px; 
    font-size: 0.9rem; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.action-btn.edit-btn {
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}
.action-btn.edit-btn:hover {
    background: var(--accent-secondary);
    color: #000;
    transform: scale(1.1);
}

.action-btn.delete-btn {
    border: 1px solid #ff5252;
    color: #ff5252;
}
.action-btn.delete-btn:hover {
    background: #ff5252;
    color: #fff;
    transform: scale(1.1);
}

/* Profile Showcase Hover Glows */
.showcase-slot:not(.empty):hover .mini-card.common { box-shadow: 0 0 15px rgba(176, 176, 176, 0.4); border-color: var(--common); }
.showcase-slot:not(.empty):hover .mini-card.rare { box-shadow: 0 0 20px rgba(3, 218, 198, 0.6); border-color: var(--rare); }
.showcase-slot:not(.empty):hover .mini-card.epic { box-shadow: 0 0 30px var(--epic); }
.showcase-slot:not(.empty):hover .mini-card.legendary { box-shadow: 0 0 35px var(--legendary); }

/* --- MEDIA QUERIES (RESPONSIVE DESIGN) --- */

/* Menu Toggle Button (Ukryty domyślnie) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
    z-index: 2001; /* Nad menu */
}

@media (max-width: 1024px) {
    header {
        grid-template-columns: 1fr auto auto;
        padding: 20px 0;
        position: relative;
    }
    .brand h1 { font-size: 1.2rem; }
    .menu-toggle { display: block; order: 3; }
    .header-actions { grid-column: auto; order: 2; }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        box-sizing: border-box;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        border: none;
        z-index: 2000;
        gap: 20px;
    }

    .main-nav.active { display: flex; animation: fadeIn 0.3s ease; }
    
    .main-nav .nav-link { 
        width: 100%; 
        max-width: 300px;
        justify-content: center; 
        font-size: 1.2rem;
        padding: 15px 25px;
        background: var(--glass);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        opacity: 0;
    }

    .main-nav.active .nav-link { animation: menuLinkIn 0.4s ease forwards; }
    .main-nav.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .main-nav.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .main-nav.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .main-nav.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .main-nav.active .nav-link:nth-child(5) { animation-delay: 0.5s; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes menuLinkIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .app-wrapper { padding: 0 15px; }
    .main-nav { padding: 20px 15px; }
    
    /* Sklep i Rynek */
    .shop-container { grid-template-columns: 1fr; gap: 30px; }
    .cart-box { position: static; order: 2; }
    .shop-content { order: 1; }

    .homepage-layout {
        grid-template-columns: 1fr;
    }
    .pack-section, .recent-pulls-sidebar {
        grid-column: 1;
        width: 100%;
        justify-self: center;
    }
    .recent-pulls-sidebar { 
        width: 100%; 
        max-width: 100%;
        margin: 20px 0;
        justify-self: center;
    }

    .market-header-container { flex-wrap: wrap; }
    .market-header-container h2 { order: 1; margin: 0 !important; }
    .market-header-container .btn-market-list { order: 2; }
    .market-search-wrapper { order: 3; flex: 1 1 100%; margin: 20px 0 0 !important; max-width: 100%; }

    /* Ranking Table Horizontal Scroll */
    .ranking-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Market Table Card Layout */
    .market-table {
        display: block;
        width: 100%;
        table-layout: auto;
        border: none;
    }
    .market-table thead {
        display: none;
    }
    .market-table tbody, .market-table tr, .market-table td {
        display: block;
        width: 100%;
    }
    .market-table tr {
        background: var(--bg-surface);
        border: 1px solid var(--glass);
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    .market-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none !important;
        background: transparent !important;
    }
    .market-table td::before {
        content: attr(data-label) ":";
        font-weight: 800;
        color: var(--text-dim);
        font-size: 0.65rem;
        text-transform: uppercase;
    }
    .market-table td[data-label="Karta"],
    .market-table td[data-label="Akcja"] {
        display: block;
        text-align: center;
    }
    .market-table td[data-label="Karta"]::before,
    .market-table td[data-label="Akcja"]::before {
        display: none;
    }
    .market-table td[data-label="Karta"] .market-card-info {
        justify-content: center;
    }
    .market-table td[data-label="Karta"] {
        border-bottom: 1px solid var(--glass) !important;
        padding-bottom: 12px;
        margin-bottom: 10px;
    }

    .market-rarity-filters {
        flex-wrap: wrap;
    }

    /* Karty i paczki */
    .booster-pack { width: 160px; height: 230px; }
    .cards-reveal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cards-reveal-grid > div { width: 100%; height: auto; }
    .cards-reveal-grid .card-inner { height: 230px; }
    .sell-container { margin-top: 10px; }
    
    /* Przełączanie strzałek na mobile */
    .mobile-arrow { display: inline-block !important; }
    .desktop-arrow { display: none !important; }

    /* Modale */
    .collection-box, .auth-card { padding: 25px 15px; width: 95%; margin: 10px; }
    .collection-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }
    
    /* Profil */
    .profile-avatar-container {
        width: 100px;
        height: 100px;
    }
    .avatar-edit-btn { width: 30px; height: 30px; font-size: 0.8rem; }
    .showcase-slot { width: 140px; height: 200px; }
    
    .sell-list-container { grid-template-columns: repeat(4, 1fr); }

    #pack-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
        align-items: stretch;
    }

    #pack-actions button {
        width: 100% !important;
        margin: 0 !important;
        padding: 14px 15px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .user-toggle span:not(.arrow) { display: none; }
    .brand h1 { letter-spacing: 2px; }
    .cards-reveal-grid { grid-template-columns: repeat(2, 1fr); }
    .pack-inventory { font-size: 0.75rem; }

    .header-bonus-icon {
        position: fixed;
        bottom: 30px;
        right: 20px;
        z-index: 1001;
        background: var(--bg-surface);
        width: 55px;
        height: 55px;
        border-radius: 50%;
        border: 2px solid var(--accent-secondary);
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
        font-size: 1.5rem;
    }

    .header-bonus-icon.is-bonus-visible-mobile { /* New class for mobile visibility */
        display: flex !important; /* Keep !important to override inline-block from JS */
        align-items: center;
        justify-content: center;
    }

    #mission-tabs {
        gap: 8px;
        flex-wrap: wrap;
    }

    #mission-tabs .filter-btn {
        padding: 8px 10px;
        font-size: 0.7rem;
        flex: 1 1 40%;
        text-align: center;
    }

    /* Collection Page Specifics for mobile */
    .collection-modal-header {
        padding: 20px 15px 15px; /* Reduced padding */
        margin: -20px -15px 20px -15px; /* Adjust margin to fit new padding */
    }
    .collection-modal-header h1 {
        font-size: 1.5rem; /* Smaller title */
        margin-bottom: 15px;
    }
    .collection-controls-row {
        flex-direction: column; /* Stack filters and toggle */
        gap: 10px;
        align-items: stretch; /* Stretch items to full width */
    }
    .collection-filters {
        flex-wrap: wrap; /* Ensure buttons wrap */
        justify-content: center; /* Center buttons when wrapped */
        gap: 8px; /* Smaller gap between buttons */
    }

    .collection-filters .group-label {
        flex: 1 1 100%; /* Na telefonie zajmuje całą szerokość nad przyciskami */
        text-align: center;
        margin-bottom: 5px;
        margin-right: 0 !important;
    }

    .collection-filters .filter-btn {
        padding: 8px 12px; /* Smaller padding */
        font-size: 0.7rem; /* Smaller font size */
        flex: 1 1 45%; /* Allow two buttons per row, with some space */
        max-width: calc(50% - 4px); /* Max width for two columns */
    }
    .switch-container {
        font-size: 0.65rem; /* Smaller font for toggle label */
        padding: 8px 12px;
        justify-content: center; /* Center content in switch container */
    }
    .collection-search-wrapper {
        max-width: 100%; /* Ensure full width */
        margin: 15px 0 0; /* Adjust margin */
    }
    .collection-search-wrapper input {
        padding: 10px 15px 10px 40px; /* Adjust padding for search icon */
        font-size: 0.8rem;
    }
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Adjust min card size */
        gap: 15px; /* Keep a reasonable gap */
    }
    .mini-card {
        border-radius: 8px; /* Slightly smaller border radius */
    }
    .mini-card .card-count-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        top: 5px;
        left: 5px;
    }
    .mini-card .rarity-badge {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
    .mini-card .card-collection {
        font-size: 0.5rem;
    }
    .mini-card .card-title {
        font-size: 0.8rem;
    }
    .mini-card .card-author {
        font-size: 0.45rem;
        top: 5px;
        right: 5px;
        padding: 2px 5px;
    }
    .mini-card-actions {
        gap: 5px; /* Smaller gap for action buttons */
    }
    .mini-card .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

/* Collection Hover Actions */
.mini-card-actions {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: 0.3s;
    z-index: 20;
}

.mini-card:hover .mini-card-actions {
    opacity: 1;
}

.mini-card .action-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.mini-card .action-btn:hover {
    transform: scale(1.1);
    background: var(--accent-primary);
}

.mini-card .action-btn.sell-btn:hover { background: #ff5252; }
.mini-card .action-btn.market-btn:hover { background: var(--accent-secondary); color: #000; }

/* Merchant Icon Styles */
.merchant-icon {
    position: fixed;
    bottom: 30px;
    left: 40px;
    z-index: 1001;
    cursor: pointer;
    width: 90px;
    height: 90px;
    background-image: url('assets/kupiec.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.6));
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: merchant-pulse 2s infinite ease-in-out;
}

@keyframes merchant-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(219, 170, 67, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px #dbaa43);
        transform: scale(1.1);
    }
}

.merchant-icon:hover {
    transform: scale(1.2) rotate(12deg);
    filter: drop-shadow(0 0 30px #dbaa43) brightness(1.3);
}

.merchant-icon.no-glow {
    animation: none;
    filter: grayscale(0.5) drop-shadow(0 0 5px rgba(0,0,0,0.5));
    opacity: 0.8;
}

@media (max-width: 480px) {
    .merchant-icon {
        left: auto; right: 20px; bottom: 100px; width: 65px; height: 65px;
    }
}

/* Merchant Modal Desert Style */
.merchant-shop-card {
    background: linear-gradient(135deg, #1a120b 0%, #2c1e14 100%);
    border: 3px solid #c68642;
    border-radius: 15px;
    width: 95%;
    max-width: 800px;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 50px rgba(198, 134, 66, 0.3), inset 0 0 30px rgba(0,0,0,0.5);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(226, 180, 92, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(226, 180, 92, 0.05) 0%, transparent 20%);
}

.merchant-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(198, 134, 66, 0.4);
    padding-bottom: 20px;
}

.merchant-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #e2b45c;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 15px rgba(226, 180, 92, 0.4);
}

.merchant-subtitle {
    color: #c68642;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: 700;
}

.merchant-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    min-height: 200px;
    padding: 10px;
}

.merchant-item-card {
    background: rgba(0,0,0,0.4);
    border: 1px solid #c68642;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.merchant-item-card:hover {
    background: rgba(198, 134, 66, 0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.merchant-item-card h3 {
    font-size: 0.7rem;
    color: #c68642;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.merchant-item-card .price-tag {
    color: #e2b45c;
    font-weight: 900;
    margin: 15px 0;
    font-size: 1.1rem;
}

.merchant-item-card .stock-info {
    font-size: 0.65rem;
    color: #a0a0a5;
    margin-bottom: 10px;
    font-weight: 700;
}

.merchant-footer {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(198, 134, 66, 0.3);
    padding-top: 25px;
}

.merchant-timer {
    color: #e2b45c;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #c68642;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
    .merchant-shop-card { padding: 25px 15px; }
    .merchant-title { font-size: 1.4rem; letter-spacing: 2px; }
}

/* Flying Coin Animation */
.flying-coin {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    color: var(--legendary);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 171, 0, 0.5);
    animation: coin-fly 0.8s ease-out forwards;
}

@keyframes coin-fly {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { 
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* --- Market/Trade Modal Specific Styles --- */
.trade-modal-section { margin-bottom: 20px; }
.trade-modal-divider { 
    margin: 25px 0 20px; 
    padding-top: 15px; 
    border-top: 1px dashed var(--glass);
    text-align: center;
}
.trade-modal-header { 
    color: var(--accent-secondary); 
    font-size: 0.7rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    letter-spacing: 1px; 
}
.trade-modal-divider label { 
    display: block; 
    margin-bottom: 10px; 
    font-size: 0.75rem; 
    color: var(--text-dim); 
    text-transform: uppercase; 
    font-weight: 700; 
}
.collection-selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--glass);
    border-radius: 4px;
    justify-content: center;
    margin-bottom: 15px;
}
.collection-selector-grid .filter-btn {
    border-radius: 4px;
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.1);
    color: var(--text-dim);
    padding: 6px 14px;
    font-size: 0.7rem;
}
.collection-selector-grid .filter-btn:hover { border-color: var(--accent-secondary); color: white; }
.collection-selector-grid .filter-btn.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--accent-secondary);
    color: white;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.trade-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
    padding: 10px;
}
.selector-search-box {
    padding: 10px;
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 10;
    border-bottom: 1px solid var(--glass);
}

/* Obsługa responsywnych strzałek w kontraktach */
.mobile-arrow { display: none !important; }
.desktop-arrow { display: inline-block !important; }

/* Zaawansowany wygląd banneru profilu */
.profile-header { 
    position: relative; 
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center; 
    padding: 100px 0 60px; 
    border-bottom: 2px solid var(--glass); 
    margin-bottom: 40px; 
    display: block; 
    z-index: 1; 
    overflow: hidden;
    /* Mocna winieta dolna dla czytelności nicku i głębi */
    box-shadow: inset 0 -120px 150px -60px rgba(0,0,0,0.9),
                inset 0 0 100px rgba(0,0,0,0.2);
    transition: background-color 0.5s ease;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Dodanie siatki technologicznej i dynamicznych świateł */
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0,0,0,0.3) 0%, transparent 50%),
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    z-index: -1;
}

.profile-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Szum, linie skanowania i efekt aberracji chromatycznej */
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 200px 200px, 100% 4px, 100% 100%;
    opacity: 0.3;
    mix-blend-mode: overlay;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulse-desert {
    0% { box-shadow: 0 4px 0 #8d5d2e, 0 4px 15px rgba(198, 134, 66, 0.3); }
    50% { box-shadow: 0 4px 0 #8d5d2e, 0 4px 25px rgba(198, 134, 66, 0.6); }
    100% { box-shadow: 0 4px 0 #8d5d2e, 0 4px 15px rgba(198, 134, 66, 0.3); }
}

.btn-merchant {
    animation: pulse-desert 2s infinite ease-in-out !important;
    text-shadow: 0 0 8px rgba(141, 93, 46, 0.5) !important;
}
