/**
 * MU Gondor - Custom Styles
 * =========================
 * Tematica: Medieval, Magia Oscura, Fantasy Dark
 */

/* ===========================================
   ROOT VARIABLES - DARK MAGIC THEME
   =========================================== */
:root {
    --color-blood: #8b0000;
    --color-blood-light: #dc143c;
    --color-magic-purple: #6b21a8;
    --color-magic-blue: #1e40af;
    --color-dark-gold: #b8860b;
    --color-ancient-gold: #daa520;
    --color-shadow: rgba(0, 0, 0, 0.8);
    --color-mist: rgba(139, 0, 0, 0.1);
}

/* ===========================================
   GLOBAL DARK THEME
   =========================================== */
body {
    background:
        radial-gradient(ellipse at top, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #050508 0%, #0a0a12 50%, #0f0a15 100%);
    background-attachment: fixed;
}

/* ===========================================
   SCROLLBAR - BLOOD THEME
   =========================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
    border-left: 1px solid rgba(139, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6b21a8 0%, #8b0000 100%);
    border-radius: 5px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

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

/* ===========================================
   SELECTION - MAGIC THEME
   =========================================== */
::selection {
    background: rgba(139, 0, 0, 0.5);
    color: #daa520;
}

/* ===========================================
   PARTICLES & MAGIC EFFECTS
   =========================================== */

/* Floating particles background */
.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Dynamic particle element */
.magic-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-rise 15s ease-in-out infinite;
}

@keyframes particle-rise {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Star particles - larger and brighter */
.magic-particle.star {
    animation: star-rise 20s ease-in-out infinite;
}

@keyframes star-rise {
    0%, 100% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translateY(80vh) scale(1);
    }
    50% {
        transform: translateY(0vh) scale(1.2);
    }
    95% {
        opacity: 1;
        transform: translateY(-80vh) scale(1);
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Ambient glow overlay */
.magic-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(107, 33, 168, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 0, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(218, 165, 32, 0.04) 0%, transparent 60%);
    animation: ambient-glow 15s ease-in-out infinite alternate;
}

@keyframes ambient-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Magic dust effect */
@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mystical glow pulse */
@keyframes mystic-glow {
    0%, 100% {
        box-shadow:
            0 0 5px rgba(107, 33, 168, 0.5),
            0 0 10px rgba(107, 33, 168, 0.3),
            0 0 20px rgba(107, 33, 168, 0.2);
    }
    50% {
        box-shadow:
            0 0 10px rgba(139, 0, 0, 0.6),
            0 0 20px rgba(139, 0, 0, 0.4),
            0 0 40px rgba(139, 0, 0, 0.3),
            0 0 60px rgba(139, 0, 0, 0.2);
    }
}

/* Blood drip animation */
@keyframes blood-drip {
    0% {
        transform: translateY(-100%) scaleY(0);
        opacity: 0;
    }
    20% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) scaleY(2);
        opacity: 0;
    }
}

/* Dark energy wave */
@keyframes dark-energy {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Rune glow animation */
@keyframes rune-glow {
    0%, 100% {
        text-shadow:
            0 0 5px currentColor,
            0 0 10px currentColor;
        filter: brightness(1);
    }
    50% {
        text-shadow:
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor;
        filter: brightness(1.3);
    }
}

/* Fire flicker effect */
@keyframes fire-flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(-1deg);
    }
    25% {
        opacity: 0.9;
        transform: scale(1.01) rotate(1deg);
    }
    50% {
        opacity: 1;
        transform: scale(0.99) rotate(-0.5deg);
    }
    75% {
        opacity: 0.95;
        transform: scale(1.02) rotate(0.5deg);
    }
}

/* Lightning flash */
@keyframes lightning-flash {
    0%, 90%, 100% {
        opacity: 0;
    }
    92%, 94%, 96% {
        opacity: 0.8;
    }
    93%, 95% {
        opacity: 0;
    }
}

/* Smoke rise */
@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-50px) scale(2);
        opacity: 0;
    }
}

