:root {
    --bg-main: #0c0f17;
    --bg-card: #151a24;
    --bg-card-hover: #1c2331;
    --border-color: rgba(255, 215, 0, 0.15);
    --border-gold: #c69b3d;
    --ice-blue: #4bb3fd;
    --ice-glow: rgba(75, 179, 253, 0.25);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --alliance-blue: #144988;
    --horde-red: #8b1313;
}

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

.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.25) 0%, transparent 70%),
        linear-gradient(to bottom, #090c14, #0c0f17);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: rgba(12, 15, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px var(--ice-blue));
}

.brand-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.brand-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ice-blue);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: #ffd700;
    background: rgba(198, 155, 61, 0.12);
    border-color: rgba(198, 155, 61, 0.4);
    box-shadow: 0 0 12px rgba(198, 155, 61, 0.2);
}

.server-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 6px #64748b;
}

.server-status-pill.online .status-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.server-status-pill.offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* Main */
.main-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 24px 60px;
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-hero {
    text-align: center;
    margin-bottom: 32px;
}

.section-hero h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #ffd700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.section-hero p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Controls */
.armory-controls {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 14px 10px 38px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--ice-blue);
    box-shadow: 0 0 10px var(--ice-glow);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
}

.filter-group select {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.char-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.char-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--char-class-color, #ffd700);
}

.char-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(198, 155, 61, 0.15);
}

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

