/* GSM RADHE MOBILE - Frontend + Admin Styles */
:root {
  --blue: #0b5ed7;
  --blue-dark: #084298;
  --blue-deep: #0a3d91;
  --navy: #0d2b5e;
  --green: #198754;
  --green-soft: #22c55e;
  --orange: #f59e0b;
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 94%); margin: 0 auto; }

/* Top bar */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(11, 94, 215, 0.35);
}
.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand h1 {
  font-size: 17px;
  color: #0b4fbf;
  line-height: 1.15;
  letter-spacing: 0.2px;
}
.brand span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.search-wrap {
  flex: 1;
  display: flex;
  max-width: 520px;
}
.search-wrap input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
}
.search-wrap input:focus { border-color: var(--blue); }
.search-wrap button {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 0 18px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-menu {
  position: relative;
  display: inline-block;
}
.user-menu-btn {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-drop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  z-index: 100;
  padding: 6px;
}
.user-menu.open .user-menu-drop { display: block; }
.user-menu-drop a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.user-menu-drop a:hover {
  background: #eef5ff;
  color: #0b5ed7;
  text-decoration: none;
}
.user-menu-drop a.danger {
  color: #dc2626;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  border-radius: 0 0 8px 8px;
}
.user-menu-drop a.danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.icon-btn:hover { background: #eef4ff; text-decoration: none; }
.icon-btn .badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.wallet-chip { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: 0.95; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-dark { background: var(--navy); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-buy { background: var(--blue); color: #fff; white-space: nowrap; }

/* Nav */
.main-nav {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  color: #fff;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.main-nav a {
  display: block;
  color: #fff;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active { background: rgba(255,255,255,0.14); }

/* Layout */
.page { padding: 22px 0 40px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #0b4fbf 0%, #0d6efd 45%, #1d4ed8 100%);
  border-radius: 14px;
  color: #fff;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  margin-bottom: 22px;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.28);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}
.hero h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  margin: 8px 0 10px;
}
.hero p { opacity: 0.92; max-width: 460px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.hero-tags span {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hero-features div {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}
.hero-art {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.phone-illus {
  width: 150px;
  height: 230px;
  background: linear-gradient(180deg, #60a5fa, #1e40af);
  border-radius: 28px;
  border: 4px solid rgba(255,255,255,0.55);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  display: grid;
  place-items: center;
  font-size: 54px;
  transform: rotate(8deg);
}

/* Cards / panels */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-h {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-h h3 { font-size: 16px; color: var(--navy); }
.panel-b { padding: 16px; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.brand-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px 12px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  background: #fff;
  transition: 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 118px;
  justify-content: center;
}
.brand-item:hover {
  border-color: var(--blue);
  background: #f8fbff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 94, 215, 0.12);
}
.brand-logo-wrap {
  width: 100%;
  height: 54px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #eef2f7;
}
.brand-logo-img-tile {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.brand-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 10px;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 800;
}

/* Table */
.table-wrap { overflow-x: auto; }
.table-wrap.table-dd { overflow: visible; }
table.data td.action-cell {
  position: relative;
  overflow: visible;
  white-space: nowrap;
  width: 118px;
  min-width: 118px;
  text-align: center;
}
table.data th.col-action {
  width: 118px;
  min-width: 118px;
  text-align: center;
}
body.admin-body table.data .file-name {
  max-width: 200px;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.action-dd {
  position: relative;
  display: inline-block;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  background: #f8fafc;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
table.data td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tr:hover td { background: #f8fbff; }
.model-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.model-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
  display: block;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.model-thumb-sm {
  width: 40px;
  height: 40px;
}
.muted { color: var(--muted); font-weight: 500; }
.hero-logo {
  width: min(320px, 100%);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.28));
  animation: floatY 4s ease-in-out infinite;
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.feature-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.feature-bar div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}
.feature-bar span { color: var(--blue); font-size: 16px; }
.side-file {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.side-file:last-child { border-bottom: 0; }
.side-file-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.side-file-main strong { display: block; font-size: 13px; }
.side-file-main small { color: var(--muted); display: block; margin: 2px 0 4px; }
.wallet-btn {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.footer-brand img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
}
.hf-ico {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}
.file-name { color: var(--muted); max-width: 280px; word-break: break-all; }
.price { color: var(--green); font-weight: 800; }

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-muted { background: #e2e8f0; color: #475569; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* Sidebar */
.side-stack { display: grid; gap: 16px; }
.wallet-card {
  background: linear-gradient(135deg, #0b5ed7, #1d4ed8);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.wallet-card .label { opacity: 0.85; font-size: 13px; }
.wallet-card .bal { font-size: 28px; font-weight: 800; margin: 4px 0 12px; }
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  background: #fff;
}
.quick-item:hover { border-color: var(--blue); text-decoration: none; background: #f8fbff; }
.quick-item .qi { font-size: 22px; margin-bottom: 6px; }

.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: -16px -16px 16px;
}
.login-tabs a {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
}
.login-tabs a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--muted);
}
.form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: var(--text);
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,94,215,0.12); }
textarea.form-control { min-height: 90px; resize: vertical; }

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* Footer */
.site-footer {
  background: #0b1f44;
  color: #cbd5e1;
  padding: 40px 0 20px;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.site-footer a { color: #94a3b8; display: block; margin-bottom: 8px; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  margin: 0;
}
.pay-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
}
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span {
  background: rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #e8f0ff, #f8fafc 50%, #eef2ff);
  padding: 20px;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; color: var(--navy); }
.auth-card > p { color: var(--muted); margin-bottom: 18px; }

/* ================= ADMIN LIGHT THEME ================= */
body.admin-body {
  background: #f3f6fb;
  color: #1e293b;
  --border: #e2e8f0;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
}
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04);
}
.admin-brand {
  color: #0b4fbf;
  font-weight: 800;
  font-size: 18px;
  padding: 8px 10px 18px;
  letter-spacing: 0.5px;
}
.admin-nav a {
  display: block;
  color: #64748b;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  text-decoration: none;
}
.admin-nav a:hover,
.admin-nav a.active {
  background: #eef5ff;
  color: #0b5ed7;
}
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  color: #1e293b;
}
.admin-content { padding: 20px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.stat-card .n { font-size: 26px; font-weight: 800; color: #0b4fbf; }
.stat-card .l { color: var(--muted); font-size: 13px; }

body.admin-body .panel {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
body.admin-body .panel.panel-dd {
  overflow: visible;
}
body.admin-body .panel.panel-dd .table-wrap {
  overflow: visible;
}
body.admin-body .panel-h {
  border-color: var(--border);
  background: #fafbfc;
}
body.admin-body .panel-h h3 { color: #0b4fbf; }
body.admin-body table.data th {
  background: #f8fafc;
  color: #64748b;
  border-color: var(--border);
}
body.admin-body table.data td {
  border-color: var(--border);
  color: #1e293b;
}
body.admin-body table.data tr:hover td { background: #f8fbff; }
body.admin-body .form-control {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #1e293b;
}
body.admin-body .btn-outline {
  background: #ffffff;
  border-color: #0b5ed7;
  color: #0b5ed7;
}
body.admin-body .btn-success { background: #16a34a; color: #fff; }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}
.crumb a { color: #0b5ed7; }
.crumb strong { color: #0f172a; }

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.folder-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  color: #1e293b;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.folder-card:hover {
  border-color: #0b5ed7;
  text-decoration: none;
  background: #f8fbff;
}
.folder-card .fi { font-size: 32px; margin-bottom: 8px; }
.folder-card strong { display: block; font-size: 14px; }
.folder-card small { color: var(--muted); }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(560px, 100%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.modal-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.modal-h h3 { color: #0b4fbf; font-size: 18px; }
.modal-b { padding: 18px; }
.modal-f {
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafbfc;
}
.close-x {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
}
.radio-row, .check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.radio-row label, .check-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.admin-body .model-thumb {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.action-dd .menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 150px;
  z-index: 20;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.action-dd.open .menu {
  display: block;
  z-index: 10000;
}
.action-dd.open .menu.menu-fixed {
  position: fixed;
  right: auto;
  top: auto;
}
.action-dd .menu a,
.action-dd .menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: #1e293b;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}
.action-dd .menu a:hover,
.action-dd .menu button:hover { background: #eef5ff; color: #0b5ed7; }
.action-dd .menu button.danger,
.action-dd .menu form button.danger { color: #dc2626 !important; }
.action-dd .menu button.danger:hover,
.action-dd .menu form button.danger:hover { background: #fee2e2; color: #b91c1c !important; }
.action-dd .menu form { margin: 0; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 18px 16px; }
  .hero h2 { font-size: 22px; }
  .hero-logo { width: min(140px, 42vw); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .brand-item {
    min-height: 0;
    padding: 8px 6px 7px;
    gap: 6px;
    border-radius: 10px;
  }
  .brand-logo-wrap {
    height: 36px;
    padding: 4px 6px;
    border-radius: 8px;
  }
  .brand-logo-img-tile {
    max-height: 28px;
  }
  .brand-name {
    font-size: 11px;
    line-height: 1.2;
  }
  .panel-b { padding: 12px; }
  .panel-h { padding: 12px; }
  .panel-h h3 { font-size: 15px; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .search-wrap { order: 3; max-width: none; width: 100%; }
  .feature-bar { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .feature-bar div { font-size: 11px; }
  .main-nav a { padding: 10px 10px; font-size: 11px; }
  .container { width: min(1200px, 96%); }
  .user-menu-btn { max-width: 120px; font-size: 12px; padding: 7px 10px; }
  .icon-btn { padding: 7px 9px; font-size: 12px; }
  table.data { font-size: 12px; }
  table.data th, table.data td { padding: 8px 6px; }
  .model-thumb { width: 34px; height: 34px; }
  .file-name { max-width: 140px; }
  .btn-buy { padding: 6px 8px; font-size: 11px; }
}
@media (max-width: 560px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .brand-item {
    padding: 6px 4px 5px;
    gap: 4px;
  }
  .brand-logo-wrap {
    height: 30px;
    padding: 3px 4px;
  }
  .brand-logo-img-tile { max-height: 22px; }
  .brand-name {
    font-size: 10px;
    letter-spacing: -0.1px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-features { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero-features div { font-size: 11px; padding: 8px; }
  .hero-art { display: none; }
  .side-stack { gap: 12px; }
  .wallet-card .bal { font-size: 22px; }
}