/* Soul energy orbit */
@keyframes soul-orbit {
    0% {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

/* Slide animations */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================================
   UTILITY ANIMATION CLASSES
   =========================================== */
.animate-slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.5s ease-out;
}

.animate-slide-in-up {
    animation: slide-in-up 0.5s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.4s ease-out;
}

.animate-mystic-glow {
    animation: mystic-glow 3s ease-in-out infinite;
}

.animate-rune-glow {
    animation: rune-glow 2s ease-in-out infinite;
}

.animate-fire-flicker {
    animation: fire-flicker 0.5s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

/* Delay classes */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ===========================================
   CARD EFFECTS - DARK MAGIC THEME
   =========================================== */
.magic-card {
    position: relative;
    background: linear-gradient(135deg,
        rgba(15, 10, 21, 0.9) 0%,
        rgba(10, 10, 15, 0.95) 100%);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.magic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(218, 165, 32, 0.5) 20%,
        rgba(139, 0, 0, 0.8) 50%,
        rgba(218, 165, 32, 0.5) 80%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magic-card:hover::before {
    opacity: 1;
}

.magic-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 0, 0, 0.6);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(139, 0, 0, 0.2),
        inset 0 1px 0 rgba(218, 165, 32, 0.1);
}

/* Corner runes decoration */
.magic-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg,
        transparent 50%,
        rgba(107, 33, 168, 0.3) 50%);
    border-radius: 0 0 16px 0;
}

/* ===========================================
   BUTTON STYLES - WARRIOR THEME
   =========================================== */
.btn-magic {
    position: relative;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6b21a8 0%, #4c1d95 100%);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.btn-magic:hover {
    transform: translateY(-2px);
    box-shadow:
        0 5px 20px rgba(107, 33, 168, 0.4),
        0 0 30px rgba(139, 0, 0, 0.2);
    border-color: rgba(218, 165, 32, 0.6);
}

