:root {
  --navy: #0a2540;
  --navy-2: #0d2f52;
  --blue: #1565c0;
  --blue-light: #4a90d9;
  --silver: #e6ebf1;
  --silver-2: #f4f6f9;
  --ink: #1f2933;
  --muted: #5b6b7c;
  --line: #dde3ea;
  --success: #1e8e5a;
  --danger: #d64545;
  --gold: #c9a227;
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.08);
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--silver-2);
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-size: 21px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.logo span { color: var(--blue-light); }
nav.main a { color: #cdd8e4; margin-left: 26px; font-weight: 500; font-size: 15px; transition: color .15s; }
nav.main a:hover { color: #fff; }
.btn {
  display: inline-block; background: var(--blue); color: #fff; border: none;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-size: 15px; transition: background .15s, transform .05s;
}
.btn:hover { background: #1257a8; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.gold { background: var(--gold); }
.btn.danger { background: var(--danger); }
.btn.block { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #123f6d 100%);
  color: #fff; padding: 72px 0; text-align: center;
}
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.12; }
.hero p { font-size: 18px; color: #b9c9db; margin: 16px auto 28px; max-width: 620px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; }

/* Sections */
section { padding: 54px 0; }
.section-title { font-size: 28px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }

/* Auction grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10,37,64,.14); }
.card .thumb { height: 180px; background: var(--silver) center/cover; position: relative; }
.card .thumb .badge {
  position: absolute; top: 12px; left: 12px; background: var(--success); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px;
}
.card .thumb .badge.ended { background: var(--muted); }
.card .body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.card .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.price-tag { font-size: 22px; font-weight: 800; color: var(--blue); }
.price-tag small { font-size: 12px; color: var(--muted); font-weight: 500; display: block; }
.timer { font-size: 13px; color: var(--danger); font-weight: 600; margin-top: 8px; }
.card .foot { margin-top: 14px; }

/* Forms */
.form-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; max-width: 440px; margin: 40px auto;
}
.form-card h2 { color: var(--navy); margin-bottom: 6px; }
.form-card .sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.12); }
.msg { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin: 14px 0; }
.msg.error { background: #fdecec; color: var(--danger); }
.msg.ok { background: #e8f6ef; color: var(--success); }

/* Footer */
footer.site { background: var(--navy); color: #9db4d0; padding: 34px 0; margin-top: 40px; font-size: 14px; }
footer.site .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer.site a { color: #cdd8e4; }

/* Detail page */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 30px; }
.detail .photo { height: 380px; background: var(--silver) center/cover; border-radius: var(--radius); }
.bid-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.bid-box .current { font-size: 34px; font-weight: 800; color: var(--blue); }
.spec { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec span:first-child { color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data th { background: var(--navy); color: #fff; text-align: left; padding: 12px 14px; font-size: 13px; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.data tr:nth-child(even) td { background: var(--silver-2); }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; background: #25d366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 28px; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 60;
}

@media (max-width: 780px) {
  .hero h1 { font-size: 30px; }
  .detail { grid-template-columns: 1fr; }
  nav.main { display: none; }
}
