:root {
    --gold: #D4AF37;
    --cyan: #00C4FF;
    --cyan-dark: #1E3A8A;
    --bg-dark: #0B0F19;
    --text-light: #f8fafc;
    --font-heading: 'Cinzel Decorative', serif;
    --font-subheading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 196, 255, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.5rem;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2rem;
    font-family: var(--font-subheading);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--cyan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.4) 0%, var(--bg-dark) 70%);
    z-index: -1;
}

.chi-orb {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffffff 0%, var(--cyan) 40%, transparent 70%);
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: pulseOrb 4s infinite alternate;
}

.title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: var(--font-subheading);
    font-size: 2rem;
    letter-spacing: 10px;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 196, 255, 0.5);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-primary {
    background: linear-gradient(45deg, #B8860B, var(--gold));
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
    margin-left: 1rem;
    box-shadow: 0 0 15px rgba(0, 196, 255, 0.2) inset;
}

.btn-secondary:hover {
    background: rgba(0, 196, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 196, 255, 0.4) inset, 0 0 20px rgba(0, 196, 255, 0.4);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Features */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 196, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 196, 255, 0.15);
    border-color: rgba(0, 196, 255, 0.3);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--font-subheading);
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Server Info */
.info-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    color: #4ade80;
    margin-bottom: 2rem;
    font-weight: 600;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 2s infinite;
}

.rates-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.rates-list li {
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.rates-list strong {
    color: var(--cyan);
}

/* Lore Section */
.lore {
    background: linear-gradient(rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 0.9)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=2000&auto=format&fit=crop') no-repeat center center;
    background-attachment: fixed;
    background-size: cover;
}

.lore-content {
    padding: 4rem;
    text-align: center;
}

.lore p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #05070A;
    padding: 2rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--cyan);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.powered {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 196, 255, 0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        margin: 1rem 0;
        text-align: center;
    }

    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .rates-list {
        grid-template-columns: 1fr;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #0d131f;
    border: 1px solid var(--gold);
    border-radius: 12px;
    max-width: 580px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.modal-body {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 196, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
}

.step-card h4 {
    color: var(--cyan);
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #05080f;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 8px 0;
    font-family: monospace;
    font-size: 0.9rem;
    color: #4ade80;
}

.btn-copy {
    background: rgba(0, 196, 255, 0.2);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: var(--font-body);
}

.btn-copy:hover {
    background: var(--cyan);
    color: #000;
}

/* Form styles */
.form-group {
    margin-bottom: 14px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 4px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: #060a12;
    border: 1px solid #1e293b;
    border-radius: 6px;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 196, 255, 0.3);
}

.feedback-msg {
    display: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.5;
}

.feedback-msg.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #4ade80;
}

.feedback-msg.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* Navigation Buttons & User Nav */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-left: 1rem;
    border: none;
    outline: none;
}

.nav-btn-primary {
    background: linear-gradient(45deg, #B8860B, var(--gold));
    color: #000;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.nav-btn-outline:hover {
    background: rgba(0, 196, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 196, 255, 0.4);
}

.nav-btn-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.nav-btn-gold:hover {
    background: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.nav-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid #334155;
}

.nav-btn-secondary:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: #ef4444;
}

.user-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 1rem;
}

/* Dashboard Modal & Layout */
.modal-dashboard-content {
    max-width: 820px;
    width: 95%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px;
}