.btn-blood {
    background: linear-gradient(135deg, #8b0000 0%, #5c0000 100%);
}

.btn-blood:hover {
    box-shadow:
        0 5px 20px rgba(139, 0, 0, 0.5),
        0 0 30px rgba(139, 0, 0, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #0a0a0f;
}

.btn-gold:hover {
    box-shadow:
        0 5px 20px rgba(218, 165, 32, 0.4),
        0 0 30px rgba(218, 165, 32, 0.2);
}

/* ===========================================
   TABS - RANKING & ADMIN
   =========================================== */
.ranking-tab,
.admin-tab {
    position: relative;
    background: rgba(15, 10, 21, 0.8);
    border: 1px solid rgba(139, 0, 0, 0.2);
    color: #9ca3af;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ranking-tab::before,
.admin-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6b21a8, #8b0000);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.ranking-tab:hover::before,
.admin-tab:hover::before {
    width: 80%;
}

.ranking-tab:hover,
.admin-tab:hover {
    background: rgba(139, 0, 0, 0.2);
    color: white;
    border-color: rgba(139, 0, 0, 0.4);
}

.ranking-tab.active,
.admin-tab.active {
    background: linear-gradient(135deg, #6b21a8 0%, #8b0000 100%);
    color: white;
    border-color: rgba(218, 165, 32, 0.5);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
}

.ranking-tab.active::before,
.admin-tab.active::before {
    width: 100%;
    background: #daa520;
}

/* ===========================================
   TABLE STYLES - ANCIENT SCROLL
   =========================================== */
table {
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: linear-gradient(180deg,
        rgba(139, 0, 0, 0.2) 0%,
        rgba(15, 10, 21, 0.9) 100%);
}

thead th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    color: #daa520;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: rgba(139, 0, 0, 0.15);
}

tbody tr:hover td {
    color: white;
}

/* ===========================================
   INPUT STYLES - DARK PORTAL
   =========================================== */
input:not([type="checkbox"]),
textarea,
select {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

input:not([type="checkbox"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6b21a8;
    box-shadow:
        0 0 0 3px rgba(107, 33, 168, 0.2),
        0 0 15px rgba(107, 33, 168, 0.1);
}

input:not([type="checkbox"]):hover,
textarea:hover,
select:hover {
    border-color: rgba(139, 0, 0, 0.5);
}

/* Checkbox - Rune style */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid rgba(139, 0, 0, 0.5);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #6b21a8, #8b0000);
    border-color: #daa520;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #daa520;
    font-size: 14px;
    font-weight: bold;
}

/* ===========================================
   FAQ ACCORDION - ANCIENT TOME
   =========================================== */
.faq-item {
    background: rgba(15, 10, 21, 0.8);
    border: 1px solid rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.1);
}

.faq-item button {
    position: relative;
}

.faq-item button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(139, 0, 0, 0.3),
        transparent);
}

/* ===========================================
   BADGES & STATUS
   =========================================== */
.badge-legendary {
    background: linear-gradient(135deg, #daa520, #b8860b);
    color: #0a0a0f;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
    animation: mystic-glow 2s ease-in-out infinite;
}

.badge-epic {
    background: linear-gradient(135deg, #6b21a8, #4c1d95);
    box-shadow: 0 0 10px rgba(107, 33, 168, 0.5);
}

.badge-rare {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.5);
}

.badge-blood {
    background: linear-gradient(135deg, #8b0000, #5c0000);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

/* VIP Badges */
.badge-vip-1 { background: linear-gradient(135deg, #92400e, #78350f); color: #fbbf24; }
.badge-vip-2 { background: linear-gradient(135deg, #6b7280, #4b5563); color: #e5e7eb; }
.badge-vip-3 { background: linear-gradient(135deg, #ca8a04, #a16207); color: #fef3c7; }
.badge-vip-4 { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #e9d5ff; }

/* ===========================================
   RANK DECORATIONS
   =========================================== */
.rank-1 {
    color: #daa520;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.rank-2 {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-3 {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

/* Castle owner badge */
.castle-owner {
    position: relative;
}

.castle-owner::after {
    content: '\f521';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    color: #daa520;
    animation: rune-glow 2s ease-in-out infinite;
}

/* ===========================================
   TOOLTIPS - ANCIENT SCROLL
   =========================================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: linear-gradient(135deg,
        rgba(15, 10, 21, 0.95) 0%,
        rgba(10, 10, 15, 0.98) 100%);
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* ===========================================
   MODAL - DARK PORTAL
   =========================================== */
#character-modal {
    backdrop-filter: blur(10px);
    background: radial-gradient(ellipse at center,
        rgba(139, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.9) 100%);
}

#character-modal > div {
    background: linear-gradient(135deg,
        rgba(15, 10, 21, 0.98) 0%,
        rgba(10, 10, 15, 0.99) 100%);
    border: 1px solid rgba(139, 0, 0, 0.5);
    box-shadow:
        0 0 50px rgba(139, 0, 0, 0.3),
        0 0 100px rgba(107, 33, 168, 0.1);
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */
.toast-success {
    background: linear-gradient(135deg,
        rgba(22, 163, 74, 0.9) 0%,
        rgba(21, 128, 61, 0.95) 100%);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.toast-error {
    background: linear-gradient(135deg,
        rgba(139, 0, 0, 0.9) 0%,
        rgba(92, 0, 0, 0.95) 100%);
    border: 1px solid rgba(220, 20, 60, 0.5);
}

.toast-warning {
    background: linear-gradient(135deg,
        rgba(184, 134, 11, 0.9) 0%,
        rgba(139, 105, 20, 0.95) 100%);
    border: 1px solid rgba(218, 165, 32, 0.5);
}

.toast-info {
    background: linear-gradient(135deg,
        rgba(30, 64, 175, 0.9) 0%,
        rgba(30, 58, 138, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

/* ===========================================
   SPECIAL EFFECTS
   =========================================== */

/* Blood border glow */
.blood-glow {
    box-shadow:
        0 0 10px rgba(139, 0, 0, 0.3),
        0 0 20px rgba(139, 0, 0, 0.2),
        0 0 30px rgba(139, 0, 0, 0.1),
        inset 0 0 10px rgba(139, 0, 0, 0.1);
}

/* Magic border glow */
.magic-glow {
    box-shadow:
        0 0 10px rgba(107, 33, 168, 0.3),
        0 0 20px rgba(107, 33, 168, 0.2),
        0 0 30px rgba(107, 33, 168, 0.1),
        inset 0 0 10px rgba(107, 33, 168, 0.1);
}

/* Gold border glow */
.gold-glow {
    box-shadow:
        0 0 10px rgba(218, 165, 32, 0.3),
        0 0 20px rgba(218, 165, 32, 0.2),
        0 0 30px rgba(218, 165, 32, 0.1);
}

/* Text glow effects */
.text-glow-blood {
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8), 0 0 20px rgba(139, 0, 0, 0.5);
}

.text-glow-magic {
    text-shadow: 0 0 10px rgba(107, 33, 168, 0.8), 0 0 20px rgba(107, 33, 168, 0.5);
}

.text-glow-gold {
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.8), 0 0 20px rgba(218, 165, 32, 0.5);
}

/* Gradient text */
.gradient-text-blood {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-magic {
    background: linear-gradient(135deg, #a78bfa, #6b21a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fbbf24, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================================
   LOADING SKELETON - DARK THEME
   =========================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(139, 0, 0, 0.1) 25%,
        rgba(107, 33, 168, 0.2) 50%,
        rgba(139, 0, 0, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 640px) {
    .magic-card {
        border-radius: 12px;
    }

    .btn-magic {
        padding: 10px 20px;
    }
}

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

/* ===========================================
   LINE CLAMP
   =========================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===========================================
   VIP PREMIUM STYLES
   =========================================== */
.vip-premium-card {
    position: relative;
    background: linear-gradient(135deg,
        rgba(218, 165, 32, 0.15) 0%,
        rgba(184, 134, 11, 0.1) 25%,
        rgba(139, 0, 0, 0.1) 50%,
        rgba(107, 33, 168, 0.15) 100%) !important;
    border: 2px solid rgba(218, 165, 32, 0.5) !important;
    box-shadow:
        0 0 30px rgba(218, 165, 32, 0.3),
        0 0 60px rgba(218, 165, 32, 0.1),
        inset 0 0 30px rgba(218, 165, 32, 0.05);
    animation: vip-glow 3s ease-in-out infinite;
}

.vip-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(218, 165, 32, 0.1) 45%,
        rgba(218, 165, 32, 0.2) 50%,
        rgba(218, 165, 32, 0.1) 55%,
        transparent 60%);
    background-size: 200% 200%;
    animation: vip-shine 4s linear infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes vip-glow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(218, 165, 32, 0.3),
            0 0 60px rgba(218, 165, 32, 0.1),
            inset 0 0 30px rgba(218, 165, 32, 0.05);
    }
    50% {
        box-shadow:
            0 0 40px rgba(218, 165, 32, 0.5),
            0 0 80px rgba(218, 165, 32, 0.2),
            inset 0 0 40px rgba(218, 165, 32, 0.1);
    }
}

@keyframes vip-shine {
    0% {
        background-position: -200% -200%;
    }
    100% {
        background-position: 200% 200%;
    }
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #daa520 0%, #b8860b 50%, #8b6914 100%);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 20px;
    color: #0a0a0f;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow:
        0 4px 15px rgba(218, 165, 32, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: vip-badge-pulse 2s ease-in-out infinite;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.vip-badge i {
    animation: vip-star-spin 3s linear infinite;
}

@keyframes vip-badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 15px rgba(218, 165, 32, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 6px 25px rgba(218, 165, 32, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes vip-star-spin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

.vip-crown-icon {
    color: #daa520;
    filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.6));
    animation: vip-crown-glow 2s ease-in-out infinite;
}

@keyframes vip-crown-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(218, 165, 32, 0.9));
    }
}

.vip-title {
    background: linear-gradient(90deg, #daa520 0%, #ffd700 50%, #daa520 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vip-title-shine 3s linear infinite;
    font-weight: 700;
}

@keyframes vip-title-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ===========================================
   ADMIN PREMIUM STYLES
   =========================================== */
.admin-premium-card {
    position: relative;
    background: linear-gradient(135deg,
        rgba(220, 20, 60, 0.15) 0%,
        rgba(139, 0, 0, 0.2) 25%,
        rgba(75, 0, 130, 0.15) 50%,
        rgba(220, 20, 60, 0.1) 100%) !important;
    border: 2px solid rgba(220, 20, 60, 0.6) !important;
    box-shadow:
        0 0 30px rgba(220, 20, 60, 0.4),
        0 0 60px rgba(139, 0, 0, 0.2),
        inset 0 0 30px rgba(220, 20, 60, 0.05);
    animation: admin-glow 2s ease-in-out infinite;
}

.admin-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(220, 20, 60, 0.15) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(220, 20, 60, 0.15) 55%,
        transparent 60%);
    background-size: 200% 200%;
    animation: admin-shine 3s linear infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes admin-glow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(220, 20, 60, 0.4),
            0 0 60px rgba(139, 0, 0, 0.2),
            inset 0 0 30px rgba(220, 20, 60, 0.05);
    }
    50% {
        box-shadow:
            0 0 50px rgba(220, 20, 60, 0.6),
            0 0 100px rgba(139, 0, 0, 0.3),
            inset 0 0 40px rgba(220, 20, 60, 0.1);
    }
}

@keyframes admin-shine {
    0% { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #4b0082 100%);
    border: 1px solid rgba(255, 100, 100, 0.6);
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow:
        0 4px 15px rgba(220, 20, 60, 0.5),
        0 0 20px rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: admin-badge-pulse 1.5s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.admin-badge i {
    animation: admin-icon-glow 2s ease-in-out infinite;
}

@keyframes admin-badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 15px rgba(220, 20, 60, 0.5),
            0 0 20px rgba(139, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 6px 25px rgba(220, 20, 60, 0.7),
            0 0 30px rgba(139, 0, 0, 0.5);
    }
}

@keyframes admin-icon-glow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)); }
}

.admin-crown-icon {
    color: #dc143c;
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.8));
    animation: admin-crown-glow 1.5s ease-in-out infinite;
}

@keyframes admin-crown-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.8)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 50, 50, 1)); }
}

