* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34,197,94,.08), transparent 25%),
        linear-gradient(180deg, #061126 0%, #08152d 100%);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.small {
    font-size: 12px;
    color: #94a3b8;
}

.empty {
    text-align: center;
    color: #94a3b8;
    padding: 24px;
}

.preview-link {
    word-break: break-all;
    color: #93c5fd;
}

.page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px;
}

/* LAYOUT */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 270px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 24px 18px;
    backdrop-filter: blur(8px);
}

.admin-main {
    flex: 1;
    min-width: 0;
}

/* SIDEBAR */
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.admin-sidebar-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 12px 28px rgba(37,99,235,.28);
}

.admin-sidebar-title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
}

.admin-sidebar-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 14px;
    color: #dbe7ff;
    transition: .2s ease;
}

.admin-sidebar-nav a:hover {
    background: rgba(255,255,255,.05);
}

.admin-sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(59,130,246,.20), rgba(37,99,235,.12));
    border: 1px solid rgba(59,130,246,.24);
    color: #fff;
}

/* HERO */
.hero {
    margin-bottom: 24px;
    padding: 26px 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at right top, rgba(59,130,246,.18), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 50px rgba(0,0,0,.26);
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 800;
}

.hero p {
    color: #a9bddb;
    line-height: 1.6;
}

/* GRID */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* PANELS */
.panel {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 18px 52px rgba(0,0,0,.28);
}

.panel-header {
    padding: 22px 22px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.panel-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.panel-subtitle {
    color: #94a3b8;
    font-size: 14px;
}

.panel-body {
    padding: 22px;
}

.stat-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 52px rgba(0,0,0,.22);
}

.stat-label {
    color: #c4d5ee;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-note {
    color: #94a3b8;
    font-size: 13px;
}

.kpi-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kpi-item {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

/* FORMS */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: #fff;
    outline: none;
    font-size: 14px;
}

input::placeholder {
    color: #8ea1c0;
}

input:focus,
select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 24px rgba(37,99,235,.28);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 10px 24px rgba(22,163,74,.24);
}

.btn-secondary {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 24px rgba(220,38,38,.22);
}

/* TABLES */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.06);
    vertical-align: middle;
}

th {
    color: #9fb3d3;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

td {
    color: #fff;
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: rgba(34,197,94,.14);
    color: #86efac;
}

.badge-danger {
    background: rgba(239,68,68,.14);
    color: #fecaca;
}

/* ALERT */
.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.08);
}

.alert-error {
    background: rgba(239,68,68,.12);
    color: #fecaca;
}

/* TOAST */
.toast-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 290px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 50px rgba(0,0,0,.30);
    color: #fff;
    backdrop-filter: blur(8px);
}

.toast-success {
    background: linear-gradient(135deg, rgba(34,197,94,.92), rgba(22,163,74,.92));
}

.toast-info {
    background: linear-gradient(135deg, rgba(59,130,246,.92), rgba(37,99,235,.92));
}

.toast-error {
    background: linear-gradient(135deg, rgba(239,68,68,.92), rgba(220,38,38,.92));
}

.toast-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.toast-text {
    font-size: 13px;
    line-height: 1.5;
}

/* LOGIN */
.osma-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.osma-login-wrap {
    width: 100%;
    max-width: 460px;
    padding: 20px;
}

.osma-login-card {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.osma-login-logo {
    text-align: center;
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 8px;
}

.osma-login-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 24px;
}

.osma-login-group {
    margin-bottom: 18px;
}

.osma-login-group label {
    display: block;
    margin-bottom: 8px;
}

.osma-login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.osma-login-alert {
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 14px;
}

.osma-login-alert.success {
    background: rgba(34,197,94,.14);
    color: #bbf7d0;
}

.osma-login-alert.error {
    background: rgba(239,68,68,.14);
    color: #fecaca;
}

/* STATS PREMIUM */
.stats-hero-pro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stats-breadcrumb {
    color: #8ea1c0;
    font-size: 14px;
    margin-bottom: 8px;
}

.stats-main-title {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.stats-top-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-filter-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #d8e4ff;
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 140px;
    text-align: center;
    font-size: 14px;
}

.stats-cards-pro {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stats-kpi-card {
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 48px rgba(0,0,0,.30);
    overflow: hidden;
}

.kpi-blue {
    background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(20,30,70,.75));
}

.kpi-purple {
    background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(30,20,70,.75));
}

.kpi-cyan {
    background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(20,35,70,.75));
}

.kpi-gold {
    background: linear-gradient(135deg, rgba(250,204,21,.14), rgba(40,45,65,.78));
}

.stats-kpi-label {
    color: #d5e2ff;
    font-size: 15px;
    margin-bottom: 12px;
}

.stats-kpi-value {
    font-size: 54px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.stats-chart-card,
.stats-table-card {
    background:
        radial-gradient(circle at top center, rgba(59,130,246,.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,.34);
    margin-bottom: 24px;
}

.stats-card-title {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -.5px;
}

.stats-chart-wrap {
    height: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 6px 0;
    border-top: 1px solid rgba(255,255,255,.04);
}

.stats-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.stats-bar-value {
    color: #bfd1ef;
    font-size: 12px;
    min-height: 16px;
}

.stats-bar-track {
    width: 100%;
    max-width: 58px;
    height: 230px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 18px;
    padding: 6px;
}

.stats-bar-fill {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(180deg, #9de7ff 0%, #69b8ff 55%, #3b82f6 100%);
    box-shadow: 0 10px 24px rgba(59,130,246,.35);
}

.stats-bar-label {
    color: #9fb3d3;
    font-size: 13px;
    text-transform: lowercase;
}

.stats-card-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stats-table-note {
    color: #8ea1c0;
    font-size: 14px;
}

.stats-pro-table td {
    vertical-align: middle;
}

.stats-banner-thumb {
    width: 96px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
}

.stats-banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stats-banner-name {
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

/* VISITOR PAGE */
.visitor-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(59,130,246,.12), transparent 28%),
        linear-gradient(180deg, #020617 0%, #08152d 100%);
}

.cine-header {
    padding: 28px 18px 18px;
}

.cine-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.cine-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.cine-icon {
    font-size: 56px;
}

.cine-title {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cine-word {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #ff9500;
}

.hd-word {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #ff2d20;
}

.cine-subtitle {
    margin-top: 16px;
    color: #8e8e93;
    font-size: 20px;
    letter-spacing: 8px;
}

.visitor-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 22px 18px 50px;
}

.visitor-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.visitor-main-title {
    font-size: 42px;
    margin: 18px 0 12px;
}

.visitor-text {
    color: #9fb3d3;
    margin-bottom: 20px;
}

.visitor-timer-box {
    display: inline-block;
    margin: 0 auto 22px;
    padding: 18px 28px;
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.visitor-timer-label {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.visitor-timer-number {
    font-size: 44px;
    font-weight: 900;
}

.visitor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 800;
    margin-top: 10px;
}

.visitor-banner {
    margin: 16px 0;
}

.visitor-banner img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
}
