:root {
  --ink: #241b1c;
  --muted: #6f6264;
  --maroon: #721b2e;
  --maroon-dark: #4f1020;
  --maroon-light: #9c3e51;
  --rose: #f3e5e8;
  --line: rgba(104, 69, 74, .18);
  --glass: rgba(255, 255, 255, .88);
  --red: #a12f3d;
  --shadow: 0 18px 55px rgba(54, 22, 28, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5; min-height: 100vh; background: #35231f; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: url("crab-mangrove-background.webp") center 45% / cover no-repeat; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(251,246,239,.84) 0%, rgba(251,246,239,.66) 52%, rgba(72,17,31,.34) 100%), linear-gradient(180deg, rgba(72,17,31,.10), rgba(72,17,31,.25)); }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-light); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }

.topbar { min-height: 78px; padding: 0 max(24px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(114,27,46,.12); box-shadow: 0 8px 30px rgba(49,17,22,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 850; line-height: 1.05; }
.brand:hover { color: var(--ink); }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 550; margin-top: 4px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, var(--maroon-light), var(--maroon-dark)); color: #fff; box-shadow: 0 8px 20px rgba(114,27,46,.24); }
.topbar nav { display: flex; align-items: center; gap: 25px; font-size: 14px; font-weight: 720; }
.topbar nav > a { color: var(--ink); }
.topbar nav > a:hover { color: var(--maroon); }
.nav-cta { background: var(--maroon) !important; color: white !important; padding: 11px 17px; border-radius: 11px; box-shadow: 0 8px 18px rgba(114,27,46,.18); }
.container { max-width: 1180px; margin: auto; padding: 44px 24px 80px; min-height: calc(100vh - 150px); }
footer { text-align: center; color: #5e5052; font-size: 13px; padding: 26px; background: rgba(255,255,255,.86); border-top: 1px solid rgba(114,27,46,.12); backdrop-filter: blur(15px); }

.hero { display: grid; grid-template-columns: 1.7fr .8fr; gap: 45px; align-items: center; margin: 24px 0 55px; padding: clamp(30px,5vw,64px); background: linear-gradient(110deg, rgba(255,255,255,.96), rgba(255,250,246,.82)); border: 1px solid rgba(255,255,255,.76); border-radius: 27px; box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -90px; top: -110px; background: rgba(114,27,46,.08); }
.hero h1 { max-width: 820px; color: #211819; }
.hero > div > p { font-size: 18px; color: var(--muted); max-width: 680px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .17em; color: var(--maroon); font-weight: 850; font-size: 11px; margin-bottom: 14px; }
.actions { display: flex; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 11px; padding: 12px 19px; font-weight: 780; font-size: 14px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #fff; box-shadow: 0 9px 20px rgba(114,27,46,.20); }
.btn.primary:hover { color: #fff; box-shadow: 0 12px 24px rgba(114,27,46,.28); }
.btn.secondary { background: rgba(255,255,255,.88); border: 1px solid var(--line); color: var(--ink); }
.btn.full { width: 100%; }

.hero-card, .panel, .summary { background: var(--glass); border: 1px solid rgba(255,255,255,.78); border-radius: 19px; padding: 28px; box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hero-card { background: linear-gradient(145deg, rgba(105,23,42,.94), rgba(68,13,26,.92)); color: #fff; border-color: rgba(255,255,255,.18); }
.hero-card .metric strong { font-size: 55px; display: block; color: #fff; }
.hero-card .metric span, .hero .hero-card p { color: #fff; }
.hero-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.26); }
.muted { color: var(--muted); }

.section-head, .page-title { display: flex; justify-content: space-between; align-items: end; margin: 42px 0 20px; }
.section-head { background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.72); border-radius: 14px; padding: 16px 20px; backdrop-filter: blur(14px); box-shadow: 0 10px 35px rgba(54,22,28,.10); }
.section-head h2 { margin: 0; }
.page-title { align-items: center; padding: 28px 30px; margin-top: 5px; background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.76); border-radius: 20px; box-shadow: var(--shadow); backdrop-filter: blur(17px); }
.page-title h1 { font-size: 2.7rem; margin-bottom: 8px; }
.page-title p { color: var(--muted); margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.offer-card { background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.78); border-radius: 17px; padding: 23px; box-shadow: var(--shadow); backdrop-filter: blur(16px); transition: transform .2s ease, box-shadow .2s ease; }
.offer-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(54,22,28,.20); }
.offer-top { display: flex; justify-content: space-between; align-items: center; }
.pill, .status { display: inline-block; border-radius: 999px; background: var(--rose); color: var(--maroon); font-size: 12px; font-weight: 820; padding: 5px 10px; }
.pill.female { background: #f5dce4; color: #8c2947; }
.pill.bakla { background: #eee3f1; color: #6e3975; }
.stock { font-size: 12px; color: var(--muted); }
.offer-card h3 { margin: 18px 0 5px; }
.price { font-size: 28px; font-weight: 850; color: var(--maroon); margin: 8px 0 18px; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.offer-card dl, .summary dl, .order-sheet dl { display: grid; grid-template-columns: 90px 1fr; gap: 7px 12px; font-size: 13px; }
.offer-card dt, .summary dt, .order-sheet dt { color: var(--muted); }
.offer-card dd, .summary dd, .order-sheet dd { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 70px; padding: 28px; background: rgba(92,20,36,.92); color: #fff; border-radius: 20px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.steps > div { padding: 15px; border-left: 1px solid rgba(255,255,255,.20); }
.steps > div:first-child { border-left: 0; }
.steps b { font-size: 13px; color: #f3c9d2; }
.steps h3 { margin: 10px 0; }
.steps p { color: rgba(255,255,255,.74); font-size: 14px; margin: 0; }

.auth-wrap, .split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; max-width: 920px; margin: 25px auto; }
.form-card { max-width: 580px; margin: 25px auto; }
.form-card.wide { max-width: 840px; }
.form-card h1 { font-size: 2.4rem; }
.form-card label, .reply label, .summary label { display: block; font-size: 13px; font-weight: 750; margin: 15px 0 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid rgba(93,52,59,.24); border-radius: 10px; background: rgba(255,255,255,.92); font: inherit; color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--maroon-light); box-shadow: 0 0 0 3px rgba(114,27,46,.10); }
textarea { resize: vertical; }
.check { display: flex !important; align-items: center; gap: 9px; }
.check input { width: auto; margin: 0; }
.center { text-align: center; }
.demo-box { background: linear-gradient(145deg, rgba(106,24,43,.94), rgba(68,13,26,.92)); color: #fff; border-radius: 18px; padding: 28px; align-self: center; box-shadow: var(--shadow); }
.demo-box p { font-size: 13px; margin: 9px 0; }
.demo-box small { color: rgba(255,255,255,.73); }
.demo-box code { color: var(--ink); }
.filters { display: flex; gap: 10px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.76); padding: 15px; border-radius: 14px; margin-bottom: 25px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.filters input, .filters select { margin: 0; }
.filters select { max-width: 220px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.stats > div { padding: 22px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.76); border-radius: 15px; box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.stats span { font-size: 12px; color: var(--muted); display: block; }
.stats strong { font-size: 32px; color: var(--maroon); }
.stats strong.money { font-size: 24px; }
.table-wrap { overflow: auto; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.76); border-radius: 15px; box-shadow: var(--shadow); backdrop-filter: blur(17px); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 15px 17px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: rgba(247,238,239,.75); }
td small { display: block; color: var(--muted); margin-top: 3px; }
tr:last-child td { border-bottom: 0; }
.status.inactive { background: #eee; color: #777; }
.status.large { font-size: 13px; padding: 8px 14px; }
.inline { display: inline; }
.link-button { border: 0; background: none; color: var(--maroon); font: inherit; padding: 0; cursor: pointer; }
.summary { align-self: start; }
.split { max-width: none; grid-template-columns: 1.5fr .75fr; }
.chat-layout { align-items: start; }
.message-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 18px; }
.message { max-width: 78%; padding: 15px 18px; background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.76); border-radius: 15px; box-shadow: 0 8px 25px rgba(54,22,28,.09); backdrop-filter: blur(15px); }
.message.mine { align-self: flex-end; background: rgba(247,226,232,.95); border-color: rgba(114,27,46,.13); }
.message p { margin: 6px 0; }
.message small { color: var(--muted); font-size: 11px; }
.reply { box-shadow: var(--shadow); }
.total { font-size: 18px !important; font-weight: 800 !important; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: 12px; }
.text-link { display: block; text-align: center; margin-top: 18px; }
.alert { padding: 13px 16px; border-radius: 11px; margin-bottom: 20px; background: rgba(255,255,255,.94); border-left: 4px solid var(--maroon); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.alert.danger { background: rgba(252,232,234,.96); color: var(--red); }
.alert.warning { background: rgba(255,242,213,.96); }
.empty { grid-column: 1/-1; text-align: center; padding: 50px; background: rgba(255,255,255,.92); border: 1px dashed rgba(114,27,46,.28); border-radius: 15px; color: var(--muted); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
code { background: rgba(255,255,255,.84); padding: 2px 5px; border-radius: 4px; }

@media (max-width: 800px) {
  body::before { background-position: 58% center; }
  body::after { background: linear-gradient(180deg, rgba(251,246,239,.82), rgba(251,246,239,.70)); }
  .topbar { height: auto; padding: 15px 20px; align-items: flex-start; }
  .topbar nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .brand small { display: none; }
  .hero, .split, .auth-wrap { grid-template-columns: 1fr; }
  .hero { gap: 25px; padding: 30px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.20); }
  .steps > div:first-child { border-top: 0; }
  .two-col { grid-template-columns: 1fr; }
  .page-title { align-items: flex-start; gap: 15px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 28px 15px 60px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .card-grid, .stats { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
  .filters select { max-width: none; }
  .page-title { flex-direction: column; padding: 23px; }
  .page-title h1 { font-size: 2.1rem; }
  .hero { margin-top: 5px; padding: 25px 21px; border-radius: 20px; }
  .hero h1 { font-size: 2.55rem; }
  .actions { flex-direction: column; }
  .message { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
