/* =============================================================================
   MU STORM SEASON 6 - CORE DESIGN SYSTEM & STYLESHEET
   Dark Fantasy RPG Aesthetics with Modern Glassmorphism & Gold/Purple Accents
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Cinzel+Decorative:wght@700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #07080c;
    --bg-card: rgba(15, 17, 26, 0.82);
    --bg-card-hover: rgba(22, 26, 40, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --gold-main: #f5b041;
    --gold-bright: #ffd369;
    --gold-dark: #b8860b;
    --gold-glow: rgba(245, 176, 65, 0.45);
    
    --purple-main: #9b59b6;
    --purple-bright: #bf55ec;
    --purple-glow: rgba(155, 89, 182, 0.4);
    
    --cyan-main: #00d2ff;
    --cyan-glow: rgba(0, 210, 255, 0.35);
    
    --crimson: #e74c3c;
    --green-online: #2ecc71;
    --green-glow: rgba(46, 204, 113, 0.6);
    
    --text-white: #f8f9fa;
    --text-muted: #9aa0a6;
    --text-dim: #5f6368;
    
    --border-gold: rgba(245, 176, 65, 0.28);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Cinzel Decorative', 'Cinzel', serif;
    --font-sub: 'Cinzel', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --shadow-gold: 0 0 25px rgba(245, 176, 65, 0.25);
    --shadow-purple: 0 0 30px rgba(155, 89, 182, 0.3);
    --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.6);
    
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(155, 89, 182, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 100% 50%, rgba(245, 176, 65, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom, #07080c, #0a0b12);
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-track {
    background: #07080c;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gold-dark), var(--purple-main));
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-main);
}

/* Typography */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

h2, h3 {
    font-family: var(--font-sub);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Glow Text */
.gold-text {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-main) 50%, #d4ac0d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px var(--gold-glow));
}

.purple-text {
    background: linear-gradient(135deg, #df80ff 0%, var(--purple-bright) 50%, var(--purple-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px var(--purple-glow));
}

/* =============================================================================
   NAVIGATION BAR
   ============================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.75rem clamp(1rem, 2.5vw, 2.5rem);
    background: rgba(8, 9, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gold);
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: max-content;
    text-decoration: none;
}

.nav-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    box-shadow: 0 0 14px var(--gold-glow);
    object-fit: cover;
    flex-shrink: 0;
}

.nav-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-title span:first-child {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gold-bright);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.nav-title span:last-child {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--purple-bright);
    letter-spacing: 2.2px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.2vw, 1.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    max-width: 760px;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: clamp(0.78rem, 0.85vw, 0.88rem);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding: 0.4rem 0.25rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s ease;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-main), var(--purple-bright));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-bright);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    background: rgba(255, 211, 105, 0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
    font-size: 1.15rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: var(--gold-glow);
    border-color: var(--gold-bright);
}

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

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
    color: #120a02;
    box-shadow: 0 4px 20px rgba(255, 128, 8, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 128, 8, 0.65);
    background: linear-gradient(135deg, #ffd369 0%, #ff9800 100%);
}

.btn-purple {
    background: linear-gradient(135deg, #9b59b6 0%, #6c3483 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.7);
}

.btn-cyan {
    background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
    color: #041226;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.7);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(245, 176, 65, 0.15);
    border-color: var(--gold-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center 30%;
    filter: brightness(0.48) contrast(1.1);
    transform: scale(1.02);
    transition: transform 6s ease;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 8, 12, 0.6) 0%,
        rgba(7, 8, 12, 0.85) 60%,
        #07080c 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.25rem;
    background: rgba(15, 18, 28, 0.85);
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(46, 204, 113, 0.25);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--green-online);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-online);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

/* =============================================================================
   SERVER STATS STRIP
   ============================================================================= */
.stats-strip {
    position: relative;
    z-index: 10;
    margin-top: -3.5rem;
    padding: 0 2rem;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--gold-bright);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.15), rgba(155, 89, 182, 0.15));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

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

