/* Gradient Dark UI inspired theme + mobile responsive fixes */
:root{
  --bg-top: #0b1330;
  --bg-bottom: #0a1b3f;
  --card: rgba(18, 26, 56, 0.85);
  --border: rgba(255,255,255,0.06);
  --text: #eaf0ff;
  --muted: #9fb0d3;
  --accent1: #4f46e5; /* indigo */
  --accent2: #22c1c3; /* teal */
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --shadow: 0 20px 40px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 50% -200px, #1a2b6c 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
}
a{color:#7dd3fc;text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1100px;margin:0 auto;padding:24px}
.header{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;
}
.logo{display:flex;align-items:center;gap:10px;font-weight:800}
.logo .dot{
  width:40px;height:40px;border-radius:12px;
  background:linear-gradient(135deg,#2dd4bf,#60a5fa);
  display:grid;place-items:center;box-shadow:var(--shadow)
}
.logo .dot svg{filter:drop-shadow(0 6px 10px rgba(0,0,0,.35))}
.right a{margin-left:12px}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(8px);
}
.glow{
  background:linear-gradient(135deg, rgba(79,70,229,.25), rgba(34,193,195,.2));
  border:1px solid rgba(255,255,255,.08);
}

h1,h2,h3{margin:0 0 8px}
.small{font-size:12px;color:var(--muted)}
.input,.select,.textarea{
  width:100%;padding:12px 14px;border-radius:12px;color:var(--text);
  background:rgba(8,13,34,.8);border:1px solid var(--border);outline:none;
}
.input:focus,.select:focus,.textarea:focus{
  border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.2)
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 16px;border-radius:12px;font-weight:700;border:0;cursor:pointer;
  background:linear-gradient(90deg, var(--accent1), var(--accent2));color:white;
  box-shadow:var(--shadow);
}
.btn.secondary{background:#29335a;color:#dbeafe}
.btn.danger{background:#7f1d1d}

.badge{
  display:inline-block;padding:4px 10px;border-radius:999px;
  background:#1f2b54;color:#c7d2fe;font-size:12px;border:1px solid var(--border)
}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:12px;border-bottom:1px solid var(--border);text-align:left}

/* NEW: horizontally scrollable wrapper for small screens */
.table-responsive{width:100%;overflow-x:auto}

/* Utilities / grids */
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.row{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.col-4{grid-column:span 4}.col-6{grid-column:span 6}.col-8{grid-column:span 8}.col-12{grid-column:span 12}

.tabs{
  display:flex;background:#0c1440;border:1px solid var(--border);
  border-radius:12px;overflow:hidden
}
.tabs a{flex:1;text-align:center;padding:10px 12px;color:#c7d2fe}
.tabs a.active{background:linear-gradient(90deg,#1f2a77,#173065);font-weight:800}

.kpi{display:flex;align-items:center;gap:10px}
.kpi .pill{padding:8px 12px;border-radius:999px;background:#1a2457;border:1px solid var(--border)}

.alert{background:#0c1440;border:1px solid var(--border);padding:12px;border-radius:12px}
.link-clip{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:520px;display:inline-block;vertical-align:bottom
}
.price{color:#34d399;font-weight:800}
.status-warning{background:#3a2e09;color:#fde68a;border-color:#a16207}
.status-ok{background:#0e2f21;color:#bbf7d0;border-color:#065f46}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 900px){
  .container{padding:16px}
  .grid-2,.grid-3{grid-template-columns:1fr}
  .col-6,.col-4,.col-8{grid-column:span 12}

  .header{flex-direction:column;align-items:flex-start;gap:10px}
  .right{display:flex;flex-wrap:wrap;gap:8px}
  .right a{margin-left:0;padding:8px 10px;border-radius:10px;background:#0c1440;border:1px solid var(--border)}

  .card{padding:16px;border-radius:16px}
  .table th,.table td{padding:10px;font-size:14px}
  .logo span{font-size:16px}
  body{font-size:15px}

  /* Make long links wrap nicely when space is tight */
  .link-clip{max-width:70vw}
}

/* Extra small phones */
@media (max-width: 380px){
  .logo .dot{width:34px;height:34px}
  /* Narrow “Order” column (3rd column) on Admin Orders table */
.table th:nth-child(3),
.table td:nth-child(3) { width: 160px; }
.table td:nth-child(3) .btn { width: 140px; }

