/* FastNestBD-style custom CSS */
:root {
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --bg: #f8fafc;
  --text: #0f172a;
  --border: #dbeafe;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; background: var(--bg); font-family: 'Inter', sans-serif; color: var(--text); }
main { position: relative; z-index: 1; }

/* Hero */
.hero-bg { background: linear-gradient(160deg, #1e3a8a 0%, var(--brand) 55%, #3b82f6 100%); position: relative; overflow: hidden; }
.hero-bg::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px; z-index:0; pointer-events:none;
}
.hero-bg > * { position: relative; z-index: 1; }

/* Header panel */
.glass-panel { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(37,99,235,0.08); box-shadow: 0 1px 3px rgba(15,23,42,0.03); }

/* Nav link */
.nav-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.875rem; color: #1e293b; padding: 0.5rem 0; transition: color 0.2s; }
.nav-link:hover { color: var(--brand); }
.nav-link svg { width: 1rem; height: 1rem; }

/* Login / ghost buttons */
.btn-login {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .825rem; font-weight: 800; color: #fff;
  padding: .55rem 1.1rem; border-radius: .75rem; border: 1px solid var(--brand-dark);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 4px 12px rgba(37,99,235,0.28); transition: all .22s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }
.btn-login svg { width: 1rem; height: 1rem; }
.btn-ghost { font-size: .825rem; font-weight: 700; color: var(--brand); padding: .55rem 1rem; border-radius: .75rem; border: 1px solid var(--border); }
.btn-ghost:hover { background: #eff6ff; }

/* Hamburger */
.hamburger-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: .75rem; background: linear-gradient(135deg,#eff6ff,#dbeafe); border: 1px solid #bfdbfe; cursor: pointer; }
.hamburger-btn span { display: block; height: 2.5px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), #3b82f6); }
.hamburger-btn span:nth-child(1), .hamburger-btn span:nth-child(3) { width: 20px; }
.hamburger-btn span:nth-child(2) { width: 14px; }

/* Sidebar */
.sidebar { transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.sidebar.open { transform: translateX(0); }
.sidebar-overlay { background: rgba(15,23,42,.55); backdrop-filter: blur(6px); }
.sidebar-nav-link { display: flex; align-items: center; gap: .85rem; padding: .8rem .9rem; border-radius: .85rem; font-weight: 700; font-size: .9rem; color: #1e293b; transition: all .22s; }
.sidebar-nav-link:hover { background: #eff6ff; color: var(--brand); }
.sidebar-nav-link .ico { width: 2.15rem; height: 2.15rem; border-radius: .65rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-nav-link .ico svg { width: 1.05rem; height: 1.05rem; color: #fff; }

/* Pricing / why cards */
.pricing-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 1.25rem;
  padding: 1.6rem; transition: all .35s; display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-6px); border-color: #3b82f6; box-shadow: 0 20px 44px rgba(37,99,235,.16); }
.pricing-card.featured { border-color: #3b82f6; box-shadow: 0 20px 44px rgba(37,99,235,.18); }
.badge-popular {
  position: absolute; top: 0; right: 0; background: var(--brand); color: #fff;
  font-size: 9px; font-weight: 900; padding: .35rem .75rem;
  border-bottom-left-radius: .8rem; border-top-right-radius: 1.25rem;
  letter-spacing: .1em;
}

.why-card { background: #fff; border: 1px solid var(--border); border-radius: 1.15rem; padding: 1.75rem; transition: all .3s; }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(37,99,235,.1); border-color: #93c5fd; }

/* Marketplace */
.mk-card { background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1.3rem; transition: .25s; }
.mk-card:hover { border-color: #3b82f6; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37,99,235,.15); }
.mk-card h3 { color: var(--brand); font-weight: 800; font-family: 'Plus Jakarta Sans',sans-serif; word-break: break-all; margin-bottom: .25rem; }
.mk-price { font-size: 1.6rem; font-weight: 900; color: #059669; margin: .5rem 0; }
.mk-cat   { display: inline-block; background: #eff6ff; color: var(--brand); padding: .15rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.mk-desc  { color: #64748b; font-size: .9rem; min-height: 2.5em; margin-bottom: .5rem; }
.mk-seller{ color: #94a3b8; font-size: .8rem; margin-bottom: .75rem; }

/* Buttons & inputs */
.btn-primary {
  display: inline-block; padding: .75rem 1.4rem; border-radius: .85rem; font-weight: 800; font-size: .875rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(37,99,235,.3); transition: all .2s; text-align: center;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.45); }

.inp {
  width: 100%; padding: .8rem 1rem; border-radius: .75rem; border: 1px solid var(--border);
  background: #fff; font-size: .9rem; font-family: inherit;
}
.inp:focus { outline: 2px solid var(--brand); }

/* Alerts */
.alert { padding: 1rem 1.2rem; border-radius: .85rem; font-weight: 700; margin-bottom: 1rem; }
.alert.success { background: rgba(34,197,94,.12); color: #15803d; border: 1px solid rgba(34,197,94,.3); }
.alert.error   { background: rgba(239,68,68,.12); color: #b91c1c; border: 1px solid rgba(239,68,68,.3); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: .9rem; overflow: hidden; border: 1px solid var(--border); }
.tbl th, .tbl td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .875rem; }
.tbl th { background: #eff6ff; color: var(--brand-dark); font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.tbl tr:last-child td { border-bottom: none; }

/* Badges */
.badge { padding: .25rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.badge.pending,   .badge.available { background: #fef3c7; color: #92400e; }
.badge.active,    .badge.sold      { background: #dcfce7; color: #166534; }
.badge.cancelled                   { background: #fee2e2; color: #991b1b; }
.badge.hosting                     { background: #dbeafe; color: #1e40af; }
.badge.domain                      { background: #ede9fe; color: #5b21b6; }

/* Chips */
.chip {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: .8rem; font-weight: 700; color: #475569; transition: all .2s;
}
.chip:hover { color: var(--brand); border-color: #93c5fd; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Stat cards */
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1.3rem; text-align: center; }
.stat-card h3 { font-size: 1.6rem; font-weight: 900; color: var(--brand); font-family: 'Plus Jakarta Sans',sans-serif; }
.stat-card p  { color: #64748b; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* Floats */
@keyframes fnbFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
.float-animation { animation: fnbFloat 5s ease-in-out infinite; }

/* WhatsApp FAB */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .25s;
}
.wa-fab:hover { transform: scale(1.08); }

/* Footer link */
.footer-link { color: #64748b; transition: color .2s; font-weight: 600; }
.footer-link:hover { color: var(--brand); }

/* Utility */
img { max-width: 100%; }
.fade-element { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.fade-element.is-visible { opacity: 1; transform: translateY(0); }