.stat-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-bright);
    line-height: 1.1;
}

/* =============================================================================
   MAIN SECTIONS CONTAINER
   ============================================================================= */
.section {
    padding: 6rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.section-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--purple-bright);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
}

/* =============================================================================
   USER PANEL & FORMS
   ============================================================================= */
.panel-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.panel-sidebar {
    background: rgba(10, 12, 18, 0.85);
    border-right: 1px solid var(--border-glass);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-badge {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    box-shadow: 0 0 20px var(--gold-glow);
    background: radial-gradient(circle, #2c1a4d, #0d0e15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.user-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--gold-bright);
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.panel-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.panel-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
}

.panel-tab-btn.active {
    background: linear-gradient(90deg, rgba(245, 176, 65, 0.15), transparent);
    border-left: 3px solid var(--gold-main);
    color: var(--gold-bright);
}

.panel-main {
    padding: 2.5rem;
}

.panel-view {
    display: none;
}

.panel-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-header h3 {
    font-size: 1.6rem;
    color: var(--gold-bright);
}

.view-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Character Cards Grid */
.char-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.char-card {
    background: rgba(12, 14, 22, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition);
    position: relative;
}

.char-card:hover {
    border-color: var(--gold-main);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 176, 65, 0.2);
}

.char-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.char-title h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold-bright);
}

.char-title span {
    font-size: 0.85rem;
    color: var(--purple-bright);
    font-weight: 600;
}

.char-level-badge {
    background: rgba(245, 176, 65, 0.15);
    border: 1px solid var(--gold-main);
    color: var(--gold-bright);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 800;
}

.char-stats-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
    font-size: 0.88rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
}

.char-stat-item {
    display: flex;
    justify-content: space-between;
}

.char-stat-item span:first-child {
    color: var(--text-muted);
}

.char-stat-item span:last-child {
    color: var(--text-white);
    font-weight: 700;
}

.char-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    background: rgba(8, 10, 16, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.2rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-main);
    box-shadow: 0 0 14px var(--gold-glow);
    background: rgba(14, 17, 26, 0.95);
}

.form-helper {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Password Input with Reveal Toggle & Live Character Counter */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .form-input {
    width: 100%;
    padding-right: 7.2rem;
}

.input-actions-box {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.password-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease, background 0.2s ease;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.password-toggle-btn:hover {
    color: var(--gold-bright);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

.char-counter-badge {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    color: var(--text-dim);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

/* For standalone counter in username field without .input-actions-box */
.password-input-wrapper > .char-counter-badge {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

/* For standalone eye toggle in login modal without counter */
.password-input-wrapper > .password-toggle-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

.char-counter-badge.limit-reached {
    color: #f5b041;
    background: rgba(245, 176, 65, 0.15);
    border-color: rgba(245, 176, 65, 0.4);
}

.client-compat-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(245, 176, 65, 0.08);
    border: 1px solid rgba(245, 176, 65, 0.3);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1.4rem;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #f7d58b;
}

.client-compat-notice i {
    font-size: 1.25rem;
    color: var(--gold-bright);
    margin-top: 1px;
    flex-shrink: 0;
}

.compat-warning-msg {
    display: none;
    font-size: 0.78rem;
    color: #f39c12;
    margin-top: 0.25rem;
    line-height: 1.35;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 0.95rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
    display: none;
}

.alert.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--green-online);
    color: #4cd964;
    display: block;
}

.alert.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--crimson);
    color: #ff6b6b;
    display: block;
}

/* =============================================================================
   RANKINGS TABLE
   ============================================================================= */
.rankings-box {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.rankings-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(8, 10, 16, 0.6);
}

.rank-tab-btn {
    flex: 1;
    padding: 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.rank-tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
}

.rank-tab-btn.active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold-main);
    background: rgba(245, 176, 65, 0.06);
}