.admin-title {
    background: linear-gradient(90deg, #dc143c 0%, #ff6b6b 50%, #dc143c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: admin-title-shine 2s linear infinite;
    font-weight: 700;
}

@keyframes admin-title-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ===========================================
   INVOCATION ANIMATION - Download Button
   =========================================== */
.invoke-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.invoke-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.8) 0%, rgba(107, 33, 168, 0.6) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 0;
}

.invoke-btn:active::before,
.invoke-btn.invoking::before {
    width: 400px;
    height: 400px;
}

.invoke-btn.invoking {
    animation: invoke-pulse 0.8s ease-out;
}

@keyframes invoke-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.7);
    }
    30% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(139, 0, 0, 0.5), 0 0 40px 20px rgba(107, 33, 168, 0.3);
    }
    60% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
}

/* Magic circle effect on click */
.invoke-container {
    position: relative;
}

.invoke-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 100;
}

.invoke-circle.active {
    animation: magic-circle 1.5s ease-out forwards;
}

@keyframes magic-circle {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2) rotate(360deg);
    }
}

/* Runes floating effect */
.invoke-runes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    font-size: 24px;
    color: #daa520;
    text-shadow: 0 0 10px #daa520, 0 0 20px #8b0000;
}

.invoke-runes.active {
    animation: runes-float 1s ease-out forwards;
}

