/* ImaxTrade — shared styles
   Palette lifted from the Imaxtel International brand so the two sites
   feel like siblings: warm orange/red headline accents on a light,
   paper-white surface with deep-navy body text. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --orange: #f77f00;
  --red: #d62828;
  --gold: #fcbf49;
  --cream: #eae2b7;
  --dark-blue: #00304a;
  --blue-gray: #3a5c6f;

  --bg: #ffffff;
  --bg-soft: #f6eded;
  --surface: #ffffff;
  --surface-2: #fbf7f4;
  --border: #ece3dc;
  --border-strong: rgba(0, 48, 74, 0.15);

  --text: var(--dark-blue);
  --text-dim: var(--blue-gray);
  --muted: rgba(0, 48, 74, 0.55);

  --green: #2f9e44;
  --green-soft: rgba(47, 158, 68, 0.12);
  --red-soft: rgba(214, 40, 40, 0.1);
  --amber: #f59e0b;

  --shadow-sm: 0 1px 2px rgba(0, 48, 74, 0.04), 0 1px 3px rgba(0, 48, 74, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 48, 74, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 48, 74, 0.12);
  --shadow-orange: 0 10px 24px rgba(247, 127, 0, 0.25);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient gradient wash + subtle grid — shared with coming-soon */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(247, 127, 0, 0.07), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(214, 40, 40, 0.05), transparent 55%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 48, 74, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 48, 74, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

a { color: var(--orange); text-decoration: none; font-weight: 500; }
a:hover { color: var(--red); }

.container { max-width: 1180px; margin: 0 auto; padding: 24px; position: relative; z-index: 1; }
.container-narrow { max-width: 480px; margin: 0 auto; padding: 32px 24px; position: relative; z-index: 1; }

/* ---------- Header / topbar ---------- */
header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
  flex-shrink: 0;
}
.logo-mark svg { width: 24px; height: 24px; fill: white; }

.logo-mark.large { width: 64px; height: 64px; border-radius: 14px; }
.logo-mark.large svg { width: 36px; height: 36px; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--dark-blue);
}
.brand-text .name .accent { color: var(--orange); }
.brand-text.large .name { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.brand-text .tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-gray);
  margin-top: 4px;
}
.brand-text.large .tagline { font-size: 11px; margin-top: 6px; }

header.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header.topbar nav a {
  color: var(--blue-gray);
  font-size: 14px;
  font-weight: 500;
}
header.topbar nav a:hover { color: var(--dark-blue); }
header.topbar .user-pill {
  background: var(--bg-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--dark-blue);
  font-weight: 600;
}

/* ---------- Type ---------- */
h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.015em; color: var(--dark-blue); }
h2 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; color: var(--dark-blue); }
h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-gray); margin: 0 0 10px; }

.subtitle { color: var(--blue-gray); font-size: 14px; margin-bottom: 24px; }
.dim { color: var(--muted); }
.green { color: var(--green); }
.red { color: var(--red); }
.orange { color: var(--orange); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }

.stat { font-size: 30px; font-weight: 700; color: var(--dark-blue); letter-spacing: -0.01em; }
.stat.small { font-size: 20px; }
.stat.green { color: var(--green); }
.stat.red { color: var(--red); }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; color: var(--blue-gray); margin: 12px 0 6px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background: white;
  color: var(--dark-blue);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247, 127, 0, 0.12);
}
input:disabled { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, opacity 0.15s;
}
button:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
}
button:active { transform: translateY(0); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: var(--bg-soft);
  color: var(--dark-blue);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: white; box-shadow: var(--shadow-sm); color: var(--orange); }