.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 1.1rem 1.5rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-glass);
}

.custom-table td {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-table tr:hover td {
    background: rgba(245, 176, 65, 0.04);
}

.rank-badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffae00); color: #000; box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
.rank-2 { background: linear-gradient(135deg, #e0e0e0, #b0bec5); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }
.rank-other { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

/* =============================================================================
   DOWNLOADS & FEATURES
   ============================================================================= */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), 0 0 25px var(--cyan-glow);
    border-color: var(--cyan-main);
}

.download-icon {
    font-size: 3rem;
    color: var(--cyan-main);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--purple-main);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--purple-glow);
}

.feature-icon {
    font-size: 2.2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--gold-bright);
}

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

/* =============================================================================
   MODAL DIALOGS
   ============================================================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #0f121b;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card), 0 0 40px rgba(245, 176, 65, 0.2);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--crimson);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--gold-bright);
    margin-bottom: 0.4rem;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
    background: #050608;
    border-top: 1px solid var(--border-glass);
    padding: 4rem 2rem 2.5rem;
    margin-top: 6rem;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--gold-main);
}

.footer-text {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.8;
}

/* =============================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE & TABLET EXCELLENCE)
   ============================================================================= */

/* Global Anti-Horizontal Overflow Protection */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.panel-grid, .panel-main, .panel-sidebar, .packages-grid, .shop-history-box, .char-cards-grid {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1040px) {
    .navbar {
        padding: 0.65rem 1.25rem;
    }
    .stats-strip {
        margin-top: 2rem !important;
        padding: 0 1.25rem;
        position: relative;
        z-index: 5;
    }
    .nav-toggle {
        display: inline-flex;
        order: 3;
    }
    .nav-actions {
        order: 2;
        margin-left: auto;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 11, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--border-gold);
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        gap: 0.65rem;
        box-shadow: 0 15px 35px rgba(0,0,0,0.85);
        max-width: 100%;
        z-index: 999;
    }
    .nav-links.open {
        display: flex;
        animation: navSlideDown 0.25s ease-out forwards;
    }
    .nav-links a {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links a:hover, .nav-links a.active {
        background: rgba(255, 211, 105, 0.12);
        border-color: rgba(255, 211, 105, 0.3);
    }
    .hero-title {
        font-size: 2.6rem;
    }
    
    .section {
        padding: 4.5rem 1.5rem;
    }

    /* Panel layout on tablets */
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .panel-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    /* Currency Badges: Horizontal 3-column dashboard */
    .user-coins-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    .coin-balance-card {
        padding: 0.65rem 0.6rem;
        gap: 0.6rem;
    }

    /* Panel Navigation: 2x2 grid */
    .panel-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        width: 100%;
    }
    .panel-tab-btn {
        justify-content: center;
        text-align: center;
        padding: 0.75rem 0.8rem;
    }
    .panel-tab-btn[onclick*="logout"] {
        grid-column: span 2;
        margin-top: 0.2rem !important;
    }

    .panel-main {
        padding: 2rem 1.5rem;
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 1rem 1.5rem;
        min-height: auto;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 380px;
        margin: 1rem auto 0;
        gap: 0.65rem;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .stats-strip {
        margin-top: 2rem !important;
        padding: 0 1rem;
        position: relative;
        z-index: 5;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section {
        padding: 3.5rem 1rem;
    }
    .section-title {
        font-size: 2rem;
    }

    /* Shop View Header: Stacked cleanly */
    .view-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    .view-header > div:first-child {
        text-align: center;
    }
    .view-header h3 {
        font-size: 1.45rem;
        justify-content: center;
    }
    .view-header p {
        font-size: 0.85rem;
    }

    /* Shop Balance Pill: Featured full-width wallet card */
    .shop-balance-pill {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.85rem 1.2rem;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 176, 65, 0.2);
    }
    .shop-balance-pill > span {
        font-size: 0.72rem;
    }
    #shopCoinsCurrent {
        font-size: 1.35rem;
    }

    /* Security banner on mobile */
    .shop-security-banner {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 0.85rem 1rem;
        margin-bottom: 1.5rem;
    }
    .sec-item {
        gap: 0.75rem;
    }
    .sec-item i {
        font-size: 1.3rem;
    }
    .sec-item strong {
        font-size: 0.84rem;
    }
    .sec-item span {
        font-size: 0.75rem;
    }

    /* Recharges Table */
    .shop-history-box {
        margin-top: 2rem;
    }
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-glass);
    }
    .custom-table th {
        padding: 0.75rem 0.65rem;
        font-size: 0.72rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .custom-table td {
        padding: 0.75rem 0.65rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    /* Extreme mobile screens (iPhone SE, Galaxy A, etc.) */
    .navbar {
        padding: 0.6rem 0.85rem;
    }
    .nav-brand img {
        height: 34px;
        width: 34px;
    }
    .nav-title span:first-child {
        font-size: 1.05rem;
    }
    .nav-title span:last-child {
        font-size: 0.65rem;
    }
    .nav-actions {
        gap: 0.4rem;
    }
    .nav-actions .btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.55rem;
        margin-top: 0.75rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }

    .stats-strip {
        margin-top: 2rem !important;
        padding: 0 0.85rem;
        position: relative;
        z-index: 5;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .stat-card {
        padding: 0.9rem;
    }

    .section {
        padding: 2.8rem 0.65rem 2rem;
    }
    .section-title {
        font-size: 1.65rem;
    }
    .section-desc {
        font-size: 0.85rem;
    }

    /* Panel container */
    .panel-grid {
        border-radius: var(--radius-md);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    }
    .panel-sidebar {
        padding: 1.25rem 0.75rem;
        gap: 1.1rem;
    }
    .user-avatar {
        width: 58px;
        height: 58px;
        font-size: 1.6rem;
    }
    .user-name {
        font-size: 1.15rem;
    }
    .user-email {
        font-size: 0.78rem;
    }

    /* 3-Column currency micro-dashboard on small phones */
    .user-coins-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    .coin-balance-card {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.55rem 0.25rem;
        gap: 0.25rem;
        border-radius: var(--radius-sm);
    }
    .coin-icon-box {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    .coin-info-box {
        align-items: center;
    }
    .coin-title {
        font-size: 0.62rem;
        letter-spacing: 0;
        line-height: 1;
    }
    .coin-amount {
        font-size: 0.85rem;
        font-weight: 800;
        line-height: 1.1;
    }

    /* Navigation buttons */
    .panel-nav {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    .panel-tab-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.78rem;
        gap: 0.35rem;
        border-radius: var(--radius-sm);
    }
    .badge-tab-gold {
        font-size: 0.58rem;
        padding: 0.1rem 0.3rem;
    }

    /* Panel Main */
    .panel-main {
        padding: 1rem 0.65rem;
    }

    /* Packages Grid: 1 clean centered column */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pkg-card {
        padding: 1.4rem 1rem 1.1rem;
        border-radius: var(--radius-md);
    }
    .pkg-badge {
        top: 10px;
        right: 10px;
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    .pkg-icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    .pkg-title {
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
    }
    .pkg-coins-amount {
        font-size: 1.6rem;
    }
    .pkg-coins-sub {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    .pkg-desc {
        font-size: 0.78rem;
        margin-bottom: 0.85rem;
    }
    .pkg-price-tag {
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.8rem;
    }
    .pkg-price-val {
        font-size: 1.3rem;
    }
    .btn-buy-coins {
        padding: 0.75rem 0.6rem;
        font-size: 0.88rem;
        min-height: 44px;
    }

    /* Character Cards */
    .char-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .char-card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    .char-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .char-actions .btn {
        width: 100%;
        min-height: 42px;
    }

    /* Modals on Mobile */
    .modal-card {
        max-width: 96vw;
        padding: 1.4rem 1rem;
        border-radius: var(--radius-md);
    }
    .form-input {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }
}

/* =========================================================================
   ALERT MESSAGES
   ========================================================================= */
.alert {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    animation: fadeIn 0.3s ease-out;
}

.alert.success {
    display: block;
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.15);
}

.alert.error {
    display: block;
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.45);
    color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.alert.info {
    display: block;
    background: rgba(200, 170, 110, 0.12);
    border-color: rgba(200, 170, 110, 0.4);
    color: var(--gold-bright);
    box-shadow: 0 4px 15px rgba(200, 170, 110, 0.15);
}

/* =============================================================================
   USER SIDEBAR: CURRENCY / COIN BADGES
   ============================================================================= */
.user-coins-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-glass);
}

.coin-balance-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.9rem;
    background: rgba(10, 12, 18, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.coin-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.coin-balance-card.coin-card-c {
    border-color: rgba(245, 176, 65, 0.35);
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.08), rgba(15, 17, 26, 0.7));
}
.coin-balance-card.coin-card-c .coin-icon-box {
    background: rgba(245, 176, 65, 0.15);
    color: var(--gold-bright);
    box-shadow: 0 0 10px rgba(245, 176, 65, 0.25);
}
.coin-balance-card.coin-card-c .coin-amount {
    color: var(--gold-bright);
    font-weight: 800;
}

