
:root {
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
  --text: #f4f7fb;
  --muted: #b4bfd3;
  --accent: #e278ff;
  --accent-2: #6da5ff;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--text); background: #0b0f1a00; }
body {
  background-image: url('../img/milad-fakurian-ZKUn4ixspsk-unsplash.jpg');
  background-size: cover; background-position: center; background-attachment: fixed; position: relative;
}
.bg-overlay { position: fixed; inset: 0; background: radial-gradient(80% 80% at 50% 20%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.85) 100%); pointer-events: none; }
.nav { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); background: rgba(12, 16, 28, 0.35); border-bottom: 1px solid var(--glass-border); z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; color: var(--text); text-decoration: none; }
.brand .logo { height: 28px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.nav a { color: var(--text); text-decoration: none; margin-left: 16px; opacity: .9; }
.nav a:hover { opacity: 1; }
.centered { min-height: 100vh; display: flex; place-items: center; padding: 80px 20px 20px; }
.glass.card { width: 100%; max-width: 520px; padding: 28px; border-radius: 16px; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.4); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); animation: floatIn .6s ease both; }
@keyframes floatIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
h1, h2 { margin-top: 0; margin-bottom: 12px; color: white; }
p { margin: 0 0 14px; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; color: #0b0f1a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 600; transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease; box-shadow: 0 6px 16px rgba(88,140,255,0.35); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.9; }
.btn.outline { background: transparent; color: var(--text); border: 1px solid var(--glass-border); box-shadow: none; }
.btn.full { width: 100%; text-align: center; }
.form-card form { display: grid; gap: 10px; }
label { font-size: 14px; color: var(--muted); }
input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.06); color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input::placeholder { color: #9aa7be; }
input:focus { border-color: rgba(120,170,255,0.7); box-shadow: 0 0 0 3px rgba(120,170,255,0.2); }
.flash-wrap { position: fixed; top: 64px; left: 0; right: 0; display: grid; gap: 8px; place-items: center; padding: 0 16px; z-index: 20; }
.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(20,24,38,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0,0,0,0.35); transition: opacity .5s ease, transform .3s ease; }
.flash.hide { opacity: 0; transform: translateY(-6px); }
.flash.success { border-color: rgba(0,200,120,0.35); }
.flash.danger  { border-color: rgba(255,110,110,0.35); }
.flash.info    { border-color: rgba(120,160,255,0.35); }
.flash.warning { border-color: rgba(255,210,110,0.35); }
@media (max-width: 480px) { .glass.card { padding: 22px; } }
/* Dashboard Grid */
.dashboard-grid { width: 100%; max-width: 1100px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-title { margin: 0 0 8px; }
.kpi-value { font-size: 32px; font-weight: 700; line-height: 1.1; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.preview-box { position: relative; width: 100%; aspect-ratio: 9/16; border-radius: 14px; border: 1px solid var(--glass-border); overflow: hidden; background: linear-gradient(45deg, #0000 25%, #ffffff1a 25%, #ffffff1a 50%, #0000 50%, #0000 75%, #ffffff1a 75%, #ffffff1a) 0 0 / 24px 24px, linear-gradient(45deg, #ffffff1a 25%, #0000 25%, #0000 50%, #ffffff1a 50%, #ffffff1a 75%, #0000 75%, #0000) 12px 12px / 24px 24px, rgba(0,0,0,0.15); }
.preview-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Builder-Layout */
.builder-grid { width: 100%; max-width: 1200px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.preview-card { grid-column: 1 / -1; }
.preview-box--builder { border: 1px solid var(--glass-border); border-radius: 14px; overflow: hidden; }
.preview-iframe { display: block; width: 100%; height: 60vh; border: 0; background: linear-gradient(45deg,#0000 25%,#ffffff14 25%,#ffffff14 50%,#0000 50%,#0000 75%,#ffffff14 75%,#ffffff14) 0 0/24px 24px, linear-gradient(45deg,#ffffff14 25%,#0000 25%,#0000 50%,#ffffff14 50%,#ffffff14 75%,#0000 75%,#0000) 12px 12px/24px 24px, rgba(0,0,0,0.15); }
.grid2 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { padding: 10px 12px; border: 1px solid var(--glass-border); border-radius: 10px; background: rgba(255,255,255,0.04); }

/* Pro Builder Layout */
.builder-pro {
  display: grid;
  gap: 16px;
  grid-template-columns: 360px 1fr;
  width: 100%;
  max-width: 1400px;
}
@media (max-width: 1024px) {
  .builder-pro { grid-template-columns: 1fr; }
}
.side .presetbar { display:flex; gap:8px; flex-wrap:wrap; }
.title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  width: 100%;
  resize: vertical;
  min-height: 160px;
}

/* CSS Variable Controls */
.var-grid { display: grid; gap: 10px; }
.var-grid.empty { display: block; }
.var-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; align-items: center; }
.var-label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.var-ctrl { display: flex; gap: 8px; align-items: center; }
.var-ctrl input[type="range"] { flex: 1 1 auto; }
.var-text { flex: 1 1 auto; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.06); color: var(--text); }
.var-num  { width: 100px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.06); color: var(--text); }
.var-unit { font-size: 12px; color: var(--muted); min-width: 28px; text-align: center; }
.btn.xs { padding: 6px 10px; border-radius: 10px; font-size: 12px; }
    .footer {
      width: 100%;
      padding: 1rem;
      background: rgba(0,0,0,0.7);
      color: #fff;
      font-size: 0.85rem;
      text-align: center;
    
      bottom: 0;
      left: 0;
    }
    .footer-content {
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    /* === Pricing === */
.price-toggle {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 10px;
}
.toggle-btn {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--text); font-weight: 600; cursor: pointer;
}
.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f1a; border-color: transparent;
}
.save-badge {
  font-size: 11px; padding: 2px 6px; border-radius: 8px; margin-left: 6px;
  background: rgba(255,255,255,0.12);
}

.pricing-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.plan {
  position: relative; padding: 16px; border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  display: flex; flex-direction: column; gap: 10px;
}
.plan .plan-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.plan h3 { margin: 0; }
.plan .price { font-size: 28px; font-weight: 800; }
.plan .period { font-size: 12px; color: var(--muted); }

.plan .features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan .features li { font-size: 14px; color: var(--text); opacity: .95; display: flex; align-items: center; gap: 8px; }
.plan .features li::before { content: "✓"; font-weight: 800; }

.plan .btn { margin-top: 6px; }

.plan .popular-badge {
  position: absolute; top: -10px; right: 12px; padding: 6px 10px; border-radius: 10px;
  font-size: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f1a; font-weight: 800; box-shadow: 0 6px 16px rgba(88,140,255,0.35);
}
.plan.popular {
  border-color: rgba(120,170,255,0.5);
  background: linear-gradient(180deg, rgba(120,170,255,0.08), rgba(255,255,255,0.03));
}

.fineprint { margin-top: 6px; text-align: center; }
