:root{
  --bg: #0b0b10;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text: #f5f5f7;
  --muted: rgba(245,245,247,.7);

  --brand: #7a1632;      /* maroon */
  --brand2:#caa35a;      /* soft gold */
  --line: rgba(255,255,255,.12);

  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 24px;
}

html[data-theme="light"]{
  --bg: #f7f7fb;
  --card: rgba(20,20,30,.06);
  --card2: rgba(20,20,30,.08);
  --text: #121219;
  --muted: rgba(18,18,25,.7);
  --line: rgba(18,18,25,.12);
  --shadow: 0 12px 30px rgba(10,10,25,.12);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(900px 600px at 20% 0%, rgba(122,22,50,.35), transparent 55%),
              radial-gradient(800px 500px at 80% 10%, rgba(202,163,90,.25), transparent 55%),
              var(--bg);
  color: var(--text);
}

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

.app-shell{
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 84px; /* for bottom nav */
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.brand-logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.08);
  padding: 6px;
}

.brand-text{ min-width:0; }
.brand-title{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 15px;
  line-height: 1.1;
}
.brand-tagline{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.icon-btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.view{
  padding: 14px;
}

.card{
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-pad{ padding: 16px; }

.h1{
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px;
}
.p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero{
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(122,22,50,.55), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(202,163,90,.30), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  color: var(--muted);
}

.cta-row{
  display:flex;
  gap: 10px;
  margin-top: 14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-weight: 800;
}
.btn-primary{
  border-color: rgba(202,163,90,.35);
  background: linear-gradient(135deg, rgba(122,22,50,.92), rgba(202,163,90,.55));
}
.btn-ghost{
  background: rgba(255,255,255,.05);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.tile{
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.tile .t{
  font-weight: 900;
  margin-bottom: 4px;
}
.tile .s{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.form{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.input{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
}
.input::placeholder{ color: rgba(245,245,247,.45); }
.row{
  display:flex;
  gap: 10px;
}

.notice{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(202,163,90,.35);
  background: rgba(202,163,90,.10);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bottom-nav{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(520px, calc(100% - 18px));
  display:flex;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(10,10,16,.55);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  z-index: 40;
}

html[data-theme="light"] .bottom-nav{
  background: rgba(255,255,255,.75);
}

.nav-item{
  width: 20%;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 16px;
  color: var(--muted);
  transition: transform .12s ease, background .12s ease;
}
.nav-item:active{ transform: scale(.98); }

.nav-ico{ font-size: 16px; }
.nav-txt{ font-size: 11px; font-weight: 800; letter-spacing:.1px; }

.nav-item.active{
  color: var(--text);
  background: rgba(122,22,50,.22);
  border: 1px solid rgba(202,163,90,.18);
}

.sep{ height: 10px; }
.small-link{
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-with-image{
  position: relative;
  overflow: hidden;
}

.hero-with-image::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.55),
      rgba(0,0,0,.65)
    ),
    url("assets/hero.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-with-image > *{
  position: relative;
  z-index: 1;
}