.coin-balance-card.coin-card-p {
    border-color: rgba(0, 210, 255, 0.25);
}
.coin-balance-card.coin-card-p .coin-icon-box {
    background: rgba(0, 210, 255, 0.12);
    color: var(--cyan-main);
}
.coin-balance-card.coin-card-p .coin-amount {
    color: var(--cyan-main);
}

.coin-balance-card.coin-card-gp {
    border-color: rgba(46, 204, 113, 0.25);
}
.coin-balance-card.coin-card-gp .coin-icon-box {
    background: rgba(46, 204, 113, 0.12);
    color: var(--green-online);
}
.coin-balance-card.coin-card-gp .coin-amount {
    color: var(--green-online);
}

.coin-icon-box {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.coin-info-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.2;
}

.coin-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.coin-amount {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

/* Tab highlight for Shop */
.panel-tab-btn.panel-tab-gold {
    border: 1px solid rgba(245, 176, 65, 0.25);
    background: rgba(245, 176, 65, 0.05);
}
.panel-tab-btn.panel-tab-gold:hover {
    background: rgba(245, 176, 65, 0.15);
    color: var(--gold-bright);
    border-color: var(--gold-main);
}
.panel-tab-btn.panel-tab-gold.active {
    background: linear-gradient(90deg, rgba(245, 176, 65, 0.25), rgba(155, 89, 182, 0.1));
    border-left: 3px solid var(--gold-bright);
    color: var(--gold-bright);
}

.badge-tab-gold {
    margin-left: auto;
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #635bff, #a259ff);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================================================
   SHOP VIEW: HEADER, BANNERS, PACKAGES
   ============================================================================= */
.shop-balance-pill {
    background: rgba(15, 18, 28, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 0.6rem 1.2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 176, 65, 0.15);
}

.shop-security-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    background: rgba(12, 14, 24, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
}

.sec-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.sec-item i {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.sec-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-white);
}

.sec-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
}

