/* ══════════════════════════════════════════
   ADMIN PANEL — MATERIAL DESIGN 3 (DARK ONLY)
   Clean, flat, modern — no cyber effects
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* ── Material Dark Variables ── */
:root {
  --bg:          #121212;
  --s1:          #1e1e1e;
  --s2:          #2a2a2a;
  --s3:          #333333;
  --border:      #3a3a3a;
  --border2:     #4a4a4a;
  --accent:      #a8c7fa;
  --accent2:     #7da4f5;
  --accent3:     #7dd9a2;
  --text:        #e3e3e3;
  --muted:       #9e9e9e;
  --danger:      #f28b82;
  --warn:        #fdd663;
  --mono:        'Roboto Mono', monospace;
  --sans:        'Inter', sans-serif;
  --radius:      12px;
  --scanline:    transparent;
  --grad-a:      rgba(168,199,250,0.04);
  --grad-b:      rgba(125,164,245,0.03);
  --glow-rgb:    168,199,250;
  --glow-bright: rgba(168,199,250,1);
  --glow-title:  rgba(168,199,250,0.95);
  --focus-ring:  rgba(125,164,245,0.25);
  --md-elevation-1: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --md-elevation-2: 0 3px 6px rgba(0,0,0,0.3), 0 3px 6px rgba(0,0,0,0.2);
  --md-elevation-3: 0 10px 20px rgba(0,0,0,0.3), 0 3px 6px rgba(0,0,0,0.2);
}

/* ══════════════════════════════════════════
   REMOVE CYBER EFFECTS
   ══════════════════════════════════════════ */

body::before { display: none; }
.bgfx { display: none; }

.portal {
  background: var(--bg);
}

/* ══════════════════════════════════════════
   BASE
   ══════════════════════════════════════════ */

body {
  font-family: var(--sans);
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */

.site-header {
  background: var(--s1);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--md-elevation-1);
  backdrop-filter: none;
}

.hdr-logo {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hdr-account-btn,
.hdr-logout-btn {
  font-family: var(--sans);
  border-radius: 20px;
}

.hdr-account-dot,
.hdr-logout-dot {
  box-shadow: none;
}

.hdr-tag {
  font-family: var(--sans);
  border-radius: 16px;
  padding: 4px 12px;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   LANG SWITCHER
   ══════════════════════════════════════════ */

.lcd-summary {
  font-family: var(--sans);
  border-radius: 20px;
}

.lcd-menu {
  border-radius: 12px;
  box-shadow: var(--md-elevation-3);
  border: none;
  background: var(--s1);
}

.lcd-item {
  font-family: var(--sans);
  border-radius: 8px;
}

/* ══════════════════════════════════════════
   SECTION CARDS — MATERIAL ELEVATION
   ══════════════════════════════════════════ */

.sec-card {
  border-radius: var(--radius);
  background: var(--s1);
  box-shadow: var(--md-elevation-1);
  border: none;
  overflow: hidden;
}

.sec-card::before,
.sec-card::after {
  display: none;
}

.sec-card:hover {
  box-shadow: var(--md-elevation-2);
  transform: none;
}

.sec-card:focus-within {
  box-shadow: var(--md-elevation-2), 0 0 0 2px var(--accent);
  transform: none;
}

.sec-card-inner {
  border-radius: 0;
  overflow: visible;
}

.sec-card-head {
  padding: 16px 20px;
  background: var(--s1);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.sec-card-head::after {
  display: none;
}

.sec-card-head:hover {
  background: var(--s2);
}

.sec-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: none;
}

.sec-card:hover .sec-card-icon {
  box-shadow: none;
  transform: none;
}

.sec-card-title h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.sec-card:hover .sec-card-title h3 {
  color: var(--text);
}

.sec-card-title p {
  font-family: var(--sans);
  font-size: 0.8rem;
}

.sec-chevron {
  font-size: 0.7rem;
}

.sec-card:hover .sec-chevron {
  color: var(--muted);
}

.sec-card-body {
  padding: 20px 24px;
  gap: 16px;
}

/* ══════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════ */

input[type='text'],
input[type='email'],
input[type='password'],
input[type='file'],
input[type='number'],
input[type='url'],
select,
textarea {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='number']:focus,
input[type='url']:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.input-wrap::after {
  font-family: var(--sans);
  font-size: 0.8rem;
  border-radius: 8px;
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */

.btn {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  border-radius: 20px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: #121212;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent2);
  box-shadow: var(--md-elevation-1);
  opacity: 1;
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 20px;
}

.btn-danger:hover {
  background: rgba(242,139,130,0.1);
}

.btn-ghost {
  border-radius: 20px;
}

.add-row {
  font-family: var(--sans);
  border-radius: 20px;
  border: 1px dashed var(--border2);
}

.add-row:hover {
  background: var(--s2);
  border-color: var(--accent);
}

/* ══════════════════════════════════════════
   TOGGLES
   ══════════════════════════════════════════ */

.tgl-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: 2px solid var(--border2);
  background: var(--s3);
}

.tgl-track::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  top: 3px;
  left: 3px;
}

.tgl.on .tgl-track {
  background: var(--accent);
  border-color: var(--accent);
}

.tgl.on .tgl-track::after {
  transform: translateX(20px);
  background: #fff;
}

.tgl-label {
  font-family: var(--sans);
  font-size: 0.875rem;
}

/* ══════════════════════════════════════════
   RESULTS & PROGRESS
   ══════════════════════════════════════════ */

.result {
  font-family: var(--sans);
  font-size: 0.875rem;
  border-radius: 8px;
}

.result-ok {
  background: rgba(125,217,162,0.12);
  color: var(--accent3);
  border: 1px solid rgba(125,217,162,0.25);
}

.result-err {
  background: rgba(242,139,130,0.12);
  color: var(--danger);
  border: 1px solid rgba(242,139,130,0.25);
}

.progress-bar {
  border-radius: 4px;
  height: 4px;
}

/* ══════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════ */

.info-table {
  font-family: var(--sans);
}

.info-key {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.info-val {
  font-family: var(--sans);
  font-size: 0.875rem;
}

.dns-table {
  font-family: var(--sans);
}

.dns-table thead th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.dns-table td {
  font-family: var(--sans);
  font-size: 0.875rem;
}

.dns-page-link {
  font-family: var(--sans);
  border-radius: 20px;
}

/* ══════════════════════════════════════════
   DNS MODAL
   ══════════════════════════════════════════ */

.dns-modal-card {
  border-radius: var(--radius);
  box-shadow: var(--md-elevation-3);
  border: none;
}

.dns-modal-head {
  background: var(--s2);
  border-bottom: 1px solid var(--border);
}

.dns-modal-head h4 {
  font-family: var(--sans);
  font-weight: 600;
}

.dns-modal-body {
  font-family: var(--sans);
}

/* ══════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════ */

.toast {
  border-radius: var(--radius);
  box-shadow: var(--md-elevation-3);
  border: none;
}

.toast-body {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.8rem;
  box-shadow: none;
}

/* ══════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════ */

.divider {
  background: var(--border);
}

/* ══════════════════════════════════════════
   ADVANCED
   ══════════════════════════════════════════ */

.advanced-toggle {
  font-family: var(--sans);
}

.advanced-chevron {
  font-size: 0.7rem;
}

/* ══════════════════════════════════════════
   PLAYLIST INFO
   ══════════════════════════════════════════ */

.pi-panel {
  border-radius: var(--radius);
  box-shadow: var(--md-elevation-1);
  border: none;
}

.pi-panel-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--s2);
  border-bottom: 1px solid var(--border);
}

