@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --navy-950: #0c1526;
  --navy-900: #14213d;
  --navy-800: #1c2d4f;
  --paper: #f6f3ec;
  --paper-dim: #eae5d8;
  --ink: #14213d;
  --ink-soft: #4d5a76;
  --amber: #e8a33d;
  --amber-ink: #6b4713;
  --line: rgba(20,33,61,0.14);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Inter', sans-serif; background: var(--paper); color: var(--ink);
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }
.mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; }

.ta-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px,4vw,48px); background: var(--navy-900); color: var(--paper);
}
.ta-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.ta-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), #c97f1f);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--navy-950); font-size: 14px;
}
.ta-nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ta-nav a.btn-link {
  color: var(--paper); opacity: .8; padding: 9px 16px; border-radius: 999px; font-size: 14px;
  font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: all .15s ease;
}
.ta-nav a.btn-link:hover { opacity: 1; border-color: rgba(246,243,236,0.14); }
.ta-nav a.btn-link.active { background: var(--paper); color: var(--navy-900); opacity: 1; font-weight: 600; }
.ta-nav .user-chip {
  font-size: 13px; color: rgba(246,243,236,0.6); margin-right: 4px; font-family: 'JetBrains Mono', monospace;
}

/* ---------- DASHBOARD QUICK STATS ---------- */
.ta-quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.ta-quick-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.ta-quick-stat .num { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; color: var(--amber-ink); display: block; }
.ta-quick-stat .label { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

.ta-auth-wrap {
  min-height: calc(100vh - 65px); display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.ta-auth-card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px;
}
.ta-auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.ta-auth-card p.sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 22px; }
.ta-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.ta-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.ta-field input, .ta-field select, .ta-field textarea {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px;
  font-family: 'Inter', sans-serif; background: var(--paper); color: var(--ink); width: 100%;
}
.ta-field textarea { resize: vertical; min-height: 70px; }
.ta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; border: none; font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none;
}
.ta-btn-primary { background: var(--navy-900); color: var(--paper); width: 100%; }
.ta-btn-primary:hover { background: var(--navy-800); }
.ta-btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ta-auth-foot { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 16px; }
.ta-auth-foot a { color: var(--amber-ink); font-weight: 600; text-decoration: underline; }

.ta-alert {
  padding: 11px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px;
}
.ta-alert.error { background: rgba(200,85,61,0.12); color: #a2432e; }
.ta-alert.success { background: rgba(42,157,143,0.12); color: #1c766a; }

.ta-dash-wrap { max-width: 1080px; margin: 0 auto; padding: 36px clamp(20px,4vw,48px) 80px; }
.ta-dash-head { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.ta-dash-head h1 { font-size: 24px; }
.ta-dash-head p { color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }

.ta-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.ta-panel h2 { font-size: 16px; margin-bottom: 16px; }
.ta-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ta-field.full { grid-column: 1 / -1; }
.ta-form-actions { grid-column: 1/-1; display: flex; gap: 10px; margin-top: 4px; }

.ta-table-wrap { overflow-x: auto; }
table.ta-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.ta-table th {
  text-align: left; padding: 10px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); border-bottom: 1px solid var(--line); font-family: 'JetBrains Mono', monospace;
}
table.ta-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.ta-table tr:last-child td { border-bottom: none; }
.ta-row-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ta-mini-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--paper-dim); overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px;
}
.ta-mini-icon img { width: 100%; height: 100%; object-fit: cover; }
.ta-tag { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; }
.ta-tag.web { background: rgba(124,111,224,0.14); color: #5548b8; }
.ta-tag.android { background: rgba(42,157,143,0.14); color: #1c766a; }
.ta-tag.other { background: rgba(200,85,61,0.14); color: #a2432e; }
.ta-action-btn { background: none; border: none; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.ta-action-btn.edit { color: #5548b8; }
.ta-action-btn.del { color: #a2432e; }
.ta-action-btn:hover { background: var(--paper-dim); }
.ta-empty { text-align: center; color: var(--ink-soft); padding: 24px; font-size: 13.5px; }

/* public storefront cards */
.ta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 18px; padding: 0 clamp(20px,4vw,48px) 48px; }
.ta-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ta-card .ta-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--paper-dim); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ta-card .ta-icon img { width: 100%; height: 100%; object-fit: cover; }
.ta-card h3 { font-size: 15px; font-weight: 600; }
.ta-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; flex-grow: 1; }
.ta-hero-sec { padding: 40px clamp(20px,4vw,48px) 24px; }
.ta-hero-sec h1 { font-size: 28px; }
.ta-hero-sec p { color: var(--ink-soft); margin-top: 8px; max-width: 60ch; }

.ta-ticket {
  align-self: flex-start; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12.5px;
  color: var(--amber-ink); background: #fdf3e3; padding: 5px 10px; border-radius: 4px; border: 1px dashed #d9a350;
}
