@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --border: #e2e8f0;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}
a { text-decoration: none; }
.fw-black { font-weight: 900 !important; }

.site-bg {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.15), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(14,165,233,.12), transparent 30%),
    linear-gradient(180deg,#ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
  min-height: 100vh;
}

.navbar-glass {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(226,232,240,.75);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#2563eb,#06b6d4);
  color: #fff; font-weight: 900;
  box-shadow: 0 14px 30px rgba(37,99,235,.25);
}
.hero-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(226,232,240,.85);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-title {
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: .98;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}
.gradient-text {
  background: linear-gradient(135deg,#2563eb,#0891b2,#0f172a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-photo {
  width: min(360px, 80vw);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 12px solid #fff;
  box-shadow: 0 25px 80px rgba(15,23,42,.16);
}
.badge-soft {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-weight: 800;
  padding: .55rem .85rem;
}
.btn-main {
  background: linear-gradient(135deg,#2563eb,#0891b2);
  color: #fff;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  padding: .9rem 1.2rem;
  box-shadow: 0 15px 35px rgba(37,99,235,.25);
}
.btn-main:hover { color: #fff; transform: translateY(-2px); }
.btn-soft {
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-weight: 800;
  padding: .9rem 1.2rem;
}
.card-premium {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: .2s ease;
}
.card-premium:hover { transform: translateY(-4px); box-shadow: 0 22px 70px rgba(15,23,42,.1); }
.icon-box {
  width: 54px; height: 54px; border-radius: 17px;
  display: inline-flex; align-items:center; justify-content:center;
  background: #eff6ff; color: #2563eb; font-size: 1.35rem;
}
.price { font-weight: 900; letter-spacing: -.03em; }
.text-muted-2 { color: var(--muted); }
.section-title { font-weight: 900; letter-spacing: -.04em; }
.qr-img { width: 210px; max-width: 100%; border-radius: 18px; border: 1px solid var(--border); background:#fff; padding: 8px; }

/* Auth */
.auth-wrap { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 32px 16px; }
.auth-card { width: min(480px, 100%); border-radius: 28px; border:1px solid var(--border); box-shadow: var(--shadow); background:#fff; padding: 30px; }
.form-control, .form-select { border-radius: 14px; padding: .8rem 1rem; border-color:#dbe3ef; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem rgba(37,99,235,.12); border-color:#93c5fd; }

/* App layout */
.app-shell { display:flex; min-height:100vh; }
.sidebar {
  width: 280px; background: #fff; border-right: 1px solid var(--border);
  padding: 22px; position: sticky; top: 0; height: 100vh; overflow-y:auto;
}
.main { flex:1; min-width:0; }
.topbar {
  margin: 20px 24px 0 24px; border:1px solid rgba(226,232,240,.85);
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border-radius: 22px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(15,23,42,.04);
}
.content { padding: 24px; }
.nav-link-app {
  display:flex; align-items:center; gap:12px; padding: 13px 14px;
  color:#64748b; border-radius: 16px; font-weight: 800; margin-bottom: 8px;
}
.nav-link-app:hover { background:#f8fafc; color:#2563eb; }
.nav-link-app.active { background: linear-gradient(135deg,#2563eb,#0891b2); color:#fff; box-shadow: 0 14px 30px rgba(37,99,235,.2); }
.table { --bs-table-bg: transparent; }
.status-pill { border-radius: 999px; padding:.45rem .7rem; font-weight:900; font-size:.75rem; display:inline-flex; align-items:center; gap:.35rem; }
.status-pending_payment { background:#fff7ed; color:#c2410c; }
.status-waiting_verification { background:#eff6ff; color:#1d4ed8; }
.status-paid { background:#ecfdf5; color:#047857; }
.status-rejected { background:#fef2f2; color:#b91c1c; }
.stat-card { position: relative; overflow: hidden; }
.stat-card:after { content:""; position:absolute; right:-40px; top:-40px; width:120px; height:120px; border-radius:50%; background: rgba(37,99,235,.08); }
.footer-mini { color:#94a3b8; font-size:.85rem; }

.mobile-menu { display:none; }

@media (max-width: 991px) {
  .app-shell { display:block; }
  .sidebar { display:none; }
  .mobile-menu { display:block; }
  .topbar { margin: 12px 12px 0; }
  .content { padding: 16px 12px 86px; }
  .hero-card { border-radius: 26px; }
}

@media (max-width: 575px) {
  .auth-card { padding:22px; border-radius: 24px; }
  .hero-title { font-size: 2.55rem; }
  .navbar-glass { border-radius: 18px; }
}

/* Product preview images */
.product-card { display: flex; flex-direction: column; }
.product-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--border);
  background: #f8fafc;
}
.product-detail-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 22px; border: 1px solid var(--border);
  background: #f8fafc; box-shadow: 0 18px 45px rgba(15,23,42,.08);
}
.admin-product-thumb {
  width: 76px; height: 52px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border);
  background: #f8fafc;
}
.custom-panel {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.88));
}
.custom-preview {
  min-height: 300px;
  border-radius: 28px;
  border: 1px solid rgba(191,219,254,.9);
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 24px 60px rgba(37,99,235,.12);
}
.custom-line {
  height: 18px; border-radius: 999px; margin-bottom: 14px;
  background: linear-gradient(90deg, #dbeafe, #cffafe);
}
.mini-metric {
  min-height: 88px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
}
.mini-metric b { display:block; font-size: 1.1rem; }
.mini-metric small { color: var(--muted); font-weight: 800; }
.status-new, .status-unpaid { background:#f8fafc; color:#334155; }
.status-reviewing, .status-quoted, .status-approved, .status-in_progress { background:#eff6ff; color:#1d4ed8; }
.status-completed { background:#ecfdf5; color:#047857; }
.status-cancelled { background:#f1f5f9; color:#475569; }

/* Homepage redesign: keep landing page concise */
.mini-value-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15,23,42,.055);
  padding: 24px;
}
.product-card-compact .product-cover { aspect-ratio: 16/8.5; }
.product-card-compact p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.custom-flow-list { display:flex; flex-wrap:wrap; gap:10px; }
.custom-flow-list span {
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--border); border-radius:999px;
  padding:10px 14px; font-weight:900; color:#0f172a;
}
.custom-flow-list i { color:#2563eb; }
.custom-wireframe-compact { min-height: 300px; padding: 14px; }
.custom-wireframe-compact .wireframe-body { min-height: 250px; }
.custom-wireframe-compact .wireframe-main { padding: 16px; }
.portfolio-card-compact p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.portfolio-icon-simple {
  width: 58px; height: 58px; border-radius: 20px;
  background: linear-gradient(135deg,#eff6ff,#e0f2fe);
  border: 1px solid #bfdbfe;
  color: #2563eb;
  display: inline-flex; align-items:center; justify-content:center;
  font-size: 1.45rem;
}
.step-compact {
  height:100%; padding:18px; border:1px solid var(--border); border-radius:20px; background:#f8fafc;
  display:flex; align-items:center; gap:12px; font-weight:900;
}
.step-compact b {
  width:36px; height:36px; border-radius:14px; background:linear-gradient(135deg,#2563eb,#0891b2); color:#fff;
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
}
.payment-compact {
  padding:18px; border:1px solid var(--border); border-radius:24px; background:#fff;
  display:grid; gap:14px; box-shadow: 0 12px 30px rgba(15,23,42,.045);
}
.payment-qr-row { display:flex; gap:12px; }
.payment-qr-row img {
  width:92px; height:92px; object-fit:cover; border-radius:16px; border:1px solid var(--border); background:#fff; padding:5px;
}
.final-cta {
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(14,165,233,.08), rgba(255,255,255,.92));
  border: 1px solid rgba(191,219,254,.8);
  box-shadow: var(--shadow);
  padding: 30px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.portfolio-hero-title { font-size: clamp(2.35rem, 4.8vw, 4.7rem); }

@media (max-width: 991px) {
  .final-cta { flex-direction: column; align-items:flex-start; }
  .custom-wireframe-compact { margin-top: 8px; }
}
@media (max-width: 575px) {
  .hero-actions .btn { width:100%; justify-content:center; }
  .payment-qr-row img { width:78px; height:78px; }
  .final-cta { padding:22px; border-radius:24px; }
}