.pi-timeout {
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pi-timeout-label {
  font-family: var(--sans);
}

/* ══════════════════════════════════════════
   DOWNLOADS PAGE
   ══════════════════════════════════════════ */

.dp-title {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: none;
  color: var(--text);
}

.dp-subtitle {
  font-family: var(--sans);
  font-size: 0.9rem;
}

.dp-back-btn {
  font-family: var(--sans);
  border-radius: 20px;
}

.dp-breadcrumb {
  font-family: var(--sans);
  font-size: 0.85rem;
}

.dp-breadcrumb button {
  font-family: var(--sans);
}

.dp-folder-card {
  border-radius: var(--radius);
  box-shadow: var(--md-elevation-1);
  border: none;
  padding: 1.25rem 1rem;
}

.dp-folder-card:hover {
  box-shadow: var(--md-elevation-2);
  transform: none;
}

.dp-folder-name {
  font-family: var(--sans);
  font-size: 0.875rem;
}

.dp-badge {
  font-family: var(--sans);
  font-size: 0.7rem;
  border-radius: 12px;
}

.dp-file-row {
  border-radius: var(--radius);
  box-shadow: var(--md-elevation-1);
  border: none;
  padding: 1rem 1.25rem;
}

.dp-file-row:hover {
  box-shadow: var(--md-elevation-2);
}

.dp-file-name {
  font-family: var(--sans);
  font-size: 0.9rem;
}

.dp-file-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
}

.dp-arch-badge {
  font-family: var(--sans);
  font-size: 0.75rem;
  border-radius: 12px;
}

.dp-dl-btn {
  font-family: var(--sans);
  border-radius: 20px;
  background: var(--accent);
  color: #121212;
}

.dp-dl-btn:hover {
  background: var(--accent2);
  box-shadow: none;
}

.dp-state-box {
  font-family: var(--sans);
}

.dp-retry-btn {
  font-family: var(--sans);
  border-radius: 20px;
}

/* ══════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ══════════════════════════════════════════
   LOGIN PAGE SPECIFICS
   ══════════════════════════════════════════ */

.login-btn-wrap .btn {
  font-family: var(--sans);
  border-radius: 20px;
}

.login-progress {
  border-radius: 0 0 20px 20px;
}

/* ══════════════════════════════════════════
   ACCOUNT PAGE
   ══════════════════════════════════════════ */

select option {
  background: var(--s2);
  color: var(--text);
}

/* ══════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════ */

.cookie-banner {
  background: var(--s1);
  border-top: none;
  box-shadow: var(--md-elevation-3);
  font-family: var(--sans);
}

.cookie-text {
  font-family: var(--sans);
  font-size: 0.875rem;
}