.testmode-banner {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: var(--gold-bright);
    font-size: 0.88rem;
}
.testmode-banner i {
    font-size: 1.25rem;
    color: var(--gold-main);
    margin-top: 2px;
}
.testmode-banner code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #ffd369;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pkg-card {
    background: rgba(14, 16, 26, 0.82);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pkg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
    opacity: 0.4;
    transition: var(--transition);
}

.pkg-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-main);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 176, 65, 0.25);
}

.pkg-card:hover::before {
    opacity: 1;
    height: 4px;
}

.pkg-card.highlight {
    border-color: rgba(245, 176, 65, 0.5);
    background: linear-gradient(180deg, rgba(245, 176, 65, 0.08) 0%, rgba(14, 16, 26, 0.9) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 176, 65, 0.15);
}

.pkg-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.pkg-badge.badge-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-main));
    color: #121008;
    box-shadow: 0 0 10px rgba(245, 176, 65, 0.35);
}

.pkg-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 176, 65, 0.2) 0%, rgba(20, 24, 38, 0.6) 70%);
    border: 1px solid rgba(245, 176, 65, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--gold-bright);
    margin-bottom: 1.2rem;
    box-shadow: 0 0 18px rgba(245, 176, 65, 0.2);
    transition: var(--transition);
}

.pkg-card:hover .pkg-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 24px rgba(245, 176, 65, 0.4);
}

