/* Shotak — teal "fresh mint" theme (chosen by Rafiq 2026-12-05):
   deep teal ink, mint background, teal accent.
   NOT Coders' X-style, NOT Mirsal's blue. Arabic RTL, v1 Arabic only. */
:root {
  --bg: #ecfdf5;
  --surface: #ffffff;
  --surface-warm: #f0fdfa;
  --ink: #134e4a;
  --ink-soft: #115e59;
  --muted: #5f7a75;
  --line: #c9e8e0;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --danger: #b91c1c;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 78, 74, .05), 0 8px 24px rgba(19, 78, 74, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 55%, #ccfbf1 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink);
  position: relative; display: inline-block;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 2px solid var(--bg);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: var(--accent);
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.topnav { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.topnav a, .topnav button {
  color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; font: inherit;
}
.topnav a:hover, .topnav button:hover { background: var(--surface-warm); text-decoration: none; }
.topnav .nav-cta { background: var(--ink); color: #fff; font-weight: 700; }
.topnav .nav-cta:hover { background: #0a2e2a; }

/* layout */
#view { padding: 36px 20px 64px; min-height: 60vh; }
.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); }

/* hero */
.hero { text-align: center; padding: 48px 0 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.35; margin: 0 0 12px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 40px 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ic { font-size: 26px; }
.feature h3 { margin: 8px 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; }
.card h2 { margin: 0 0 4px; font-size: 20px; }
.card .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-soft); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=file], select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 22px; font-size: 15px;
}
.btn:hover { background: #0a2e2a; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface-warm); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #0f766e; }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #fecaca; }
.btn.danger:hover { background: #fef2f2; }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.form-row > * { flex: 1 1 160px; }
.err { color: var(--danger); font-size: 14px; margin: 10px 0 0; min-height: 20px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* dashboard */
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; margin: 0; }
.page-head p { color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.gcard h3 { margin: 0 0 6px; font-size: 18px; }
.gcard .meta { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.gcard .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; }
.badge.expired { background: #fef2f2; color: var(--danger); }

/* file grid */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.file { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.file img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-warm); }
.file .fname { padding: 8px 10px; font-size: 13px; }
.file .fname .n { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .fname .s { color: var(--muted); font-size: 12px; }
.file .fbtns { display: flex; gap: 6px; padding: 0 10px 10px; }
.file .fbtns a, .file .fbtns button { font-size: 13px; padding: 4px 10px; }
.upload-status { margin-top: 12px; font-size: 14px; }
.upload-status .ok { color: var(--ok); }
.upload-status .bad { color: var(--danger); }

/* public gallery */
.pub { text-align: center; max-width: 720px; margin: 0 auto; }
.pub .logo { max-height: 150px; max-width: 260px; object-fit: contain; margin: 8px auto 4px; display: block; }
.pub h1 { font-size: 26px; margin: 8px 0 2px; }
.pub .by { color: var(--muted); margin: 0 0 20px; }
.pub .lock { max-width: 420px; margin: 0 auto; text-align: right; }
.pubgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 24px; text-align: right; }
.pubgrid .file img { aspect-ratio: 4/3; }
.zipbar { margin: 24px 0 8px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* settings */
.logo-preview { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.logo-preview img { max-height: 90px; max-width: 200px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }

.toast {
  position: fixed; bottom: 24px; right: 50%; transform: translateX(50%);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 15px; box-shadow: var(--shadow); z-index: 50;
}
.static { max-width: 720px; margin: 0 auto; }
.static h1 { font-size: 28px; }
.static h2 { font-size: 19px; margin-top: 28px; }
.static p, .static li { color: var(--ink-soft); }
@media (max-width: 600px) {
  #view { padding-top: 24px; }
  .hero { padding-top: 24px; }
}
