/* ===========================================================
   visualGFX — glossy / cinematic glass design system
   =========================================================== */

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

:root {
  --bg:        #050506;
  --bg-2:      #0b0b0d;
  --text:      #f4f4f6;
  --muted:     #a1a1aa;
  --muted-2:   #6b6b73;

  /* glass surfaces */
  --glass:        rgba(255, 255, 255, 0.045);
  --glass-2:      rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-2: rgba(255, 255, 255, 0.18);
  --hi:           rgba(255, 255, 255, 0.14); /* top highlight line */

  /* subtle accents (kept mostly monochrome / silver) */
  --silver:    #e7e7ea;
  --accent:    #d6d8ff;
  --glow:      rgba(255, 255, 255, 0.22);

  --green:     #4ade80;
  --amber:     #fbbf24;
  --red:       #f87171;
  --blue:      #c9d2ff;

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;
  --shadow:    0 30px 70px -25px rgba(0, 0, 0, 0.9);
  --shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, 0.8);

  --grad-light: linear-gradient(180deg, #ffffff 0%, #d4d4d8 100%);
  --grad-glass: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* cinematic top spotlight + soft vignette */
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 30%, transparent 60%),
    radial-gradient(80% 50% at 50% 0%, rgba(150,160,210,0.07), transparent 55%);
  background-repeat: no-repeat;
  background-position: top center;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.font-display { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.blue { color: var(--silver); }
.hidden { display: none !important; }

.grid { display: grid; gap: 22px; }
@media (min-width: 640px)  { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- glossy floating nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 16px 0; background: transparent;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 12px 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--hi);
}
@media (max-width: 980px) { .nav-inner { margin: 0 16px; } }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; filter: brightness(1.6) drop-shadow(0 0 8px var(--glow)); }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: 0.92rem; transition: .18s;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a.active { color: var(--text); background: var(--glass-2); box-shadow: inset 0 1px 0 var(--hi); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(15,15,18,0.92); border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px); border-radius: 20px; padding: 12px; display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}

