/* The cloud's own pages (sign-in, sign-up, owner, privacy…), in Medmak's colours. */
:root {
  --accent: #9c5a2e;
  --accent-dark: #7d4521;
  --accent-soft: #f8efe8;
  --ink: #2b2420;
  --muted: #7a6e66;
  --line: #e6ddd5;
  --bg: #faf7f4;
  --card: #fff;
  --danger: #b3261e;
  --ok: #2e7d32;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--accent); }
.wrap { max-width: 440px; margin: 0 auto; padding: 32px 16px 48px; }
.wide { max-width: 1100px; }
.text { max-width: 760px; }
.brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 20px; }
.brand img { width: 48px; height: 48px; border-radius: 12px; }
.brand b { font-size: 26px; color: var(--accent); }
.brand span { display: block; color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 15px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[dir="ltr"] { text-align: left; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
button, .button {
  display: inline-block; font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none; text-align: center;
}
button:hover, .button:hover { background: var(--accent-dark); }
button[disabled] { opacity: 0.6; cursor: default; }
button.full { width: 100%; margin-top: 20px; }
button.plain { background: transparent; color: var(--accent); border: 1px solid var(--line); padding: 8px 12px; font-weight: 600; }
button.danger { background: var(--danger); }
.error { color: var(--danger); background: #fdecea; border-radius: 8px; padding: 10px 12px; margin-top: 14px; display: none; }
.error.show { display: block; }
.success { color: var(--ok); background: #e8f5e9; border-radius: 8px; padding: 10px 12px; margin-top: 14px; }
.links { margin-top: 18px; text-align: center; font-size: 15px; }
.links p { margin: 6px 0; }
.lang { position: fixed; top: 12px; inset-inline-end: 12px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: center; font-weight: 600; background: #fff; }
.choice small { display: block; font-weight: 400; color: var(--muted); }
.choice { position: relative; }
/* Hidden but still reachable by keyboard and screen readers. */
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px; text-align: start; vertical-align: top; }
th { background: var(--accent-soft); }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 600; }
.pill.trial { background: #fff4d6; color: #8a6100; }
.pill.active { background: #e8f5e9; color: var(--ok); }
.pill.expired { background: #fdecea; color: var(--danger); }
.pill.suspended { background: #eee; color: #555; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.stats b { display: block; font-size: 20px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input, .row select { width: auto; }
.scroll { overflow-x: auto; }
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
footer a { color: var(--muted); }
