/* ============================================================
   TANDAMASUK.COM — Ticket Purchase Platform Theme
   Warna & bentuk mengikuti identitas platform TandaMasuk:
   - Primary  : Orange brand (logo TandaMasuk)
   - Aksen    : Lime & Royal Blue (artwork event KHM 2027)
   - Navbar   : Putih solid + bottom-nav mobile khas platform tiket
   ============================================================ */

:root {
  --tm-orange: #f97316;
  --tm-orange-dark: #ea580c;
  --tm-orange-deep: #c2410c;
  --tm-orange-soft: #fff1e6;
  --tm-orange-soft2: #ffe4cc;
  --tm-ink: #23180f;
  --tm-text: #3d2e22;
  --tm-muted: #8b7a6b;
  --tm-line: #f0e5da;
  --tm-bg: #fff8f1;
  --tm-white: #ffffff;
  --tm-green: #16a34a;
  --tm-green-dark: #15803d;
  --tm-lime: #c8f000;
  --tm-lime-soft: #eefb9e;
  --tm-blue: #2d4ea1;
  --tm-blue-soft: #e6ecfa;
  --tm-red: #dc2626;
  --tm-radius: 16px;
  --tm-radius-lg: 22px;
  --tm-shadow: 0 4px 18px rgba(120, 72, 20, 0.08);
  --tm-shadow-lg: 0 14px 38px rgba(120, 72, 20, 0.14);
  --nav-h: 64px;
  --bnav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--tm-bg);
  color: var(--tm-text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  padding-bottom: var(--bnav-h);
  line-height: 1.55;
}

main { flex: 1; width: 100%; }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, select, textarea { font-family: inherit; font-size: 15px; color: var(--tm-ink); }

.container { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 16px; }
.container-wide { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ============ TOP NAVBAR ============ */
.tm-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--tm-white);
  border-bottom: 1px solid var(--tm-line);
  box-shadow: 0 2px 14px rgba(120, 72, 20, 0.07);
  z-index: 100;
}
.tm-topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.tm-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--tm-white);
}
.tm-brand-name {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--tm-ink);
  line-height: 1.15;
}
.tm-brand-name span { color: var(--tm-orange); }
.tm-brand-sub {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--tm-muted);
  text-transform: uppercase;
}
.tm-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tm-nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--tm-text);
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.tm-nav-links a:hover { color: var(--tm-orange-dark); background: var(--tm-orange-soft); }
.tm-nav-links a.active { color: var(--tm-orange-dark); background: var(--tm-orange-soft); }
.tm-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--tm-orange) 0%, var(--tm-orange-dark) 100%);
  color: #fff !important;
  font-weight: 800;
  padding: 9px 18px !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.tm-nav-cta:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--tm-orange) 0%, var(--tm-orange-dark) 100%) !important; }
.tm-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  color: var(--tm-ink);
  border: 1px solid var(--tm-line);
  background: var(--tm-white);
}
.tm-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--tm-white);
  border-bottom: 1px solid var(--tm-line);
  box-shadow: 0 18px 30px rgba(120, 72, 20, 0.12);
  z-index: 99;
  padding: 10px 16px 16px;
}
.tm-mobile-menu.open { display: block; animation: tmSlideDown 0.25s ease; }
.tm-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--tm-text);
}
.tm-mobile-menu a:active, .tm-mobile-menu a:hover { background: var(--tm-orange-soft); color: var(--tm-orange-dark); }
.tm-mobile-menu a svg { color: var(--tm-orange); }

/* ============ BOTTOM NAVBAR (mobile, khas platform tiket) ============ */
.tm-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bnav-h);
  background: var(--tm-white);
  border-top: 1px solid var(--tm-line);
  box-shadow: 0 -4px 20px rgba(120, 72, 20, 0.08);
  z-index: 100;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}
.tm-bottomnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--tm-muted);
  position: relative;
  transition: color 0.2s;
}
.tm-bottomnav a svg { width: 21px; height: 21px; }
.tm-bottomnav a.active { color: var(--tm-orange); }
.tm-bnav-badge {
  position: absolute;
  top: 7px; right: calc(50% - 17px);
  width: 8px; height: 8px;
  background: var(--tm-red);
  border-radius: 50%;
  border: 2px solid var(--tm-white);
}

/* ============ CARDS ============ */
.card {
  background: var(--tm-white);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow);
  padding: 20px;
}
.card-lg { border-radius: var(--tm-radius-lg); padding: 24px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
  border-radius: 14px;
  padding: 14px 22px;
  transition: all 0.2s ease;
  line-height: 1;
  text-align: center;
}
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--tm-orange) 0%, var(--tm-orange-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
  letter-spacing: 0.3px;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 9px 22px rgba(249, 115, 22, 0.45); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-lime {
  background: linear-gradient(135deg, #d9f524 0%, var(--tm-lime) 100%);
  color: #2a3205;
  box-shadow: 0 6px 16px rgba(200, 240, 0, 0.35);
}
.btn-outline {
  background: var(--tm-white);
  color: var(--tm-orange-dark);
  border: 2px solid var(--tm-orange-soft2);
}
.btn-outline:hover { border-color: var(--tm-orange); background: var(--tm-orange-soft); }
.btn-green {
  background: linear-gradient(135deg, #22c55e 0%, var(--tm-green-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.32);
}
.btn-white { background: var(--tm-white); color: var(--tm-ink); box-shadow: var(--tm-shadow); }
.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 11px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ============ BADGES & UTILS ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.badge-orange { background: var(--tm-orange-soft); color: var(--tm-orange-dark); }
.badge-lime { background: var(--tm-lime-soft); color: #55661a; }
.badge-blue { background: var(--tm-blue-soft); color: var(--tm-blue); }
.badge-green { background: #e8f9ee; color: var(--tm-green-dark); }
.badge-red { background: #fdecec; color: var(--tm-red); }
.text-muted { color: var(--tm-muted); }
.small { font-size: 13px; }

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--tm-ink);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-title svg { color: var(--tm-orange); }

/* ============ ANIMATIONS ============ */
@keyframes tmSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tmFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tmSpin { to { transform: rotate(360deg); } }
@keyframes tmPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
@keyframes tmBar {
  0% { background-position: 0 0; }
  100% { background-position: 46px 0; }
}
.anim-in { animation: tmFadeUp 0.5s ease both; }
.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.16s; }
.anim-d3 { animation-delay: 0.24s; }
.anim-d4 { animation-delay: 0.32s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .tm-nav-links { display: none; }
  .tm-burger { display: inline-flex; }
  .tm-bottomnav { display: grid; }
  body { padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
}
@media (min-width: 861px) {
  .tm-mobile-menu { display: none !important; }
}