.pkg-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-white);
    margin-bottom: 0.6rem;
}

.pkg-coins-amount {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 12px rgba(255, 211, 105, 0.4);
}

.pkg-coins-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pkg-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.pkg-price-tag {
    margin-bottom: 1.2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    width: 100%;
}

.pkg-price-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.btn-buy-coins {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    gap: 0.6rem;
    background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
    border: 1px solid rgba(255, 200, 55, 0.4);
    color: #120a02;
    box-shadow: 0 4px 18px rgba(255, 128, 8, 0.35);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy-coins:hover {
    background: linear-gradient(135deg, #ffd369 0%, #ffa502 100%);
    box-shadow: 0 6px 26px rgba(255, 128, 8, 0.65);
    transform: translateY(-2px);
    color: #000;
}

/* Checkout summary box in modal */
.checkout-summary-box {
    background: rgba(10, 12, 18, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 0.8rem;
    margin-top: 0.3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-bright);
}

/* =============================================================================
   ADMIN PANEL STYLES (Exclusivo daiwor93)
   ============================================================================= */
.adm-sub-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    transition: all 0.2s ease;
    cursor: pointer;
}
.adm-sub-tab-btn:hover {
    color: var(--gold-bright);
    background: rgba(240, 192, 90, 0.1);
    border-color: rgba(240, 192, 90, 0.4);
}
.adm-sub-tab-btn.active {
    background: linear-gradient(135deg, rgba(240, 192, 90, 0.25), rgba(240, 192, 90, 0.08)) !important;
    color: var(--gold-bright) !important;
    border-color: var(--gold-bright) !important;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(240, 192, 90, 0.2);
}

/* =============================================================================
   ARMORY & ITEM MAKER STYLES (Season 6 Visual Grid & Realtime MuMaker Display)
   ============================================================================= */
.adm-equip-slot {
    background: radial-gradient(circle at 50% 30%, rgba(26, 32, 53, 0.9), rgba(10, 13, 22, 0.95));
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    min-height: 105px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.6);
}
.adm-equip-slot:hover {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
.adm-equip-slot.occupied {
    background: linear-gradient(145deg, rgba(22, 28, 48, 0.98), rgba(39, 18, 56, 0.9));
    border-color: var(--gold-bright);
    box-shadow: 0 4px 18px rgba(0,0,0,0.6), inset 0 0 14px rgba(212, 175, 55, 0.15);
}
.adm-equip-slot.occupied:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35);
}

/* Tablero de Cuadrícula de Almacén e Inventario */
.adm-storage-board {
    position: relative;
    background: #090c15;
    border: 2px solid #5a4622;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.95), 0 8px 24px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.adm-storage-cell {
    position: absolute;
    box-sizing: border-box;
    border-right: 1px solid rgba(212, 175, 55, 0.22);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(14, 18, 30, 0.75);
    transition: background 0.15s ease;
}
.adm-storage-cell:hover {
    background: rgba(212, 175, 55, 0.25);
}

