/* ==========================================================================
   MU ONLINE V8 - MODERN GAMING STYLING & PORTAL
   ========================================================================== */

:root {
    --bg-dark: #0a0d14;
    --bg-surface: #111622;
    --bg-surface-elevated: #171f30;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.35);
    --accent-red: #e02f2f;
    --accent-red-hover: #ff3b3b;
    --accent-gold: #d4af37;
    --accent-gold-light: #f7d560;
    --accent-blue: #007bff;
    --accent-blue-hover: #0056b3;
    --accent-cyan: #00e5ff;
    --text-primary: #f0f4f8;
    --text-secondary: #9ba6b5;
    --text-muted: #64748b;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --font-heading: 'Rajdhani', 'Cinzel', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(224, 47, 47, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, #07090e 0%, var(--bg-dark) 100%);
    min-height: 100vh;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fff;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.nav-brand span {
    color: var(--accent-red);
}

.nav-brand .badge {
    font-size: 0.7rem;
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: #000;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent-gold-light);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #b71c1c);
    color: #fff;
    box-shadow: 0 4px 15px rgba(224, 47, 47, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-red-hover), var(--accent-red));
    box-shadow: 0 6px 20px rgba(224, 47, 47, 0.5);
    transform: translateY(-2px);
}

.btn-blue {
    background: #007bff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-blue:hover {
    background: #0069d9;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.45);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: #0b0d14;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
    background: rgba(212, 175, 55, 0.05);
}

/* HERO SECTION */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(224, 47, 47, 0.12);
    border: 1px solid rgba(224, 47, 47, 0.3);
    color: #ff7676;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--accent-gold-light) 70%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

/* STATS BAR */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 5rem;
    padding: 0 5%;
}

.stat-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-gold-light);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTION COMMONS */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* FEATURE CARDS */
.features-container {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 5%;
}

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

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    color: var(--accent-gold-light);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

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

.feature-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.25);
}

/* CLIENT AREA (JOGANDOMU STYLE) */
.client-area-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.client-box {
    background: #eef5f8;
    color: #1e293b;
    width: 100%;
    max-width: 580px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    padding: 2.5rem 2rem;
    text-align: center;
}

.client-box h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: #1a202c;
    margin-bottom: 2rem;
}

.client-details-card {
    background: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.client-details-card .detail-row {
    display: flex;
    margin-bottom: 0.4rem;
}

.client-details-card .label {
    font-weight: 700;
    color: #31708f;
    min-width: 130px;
}

.client-details-card .value {
    color: #31708f;
    word-break: break-all;
}

.client-details-card .red-note {
    color: #d9534f;
    font-weight: 600;
}

.client-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.client-btn {
    display: block;
    width: 240px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.client-btn:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    color: #fff;
}

.client-btn-logout {
    width: 110px;
    background-color: #007bff;
}

/* AUTH FORMS (LOGIN & REGISTER) */
.auth-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--card-shadow);
}

.auth-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
}

.auth-card p.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #090c13;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    color: #fff;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

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

/* ALERTS */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff7676;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #5ddc7f;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
    background: #06080c;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* ADMIN TABLE */
.admin-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: #0a0d14;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.badge-active {
    background: rgba(40, 167, 69, 0.2);
    color: #4cd964;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-suspended {
    background: rgba(220, 53, 69, 0.2);
    color: #ff5b5b;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

