/* Jebel Ali Business Hub - styles */
:root {
  --navy: #0F2A4A;
  --navy-2: #14365E;
  --gold: #F5B800;
  --cork: #C9945E;
  --wood: #A0682F;
  --ink: #0F2A4A;
  --muted: #3D4B5C;
  --green: #15803D;
  --red: #E02424;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--cork); color: var(--ink); }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; }
.frame > * { min-width: 0; }
.frame { min-height: 100vh; min-width: 0; border: 12px solid var(--wood); display: flex; flex-direction: column; }

/* ---------- header ---------- */
.hdr { position: relative; background: var(--navy); min-height: 140px; overflow: hidden; display: flex; align-items: center; }
.hdr-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; padding: 16px 26px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 110px; height: auto; }
.brand-1 { display: block; font-weight: 800; font-size: 44px; line-height: 1; color: #fff; }
.brand-2 { display: block; font-weight: 800; font-size: 33px; line-height: 1.15; color: var(--gold); }
.hdr-bar { width: 3px; align-self: stretch; min-height: 80px; background: var(--gold); }
.tagline-1 { display: block; font-weight: 700; font-size: 30px; line-height: 1.12; color: #fff; }
.tagline-2 { display: block; font-weight: 500; font-style: italic; font-size: 21px; color: #fff; margin-top: 4px; }
.hdr-photo { position: absolute; inset: 0 0 0 auto; width: 40%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.hdr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- nav ---------- */
.nav { background: var(--wood); padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.nav-btn .ic { font-size: 19px; }
.nav-btn .ic.red { color: #EF4444; }
.nav-btn.on { color: var(--gold); box-shadow: inset 0 -5px 0 var(--gold); }
.cat-wrap { position: relative; }
.cat-menu { position: absolute; top: 52px; left: 0; z-index: 20; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  padding: 6px; min-width: 200px; display: none; }
.cat-menu.open { display: block; }
.cat-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 6px; cursor: pointer; color: var(--navy); }
.cat-menu button:hover { background: #F1F5F9; }
.search { position: relative; flex: 1 1 180px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 0 14px; min-height: 48px; }
.search input { border: 0; outline: none; flex: 1; width: 0; min-width: 0; font-size: 16px; color: var(--navy); background: transparent; }

/* ---------- board ---------- */
main { flex: 1; padding: 30px 24px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }

.note { position: relative; display: flex; flex-direction: column; min-height: 270px; padding: 26px 18px 16px; border-radius: 3px 3px 18px 3px;
  box-shadow: 0 8px 16px rgba(60,35,10,.35), 0 1px 2px rgba(60,35,10,.3); }
.note:nth-child(4n+1) { transform: rotate(-1deg); }
.note:nth-child(4n+2) { transform: rotate(.7deg); }
.note:nth-child(4n+3) { transform: rotate(-.5deg); }
.note:nth-child(4n) { transform: rotate(1deg); }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 0 0 18px 0;
  background: linear-gradient(135deg, transparent 45%, rgba(0,0,0,.12) 50%, #fff 62%); }
.c0 { background: #CFE6FA; } .c1 { background: #FBF08A; } .c2 { background: #E3F5A6; }
.c3 { background: #FBD3E0; } .c4 { background: #EAF7A8; } .c5 { background: #DCCFF7; }
.pin { position: absolute; z-index: 2; top: -12px; right: 32%; width: 24px; height: 24px; border-radius: 50%; box-shadow: 2px 4px 4px rgba(0,0,0,.35); }
.p0 { background: #1D4ED8; } .p1 { background: #DC2626; } .p2 { background: #16A34A; } .p3 { background: #7C3AED; } .p4 { background: #CA8A04; } .p5 { background: #0891B2; }
.tag { align-self: flex-start; display: inline-block; padding: 3px 12px; border-radius: 5px; background: var(--red); color: #fff; font-weight: 700; font-size: 17px; }
.note-top { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.note-top h3 { flex: 1; min-width: 0; margin: 0; font-size: 22px; line-height: 1.15; font-weight: 700; color: var(--navy); }
.note-top img { width: 112px; height: 82px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.spec { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 500; }
.facts li { display: flex; gap: 8px; align-items: flex-start; }
.ck { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; line-height: 18px; text-align: center; margin-top: 2px; }
.facts .k { color: var(--muted); }
.wa { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 5px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(15,42,74,.15); border-radius: 999px; font-weight: 700; font-size: 17px; color: var(--navy); text-decoration: none; }
.wa svg { width: 34px; height: 34px; flex-shrink: 0; }
.facts + .wa { margin-top: 14px; }

@media (max-width: 820px) {
  .frame { border-width: 6px; }
  .hdr { min-height: 96px; }
  .hdr-in { gap: 4px; padding: 10px 12px; flex-direction: column; align-items: flex-start; }
  .tagline-1 br { display: none; }
  .brand img { width: 54px; }
  .brand-1 { font-size: 21px; } .brand-2 { font-size: 15px; }
  .hdr-bar { display: none; }
  .tagline-1 { font-size: 12px; } .tagline-2 { font-size: 11px; }
  .hdr-photo { width: 34%; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
  .nav { flex-wrap: nowrap; overflow-x: auto; padding: 8px; }
  .nav-btn { font-size: 13px; min-height: 44px; padding: 0 12px; flex-shrink: 0; }
  .search { flex: 0 0 220px; min-height: 44px; }
  main { padding: 22px 10px; }
  .note { min-height: 236px; padding: 16px 9px 10px; }
  .tag { font-size: 10px; padding: 2px 7px; }
  .note-top h3 { font-size: 14px; }
  .note-top img { width: 56px; height: 46px; }
  .spec { font-size: 11px; }
  .facts { font-size: 11px; gap: 2px; margin-top: 6px; }
  .ck { width: 13px; height: 13px; font-size: 9px; line-height: 13px; }
  .wa { font-size: 11px; gap: 5px; min-height: 36px; padding: 0 8px 0 3px; white-space: nowrap; }
  .wa svg { width: 26px; height: 26px; }
}

.empty { background: #FFF8E1; padding: 18px; border-radius: 8px; font-weight: 600; color: #2B1A0B; }
.more { display: block; margin: 28px auto 0; min-height: 48px; padding: 0 28px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------- footer ---------- */
.foot { background: var(--navy); margin: 0 12px 12px; border-radius: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 10px 10px 10px 22px; color: #fff; }
.foot-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.foot-bar { width: 3px; height: 30px; background: var(--gold); }
.ticker { font-size: 17px; font-weight: 500; flex: 1 1 300px; }
.post-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 26px; background: var(--gold); color: var(--navy);
  border-radius: 8px; font-weight: 700; font-size: 20px; text-decoration: none; }
@media (max-width: 820px) {
  .foot { margin: 0; border-radius: 0; flex-direction: column; align-items: stretch; padding: 10px 12px 12px; }
  .foot-title { font-size: 13px; } .ticker { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; min-width: 0; max-width: 100%; }
  .foot-bar { display: none; }
  .post-btn { margin: 0; justify-content: center; min-height: 48px; font-size: 16px; }
}

/* ---------- forms / account / admin ---------- */
.panel { max-width: 760px; margin: 0 auto; background: #FFFDF5; border-radius: 10px; padding: 26px; box-shadow: 0 8px 20px rgba(60,35,10,.3); }
.panel.wide { max-width: 1100px; }
.panel h2 { margin: 0 0 6px; font-size: 26px; color: var(--navy); }
.panel h3 { margin: 26px 0 10px; font-size: 19px; color: var(--navy); }
.sub { color: var(--muted); margin: 0 0 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input, .field textarea { min-height: 46px; padding: 10px 12px; border: 1.5px solid #B9C2CE; border-radius: 8px; font-size: 16px; color: var(--navy); background: #fff; }
.field input:focus { outline: 3px solid rgba(245,184,0,.6); border-color: var(--navy); }
.field input[readonly] { background: #EEF2F6; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-red { background: #B91C1C; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.msg { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-weight: 600; }
.msg.err { background: #FDE8E8; color: #9B1C1C; }
.msg.ok { background: #DEF7EC; color: #03543F; }
.balance { display: flex; flex-wrap: wrap; gap: 14px; }
.stat { flex: 1 1 160px; background: #fff; border: 1.5px solid #E2E8F0; border-radius: 10px; padding: 14px; }
.stat b { display: block; font-size: 28px; color: var(--navy); }
.stat span { color: var(--muted); font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } .panel { padding: 18px; } }
.plan { background: #fff; border: 2px solid #E2E8F0; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan h4 { margin: 0; font-size: 20px; }
.plan .price { font-size: 30px; font-weight: 800; color: var(--navy); }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #E2E8F0; vertical-align: top; }
.tbl { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.b-pending { background: #FEF3C7; color: #92400E; } .b-approved, .b-active { background: #DEF7EC; color: #03543F; }
.b-rejected { background: #FDE8E8; color: #9B1C1C; } .b-expired { background: #E5E7EB; color: #374151; }
.preview { max-width: 320px; margin: 10px 0 18px; }
.pending-card { display: grid; grid-template-columns: 300px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid #E2E8F0; }
@media (max-width: 700px) { .pending-card { grid-template-columns: 1fr; } }
.small { font-size: 13px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