@keyframes runes-float {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-50px);
    }
}

/* Portal effect */
.invoke-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(107, 33, 168, 0.3) 0%, rgba(139, 0, 0, 0.2) 30%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
}

.invoke-portal.active {
    animation: portal-flash 0.8s ease-out forwards;
}

@keyframes portal-flash {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Magic Circle Overlay - Dynamic */
.magic-circle-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 50;
    animation: magic-circle-appear 1.2s ease-out forwards;
}

.magic-circle-inner {
    width: 100%;
    height: 100%;
    animation: magic-circle-spin 1.2s ease-out forwards;
}

.magic-runes {
    width: 100%;
    height: 100%;
    color: #daa520;
    filter: drop-shadow(0 0 10px #daa520) drop-shadow(0 0 20px #8b0000);
}

@keyframes magic-circle-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

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

/* Invoke Particles */
.invoke-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #daa520 0%, #8b0000 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 51;
    animation: particle-explode 1s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes particle-explode {
    0% {
        transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateX(100px) scale(0);
        opacity: 0;
    }
}

/* Portal Flash Overlay */
.portal-flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center,
        rgba(218, 165, 32, 0.4) 0%,
        rgba(139, 0, 0, 0.3) 30%,
        rgba(107, 33, 168, 0.2) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 9999;
    animation: portal-flash-effect 0.8s ease-out forwards;
}

@keyframes portal-flash-effect {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Hover effect for invoke button */
.invoke-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(139, 0, 0, 0.4),
        0 0 40px rgba(107, 33, 168, 0.3),
        0 0 60px rgba(218, 165, 32, 0.2);
}

.invoke-btn:hover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8b0000, #6b21a8, #daa520, #8b0000);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: border-glow 2s ease infinite;
    filter: blur(5px);
}

@keyframes border-glow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===========================================
   STAFF SECTION STYLES
   =========================================== */

/* Staff Card Container */
.staff-card {
    position: relative;
}

/* Slow spin animation for founder avatar ring */
.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

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

/* Staff card hover effects */
.staff-card .magic-card {
    position: relative;
    overflow: visible;
}

/* Floating animation for staff cards */
.staff-card:nth-child(1) { animation: staff-float 4s ease-in-out infinite; }
.staff-card:nth-child(2) { animation: staff-float 4s ease-in-out infinite 0.5s; }
.staff-card:nth-child(3) { animation: staff-float 4s ease-in-out infinite 1s; }
.staff-card:nth-child(4) { animation: staff-float 4s ease-in-out infinite 1.5s; }
.staff-card:nth-child(5) { animation: staff-float 4s ease-in-out infinite 2s; }

@keyframes staff-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Special glow for founder card */
.staff-card:first-child .magic-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: founder-glow 3s ease infinite;
    filter: blur(8px);
    opacity: 0.6;
}

@keyframes founder-glow {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.4;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.8;
    }
}