.btn-danger {
  background: var(--red);
  color: white;
}
.btn-danger:hover { box-shadow: 0 10px 24px rgba(214, 40, 40, 0.3); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th, table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
table th {
  color: var(--blue-gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--surface-2);
}
table tbody tr:hover { background: var(--surface-2); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-soft);
  color: var(--blue-gray);
}
.badge.pending { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.badge.ready, .badge.readyforfulfillment { background: rgba(247, 127, 0, 0.15); color: var(--orange); }
.badge.paid, .badge.completed, .badge.fulfilled, .badge.applied, .badge.verified, .badge.active {
  background: var(--green-soft);
  color: var(--green);
}
.badge.failed, .badge.cancelled, .badge.rejected, .badge.expired, .badge.revoked, .badge.inactive {
  background: var(--red-soft);
  color: var(--red);
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(247, 127, 0, 0.1);
  color: var(--orange);
  border: 1px solid rgba(247, 127, 0, 0.3);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid transparent;
}
.alert.error { background: var(--red-soft); color: var(--red); border-color: rgba(214, 40, 40, 0.3); }
.alert.success { background: var(--green-soft); color: var(--green); border-color: rgba(47, 158, 68, 0.3); }

/* ---------- Chart ---------- */
.chart {
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, var(--surface-2) 0%, white 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- Hero (landing) ---------- */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lede {
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--blue-gray);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.features-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-blue);
}
.feature-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 760px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.features-grid .card h3 { color: var(--dark-blue); font-size: 15px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.features-grid .card p { color: var(--blue-gray); font-size: 14px; line-height: 1.6; margin: 0; }
.features-grid .card .icon-dot {
  display: inline-block;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(247, 127, 0, 0.15), rgba(214, 40, 40, 0.15));
  margin-bottom: 14px;
  position: relative;
}
.features-grid .card .icon-dot::after {
  content: ''; position: absolute; inset: 10px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 4px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--blue-gray);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
footer.site-footer a { color: var(--blue-gray); }
footer.site-footer a:hover { color: var(--orange); }
footer.site-footer .sep { opacity: 0.4; margin: 0 10px; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tab {
  padding: 12px 20px;
  cursor: pointer;
  color: var(--blue-gray);
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--dark-blue); }
.tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 48, 74, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h2 { margin-top: 0; font-size: 22px; }
.modal-close {
  float: right;
  background: transparent;
  color: var(--blue-gray);
  font-size: 24px;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 1;
}
.modal-close:hover { color: var(--red); transform: none; box-shadow: none; background: transparent; }

/* ---------- Utility bits ---------- */
.inline-actions button { margin-right: 4px; padding: 7px 12px; font-size: 12px; }
.invite-url {
  background: var(--bg-soft);
  padding: 12px 14px;
  border-radius: var(--radius);
  word-break: break-all;
  font-family: "SFMono-Regular", ui-monospace, Consolas, monospace;
  font-size: 12px;
  margin: 10px 0;
  color: var(--dark-blue);
  border: 1px solid var(--border);
}

.empty-row td { text-align: center; color: var(--muted); padding: 24px; font-style: italic; }

/* ---------- Password strength indicator ---------- */
.pw-strength { margin-top: 10px; }
.pw-meter {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
}
.pw-meter-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.25s ease, background 0.25s ease;
}
.pw-meter-fill[data-score="1"] { background: var(--red); }
.pw-meter-fill[data-score="2"] { background: #e67e22; }
.pw-meter-fill[data-score="3"] { background: var(--amber); }
.pw-meter-fill[data-score="4"] { background: #a3c948; }
.pw-meter-fill[data-score="5"] { background: var(--green); }
.pw-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--muted);
}
.pw-label[data-score="1"] { color: var(--red); }
.pw-label[data-score="2"] { color: #e67e22; }
.pw-label[data-score="3"] { color: var(--amber); }
.pw-label[data-score="4"] { color: #a3c948; }
.pw-label[data-score="5"] { color: var(--green); }
.pw-rules {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}
@media (min-width: 520px) { .pw-rules { grid-template-columns: 1fr 1fr; } }
.pw-rules li {
  font-size: 12px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.pw-rules li::before {
  content: "○";
  position: absolute;
  left: 2px;
  color: var(--muted);
  font-size: 13px;
}
.pw-rules li.met { color: var(--green); }
.pw-rules li.met::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  header.topbar { padding: 14px 18px; }
  .brand-text .name { font-size: 18px; }
  .brand-text .tagline { display: none; }
  .logo-mark { width: 36px; height: 36px; border-radius: 10px; }
  .logo-mark svg { width: 20px; height: 20px; }
  h1 { font-size: 22px; }
  .container, .container-narrow { padding: 18px; }
  .card { padding: 18px; }
  .stat { font-size: 22px; }
  .tab { padding: 10px 14px; font-size: 13px; }
  header.topbar nav a { font-size: 13px; }
}
