  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --bg: #0f0f0f;
    --bg2: #1a1a1a;
    --bg3: #222;
    --accent: #c9a86c;
    --accent-h: #dbbe85;
    --red: #e74c3c;
    --green: #27ae60;
    --blue: #3498db;
    --text: #f0f0f0;
    --text2: #999;
    --text3: #666;
    --border: #2a2a2a;
    --radius: 12px;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

  /* ====== LOGIN SCREEN ====== */
  .login-screen {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(201,168,108,0.06) 0%, transparent 70%);
  }
  .login-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%; max-width: 420px;
    text-align: center;
  }
  .login-logo {
    font-size: 1.4rem; font-weight: 700; letter-spacing: 3px; margin-bottom: 8px;
  }
  .login-logo span { color: var(--accent); }
  .login-sub { color: var(--text2); font-size: 0.85rem; margin-bottom: 36px; }
  .login-field {
    width: 100%; margin-bottom: 16px; text-align: left;
  }
  .login-field label {
    display: block; font-size: 0.75rem; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text2); margin-bottom: 8px; font-weight: 500;
  }
  .login-field input {
    width: 100%; padding: 14px 16px;
    background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 0.95rem; font-family: inherit; outline: none;
    transition: border-color 0.3s;
  }
  .login-field input:focus { border-color: var(--accent); }
  .login-btn {
    width: 100%; padding: 16px;
    background: var(--accent); color: var(--bg); border: none; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s; font-family: inherit; margin-top: 8px;
  }
  .login-btn:hover { background: var(--accent-h); }
  .login-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .login-error {
    color: var(--red); font-size: 0.85rem; margin-top: 16px; min-height: 20px;
  }
  .login-lockout {
    background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3);
    border-radius: 10px; padding: 14px; margin-top: 16px;
    color: var(--red); font-size: 0.85rem;
  }
  .security-badge {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 24px; color: var(--text3); font-size: 0.75rem;
  }
  .security-badge svg { width: 14px; height: 14px; stroke: var(--text3); fill: none; }

  /* ====== ADMIN PANEL ====== */
  .admin-panel { display: none; min-height: 100vh; }
  .admin-panel.active { display: flex; }

  /* Sidebar */
  .sidebar {
    width: 260px; min-height: 100vh;
    background: var(--bg2); border-right: 1px solid var(--border);
    padding: 24px 0; flex-shrink: 0;
    display: flex; flex-direction: column;
  }
  .sidebar-logo {
    padding: 0 24px 24px; border-bottom: 1px solid var(--border);
    font-weight: 700; letter-spacing: 2px; font-size: 0.95rem;
  }
  .sidebar-logo span { color: var(--accent); }
  .sidebar-nav { flex: 1; padding: 16px 0; }
  .sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 24px; color: var(--text2); text-decoration: none;
    font-size: 0.85rem; font-weight: 500; transition: all 0.2s;
    border-left: 3px solid transparent;
  }
  .sidebar-nav a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
  .sidebar-nav a.active {
    color: var(--accent); background: rgba(201,168,108,0.05);
    border-left-color: var(--accent);
  }
  .sidebar-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
  .sidebar-footer {
    padding: 16px 24px; border-top: 1px solid var(--border);
  }
  .logout-btn {
    width: 100%; padding: 10px; background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.2); border-radius: 8px;
    color: var(--red); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: all 0.3s; font-family: inherit;
    letter-spacing: 1px; text-transform: uppercase;
  }
  .logout-btn:hover { background: rgba(231,76,60,0.2); }

  /* Main content */
  .admin-main {
    flex: 1; padding: 32px 40px; overflow-y: auto; min-height: 100vh;
  }

  /* Keyboard focus — visible ring on every interactive surface */
  .login-btn:focus-visible,
  .btn-save:focus-visible,
  .btn-preview:focus-visible,
  .btn-reset:focus-visible,
  .logout-btn:focus-visible,
  .add-btn:focus-visible,
  .sidebar-nav a:focus-visible,
  .field input:focus-visible,
  .field textarea:focus-visible,
  .field select:focus-visible,
  .login-field input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .btn-save:disabled { opacity: 0.55; cursor: not-allowed; }
  .admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
  }
  .admin-header h1 { font-size: 1.5rem; font-weight: 600; }
  .admin-header-actions { display: flex; gap: 12px; }
  .btn-save {
    padding: 10px 24px; background: var(--accent); color: var(--bg);
    border: none; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
    transition: all 0.3s; font-family: inherit;
  }
  .btn-save:hover { background: var(--accent-h); }
  .btn-preview {
    padding: 10px 24px; background: transparent; color: var(--accent);
    border: 1px solid var(--accent); border-radius: 8px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
    transition: all 0.3s; font-family: inherit;
  }
  .btn-preview:hover { background: rgba(201,168,108,0.1); }
  .btn-reset {
    padding: 10px 24px; background: transparent; color: var(--text3);
    border: 1px solid var(--border); border-radius: 8px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
    transition: all 0.3s; font-family: inherit;
  }
  .btn-reset:hover { background: rgba(255,255,255,0.05); color: var(--red); border-color: var(--red); }

  /* Tab panels */
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* Editor cards */
  .editor-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
  }
  .editor-card h2 {
    font-size: 1rem; font-weight: 600; margin-bottom: 6px;
  }
  .editor-card .card-desc {
    font-size: 0.8rem; color: var(--text3); margin-bottom: 20px;
  }
  .field { margin-bottom: 18px; }
  .field:last-child { margin-bottom: 0; }
  .field label {
    display: block; font-size: 0.75rem; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text2); margin-bottom: 8px; font-weight: 500;
  }
  .field input[type="text"],
  .field input[type="url"],
  .field input[type="email"],
  .field input[type="tel"],
  .field textarea,
  .field select {
    width: 100%; padding: 12px 16px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-size: 0.9rem; font-family: inherit; outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
  }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
  .field textarea { min-height: 80px; resize: vertical; }
  .field input[type="color"] {
    width: 60px; height: 44px; min-width: 48px; min-height: 44px; padding: 2px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer;
  }
  .color-row {
    display: flex; align-items: center; gap: 14px;
  }
  .color-row span { font-size: 0.85rem; color: var(--text2); }
  .field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }

  /* Review editor */
  .review-item {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px; margin-bottom: 12px;
    position: relative;
  }
  .review-item .remove-btn {
    position: absolute; top: 12px; right: 12px;
    background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.2);
    border-radius: 6px; width: 28px; height: 28px; cursor: pointer;
    color: var(--red); font-size: 1.1rem; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
  }
  .review-item .remove-btn:hover { background: rgba(231,76,60,0.2); }
  .add-btn {
    width: 100%; padding: 14px;
    background: transparent; border: 1px dashed var(--border);
    border-radius: 10px; color: var(--text2); font-size: 0.85rem;
    cursor: pointer; transition: all 0.3s; font-family: inherit;
  }
  .add-btn:hover { border-color: var(--accent); color: var(--accent); }

  /* Review image upload */
  .img-upload-area {
    display: flex; align-items: center; gap: 16px; margin-top: 4px;
  }
  .img-preview {
    width: 64px; height: 64px; border-radius: 10px;
    background: var(--bg3); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
  }
  .img-preview img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .img-preview svg { width: 24px; height: 24px; stroke: var(--text3); fill: none; }
  .img-upload-btns { display: flex; gap: 8px; flex-wrap: wrap; }
  .img-btn {
    padding: 8px 14px; border-radius: 8px; font-size: 0.75rem;
    font-weight: 500; cursor: pointer; font-family: inherit;
    transition: all 0.2s; letter-spacing: 0.5px;
  }
  .img-btn-upload {
    background: rgba(201,168,108,0.1); border: 1px solid rgba(201,168,108,0.3);
    color: var(--accent);
  }
  .img-btn-upload:hover { background: rgba(201,168,108,0.2); }
  .img-btn-remove {
    background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.2);
    color: var(--red);
  }
  .img-btn-remove:hover { background: rgba(231,76,60,0.2); }

  /* Security log */
  .log-table {
    width: 100%; border-collapse: collapse;
  }
  .log-table th, .log-table td {
    text-align: left; padding: 12px 16px;
    border-bottom: 1px solid var(--border); font-size: 0.85rem;
  }
  .log-table th {
    color: var(--text2); font-weight: 500; font-size: 0.75rem;
    letter-spacing: 1px; text-transform: uppercase;
  }
  .log-table td { color: var(--text); }
  .badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  }
  .badge-success { background: rgba(39,174,96,0.15); color: var(--green); }
  .badge-fail { background: rgba(231,76,60,0.15); color: var(--red); }
  .badge-warning { background: rgba(241,196,15,0.15); color: #f1c40f; }

  /* Video upload area */
  .video-upload-area {
    display: flex; flex-direction: column; gap: 8px;
  }
  .video-upload-area input[type="url"] {
    width: 100%; padding: 12px 16px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-size: 0.9rem; font-family: inherit; outline: none;
    transition: border-color 0.3s;
  }
  .video-upload-area input[type="url"]:focus { border-color: var(--accent); }
  .video-upload-btns {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  }
  .video-preview {
    min-height: 20px;
  }
  .video-upload-progress {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 12px; overflow: hidden;
  }
  .video-progress-bar {
    flex: 1; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-h));
    width: 0; transition: width 0.2s ease;
  }
  .video-progress-text {
    font-size: 0.75rem; color: var(--accent); font-weight: 600;
    min-width: 32px; text-align: right;
  }

  /* Toast */
  .toast {
    position: fixed; bottom: 32px; right: 32px; z-index: 9999;
    padding: 16px 24px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 500;
    transform: translateY(100px); opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
  }
  .toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .toast-success { background: var(--green); color: #fff; }
  .toast-error { background: var(--red); color: #fff; }

  /* Session info */
  .session-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; background: rgba(201,168,108,0.05);
    border: 1px solid rgba(201,168,108,0.15); border-radius: 8px;
    font-size: 0.8rem; color: var(--text2); margin-bottom: 24px;
  }
  .session-bar svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; }
  .session-timer { color: var(--accent); font-weight: 600; }

  /* Responsive */
  @media (max-width: 768px) {
    .admin-panel.active { flex-direction: column; }
    .sidebar { width: 100%; min-height: auto; }
    .sidebar-nav {
      display: flex; overflow-x: auto; padding: 8px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      background:
        linear-gradient(to right, var(--bg2) 30%, rgba(26,26,26,0)) 0 0 / 24px 100% no-repeat,
        linear-gradient(to left,  var(--bg2) 30%, rgba(26,26,26,0)) 100% 0 / 24px 100% no-repeat,
        var(--bg2);
    }
    .sidebar-nav a {
      padding: 10px 16px;
      border-left: none; border-bottom: 2px solid transparent;
      white-space: nowrap;
      scroll-snap-align: start;
    }
    .sidebar-nav a.active { border-bottom-color: var(--accent); border-left: none; }
    .admin-main { padding: 20px; min-height: auto; }
    .field-row { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  }
