/* Mobile menu */
@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
#mobileMenu {
    display: none;
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    z-index: 60;
    background: #0f1520;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(59,130,246,0.08);
    animation: menuSlideDown 0.22s ease;
    overflow: hidden;
}
@media (min-width: 1280px) {
    #mobileMenu { display: none !important; }
}
/* --- VIP PASS: natychmiastowa zmiana koloru przycisku po odebraniu --- */
.claimed-btn {
    background: #ffd600 !important; /* jasny żółty */
    color: #a97a00 !important;     /* ciemny napis */
    cursor: default !important;
    opacity: 1;
    border: none;
    pointer-events: none;
    box-shadow: 0 2px 8px #ffd60044;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.claimed-card {
    border-color: #bfa100 !important;
    box-shadow: 0 2px 16px #bfa10044;
}
/* VIP PASS Skrzynka i Płomień Animacje */
.animate-vip-pop {
    animation: vip-pop 0.7s cubic-bezier(0.23, 1.12, 0.32, 1) both;
}
@keyframes vip-pop {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.animate-vip-shine {
    animation: vip-shine 1.2s linear infinite;
}
@keyframes vip-shine {
    0% { filter: brightness(1) drop-shadow(0 0 0px #fffbe6); }
    50% { filter: brightness(1.3) drop-shadow(0 0 16px #ffe066); }
    100% { filter: brightness(1) drop-shadow(0 0 0px #fffbe6); }
}
/* VIP PASS Animations */
.animate-vip-pop {
    animation: vip-pop 0.7s cubic-bezier(0.23, 1.12, 0.32, 1) both;
}
@keyframes vip-pop {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.animate-vip-shine {
    animation: vip-shine 1.2s linear infinite;
}
@keyframes vip-shine {
    0% { filter: brightness(1) drop-shadow(0 0 0px #fffbe6); }
    50% { filter: brightness(1.3) drop-shadow(0 0 16px #ffe066); }
    100% { filter: brightness(1) drop-shadow(0 0 0px #fffbe6); }
}

.animate-vip-glow {
    animation: vip-glow 1.5s ease-in-out infinite alternate;
}
@keyframes vip-glow {
    0% { text-shadow: 0 0 0px #ffe066; }
    100% { text-shadow: 0 0 16px #ffe066, 0 0 8px #fffbe6; }
}

.animate-vip-shake {
    animation: vip-shake 0.7s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes vip-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-8px); }
    40%, 60% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}
/* --- Akcje w tabeli admina --- */
.action-btn {
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 600;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: none;
}
.edit-btn {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}
.edit-btn:hover {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 2px 8px 0 rgba(37,99,235,0.10);
}
.delete-btn {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}
.delete-btn:hover {
    color: #fff;
    background: #dc2626;
    box-shadow: 0 2px 8px 0 rgba(220,38,38,0.10);
}
.action-btn svg {
    display: inline;
    vertical-align: middle;
    margin-right: 2px;
}
/* -- szybkie opinie - motyw ciemny niebieski -- */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Nav links */
.nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.75rem;
    font-size: 12.5px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.nav-link:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.08);
}
.nav-link.active {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
}
.nav-link.nav-admin {
    color: rgba(251, 191, 36, 0.8);
}
.nav-link.nav-admin:hover {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
}
.nav-link.nav-admin.active {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

/* Nav icon styling — inline, no box */
.nav-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}
.nav-link.active .nav-icon {
    color: #93bbfd;
}
.nav-icon-admin {
    color: #fbbf24 !important;
}
.nav-link.nav-admin.active .nav-icon-admin {
    color: #fcd34d !important;
}
.nav-link.nav-admin:hover .nav-icon-admin {
    color: #fbbf24 !important;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.15s ease;
}
.mobile-nav-link:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom scrollbar — blue accent */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #060910; }
::-webkit-scrollbar-thumb { background: #1e40af; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Table row hover */
tbody tr:hover td {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Badge pulse */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}
.pulse-badge {
    animation: pulse-glow 2s infinite;
}

/* File input styling */
input[type="file"]::file-selector-button {
    cursor: pointer;
}

/* Page heading — code-block style */
.page-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    border-left: 3px solid #3b82f6;
    padding: 0.65rem 1.25rem 0.65rem 1rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-family: 'Inter', ui-monospace, monospace;
    letter-spacing: -0.02em;
}

/* Focus ring — blue */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Cards glow on hover */
.bg-dc-card {
    transition: border-color 0.2s ease;
}
.bg-dc-card:hover {
    border-color: rgba(59, 130, 246, 0.15);
}

/* -- toasty powiadomien SSE -- */
#notification-container {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100vw - 40px);
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(15, 21, 32, 0.97), rgba(10, 14, 23, 0.98));
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateX(120%);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.toast-notification:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.15);
}
.toast-notification.toast-exit {
    animation: toastSlideOut 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.toast-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    animation: toastIconPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.toast-icon.success { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.toast-icon.error   { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.toast-icon.info    { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.toast-icon.money   { background: rgba(234, 179, 8, 0.15); color: #eab308; }

.toast-body {
    flex: 1;
    min-width: 0;
}
.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}
.toast-message {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.4;
}
.toast-amount {
    display: inline-block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 800;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 10px;
    border-radius: 8px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 0 0 16px 16px;
    animation: toastProgress 5s linear forwards;
}

@keyframes toastSlideIn {
    0%   { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    0%   { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}
@keyframes toastIconPop {
    0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
    50%  { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes toastProgress {
    0%   { width: 100%; }
    100% { width: 0%; }
}

/* Shimmer effect on new toast */
.toast-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.06), transparent);
    border-radius: 16px;
    animation: toastShimmer 1s ease 0.3s forwards;
}
@keyframes toastShimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}