/* ---------- glossy buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.94rem; transition: .2s; white-space: nowrap; position: relative;
}
/* primary = glossy silver pill */
.btn-primary {
  background: var(--grad-light); color: #0a0a0c;
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 8px 26px -8px rgba(255,255,255,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(255,255,255,0.35), inset 0 1px 0 rgba(255,255,255,0.9); }
/* ghost = frosted dark glass */
.btn-ghost, .btn-outline {
  background: var(--grad-glass); color: var(--text);
  border-color: var(--glass-border-2);
  backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--hi);
}
.btn-ghost:hover, .btn-outline:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(248,113,113,.12); color: var(--red); border-color: rgba(248,113,113,.3); }
.btn-danger:hover { background: rgba(248,113,113,.2); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--muted);
  background: var(--grad-glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--hi);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 0.73rem; font-weight: 600;
  text-transform: capitalize; letter-spacing: .02em; border: 1px solid transparent;
}
.badge.pending   { background: rgba(251,191,36,.12); color: var(--amber); border-color: rgba(251,191,36,.25); }
.badge.paid      { background: rgba(201,210,255,.12); color: var(--blue); border-color: rgba(201,210,255,.25); }
.badge.progress  { background: rgba(192,132,252,.12); color: #d8b4fe; border-color: rgba(192,132,252,.25); }
.badge.delivered { background: rgba(45,212,191,.14); color: #2dd4bf; border-color: rgba(45,212,191,.28); }
.badge.completed { background: rgba(74,222,128,.12); color: var(--green); border-color: rgba(74,222,128,.25); }
.badge.cancelled { background: rgba(248,113,113,.12); color: var(--red); border-color: rgba(248,113,113,.25); }

/* ---------- glass cards ---------- */
.card {
  background: var(--grad-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 26px;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--hi);
  transition: .25s;
}
.card-hover:hover { border-color: var(--glass-border-2); transform: translateY(-5px); box-shadow: var(--shadow), inset 0 1px 0 var(--hi); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 70px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 45%, transparent 70%);
  filter: blur(10px);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 35%, #9a9aa3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .accent { -webkit-text-fill-color: initial; color: var(--muted-2); }
.hero p { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--muted); max-width: 600px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-banner {
  margin-top: 60px; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  position: relative;
}
.hero-banner::after { content:""; position:absolute; inset:0; box-shadow: inset 0 1px 0 var(--hi); border-radius: 24px; pointer-events:none; }

/* ---------- section heading ---------- */
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.sec-head .eyebrow {
  color: var(--muted); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: .18em; margin-bottom: 14px;
}
.sec-head h2 {
  font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 40%, #9a9aa3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sec-head p { color: var(--muted); }

/* ---------- portfolio ---------- */
.folio-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--glass-border); aspect-ratio: 4/3; background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}
.folio-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.folio-item:hover img { transform: scale(1.07); }
.folio-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(to top, rgba(5,5,6,.95), transparent 65%);
  opacity: 0; transition: .3s;
}
.folio-item:hover .folio-overlay { opacity: 1; }
.folio-overlay h4 { font-size: 1.05rem; }
.folio-overlay span { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- product card ---------- */
.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-media { aspect-ratio: 16/10; background: var(--bg-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { color: var(--muted); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.product-card h3 { font-size: 1.18rem; font-family: 'Sora', sans-serif; letter-spacing: -0.02em; }
.product-desc { color: var(--muted); font-size: 0.9rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.product-price { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.product-price small { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 8px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border-2); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: rgba(255,255,255,0.4); box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
}
.textarea { resize: vertical; min-height: 110px; }
.select option { background: #15151a; }

/* ---------- auth card ---------- */
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 60px 24px; min-height: 72vh; }
.auth-card { width: 100%; max-width: 420px; }
.auth-tabs { display: flex; gap: 5px; background: rgba(255,255,255,0.03); padding: 5px; border-radius: 999px; margin-bottom: 24px; border: 1px solid var(--glass-border); }
.auth-tabs button {
  flex: 1; padding: 10px; border: 0; background: none; color: var(--muted);
  font-weight: 600; border-radius: 999px; transition: .18s;
}
.auth-tabs button.active { background: var(--grad-light); color: #0a0a0c; box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }

/* ---------- dashboard layout ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 80px); }
.dash-side {
  border-right: 1px solid var(--glass-border); padding: 26px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.dash-side .side-link {
  display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: 12px;
  color: var(--muted); font-weight: 500; margin-bottom: 4px; transition: .15s; cursor: pointer;
}
.dash-side .side-link:hover { background: var(--glass); color: var(--text); }
.dash-side .side-link.active { background: var(--glass-2); color: var(--text); box-shadow: inset 0 1px 0 var(--hi); border: 1px solid var(--glass-border); }
.dash-main { padding: 40px; overflow-x: auto; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.dash-head h1 { font-family: 'Sora', sans-serif; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--glass-border); padding: 12px; }
  .dash-side .side-link { margin-bottom: 0; white-space: nowrap; }
  .dash-main { padding: 26px 18px; }
}

/* ---------- stat cards ---------- */
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 34px; }
.stat {
  background: var(--grad-glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--hi);
}
.stat .stat-label { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.stat .stat-value { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.stat .stat-value.blue { color: var(--silver); }
.stat .stat-value.green { color: var(--green); }
.stat .stat-value.amber { color: var(--amber); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: var(--radius); background: rgba(255,255,255,0.02); backdrop-filter: blur(12px); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead th { text-align: left; padding: 15px 16px; color: var(--muted); font-weight: 500; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--glass-border); }
tbody td { padding: 15px 16px; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--glass); }
code { background: rgba(255,255,255,0.06); padding: 2px 7px; border-radius: 6px; font-size: 0.85em; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: rgba(20,20,24,0.82); border: 1px solid var(--glass-border-2); border-radius: var(--radius);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow); backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--glass-border); }
.modal-head h3 { font-family: 'Sora', sans-serif; font-size: 1.2rem; letter-spacing: -0.02em; }
.modal-head button { background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.modal-body { padding: 24px; }
.modal-foot { padding: 18px 24px; border-top: 1px solid var(--glass-border); display: flex; gap: 12px; justify-content: flex-end; }

/* ---------- payment methods ---------- */
.pay-method {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  border: 1px solid var(--glass-border); border-radius: var(--radius); transition: .2s; cursor: pointer;
  background: var(--grad-glass); box-shadow: inset 0 1px 0 var(--hi);
}
.pay-method:hover { border-color: var(--glass-border-2); background: var(--glass-2); transform: translateY(-2px); }
.pay-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); flex-shrink: 0; }
.pay-method .pay-info { flex: 1; }
.pay-method .pay-info h4 { font-size: 1rem; }
.pay-method .pay-info p { color: var(--muted); font-size: 0.85rem; }
.pay-method .pay-copy { font-size: 0.8rem; color: var(--silver); font-weight: 600; }

/* ---------- toast (glassy, like the reference NOTE card) ---------- */
.toast-host { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: rgba(22,22,26,0.85); border: 1px solid var(--glass-border-2);
  border-radius: 14px; padding: 14px 18px; min-width: 260px;
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--hi);
  animation: slideIn .28s ease; font-size: 0.9rem;
}
.toast.success { border-color: rgba(74,222,128,.35); }
.toast.error   { border-color: rgba(248,113,113,.4); }
@keyframes slideIn { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--glass-border); padding: 54px 0 32px; margin-top: 70px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 38px; }
.footer-grid .f-col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid .f-col a { display: block; color: var(--muted-2); padding: 5px 0; font-size: 0.92rem; transition: .15s; }
.footer-grid .f-col a:hover { color: var(--text); }
.footer-bottom { text-align: center; color: var(--muted-2); font-size: 0.85rem; padding-top: 26px; border-top: 1px solid var(--glass-border); }

/* ---------- reviews ---------- */
.review-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-border-2); flex-shrink: 0; background: var(--bg-2); }
.review-stars { color: #fbbf24; letter-spacing: 2px; font-size: 1rem; white-space: nowrap; }
.review-stars .empty { color: var(--muted-2); }
.review-img { margin-top: 14px; border-radius: 12px; border: 1px solid var(--glass-border); width: 100%; max-height: 300px; object-fit: cover; }
.review-text { color: var(--text); margin-top: 14px; white-space: pre-wrap; word-break: break-word; }
.star-pick { display: inline-flex; gap: 6px; }
.star-pick span { font-size: 2rem; color: var(--muted-2); cursor: pointer; transition: .12s; line-height: 1; }
.star-pick span.on { color: #fbbf24; transform: scale(1.05); }

/* ---------- icons (Lucide) ---------- */
.icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--hi); margin-bottom: 18px;
}
.icon-box svg { width: 23px; height: 23px; color: var(--silver); stroke-width: 1.9; }
.pay-icon svg { width: 22px; height: 22px; color: var(--silver); stroke-width: 1.9; }
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.pill svg, .empty-icon svg { width: 16px; height: 16px; stroke-width: 2; }
.empty-icon svg { width: 46px; height: 46px; stroke-width: 1.4; opacity: .9; }
[data-lucide] { display: inline-flex; }

/* ---------- misc ---------- */
.empty-state { text-align: center; padding: 72px 24px; color: var(--muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .55; }
.loader { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader { display: grid; place-items: center; min-height: 60vh; }
.divider { height: 1px; background: var(--glass-border); margin: 24px 0; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
