@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #14182B;
  --navy: #1E2761;
  --navy-deep: #10142B;
  --teal: #0E7A6E;
  --teal-dark: #0A5B52;
  --paper: #F6F4EF;
  --paper-dim: #EFECE3;
  --line: #E1DDD2;
  --line-strong: #CFC9BA;
  --muted: #5B5F6E;
  --white: #FFFFFF;
  --danger: #9A3B32;
  --danger-bg: #F7E9E7;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ===== Header / nav ===== */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { font-family: var(--font-display); color: var(--navy); font-weight: 600; font-size: 21px; text-decoration: none; }
.brand span { color: var(--teal); }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-header nav a.active, .site-header nav a:hover { color: var(--ink); border-bottom-color: var(--teal); }
.site-header nav a.nav-cta {
  background: var(--navy); color: var(--white); padding: 9px 20px; border-radius: 4px; border-bottom: none; font-weight: 600;
}
.site-header nav a.nav-cta:hover { background: var(--navy-deep); }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 13px 26px; border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-full { width: 100%; text-align: center; }
.btn-mint { background: var(--teal); color: var(--white); }
.btn-mint:hover { background: var(--teal-dark); }

/* ===== Hero ===== */
.hero { padding: 76px 0 88px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: 44px; line-height: 1.18; color: var(--navy); max-width: 560px; }
.hero p.lead { font-size: 17.5px; color: var(--muted); max-width: 480px; margin: 20px 0 30px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.spec-panel { background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.spec-panel .spec-bar { background: var(--navy); padding: 10px 18px; display: flex; align-items: center; gap: 8px; }
.spec-panel .spec-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.spec-panel .spec-bar .label { color: #C6CAE0; font-size: 12.5px; margin-left: 6px; font-family: var(--font-body); }
.spec-panel .spec-body { padding: 22px 24px; }
.spec-panel .spec-title { font-family: var(--font-display); color: var(--navy); font-size: 19px; margin-bottom: 4px; }
.spec-panel .spec-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.spec-row:first-of-type { border-top: none; }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--ink); font-weight: 600; text-align: right; }
.spec-price { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.spec-price .amount { font-family: var(--font-display); font-size: 24px; color: var(--teal); }
.spec-price .tag { background: var(--danger-bg); display: none; }
.spec-price .status { background: #E4EEEC; color: var(--teal-dark); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }

/* ===== Sections ===== */
section.block { padding: 76px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 560px; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Sequence (genuinely ordered steps) */
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
@media (max-width: 800px) { .step-list { grid-template-columns: 1fr; } }
.step-list .step { padding: 0 28px 0 0; position: relative; }
.step-list .step:first-child { padding-left: 0; }
.step-list .step .step-num {
  font-family: var(--font-display); font-size: 15px; color: var(--teal); font-weight: 600; margin-bottom: 10px;
}
.step-list .step h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.step-list .step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.step-list .step:not(:last-child) { border-right: 1px solid var(--line); }
@media (max-width: 800px) {
  .step-list .step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 24px; margin-bottom: 24px; }
}

/* Non-sequence feature list (no numbers) */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 800px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list .feature { border-top: 2px solid var(--navy); padding-top: 18px; }
.feature-list .feature h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.feature-list .feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Industry tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-row .tag {
  border: 1px solid var(--line-strong); padding: 9px 18px; border-radius: 20px; font-size: 14px; font-weight: 500; color: var(--ink);
}

/* Values / about */
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
@media (max-width: 700px) { .value-list { grid-template-columns: 1fr; } }
.value-item { border-left: 2px solid var(--teal); padding-left: 18px; }
.value-item h4 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.value-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card { border-top: 1px solid var(--line); padding-top: 18px; }
.team-card .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--font-display);
  font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.team-card h3 { font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.team-card .role { color: var(--teal); font-weight: 600; font-size: 12.5px; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* Closing CTA */
.cta-block { background: var(--navy); color: var(--white); padding: 64px 0; }
.cta-block .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-block h2 { color: var(--white); font-size: 27px; max-width: 480px; }
.cta-block p { color: #B9C0DE; margin: 10px 0 0; max-width: 460px; }

/* ===== Alerts ===== */
.alert { padding: 14px 18px; border-radius: 6px; margin-bottom: 22px; font-size: 14.5px; }
.alert-success { background: #E4EEEC; color: var(--teal-dark); border: 1px solid var(--teal); }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #D9A79F; }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 14.5px; font-family: inherit;
}
.contact-info-card { border-left: 2px solid var(--teal); padding-left: 24px; }
.contact-info-card h3 { color: var(--navy); margin: 0 0 18px; font-size: 18px; }
.contact-info-card .row { margin-bottom: 18px; font-size: 14.5px; }
.contact-info-card .row .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 3px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #9099BE; padding: 54px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-body); color: var(--white); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 16px; font-weight: 600; }
.footer-grid a, .footer-grid span { display: block; color: #9099BE; text-decoration: none; font-size: 13.5px; margin-bottom: 11px; }
.footer-grid a:hover { color: var(--white); }
.footer-grid p { color: #9099BE; font-size: 13.5px; }
.copyright { border-top: 1px solid #262C4E; padding-top: 18px; font-size: 12.5px; color: #6C7499; }

/* ===================================================================
   PORTAL / DASHBOARD (buyer, seller, admin)
   =================================================================== */
.portal-body { background: var(--paper); margin: 0; }
.portal-shell { display: flex; min-height: 100vh; }
.portal-sidebar {
  width: 232px; background: var(--navy-deep); color: #9099BE; flex-shrink: 0;
  display: flex; flex-direction: column; padding: 26px 22px; position: sticky; top: 0; height: 100vh;
}
.portal-sidebar .brand { font-family: var(--font-display); color: var(--white); font-weight: 600; font-size: 19px; text-decoration: none; margin-bottom: 8px; }
.portal-sidebar .brand span { color: var(--teal); }
.portal-role-badge {
  display: inline-block; color: #7C86B3; font-size: 11.5px; font-weight: 600;
  margin-bottom: 32px; text-transform: uppercase; letter-spacing: 0.6px;
}
.portal-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.portal-nav a {
  color: #AEB4D4; text-decoration: none; padding: 10px 12px; border-radius: 4px; font-size: 14px; font-weight: 500;
  border-left: 2px solid transparent;
}
.portal-nav a:hover { color: var(--white); }
.portal-nav a.active { background: rgba(255,255,255,0.05); color: var(--white); border-left-color: var(--teal); }
.portal-user { border-top: 1px solid #262C4E; padding-top: 16px; margin-top: 16px; }
.portal-user .name { color: var(--white); font-weight: 600; font-size: 14px; }
.portal-user .email { font-size: 12px; color: #6C7499; margin-bottom: 10px; word-break: break-all; }
.portal-user .logout-link { color: #C98A8A; font-size: 13px; font-weight: 600; text-decoration: none; }
.portal-user .logout-link:hover { text-decoration: underline; }

.portal-main { flex: 1; padding: 40px 44px; min-width: 0; background: var(--white); }
@media (max-width: 800px) {
  .portal-shell { flex-direction: column; }
  .portal-sidebar { width: 100%; height: auto; position: static; }
  .portal-main { padding: 26px; }
}

.portal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.portal-header h1 { font-size: 25px; color: var(--navy); }
.portal-header p { color: var(--muted); font-size: 14px; margin: 5px 0 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 34px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--white); padding: 22px 20px; }
.stat-card .num { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: var(--navy); }
.stat-card .lbl { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
table.data-table th {
  text-align: left; padding: 11px 16px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--muted); border-bottom: 1px solid var(--line-strong); font-weight: 600;
}
table.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }

.status-pill { padding: 3px 11px; border-radius: 3px; font-size: 11.5px; font-weight: 600; white-space: nowrap; display: inline-block; }
.status-Pending { background: #FBF0DC; color: #8A6100; }
.status-In-Discussion { background: #E7EAF5; color: var(--navy); }
.status-Completed { background: #E4EEEC; color: var(--teal-dark); }
.status-Cancelled { background: var(--danger-bg); color: var(--danger); }
.status-Active { background: #E4EEEC; color: var(--teal-dark); }
.status-Sold { background: #E7EAF5; color: var(--navy); }
.status-Inactive { background: #EEECE5; color: var(--muted); }
.status-Removed-by-Admin { background: var(--danger-bg); color: var(--danger); }
.status-Suspended { background: var(--danger-bg); color: var(--danger); }

.btn-sm { padding: 7px 14px; border-radius: 4px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-sm-navy { background: var(--navy); color: var(--white); }
.btn-sm-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-sm-danger { background: var(--danger-bg); color: var(--danger); border-color: #D9A79F; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
select.inline-select { padding: 6px 8px; border-radius: 4px; border: 1px solid var(--line-strong); font-size: 12.5px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-strong); }

/* Auth pages */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--paper); padding: 40px 20px; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 42px; width: 100%; max-width: 440px; }
.auth-card .brand { display: block; text-align: center; font-family: var(--font-display); color: var(--navy); font-weight: 600; font-size: 21px; text-decoration: none; margin-bottom: 8px; }
.auth-card .brand span { color: var(--teal); }
.auth-card h1 { text-align: center; font-size: 19px; color: var(--navy); margin: 0 0 28px; }
.role-toggle { display: flex; gap: 8px; margin-bottom: 24px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 3px; }
.role-toggle a { flex: 1; text-align: center; padding: 9px; border-radius: 3px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.role-toggle a.active { background: var(--navy); color: var(--white); }
.auth-card .field { margin-bottom: 16px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.auth-card input, .auth-card select { width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 14.5px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.auth-switch a { color: var(--teal); font-weight: 600; text-decoration: none; }

/* Listing cards (browse page) */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 20px; display: flex; gap: 18px; margin-bottom: 14px; align-items: center; position: relative; }
.card .thumb { width: 84px; height: 84px; border-radius: 4px; background: var(--paper-dim) center/cover no-repeat; flex-shrink: 0; border: 1px solid var(--line); }
.card .info { flex: 1; min-width: 0; }
.card .info h3 { font-family: var(--font-display); margin: 0 0 4px; color: var(--navy); font-size: 16.5px; font-weight: 600; }
.card .info p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.card .price { font-family: var(--font-display); color: var(--teal-dark); font-weight: 600; font-size: 15px; margin-top: 6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 3px; background: var(--paper-dim); color: var(--navy); margin-left: 8px; }
.badge-suggested { background: #E4EEEC; color: var(--teal-dark); border: 1px solid var(--teal); position: absolute; top: 18px; right: 150px; font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 3px; }

.filters { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 20px; }
.filters h3 { margin: 0 0 14px; color: var(--navy); font-size: 15px; font-family: var(--font-display); }
.filters label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
.filters input, .filters select { width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 13.5px; }
.filters .btn-filter { margin-top: 14px; width: 100%; background: var(--navy); color: var(--white); border: none; padding: 10px; border-radius: 4px; font-weight: 600; cursor: pointer; }
.browse-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .browse-layout { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 14px; font-family: inherit; }
.field-full { grid-column: 1 / -1; }
.submit-row { grid-column: 1 / -1; margin-top: 6px; }
.interest-box { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 16px; margin-top: 10px; }

.page-title { font-size: 26px; color: var(--navy); }
.page-sub { color: var(--muted); font-size: 15px; margin: 6px 0 26px; }
