/* ==========================================================================
   WA ROTATOR & LINKFIT - UNIFIED PRODUCTION STYLESHEET (HOSTINGER / LARAVEL)
   ========================================================================== */

/* 1. CSS VARIABLES & RESET */
:root {
  --ink: #0c172b;
  --muted: #667085;
  --line: #e4e9ef;
  --green: #13a455;
  --green-dark: #087a40;
  --surface: rgba(255,255,255,.92);
  --surface-strong: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, .07);
  --shadow-lift: 0 24px 70px rgba(15, 23, 42, .12);
  --ring: 0 0 0 4px rgba(16, 185, 129, .14);
  --font-inter: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: #f4f8f7; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 219, 254, .68) 0, transparent 31%),
    radial-gradient(circle at 0% 100%, rgba(187, 247, 208, .62) 0, transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(239,246,255,.62) 45%, rgba(240,253,244,.7)),
    #f4f8f7;
  font-family: var(--font-inter);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
button { cursor: pointer; }

/* 2. BASE CARDS & CONTROLS */
.card {
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.card:hover { box-shadow: var(--shadow-lift); }

.field {
  width: 100%;
  border: 1px solid #d9e2ea;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  padding: .82rem .95rem;
  outline: none;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.field::placeholder { color:#94a3b8; }
.field:focus { border-color: #20b969; box-shadow: var(--ring), inset 0 1px 0 rgba(255,255,255,.9); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 14px;
  background: linear-gradient(135deg,#16a34a,#10b981 52%,#0891b2);
  color: white !important;
  padding: .78rem 1.05rem;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(16,185,129,.18);
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: linear-gradient(135deg,#087a40,#10b981 52%,#0284c7);
  transform: translateY(-2px);
  box-shadow:0 18px 38px rgba(16,185,129,.24);
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid #b8ead5;
  border-radius: 14px;
  background: linear-gradient(135deg,#f0fdf4,#ecfeff);
  color: #087a40 !important;
  padding: .7rem .95rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.btn-soft:hover {
  border-color:#6ee7b7;
  background:#dff8ec;
  color:#05603a !important;
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(16,185,129,.14);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: linear-gradient(135deg,#fef2f2,#fee2e2);
  color: #dc2626 !important;
  padding: .7rem .95rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.btn-danger:hover {
  border-color: #f87171;
  background: #fecaca;
  color: #991b1b !important;
  transform: translateY(-2px);
}

table { border-collapse: separate; border-spacing: 0; }
thead th { letter-spacing:.02em; }

@media (max-width: 640px) {
  .card { border-radius: 14px; box-shadow:0 10px 30px rgba(15,23,42,.06); }
  .field { min-height: 44px; border-radius: 12px; padding:.72rem .82rem; }
  .btn-primary,.btn-soft,.btn-danger { min-height: 44px; border-radius: 12px; padding:.68rem .85rem; }
  main { overflow-x:hidden; }
  table { min-width: 720px; }
}

/* 3. HERO & SPECIAL PANELS */
.linkfit-landing-hero {
  min-height: min(780px, 100svh);
  background:
    linear-gradient(rgba(45, 212, 191, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, .055) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, rgba(34, 211, 238, .22), transparent 27%),
    radial-gradient(circle at 10% 90%, rgba(16, 185, 129, .24), transparent 32%),
    linear-gradient(135deg, #020617 0%, #042f2e 48%, #07152e 100%);
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
}
.linkfit-gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #6ee7b7, #67e8f9, #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
}
.linkfit-auth-future {
  background:
    linear-gradient(rgba(16,185,129,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,.045) 1px, transparent 1px),
    radial-gradient(circle at 80% 12%, rgba(34,211,238,.22), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(16,185,129,.2), transparent 30%),
    #ecfeff;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.uniflow-hero {
  min-height: 900px;
  background:
    linear-gradient(rgba(45,212,191,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,212,191,.045) 1px, transparent 1px),
    radial-gradient(circle at 76% 24%, rgba(34,211,238,.17), transparent 27%),
    radial-gradient(circle at 7% 72%, rgba(16,185,129,.18), transparent 30%),
    linear-gradient(135deg, #020617, #052e2b 52%, #06152d);
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}
.corporate-hero {
  background: radial-gradient(circle at 86% 14%, rgba(16,185,129,.13), transparent 25%), linear-gradient(180deg, #f8fffd 0%, #fff 72%);
}
.corporate-grid { position:absolute; inset:0; pointer-events:none; opacity:.55; background-image:linear-gradient(rgba(15,118,110,.065) 1px, transparent 1px),linear-gradient(90deg, rgba(15,118,110,.065) 1px, transparent 1px); background-size:44px 44px; mask-image:linear-gradient(to bottom,black,transparent 78%); }
.uniflow-gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #6ee7b7 0%, #67e8f9 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.uniflow-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
  animation: linkfit-blob-drift 8s ease-in-out infinite;
}
.uniflow-orb-one { right: -120px; top: 160px; width: 360px; height: 360px; background: rgba(34,211,238,.09); }
.uniflow-orb-two { left: -100px; bottom: 0; width: 300px; height: 300px; background: rgba(16,185,129,.11); animation-delay: -3s; }
.uniflow-console { animation: linkfit-float-soft 6s ease-in-out infinite; }
.uniflow-flow-row { animation: uniflow-row-pulse 3.6s ease-in-out infinite; }

/* 4. PHONE MOCKUP FOR BIO LINK */
.linkfit-phone-wrap { animation: linkfit-float-soft 5.8s ease-in-out infinite; }
.linkfit-phone-shell {
  position: relative;
  isolation: isolate;
  width: min(330px, 82vw);
  aspect-ratio: 390 / 780;
  margin-inline: auto;
  overflow: hidden;
  border: 4px solid #080d20;
  border-radius: 48px;
  background: #f8fbff;
  box-shadow: 0 35px 85px rgba(8, 13, 32, .28);
  transform: rotate(-1.5deg);
}
.linkfit-phone-notch {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: 142px;
  height: 34px;
  border-radius: 0 0 20px 20px;
  background: #080d20;
  transform: translateX(-50%);
}
.linkfit-phone-screen {
  position: absolute;
  inset: 48px 14px 50px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 96%, rgba(16, 185, 129, .22), transparent 34%),
    linear-gradient(135deg, #effcff 0%, #ffffff 42%, #f2fff6 100%);
}
.linkfit-phone-cover {
  position: relative;
  z-index: 1;
  display: flex;
  height: 116px;
  margin: 18px 18px 0;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 35%, rgba(59,130,246,.9), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(251,146,60,.95), transparent 27%),
    linear-gradient(110deg, #0f172a 0%, #2563eb 45%, #f97316 100%);
  color: #fff;
  padding: 14px;
}
.linkfit-phone-profile {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding-inline: 18px;
  text-align: center;
}
.linkfit-phone-links {
  display: grid;
  gap: 10px;
  margin: 16px 18px 0;
}
.linkfit-phone-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e8eef5;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  padding: 11px 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

/* 5. SIDEBAR STYLES */
.app-sidebar { box-shadow:18px 0 55px rgba(3,48,43,.22); }
.admin-sidebar,.user-sidebar {
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),transparent 16%),
    linear-gradient(165deg,#2f9a8d 0%,#177b70 34%,#11715f 66%,#18a95f 100%) !important;
}
.admin-sidebar {
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),transparent 18%),
    linear-gradient(165deg,#267d79 0%,#10695f 42%,#075f56 72%,#129653 100%) !important;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: 14px;
  color: #e6fff4;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  transition: all .2s ease;
}
.sidebar-link:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateX(4px);
}
.sidebar-link.is-active {
  background: rgba(255,255,255,.24);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* 6. SMARTLINK & DASHBOARD PANELS */
.smartlink-hero {
  isolation:isolate;
  border: 1px solid rgba(103,232,249,.2) !important;
  background:linear-gradient(125deg,#061b2b 0%,#064e3b 48%,#1648a8 100%) !important;
  color:#fff !important;
  border-radius: 24px;
  padding: 1.75rem;
}
.admin-command-hero {
  position:relative;
  isolation:isolate;
  display:grid;
  gap:1.5rem;
  overflow:hidden;
  border:1px solid rgba(125,211,252,.22);
  border-radius:28px;
  background:linear-gradient(135deg,#020617 0%,#072f2a 48%,#1d4ed8 100%);
  color:#fff;
  padding:1.5rem;
  box-shadow:0 28px 80px rgba(15,23,42,.22);
}

/* 7. ANIMATIONS */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-in { from { opacity:0; transform:translateY(24px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes orb { 50% { transform:translate(-20px, 28px) scale(1.12); } }
@keyframes drift { 50% { transform:translate(35px,-28px) scale(1.12) rotate(12deg); } }
@keyframes spin-slow { to { transform:rotate(360deg); } }
@keyframes landing-pulse { 70% { box-shadow:0 0 0 9px rgba(110,231,183,0); } }
@keyframes linkfit-float-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes linkfit-blob-drift { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(12px,-16px,0) scale(1.05); } }
@keyframes uniflow-row-pulse { 0%,100% { border-color: rgba(255,255,255,.1); transform: translateX(0); } 50% { border-color: rgba(52,211,153,.35); transform: translateX(3px); } }

.fade-up { animation: fade-up .55s ease both; }
.float-card { animation: float-in .7s cubic-bezier(.2,.8,.2,1) both; }

/* 8. BIO THEMES ENGINE */
.bio-theme-clean { background: #f8fafc; color: #0f172a; }
.bio-theme-minimal-light { background: #ffffff; color: #1e293b; }
.bio-theme-dark { background: #0b1120; color: #f8fafc; }
.bio-theme-neon { background: #030712; color: #22d3ee; }
.bio-theme-sunset { background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%); color: #fff; }
.bio-theme-cyber { background: #050505; color: #39ff14; }
.bio-theme-glassmorphism { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); color: #fff; }
.bio-theme-pastel { background: #fdf2f8; color: #831843; }

/* 9. TAILWIND CORE UTILITY SET (STANDALONE REPLACEMENT) */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

.bg-white { background-color: #ffffff; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-700 { background-color: #047857; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }

.text-white { color: #ffffff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-rose-600 { color: #e11d48; }
.text-blue-600 { color: #2563eb; }
.text-amber-600 { color: #d97706; }

.border { border-width: 1px; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-500 { border-color: #10b981; }