.card-name-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.char-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.char-badge-lvl {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.faction-badge {
    font-size: 16px;
}

.card-details {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.class-text {
    font-weight: 600;
    color: var(--char-class-color, #fff);
}

.card-guild {
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 14px;
    font-style: italic;
    opacity: 0.85;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    font-size: 12px;
}

.card-money {
    display: flex;
    gap: 6px;
    font-weight: 600;
}

.money.gold { color: #ffd700; }
.money.silver { color: #cbd5e1; }
.money.copper { color: #f97316; }

.char-online-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
}

.char-online-tag.online { color: #10b981; }
.char-online-tag.offline { color: #64748b; }

/* Register Card */
.register-wrapper {
    max-width: 480px;
    margin: 20px auto 0;
}

.register-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    position: relative;
}

.register-card .badge {
    display: inline-block;
    background: rgba(198, 155, 61, 0.15);
    color: #ffd700;
    border: 1px solid rgba(198, 155, 61, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 6px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--border-gold);
    box-shadow: 0 0 12px rgba(198, 155, 61, 0.2);
}

.form-group small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #c69b3d 0%, #9a7322 100%);
    border: 1px solid #eab308;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(198, 155, 61, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198, 155, 61, 0.4);
}

.alert-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-box.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-box.hidden {
    display: none;
}

/* Guide Tab */
.guide-wrapper {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.guide-wrapper h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 6px;
}

.guide-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 36px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    text-align: left;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    position: relative;
}

.step-card.highlight {
    border-color: var(--border-gold);
    box-shadow: 0 0 20px rgba(198, 155, 61, 0.15);
}

.step-num {
    width: 36px;
    height: 36px;
    background: rgba(198, 155, 61, 0.15);
    border: 1px solid rgba(198, 155, 61, 0.4);
    color: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-card code {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--ice-blue);
    font-size: 12px;
    margin: 4px 0;
}

.step-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--ice-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.step-link:hover {
    text-decoration: underline;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #080a0f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-family: monospace;
    font-size: 12px;
    color: #4ade80;
}

.code-box button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.code-box button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.step-badge {
    display: block;
    margin-top: 14px;
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
}

/* Modal Armería */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    background: #11151f;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(198, 155, 61, 0.2);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

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

.modal-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Sheet Header */
.sheet-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sheet-avatar {
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.sheet-title {
    flex: 1;
}

.sheet-title h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.sheet-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.sheet-stats-overview {
    display: flex;
    gap: 12px;
}

.stat-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 80px;
}

.stat-pill .val {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.stat-pill .lbl {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-pill.health .val { color: #22c55e; }
.stat-pill.power .val { color: var(--ice-blue); }
.stat-pill.ilvl .val { color: #eab308; }

/* Sheet Body */
.sheet-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.equip-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equip-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.equip-slot.filled {
    border-color: var(--item-color, #ffffff);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 6px var(--item-glow, transparent);
}

.slot-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.slot-info {
    overflow: hidden;
}

.slot-name {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--item-color, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-center-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.faction-crest {
    font-size: 80px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.char-money-display {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.pvp-stats {
    display: flex;
    gap: 16px;
    text-align: center;
}

.pvp-stat .val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.pvp-stat .lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.sheet-weapons {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; }
    .sheet-body { grid-template-columns: 1fr; }
    .sheet-weapons { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LANDING PAGE & HERO BANNER
   ========================================================================== */
.hero-banner {
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.15), transparent 70%),
                linear-gradient(180deg, #101624 0%, #090c14 100%);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--ice-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.highlight-text {
    background: linear-gradient(135deg, #ffd700 0%, #c69b3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(198, 155, 61, 0.4);
}

.hero-description {
    max-width: 680px;
    margin: 0 auto 30px auto;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-gold);
    color: #ffd700;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(198, 155, 61, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(198, 155, 61, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--ice-blue);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--ice-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Dashboard Cards */
.server-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.dash-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.dash-card.highlight {
    border-color: rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(16, 22, 36, 0.6) 100%);
}

.dash-icon {
    font-size: 32px;
    background: rgba(0, 0, 0, 0.3);
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-info {
    display: flex;
    flex-direction: column;
}

.dash-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    font-family: 'Cinzel', serif;
}

.online-text {
    color: #22c55e !important;
}

/* Features Grid */
.features-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Quickstart Banner */
.quickstart-banner {
    background: linear-gradient(90deg, rgba(198, 155, 61, 0.15) 0%, rgba(17, 21, 31, 0.8) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.quickstart-text h3 {
    font-size: 18px;
    color: #ffd700;
    font-weight: 700;
    margin-bottom: 4px;
}

.quickstart-text p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   UTILIDADES Y ENCICLOPEDIA
   ========================================================================== */
.util-subnav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.util-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.util-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.util-btn.active {
    background: rgba(198, 155, 61, 0.2);
    border-color: var(--border-gold);
    color: #ffd700;
    box-shadow: 0 0 15px rgba(198, 155, 61, 0.2);
}

.util-panel {
    display: none;
}

.util-panel.active {
    display: block;
}

/* Clases */
.classes-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.class-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--class-color, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.class-pill:hover, .class-pill.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--class-color, #fff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.class-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.class-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.class-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.class-card-title h3 {
    font-size: 26px;
    font-weight: 800;
}

.class-meta-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

.badge-pill.tank { border-color: #3b82f6; color: #93c5fd; }
.badge-pill.healer { border-color: #22c55e; color: #86efac; }
.badge-pill.dps { border-color: #ef4444; color: #fca5a5; }

.class-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.spec-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
}

.spec-box h4 {
    color: #ffd700;
    font-size: 15px;
    margin-bottom: 6px;
}

.spec-box p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.class-tip-box {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.08);
    border-left: 4px solid var(--ice-blue);
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Profesiones */
.prof-intro {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.prof-intro h3 {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 6px;
}

.prof-intro p {
    font-size: 13px;
    color: var(--text-muted);
}

.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.prof-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.prof-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.prof-icon {
    font-size: 26px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-name-group h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.prof-type {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.prof-perk {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.prof-perk strong {
    color: #38bdf8;
    display: block;
    margin-bottom: 3px;
}

/* Herramientas de Conexión */
.tools-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.tools-card h3 {
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 10px;
}

.tools-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.tools-box {
    margin: 24px 0;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.tools-instructions {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-instructions h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
}

.tools-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tools-instructions li {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL SHEET TABS & EXPANDED STATS (ARMERÍA AVANZADA)
   ========================================================================== */
.sheet-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 4px;
}

.sheet-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sheet-tab-btn:hover {
    color: #fff;
}

.sheet-tab-btn.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.sheet-panel {
    display: none;
}

.sheet-panel.active {
    display: block;
}

.card-stats-preview {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Grid de Estadísticas */
.stats-expanded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stats-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
}

.stats-box h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: #ffd700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    color: var(--text-muted);
}

.stat-row strong {
    color: #fff;
    font-weight: 600;
}

/* Resistencias */
.resist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.resist-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resist-item .icon { font-size: 16px; }
.resist-item span:nth-child(2) { font-size: 14px; font-weight: 700; color: #fff; }
.resist-item small { font-size: 10px; color: var(--text-muted); }

/* Profesiones del Personaje */
.professions-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prof-bar-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
}

.prof-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.prof-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.prof-bar-val {
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
}

.prof-bar-track {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.prof-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c69b3d, #ffd700);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* ==========================================================================
   PANEL DE ADMINISTRACIÓN MAESTRO (FRODYGR)
   ========================================================================== */

/* ==========================================================================
   ADMIN PANEL: PRO ENTERPRISE DASHBOARD REDESIGN (AAA UX/UI)
   ========================================================================== */

/* 1. Login / Autenticación Maestra */
.admin-auth-card {
    max-width: 480px;
    margin: 60px auto;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95) 0%, rgba(11, 15, 25, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.admin-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #ffd700, #38bdf8);
}

.admin-auth-shield {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    margin-bottom: 20px;
}

.shield-icon {
    font-size: 42px;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
    z-index: 2;
}

.shield-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.4);
    animation: shieldPulse 2.5s infinite;
}

@keyframes shieldPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.auth-pill-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.admin-auth-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.admin-auth-header p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 26px;
}

.admin-login-form .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.admin-login-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.admin-login-form input {
    width: 100%;
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 13px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.admin-login-form input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.btn-auth-submit {
    width: 100%;
    margin-top: 10px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* 2. Arquitectura de Layout Principal: Sidebar + Canvas */
.admin-dashboard-wrapper {
    max-width: 1540px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.admin-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* 2.1 Sidebar de Administración */
.admin-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #111827 0%, #0c101b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Tarjeta Perfil Admin */
.admin-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
}

.admin-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(217, 119, 6, 0.4));
    border: 1px solid #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.status-indicator-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #111827;
}

.status-indicator-dot.online {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.admin-profile-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.badge-gm-pill {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 3px;
}

/* Realm Status Widget */
.sidebar-realm-status {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.realm-label {
    font-size: 11px;
    font-weight: 700;
    color: #f1f5f9;
}

.realm-sub {
    font-size: 10px;
    color: #64748b;
    padding-left: 16px;
}

/* Menú de Navegación del Sidebar */
.admin-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-category-header {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #475569;
    text-transform: uppercase;
    padding: 10px 10px 4px 10px;
}

.admin-subnav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-subnav-btn .nav-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
}

.admin-subnav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.admin-subnav-btn.active {
    color: #ffd700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.02) 100%);
    border-color: rgba(255, 215, 0, 0.25);
    box-shadow: inset 3px 0 0 #ffd700;
    font-weight: 700;
}

.sidebar-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-action-btn.danger {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

.sidebar-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
}

/* 2.2 Canvas Principal */
.admin-main-canvas {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 2.3 Barra de Métricas KPI en Vivo */
.kpi-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.kpi-card {
    background: linear-gradient(145deg, rgba(21, 26, 36, 0.95) 0%, rgba(15, 20, 30, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.25);
}

.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.kpi-icon-box.blue {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.kpi-icon-box.green {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.kpi-icon-box.gold {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.25);
}
.kpi-icon-box.purple {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.kpi-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
}

.kpi-value {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 2px 0 1px 0;
    line-height: 1.2;
}

.kpi-sub {
    font-size: 11px;
    color: #64748b;
}

.kpi-sub.status-online {
    color: #4ade80;
    font-weight: 600;
}

/* 2.4 Contenedor de Subpestañas */
.admin-canvas-body {
    min-width: 0;
}

.admin-subtab-content {
    display: none;
    background: linear-gradient(145deg, #111827 0%, #0d121f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.admin-subtab-content.active {
    display: block;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-card-header h4 {
    font-family: 'Cinzel', serif;
    font-size: 19px;
    font-weight: 800;
    color: #ffd700;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.admin-card-header p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.admin-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-search-box .search-icon {
    position: absolute;
    left: 12px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0.6;
}

.admin-search-box input {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 9px 14px 9px 36px;
    color: #fff;
    font-size: 13px;
    width: 270px;
    outline: none;
    transition: all 0.2s ease;
}

.admin-search-box input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* 3. Tabla Pro de Jugadores */
.admin-table-container {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(10, 14, 23, 0.5);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    text-align: left;
    padding: 14px 16px;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    font-weight: 700;
    background: rgba(17, 24, 39, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tr {
    transition: background 0.15s ease;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.char-badge-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.status-dot-sm {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-sm.online {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.status-dot-sm.offline {
    background: #475569;
}

.char-badge-lvl {
    display: inline-block;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

/* 4. Módulo Arsenal & Objetos */
.section-title-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.section-title-sm small {
    font-size: 11px;
    color: #64748b;
    font-weight: normal;
}

.target-char-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-char-select-wrap label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.char-dropdown-select {
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffd700;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quick-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.quick-item-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-item-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.quick-item-chip.legendary {
    border-color: rgba(255, 128, 0, 0.35);
    background: linear-gradient(135deg, rgba(255, 128, 0, 0.06) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.quick-item-chip.legendary:hover {
    border-color: #ff8000;
    box-shadow: 0 0 16px rgba(255, 128, 0, 0.25);
}

.quick-item-chip.epic {
    border-color: rgba(163, 53, 238, 0.35);
    background: linear-gradient(135deg, rgba(163, 53, 238, 0.06) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.quick-item-chip.epic:hover {
    border-color: #a335ee;
    box-shadow: 0 0 16px rgba(163, 53, 238, 0.25);
}

.quick-item-chip .chip-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.quick-item-chip .chip-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.quick-item-chip .chip-info small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.item-search-wrapper {
    margin-top: 24px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
}

.item-search-results-box {
    max-height: 250px;
    overflow-y: auto;
    background: #090d13;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.item-search-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.item-search-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.item-delivery-card {
    margin-top: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(10, 14, 23, 0.9) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.delivery-inputs-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.delivery-inputs-grid label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.delivery-inputs-grid input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.delivery-inputs-grid input:focus {
    border-color: #38bdf8;
}

.btn-delivery-send {
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
}

/* 5. Módulo Habilidades & Super-GM (Bento Grid) */
.powers-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bento-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bento-box.highlight-gold {
    border-color: rgba(255, 215, 0, 0.25);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.04) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.bento-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bento-icon {
    font-size: 26px;
}

.bento-box-header h5 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.bento-box p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.power-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-power-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.btn-power-card:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateY(-2px);
}

.btn-power-card .power-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
}

.btn-power-card .power-desc {
    font-size: 11px;
    color: #94a3b8;
}

.btn-power-card.unstuck {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}
.btn-power-card.unstuck .power-title { color: #34d399; }
.btn-power-card.unstuck:hover {
    border-color: #10b981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.power-toggle-row {
    display: flex;
    gap: 10px;
}

.btn-toggle-switch {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-toggle-switch.on {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.btn-toggle-switch.on:hover {
    filter: brightness(1.2);
}

.btn-toggle-switch.off {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-toggle-switch.off:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.speed-selector-group {
    margin-top: 6px;
}

.speed-selector-group label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.speed-chips-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chip-speed {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip-speed:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #fff;
}

.chip-speed.flash {
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

/* 6. Módulo Invocador & Mazmorras */
.spawner-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

@media (max-width: 900px) {
    .spawner-dual-grid {
        grid-template-columns: 1fr;
    }
}

.spawner-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.boss-roster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.boss-card-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.boss-card-btn:hover {
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.06);
    transform: translateY(-2px);
}

.boss-card-btn .boss-icon {
    font-size: 22px;
}

.boss-card-btn .boss-meta strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.boss-card-btn .boss-meta small {
    display: block;
    font-size: 10px;
    color: #94a3b8;
}

.boss-card-btn.utility {
    border-color: rgba(56, 189, 248, 0.2);
}
.boss-card-btn.utility:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

.custom-id-box {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-id-box label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.category-pill-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffd700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dungeon-pill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-dungeon-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.btn-dungeon-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #fff;
    transform: translateX(2px);
}

.btn-dungeon-pill.capital {
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

/* 7. Módulo Rates & Experiencia */
.rates-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.rate-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rate-card:hover {
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateY(-3px);
}

.rate-card.active-rate {
    border-color: #ffd700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.rate-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.rate-badge.popular {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

.rate-number {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
}

.rate-card p {
    font-size: 12px;
    color: #94a3b8;
    min-height: 36px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.btn-rate-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-rate-select:hover {
    background: #ffd700;
    color: #0b0e14;
    border-color: #ffd700;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.3);
}

.custom-rate-card {
    margin-top: 24px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 22px;
}

/* 8. Módulo Cuentas & Disciplina */
.create-account-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.create-account-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    margin-top: 10px;
    align-items: end;
}

@media (max-width: 900px) {
    .create-account-form {
        grid-template-columns: 1fr 1fr;
    }
}

.create-account-form label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.create-account-form input,
.create-account-form select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.create-account-form input:focus,
.create-account-form select:focus {
    border-color: #ffd700;
}

/* 9. Módulo Anuncios Globales */
.announce-card-wrapper {
    max-width: 720px;
}

.announce-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
}

.broadcast-channel-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.channel-pill {
    position: relative;
    cursor: pointer;
}

.channel-pill input {
    position: absolute;
    opacity: 0;
}

.channel-pill .pill-content {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-pill input:checked + .pill-content {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.channel-pill .pill-content .icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.channel-pill .pill-content strong {
    font-size: 13px;
    color: #fff;
}

.channel-pill .pill-content small {
    font-size: 11px;
    color: #94a3b8;
}

.announce-card textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    resize: vertical;
    margin-top: 8px;
    transition: border-color 0.2s ease;
}

.announce-card textarea:focus {
    border-color: #ffd700;
}

.btn-send-announcement {
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
}

/* 10. Módulo Consola GM en Vivo (High-Tech Terminal) */
.console-terminal-wrapper {
    background: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.terminal-toolbar {
    background: #0f172a;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-title {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-screen {
    height: 380px;
    overflow-y: auto;
    padding: 18px;
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    background: #06090f;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-screen::-webkit-scrollbar {
    width: 6px;
}
.terminal-screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.terminal-line {
    word-break: break-all;
    white-space: pre-wrap;
}

.terminal-line.system { color: #64748b; }
.terminal-line.user-cmd { color: #38bdf8; font-weight: bold; }
.terminal-line.response { color: #4ade80; }
.terminal-line.error { color: #f87171; }

.terminal-input-row {
    display: flex;
    align-items: center;
    background: #0f172a;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.terminal-prompt {
    color: #38bdf8;
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
}

.terminal-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    outline: none;
}

.terminal-shortcuts {
    background: #090e1a;
    padding: 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.terminal-shortcuts span {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}

/* 11. Módulo Servidor & Hot-Reload */
.server-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.control-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.control-box.highlight {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.04) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.btn-action-full {
    width: 100%;
    margin-top: auto;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
}

.hot-reload-card {
    margin-top: 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
}

.reload-buttons-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.btn-hot-reload {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-hot-reload:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-1px);
}

.btn-hot-reload.main-reload {
    background: linear-gradient(135deg, #ffd700, #c69b3d);
    color: #0b0e14;
    font-weight: 800;
    border-color: #ffd700;
}
.btn-hot-reload.main-reload:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

/* 12. Floating Toast Notifications System */
.admin-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.admin-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    min-width: 320px;
    max-width: 440px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.25s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-toast.toast-fadeout {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
}

.admin-toast-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.admin-toast-body {
    flex: 1;
    min-width: 0;
}

.admin-toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.admin-toast-msg {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.3;
}

.admin-toast.success {
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(74, 222, 128, 0.15);
}
.admin-toast.success .admin-toast-title { color: #4ade80; }

.admin-toast.error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(239, 68, 68, 0.15);
}
.admin-toast.error .admin-toast-title { color: #f87171; }

.admin-toast.info {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
}
.admin-toast.info .admin-toast-title { color: #38bdf8; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }
    .delivery-inputs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ENHANCED BUTTONS, CLICKABLE KPIS & ACCOUNTS MODAL (v3.2)
   ========================================================================== */

/* Clickable KPI Cards */
.kpi-card.clickable {
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.kpi-card.clickable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.kpi-card.clickable:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kpi-card.clickable:hover::after {
    background: linear-gradient(90deg, #38bdf8, #ffd700);
}

.kpi-card.clickable:active {
    transform: translateY(-1px) scale(0.99);
}

/* Subview Pills (Personajes vs Cuentas) */
.subview-pills {
    display: inline-flex;
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}

.pill-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    color: #fff;
}

.pill-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Account Modal Details Box */
.acc-chars-overview-box {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
}

.acc-overview-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.acc-chars-pills-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.char-chip-pill {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.char-chip-pill.empty {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-weight: normal;
}

/* Standardized Button System Overhaul */
.btn-primary-sm, .btn-outline-sm, .btn-danger-sm {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.btn-primary-sm {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border: 1px solid #38bdf8;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
}
.btn-primary-sm:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.btn-primary-sm:active {
    transform: translateY(1px);
}

.btn-outline-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}
.btn-outline-sm:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline-sm:active {
    transform: translateY(1px);
}

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}
.btn-danger-sm:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}
.btn-danger-sm:active {
    transform: translateY(1px);
}

/* Rotating animation for refresh button */
.rotating .icon {
    animation: spin 0.6s linear;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
