/* =========================================
   Super Shop Management System — Luxury Theme
   ========================================= */

:root {
    --bg-0: #0a0a0f;
    --bg-1: #12121a;
    --bg-2: #1a1a24;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    --gold: #d4af37;
    --gold-light: #f4d57a;
    --gold-dark: #9e8128;
    --accent: #c9a961;

    --text: #f5f5f7;
    --text-muted: #9a9aa5;
    --text-dim: #6b6b75;

    --success: #4ade80;
    --danger: #f87171;
    --warning: #fbbf24;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.25);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 20% 10%, rgba(212, 175, 55, 0.08) 0, transparent 50%),
        radial-gradient(at 80% 90%, rgba(201, 169, 97, 0.06) 0, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

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

/* ====== Navigation ====== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.brand {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
}
.brand-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    color: #0a0a0f; font-size: 1.2rem;
    box-shadow: var(--shadow-gold);
}
.brand-text { background: linear-gradient(135deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a:hover { color: var(--gold-light); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px; background: var(--gold);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

/* ====== Hero ====== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex; align-items: center; justify-content: center;
    padding: 4rem 2rem; text-align: center; position: relative;
}
.hero-content { max-width: 900px; z-index: 2; }
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 2rem;
    background: rgba(212, 175, 55, 0.05);
}
.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05; margin-bottom: 1.5rem;
}
.hero h1 .accent {
    display: block;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-style: italic;
}
.hero p {
    font-size: 1.15rem; color: var(--text-muted);
    max-width: 640px; margin: 0 auto 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ====== Buttons ====== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 2rem; border: none; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: var(--transition);
    white-space: nowrap; text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4); }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-full { width: 100%; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* ====== Portals / Role Cards ====== */
.portals {
    padding: 6rem 2rem;
    max-width: 1280px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.portal-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.portal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.portal-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: var(--transition);
}
.portal-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    background: var(--surface-hover);
    box-shadow: var(--shadow);
}
.portal-card:hover::before { opacity: 1; }
.portal-icon {
    width: 72px; height: 72px; margin: 0 auto 1.5rem;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
}
.portal-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.portal-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.portal-actions { display: flex; gap: 0.75rem; justify-content: center; }
.portal-actions .btn { flex: 1; padding: 0.7rem 1rem; font-size: 0.875rem; }

/* ====== Auth Pages ====== */
.auth-wrapper {
    min-height: 100vh;
    display: grid; place-items: center;
    padding: 2rem;
}
.auth-card {
    width: 100%; max-width: 480px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.auth-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
}
.auth-header { text-align: center; margin-bottom: 2.5rem; }
.auth-header .brand { justify-content: center; margin-bottom: 1.5rem; }
.auth-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem;
    font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
    letter-spacing: 0.02em;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-1);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.form-group input::placeholder { color: var(--text-dim); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.auth-footer {
    text-align: center; margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.9rem;
}
.auth-footer a { color: var(--gold-light); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-muted); font-size: 0.875rem;
    margin-bottom: 1rem;
}
.back-link:hover { color: var(--gold-light); }

/* ====== Alert / Toast ====== */
.alert {
    padding: 0.9rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; margin-bottom: 1.25rem;
    display: none;
    border: 1px solid;
}
.alert.show { display: block; }
.alert-error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); color: var(--danger); }
.alert-success { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.3); color: var(--success); }

/* ====== Dashboard ====== */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
    background: var(--bg-1);
    border-right: 1px solid var(--border);
    padding: 2rem 1.25rem;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}
.sidebar .brand { margin-bottom: 2.5rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.8rem 1rem; border-radius: var(--radius-sm);
    color: var(--text-muted); font-weight: 500; font-size: 0.925rem;
    transition: var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--surface);
    color: var(--gold-light);
}
.sidebar-nav a.active { border-left: 3px solid var(--gold); padding-left: calc(1rem - 3px); }

.dash-main { padding: 2rem 2.5rem; }
.dash-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2.5rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.dash-header h1 { font-size: 2rem; }
.dash-header .user-info { display: flex; align-items: center; gap: 1rem; }
.avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #0a0a0f;
}

.stats-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 2.5rem;
}
.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--gold); background: var(--surface-hover); }
.stat-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold-light); }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: 1rem; font-size: 1.25rem; }

/* ====== Table ====== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem 1.25rem; text-align: left; font-size: 0.9rem; }
th { background: var(--bg-2); color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
tr { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--surface); }
tbody tr:last-child { border-bottom: none; }

.badge {
    display: inline-block; padding: 0.25rem 0.75rem;
    border-radius: 100px; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-active { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.badge-pending { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.badge-inactive { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.badge-banned { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .dash-layout { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
    .dash-main { padding: 1.5rem; }
}

/* ====== Animations ====== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ====== Utilities ====== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-light); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.flex { display: flex; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
