:root {
    --primary: #2563eb; 
    --primary-hover: #1d4ed8; 
    --secondary: #1e293b; 
    --bg: #f8fafc; 
    --surface: #ffffff;
    --text: #0f172a; 
    --muted: #64748b; 
    --border: #e2e8f0; 
    --danger: #ef4444; 
    --success: #10b981;
    --warning: #f59e0b; 
    --badge-bg: #eff6ff; 
    --modal-bg: rgba(0,0,0,0.6);
}

* { 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    padding: 0; 
}

body { 
    background: var(--bg); 
    color: var(--text); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    overflow-x: hidden; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

.header-container { 
    background: var(--surface); 
    padding: 1.2rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.brand h1 { 
    font-size: 1.6rem; 
    color: var(--primary); 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
}

.brand p { 
    font-size: 0.85rem; 
    color: var(--muted); 
    font-weight: 600; 
    margin-top: 2px; 
}

.top-nav { 
    display: flex; 
    background-color: var(--secondary); 
    padding: 0 2rem; 
    overflow-x: auto; 
    border-bottom: 3px solid var(--border);
}

.nav-item { 
    padding: 1rem 1.2rem; 
    color: #94a3b8; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-weight: 600; 
    font-size: 0.95rem; 
    border-bottom: 3px solid transparent; 
    transition: 0.2s; 
    white-space: nowrap; 
    margin-bottom: -3px;
}

.nav-item:hover, .nav-item.active { 
    background-color: rgba(255, 255, 255, 0.05); 
    color: #ffffff; 
    border-bottom-color: var(--primary); 
}

.main-content { 
    padding: 2rem; 
    max-width: 1400px; 
    margin: 0 auto; 
    width: 100%; 
    flex-grow: 1; 
    position: relative;
}

.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 1.5rem; 
    border-bottom: 2px solid var(--border); 
    padding-bottom: 1rem; 
    flex-wrap: wrap; 
    gap: 1rem; 
}

.section-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--text); 
}

.hidden { 
    display: none !important; 
}

.btn { 
    padding: 0.6rem 1.2rem; 
    border-radius: 8px; 
    border: none; 
    font-weight: 600; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    font-size: 0.875rem; 
    transition: 0.2s; 
}

.btn-primary { background: var(--primary); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-outline { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

.form-control { 
    padding: 0.6rem 1rem; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    width: 100%; 
    background: var(--surface); 
    color: var(--text); 
    margin-bottom: 1rem;
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1rem; 
    margin-bottom: 2rem; 
}

.stat-card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

.stat-icon { 
    width: 50px; 
    height: 50px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    color: white; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 1.8rem; 
}

.gallery-card { 
    background: var(--surface); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    cursor: pointer; 
}

.gallery-img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    background: var(--bg); 
    border-bottom: 1px solid var(--border); 
}

.gallery-body { 
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    text-align: center;
}

.service-ticket { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
}

.st-header { 
    display: flex; 
    justify-content: space-between; 
    padding: 1rem 1.2rem; 
    background: var(--badge-bg); 
    border-bottom: 1px solid var(--border); 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: var(--primary);
}

.st-img-container { position: relative; cursor: pointer; overflow: hidden; }
.st-img-container img { width: 100%; height: 240px; object-fit: cover; }
.st-body { padding: 1.5rem; flex-grow: 1;}
.st-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.3rem;}
.st-footer { padding: 1.2rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.8rem; background: var(--bg);}
.st-play-btn { background: #ef4444; color: white; border: none; border-radius: 25px; padding: 0.6rem 1.2rem; font-weight: 700; cursor: pointer; flex: 1;}
.st-inline-video iframe { width: 100%; aspect-ratio: 16 / 9; border: none; display: block; }

.table-container { 
    background: var(--surface); 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    overflow-x: auto; 
    margin-bottom: 1.5rem;
}

table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: var(--bg); padding: 1rem; font-size: 0.75rem; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 700;}
td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.badge { padding: 0.25rem 0.6rem; border-radius: 99px; font-size: 0.75rem; font-weight: 700; background: var(--badge-bg); color: var(--primary); display: inline-block;}

.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--modal-bg); 
    backdrop-filter: blur(5px); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    padding: 1rem; 
}

.modal-content { 
    background: var(--surface); 
    border-radius: 16px; 
    width: 100%; 
    max-width: 700px; 
    max-height: 90vh; 
    overflow-y: auto; 
    padding: 2rem; 
    border: 1px solid var(--border); 
    position: relative;
}

.modal-lg { max-width: 900px !important; }

.loader-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--bg); 
    z-index: 3000; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}

.spinner { 
    width: 50px; 
    height: 50px; 
    border: 5px solid var(--border); 
    border-top-color: var(--primary); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

@keyframes spin { to { transform: rotate(360deg); } }

.toast { 
    position: fixed; 
    bottom: 2rem; 
    left: 50%; 
    transform: translateX(-50%) translateY(100px); 
    background: var(--secondary); 
    color: white; 
    padding: 1rem 2rem; 
    border-radius: 8px; 
    z-index: 2000; 
    opacity: 0; 
    transition: 0.3s; 
    font-weight: 600; 
    display: flex; 
    gap: 0.5rem; 
    align-items: center;
}

.toast.show { 
    transform: translateX(-50%) translateY(0); 
    opacity: 1; 
}

.lightbox { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.95); 
    z-index: 9999; 
    display: none; 
    justify-content: center; 
    align-items: center;
}

.lb-close { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    color: white; 
    font-size: 2.5rem; 
    cursor: pointer; 
    font-weight: bold;
}

.lb-content { max-width: 90%; max-height: 80vh; border-radius: 8px;}

.lb-prev, .lb-next { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    color: white; 
    font-size: 3rem; 
    cursor: pointer; 
    background: rgba(255,255,255,0.1); 
    border: none; 
    padding: 1rem; 
    border-radius: 8px;
}

.lb-prev { left: 20px; } 
.lb-next { right: 20px; }

.lb-counter { 
    position: absolute; 
    bottom: 30px; 
    color: white; 
    font-size: 1.2rem; 
    background: rgba(0,0,0,0.5); 
    padding: 0.5rem 1rem; 
    border-radius: 20px;
}