.dashboard-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(0, 196, 255, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.banner-account-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.banner-avatar {
    width: 46px;
    height: 46px;
    background: rgba(0, 196, 255, 0.1);
    border: 1px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.banner-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.banner-name {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.25rem;
    margin: 0;
}

.banner-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vip-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.count-badge {
    background: rgba(0, 196, 255, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-section-header h4 {
    font-family: var(--font-subheading);
    color: #f1f5f9;
    font-size: 1.15rem;
    margin: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Character Creation Box */
.create-char-box {
    background: #060a12;
    border: 1px solid rgba(0, 196, 255, 0.35);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 22px;
    animation: fadeInForm 0.25s ease-out;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 196, 255, 0.3);
}

/* Character Cards & Grid */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.char-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 10px;
    padding: 16px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.char-card:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
    box-shadow: 0 6px 20px rgba(0, 196, 255, 0.15);
}

.char-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.char-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.4);
    border: 1px solid rgba(0, 196, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.char-title-box {
    overflow: hidden;
}

.char-name {
    font-family: var(--font-subheading);
    font-size: 1.02rem;
    color: #f8fafc;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-level {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.char-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.badge {
    padding: 3px 8px;
    font-size: 0.72rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.badge-vocation {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.badge-vocation.voc-1 { /* Mago */
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #60a5fa;
}

.badge-vocation.voc-2 { /* Sacerdote */
    background: rgba(234, 179, 8, 0.15);
    border-color: #eab308;
    color: #fde047;
}

.badge-vocation.voc-3 { /* Arqueiro */
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
}

.badge-vocation.voc-4 { /* Guerreiro */
    background: rgba(249, 115, 22, 0.15);
    border-color: #f97316;
    color: #fb923c;
}

.badge-vocation.voc-9 { /* Bárbaro */
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #f87171;
}

.badge-vocation.voc-10 { /* Feiticeira */
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    color: #c084fc;
}

.badge-race {
    background: rgba(0, 196, 255, 0.1);
    border: 1px solid rgba(0, 196, 255, 0.4);
    color: var(--cyan);
}

.badge-gender {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

.char-info-row {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: #94a3b8;
}

.empty-chars {
    grid-column: 1 / -1;
    text-align: center;
    padding: 35px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(51, 65, 85, 0.8);
    border-radius: 8px;
    color: #cbd5e1;
}

/* ==========================================================================
   Grimório de Habilidades & Magias (Task 4)
   ========================================================================== */
.spells-section {
    padding: 80px 0;
    position: relative;
}

.spells-section .section-title {
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.spells-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.tab-btn {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #cbd5e1;
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(0, 196, 255, 0.18) 100%);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
    font-weight: 700;
}

.spells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.spell-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.spell-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 196, 255, 0.45);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.spell-card.ultimate-card {
    border: 1px solid rgba(212, 175, 55, 0.65);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 23, 42, 0.88) 100%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.spell-card.ultimate-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
}

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

.spell-title {
    font-family: var(--font-subheading);
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 700;
}

.badge-spell {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-type-ataque {
    border: 1px solid #ef4444;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge-type-cura {
    border: 1px solid #22c55e;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.badge-type-suporte {
    border: 1px solid #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-type-metamorfose {
    border: 1px solid #a855f7;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.badge-type-ultimate {
    border: 1px solid var(--gold);
    background: rgba(212, 175, 55, 0.25);
    color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.badge-type-universal {
    border: 1px solid var(--cyan);
    background: rgba(0, 196, 255, 0.15);
    color: var(--cyan);
}

.spell-words-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.spell-words-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spell-words {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: var(--cyan);
    background: rgba(0, 196, 255, 0.08);
    border: 1px solid rgba(0, 196, 255, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
}

.spell-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.badge-spell-meta {
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-weight: 500;
}

.badge-spell-meta.lvl {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.badge-spell-meta.mana {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.08);
}

.badge-spell-meta.chi-cost {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(239, 68, 68, 0.12);
    font-weight: 600;
}

.badge-spell-meta.chi-gain {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(16, 185, 129, 0.12);
    font-weight: 600;
}

.badge-spell-meta.cd {
    color: #94a3b8;
}

.spell-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-top: auto;
}

.empty-spells {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(51, 65, 85, 0.8);
    border-radius: 8px;
    color: #cbd5e1;
}

/* Responsive adjustment for spells section */
@media (max-width: 768px) {
    .spells-section {
        padding: 50px 0;
    }

    .spells-tabs {
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        justify-content: flex-start;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

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