/* Items posicionados dentro de la cuadrícula */
.adm-placed-item {
    position: absolute;
    z-index: 10;
    box-sizing: border-box;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    overflow: hidden;
}
.adm-placed-item:hover {
    transform: scale(1.04);
    z-index: 30 !important;
    filter: brightness(1.12);
}

.adm-item-normal {
    background: linear-gradient(135deg, rgba(20, 26, 43, 0.95), rgba(15, 23, 42, 0.95));
    border: 1.5px solid rgba(147, 197, 253, 0.55);
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.adm-item-exc {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.94), rgba(15, 23, 42, 0.96));
    border: 1.5px solid #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}
.adm-item-fo {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(88, 28, 135, 0.96));
    border: 1.5px solid #fbbf24;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
}

/* Botones de Pestañas de Almacén */
#admStorageTabs .btn.active {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--gold-bright);
    color: #fff;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

/* =============================================================================
   MUMAKER-STYLE CHARACTER EQUIPMENT PAPERDOLL MANNEQUIN
   ============================================================================= */
.mu-mannequin-frame {
    background: radial-gradient(circle at 50% 30%, #171b26 0%, #0a0c13 100%);
    border: 2px solid #5a4622;
    border-radius: 12px;
    padding: 16px 14px 16px 14px;
    box-shadow: inset 0 0 35px rgba(0,0,0,0.95), 0 10px 28px rgba(0,0,0,0.7);
    max-width: 440px;
    margin: 0 auto 20px auto;
    position: relative;
    user-select: none;
    box-sizing: border-box;
}
.mu-doll-row-top {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.mu-doll-body-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.mu-doll-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 96px;
}
.mu-doll-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 140px;
}
.mu-doll-col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 96px;
}
.mu-doll-rings-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.mu-doll-lower-row {
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    margin-top: -36px;
    position: relative;
    z-index: 5;
}
.mu-doll-slot {
    background: radial-gradient(circle at 50% 35%, #181d2c 0%, #0c0e17 100%);
    border: 1.5px solid #3c4456;
    border-radius: 6px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.mu-doll-slot:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.4), inset 0 0 8px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}
.mu-doll-slot.occupied {
    background: linear-gradient(145deg, #18223c, #26112d);
    border-color: #22c55e;
    box-shadow: 0 4px 14px rgba(0,0,0,0.7), inset 0 0 10px rgba(34, 197, 94, 0.2);
}
.mu-doll-slot.occupied.is-fo {
    border-color: #fbbf24;
    box-shadow: 0 4px 16px rgba(0,0,0,0.7), inset 0 0 12px rgba(251, 191, 36, 0.25);
}

/* Slot Dimensions matching Paperdoll */
.slot-wings { width: 150px; height: 85px; }
.slot-pet { width: 80px; height: 64px; }
.slot-pendant { width: 44px; height: 44px; }
.slot-weapon-left { width: 92px; height: 130px; }
.slot-weapon-right { width: 92px; height: 130px; }
.slot-helm { width: 80px; height: 80px; }
.slot-armor { width: 105px; height: 115px; }
.slot-ring { width: 44px; height: 44px; }
.slot-pants { width: 90px; height: 92px; }
.slot-gloves { width: 82px; height: 82px; }
.slot-boots { width: 82px; height: 82px; }
.mu-doll-slot-aux-decor {
    width: 80px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder Icon & Label */
.doll-ph-icon {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.18);
    margin-bottom: 2px;
}
.doll-ph-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

/* Occupied Slot Inner Presentation */
.doll-item-img {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.95));
}
.doll-item-name {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px #000;
    text-align: center;
}
.doll-item-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
}

/* Gold Class Name Banner */
.mu-doll-class-banner {
    margin-top: 16px;
    background: linear-gradient(180deg, #2b2212 0%, #151108 100%);
    border: 1.5px solid #d4af37;
    border-radius: 6px;
    padding: 8px 14px;
    text-align: center;
    color: #ffd700;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.65);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.85), 0 3px 12px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}




