/* ========================================
   Premium Additional Styles
   ======================================== */

/* Premium Effects */
.premium-glow {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    animation: premiumGlowPulse 3s ease-in-out infinite;
}

@keyframes premiumGlowPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.5); }
}

.premium-border {
    border: 2px solid var(--accent);
}

.premium-gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FF9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.premium-gradient-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FF9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

/* Glassmorphism Enhanced */
.glass-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
    animation: glassShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glassShine {
    0%, 100% { transform: translate(-10%, -10%); }
    50% { transform: translate(10%, 10%); }
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
}

.gradient-animated {
    background: linear-gradient(-45deg, #0F172A, #1E293B, #334155, #0F172A);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

/* Premium Button Hover Effects */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 0 25px rgba(255, 215, 0, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

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

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pulse Glow */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

/* Bounce Animation */
.bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Rotate Animation */
.rotate {
    animation: rotate 1s ease;
}

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

/* Card Hover Effects */
.card-premium {
    transition: all 0.3s ease;
}

.card-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.1);
}

/* Group Card Enhanced */
.group-card.premium {
    position: relative;
    overflow: hidden;
}

.group-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.group-card.premium .group-title {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Input Enhanced */
.input-premium {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.input-premium::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-premium:focus::before {
    opacity: 1;
}

/* Loading Spinner */
.spinner-premium {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Countdown Animation */
.countdown {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse 0.5s ease-in-out infinite;
}

/* Confetti Effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s ease forwards;
}

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

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Focus Ring Enhanced */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Selection Premium */
::selection {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--primary);
}

/* Scrollbar Premium */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #020617 0%, #0F172A 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700 0%, #FFC107 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFC107 0%, #FF9800 100%);
}

/* Noise Texture Overlay */
.noise-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Premium Badge */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Tooltip Premium */
.tooltip-premium {
    position: relative;
}

.tooltip-premium::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip-premium:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Progress Bar Premium */
.progress-premium {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-premium .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Modal Premium */
.modal-premium {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-premium.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-premium {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-premium.active .modal-content-premium {
    transform: scale(1);
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background: var(--bg-primary);
    }
}

/* Print Premium */
@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Page Premium Layout (for new standalone pages) */
.page-premium {
    position: relative;
    padding-top: 110px;
    min-height: 100vh;
}

.page-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 215, 0, 0.12), transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.10), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.08), transparent 40%);
    pointer-events: none;
}

.page-premium .container {
    position: relative;
    z-index: 1;
}

.page-hero {
    text-align: center;
    margin-bottom: 28px;
}

.page-hero .badge-premium {
    margin-bottom: 14px;
}

.page-hero h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin-bottom: 10px;
    line-height: 1.2;
}

.page-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: #cbd5e1;
}

.premium-card {
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background:
        linear-gradient(140deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.88) 100%);
    box-shadow:
        0 18px 45px rgba(2, 6, 23, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.premium-card + .premium-card {
    margin-top: 18px;
}

.premium-divider {
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.45), transparent);
}

.premium-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #dbe4f0;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.premium-list li span {
    flex: 1;
    line-height: 1.6;
}

.premium-list li i {
    color: var(--accent);
    margin-top: 3px;
}

.premium-callout {
    margin-top: 14px;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 193, 7, 0.06) 100%);
    color: #e2e8f0;
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

@media (max-width: 768px) {
    .premium-callout {
        padding: 12px 16px;
        font-size: 0.9rem;
        margin: 12px auto;
    }
}

.page-footer-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

