:root {
    --bg: #0f1115;
    --card: #1a1d24;
    --accent: #d4a94a;
    --text: #eee;
    --muted: #9aa0aa;
    --danger: #e05a5a;
    --success: #4ac787;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }

.topnav {
    display: flex; align-items: center; gap: 20px;
    padding: 16px 24px; background: var(--card);
    border-bottom: 1px solid #2a2e37;
}
.topnav .brand { font-weight: bold; color: var(--accent); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 50px; width: auto; display: block; }
.admin-tag { font-size: 12px; background: var(--accent); color: #1a1d24; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.topnav a { color: var(--text); text-decoration: none; }
.topnav a:hover { color: var(--accent); }

.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-box { background: var(--card); padding: 32px; border-radius: 12px; width: 320px; }
.auth-box h1 { color: var(--accent); font-size: 20px; margin-top: 0; }
.auth-box { overflow: hidden; }
.auth-logo { width: 100% !important; max-width: 200px !important; height: auto !important; display: block; margin: 0 auto 20px; }
.auth-box a { color: var(--accent); text-decoration: none; }
.auth-box a:hover { text-decoration: underline; }
.auth-box h2 { margin-top: 0; }
.auth-logo { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto 16px; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth-box label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.auth-box input { padding: 10px; border-radius: 6px; border: 1px solid #333; background: #0f1115; color: var(--text); }

button, .btn {
    background: var(--accent); color: #1a1d24; border: none; padding: 10px 18px;
    border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; font-weight: 600;
}
.btn-secondary { background: #333; color: var(--text); }
.btn-small { padding: 6px 10px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }

.error { color: var(--danger); }
.muted { color: var(--muted); }

.filters { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }

.live-featured { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin: 20px 0; }
.live-featured-player .video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; }
.live-featured-player .video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.live-featured-title { margin: 10px 0 0; font-size: 17px; }
.live-featured-chat { background: var(--card); border-radius: 10px; overflow: hidden; min-height: 400px; }
.live-featured-chat iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }
@media (max-width: 800px) {
    .live-featured { grid-template-columns: 1fr; }
    .live-featured-chat { min-height: 320px; }
    .live-featured-chat iframe { min-height: 320px; }
}
.filters a { padding: 6px 14px; border-radius: 20px; background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; }
.filters a.active { background: var(--accent); color: #1a1d24; }

.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 20px; }
.content-card { background: var(--card); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); display: block; }
.content-card img, .thumb-placeholder { width: 100%; height: 130px; object-fit: cover; background: #2a2e37; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.content-card-body { padding: 12px; }
.content-card-body h3 { margin: 8px 0 0; font-size: 15px; }

.badge { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: #333; color: var(--muted); margin-right: 6px; }
.badge-new { background: var(--success); color: #0f1115; }

.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.back-link { color: var(--muted); text-decoration: none; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.stat-card { background: var(--card); padding: 18px; border-radius: 10px; text-align: center; }
.stat-card strong { display: block; font-size: 28px; color: var(--accent); }
.stat-card span { font-size: 13px; color: var(--muted); }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px; border-bottom: 1px solid #2a2e37; font-size: 14px; }
.admin-table th { color: var(--muted); font-weight: 600; }

.status { padding: 3px 10px; border-radius: 10px; font-size: 12px; background: #333; }
.admin-table a { color: var(--accent); text-decoration: none; font-weight: 600; }
.admin-table a:hover { text-decoration: underline; }
.status-active { background: var(--success); color: #0f1115; }
.status-pending { background: #d4a94a; color: #1a1d24; }
.status-inactive, .status-expired { background: var(--danger); color: #fff; }

.content-form { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.content-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.content-form input, .content-form select, .content-form textarea { padding: 10px; border-radius: 6px; border: 1px solid #333; background: #0f1115; color: var(--text); font-family: inherit; }
.content-form .checkbox { flex-direction: row; align-items: center; gap: 8px; }

.page-header { display: flex; justify-content: space-between; align-items: center; }
.search-bar { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.search-bar input[type="text"] { padding: 10px; border-radius: 6px; border: 1px solid #333; background: #0f1115; color: var(--text); flex: 1; max-width: 320px; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.panel-box { background: var(--card); padding: 20px; border-radius: 10px; }
.panel-box h2 { margin-top: 0; font-size: 16px; color: var(--accent); }
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }
.panel-box textarea { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #333; background: #0f1115; color: var(--text); font-family: inherit; box-sizing: border-box; }

.payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.payment-card { background: var(--card); padding: 20px; border-radius: 10px; }
.manual-instructions { white-space: pre-wrap; background: #0f1115; padding: 12px; border-radius: 6px; font-size: 13px; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.pack-card { background: var(--card); padding: 24px; border-radius: 12px; display: flex; flex-direction: column; gap: 14px; }
.pack-card h2 { margin: 0; font-size: 18px; color: var(--accent); }
.pack-card ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.7; }
.pack-card .btn { margin-top: auto; width: 100%; }
.pack-card-image { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }

.pack-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.pack-admin-form { background: var(--card); padding: 20px; border-radius: 10px; max-width: none; }
.pack-admin-form h2 { margin-top: 0; font-size: 16px; color: var(--accent); }
.pack-admin-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }

.pack-chosen { color: var(--muted); }
.amount-picker { background: var(--card); padding: 20px; border-radius: 10px; margin: 20px 0; }
.amount-picker label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.amount-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.amount-btn.amount-active { background: var(--accent) !important; color: #1a1d24 !important; box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(212,169,74,0.5); font-weight: 700; }
#amount-custom-input { padding: 10px; border-radius: 6px; border: 1px solid #333; background: #0f1115; color: var(--text); width: 160px; }
.recurrence-toggle { display: flex; gap: 20px; font-size: 14px; }
.recurrence-toggle label { display: flex; align-items: center; gap: 6px; color: var(--text); }

.notice-success { background: #163826; color: var(--success); padding: 14px; border-radius: 8px; margin: 16px 0; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.manual-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.manual-form select { padding: 8px; border-radius: 6px; border: 1px solid #333; background: #0f1115; color: var(--text); }

.paypal-white-box:not(:empty) { background: #fff; border-radius: 8px; padding: 12px; }

.interac-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffc72c, #a900b7, #0069b4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}
