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

/* =====================================================================
   FIXBIT GLOBAL THEME SYSTEM
   All colors flow from CSS variables. No hardcoded hex in components.
   ===================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --accent: #14b8a6;
  --accent-hover: #0d9488;

  /* Brand */
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-400: #2dd4bf;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-900: #134e4a;

  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;

  /* Semantic UI — Light */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-rgb: 255, 255, 255;
  --bg-surface-hover: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --card-border: #e2e8f0;
  --divider: #e2e8f0;
  --heading-color: #0f172a;
  --label-color: #475569;
  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --input-placeholder: #94a3b8;
  --input-text: #0f172a;

  /* Badges — Light */
  --badge-teal-bg: #ccfbf1;
  --badge-teal-text: #0f766e;
  --badge-orange-bg: rgba(249, 115, 22, .15);
  --badge-orange-text: #ea580c;
  --badge-slate-bg: #f1f5f9;
  --badge-slate-text: #475569;
  --badge-green-bg: rgba(22, 163, 74, .12);
  --badge-green-text: #16a34a;
  --badge-red-bg: rgba(220, 38, 38, .12);
  --badge-red-text: #dc2626;

  /* Tab bar */
  --tab-bar-bg: #f1f5f9;
  --tab-active-bg: #ffffff;
  --tab-text: #64748b;
  --tab-active-text: #0f766e;

  /* Table */
  --table-header-bg: #f8fafc;
  --table-header-text: #475569;
  --table-row-bg: #ffffff;
  --table-row-hover: #f8fafc;

  /* Device card illustrations */
  --dc-phone-from: #ecfdf5;
  --dc-phone-to: #d1fae5;
  --dc-tablet-from: #eff6ff;
  --dc-tablet-to: #dbeafe;
  --dc-laptop-from: #fdf4ff;
  --dc-laptop-to: #ede9fe;

  /* Slate scale */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, .08), 0 8px 10px -6px rgba(15, 23, 42, .04);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, .15);
  --shadow-teal: 0 8px 24px rgba(13, 148, 136, .25);
  --shadow-orange: 0 8px 24px rgba(249, 115, 22, .25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --sidebar-bg: #ffffff;
  --sidebar-text: #1e293b;
  --sidebar-text-muted: #64748b;
  --sidebar-hover: #f1f5f9;
  --sidebar-active-bg: rgba(20, 184, 166, .12);
  --sidebar-border: #e2e8f0;
  --hero-overlay: rgba(0, 0, 0, .35);
  --overlay-backdrop: rgba(2, 6, 23, .62);
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
}




/* ===================================================================
   RESET & BASE
   =================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: clamp(0.92rem, 0.9rem + 0.15vw, 1rem);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading-color);
}

h1 {
  font-size: clamp(1.9rem, 1.45rem + 1.8vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.2rem);
}

h3 {
  font-size: clamp(1.15rem, 1.03rem + 0.55vw, 1.5rem);
}

p,
li,
span,
label,
input,
textarea,
select,
button {
  font-size: clamp(0.86rem, 0.84rem + 0.2vw, 0.98rem);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(.92)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0
  }

  100% {
    background-position: 200% 0
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0)
  }

  33% {
    transform: translateY(-12px) rotate(1deg)
  }

  66% {
    transform: translateY(-6px) rotate(-1deg)
  }
}

@keyframes floatReverse {

  0%,
  100% {
    transform: translateY(0) rotate(0)
  }

  33% {
    transform: translateY(-8px) rotate(-1deg)
  }

  66% {
    transform: translateY(-14px) rotate(1deg)
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(13, 148, 136, .4)
  }

  50% {
    box-shadow: 0 0 40px rgba(13, 148, 136, .7), 0 0 80px rgba(13, 148, 136, .2)
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(.5) translateY(20px)
  }

  70% {
    transform: scale(1.08) translateY(-4px)
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

.animate-fadeUp {
  animation: fadeUp .65s ease both;
}

.animate-fadeIn {
  animation: fadeIn .5s ease both;
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-floatR {
  animation: floatReverse 6s ease-in-out infinite;
}

.anim-delay-1 {
  animation-delay: .1s
}

.anim-delay-2 {
  animation-delay: .25s
}

.anim-delay-3 {
  animation-delay: .4s
}

.anim-delay-4 {
  animation-delay: .55s
}

.anim-delay-5 {
  animation-delay: .7s
}

/* ===================================================================
   UTILITIES
   =================================================================== */
.gradient-text {
  background: linear-gradient(135deg, var(--teal-400), var(--orange-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .45);
}

.glass-panel {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-2xl);
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-hover) 25%, var(--border-color) 50%, var(--bg-surface-hover) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}


/* ===================================================================
   BUTTONS  — text on gradient/solid accent buttons is always #fff
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .62rem 1.35rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background .2s;
}

.btn:hover::after {
  background: rgba(255, 255, 255, .08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #ffffff;
  /* always white — never use a variable here */
  box-shadow: var(--shadow-teal);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(13, 148, 136, .5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--teal-600);
  border: 1.5px solid rgba(13, 148, 136, .35);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-light);
  color: var(--text-main);
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #ffffff;
  /* always white */
  box-shadow: var(--shadow-orange);
  font-weight: 600;
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(249, 115, 22, .5);
}

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #59624f;
  border: 1.5px solid rgba(255, 255, 255, .2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .35);
}

.btn-lg {
  padding: .9rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.btn-sm {
  padding: .38rem .85rem;
  font-size: .81rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  z-index: 1;
}

/* ===================================================================
   BADGES
   =================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.badge-teal {
  background: var(--badge-teal-bg);
  color: var(--badge-teal-text);
}

.badge-orange {
  background: var(--badge-orange-bg);
  color: var(--badge-orange-text);
}

.badge-slate {
  background: var(--badge-slate-bg);
  color: var(--badge-slate-text);
}

.badge-green {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.badge-red {
  background: var(--badge-red-bg);
  color: var(--badge-red-text);
}

/* ===================================================================
   FORMS
   =================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.15rem;
}

.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--label-color);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--input-text);
  background: var(--input-bg);
  transition: all .22s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--input-placeholder);
}


.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-input {
  padding-left: 2.6rem;
}

.input-icon-wrap .icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 1rem;
}

/* ===================================================================
   CARDS
   =================================================================== */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.card h3,
.card p,
.request-card h4,
.request-card p,
.profile-title h3,
.sidebar-user-info .name {
  overflow-wrap: anywhere;
}

.card-hover {
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}

.card-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: background .3s;
  pointer-events: none;
}

.card-hover:hover::before {
  background: linear-gradient(135deg, var(--teal-400), var(--orange-400));
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
}

/* ===================================================================
   REQUEST CARD
   =================================================================== */
.request-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
  padding: 1.25rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.request-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: background .35s;
  pointer-events: none;
}

.request-card:hover::before {
  background: linear-gradient(135deg, var(--teal-400), var(--orange-400));
}

.request-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.request-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity .3s;
}

.request-card:hover::after {
  opacity: 1;
}

/* ===================================================================
   STAT CARD
   =================================================================== */
.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.stat-card .stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -.03em;
}

.stat-card .stat-label {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .15rem;
  font-weight: 500;
}

/* ===================================================================
   PRICE TAG
   =================================================================== */
.price-tag {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-600);
  letter-spacing: -.03em;
}

/* ===================================================================
   AUTH
   =================================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, .12), transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, .08), transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.auth-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 440px;
  padding: 2.25rem;
  animation: fadeUp .5s ease;
  position: relative;
  z-index: 1;
  border: 1px solid var(--card-border);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.8rem;
}

.auth-logo h1 {
  font-size: 1.95rem;
  color: var(--teal-600);
  letter-spacing: -.03em;
  -webkit-text-fill-color: unset;
}

.auth-logo p {
  color: var(--text-muted);
  font-size: .88rem;
  margin-top: .25rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.25rem 0;
  color: var(--text-light);
  font-size: .8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.error-message {
  background: var(--badge-red-bg);
  border: 1px solid rgba(220, 38, 38, .3);
  color: var(--badge-red-text);
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  margin-bottom: 1rem;
}

/* ===================================================================
   DASHBOARD
   =================================================================== */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 10px 0 30px rgba(15, 23, 42, .04);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(13, 148, 136, .12), transparent);
  pointer-events: none;
}

.sidebar-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-400);
  padding: .5rem .5rem 1.5rem;
  letter-spacing: -.02em;
  position: relative;
}

.sidebar-logo::after {
  content: '';
  position: absolute;
  bottom: .75rem;
  left: .5rem;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-500), transparent);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem;
  background: var(--bg-surface-hover);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sidebar-border);
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 148, 136, .3);
}

.sidebar-user-info .name {
  font-weight: 600;
  font-size: .9rem;
  color: #f1f5f9;
  line-height: 1.2;
}

.sidebar-user-info .name {
  color: var(--sidebar-text);
}

.sidebar-user-info .role {
  font-size: .75rem;
  color: var(--sidebar-text-muted);
  margin-top: .1rem;
}

nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: .87rem;
  font-weight: 500;
  color: var(--sidebar-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  width: 100%;
  position: relative;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--accent);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--teal-400);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
}

.dash-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.dash-topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04);
}

.dash-topbar h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -.02em;
}

.dash-topbar .sub {
  font-size: .82rem;
  color: var(--text-light);
  margin-top: .1rem;
}

.dash-content {
  padding: 2rem;
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ===================================================================
   TAB BAR
   =================================================================== */
.tab-bar {
  display: flex;
  background: var(--tab-bar-bg);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: .5rem 1rem;
  border-radius: 9px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: var(--tab-text);
  background: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--tab-active-bg);
  color: var(--tab-active-text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

/* ===================================================================
   RADIUS SELECTOR
   =================================================================== */
.radius-selector {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.radius-btn {
  padding: .45rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.radius-btn.selected {
  border-color: var(--teal-500);
  background: var(--teal-50);
  color: var(--teal-700);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .1);
}

.radius-btn:hover:not(.selected) {
  border-color: var(--teal-300);
}

/* ===================================================================
   FILE UPLOAD
   =================================================================== */
.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  background: var(--bg-surface-hover);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: var(--teal-400);
  background: var(--teal-50);
}

.file-upload-area input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.file-upload-area .icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: .6rem;
}

.file-upload-area p {
  font-size: .82rem;
  color: var(--text-light);
}

/* ===================================================================
   TOAST
   =================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 9999;
}

.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  border-radius: 14px;
  background: var(--slate-800);
  color: #f1f5f9;
  font-size: .85rem;
  box-shadow: var(--shadow-2xl);
  animation: slideInLeft .3s cubic-bezier(.34, 1.56, .64, 1);
  max-width: 320px;
  min-width: 240px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.toast.success {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-800));
  color: #ffffff;
}

.toast.error {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
}

.toast.info {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

/* ===================================================================
   MAP
   =================================================================== */
#map {
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  margin: .8rem 0;
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.16), transparent 28%),
    radial-gradient(circle at 15% 85%, rgba(249, 115, 22, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #eefaf8 52%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes gradientPan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.42));
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: 1rem;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center;
  gap: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18), 0 28px 60px rgba(15, 23, 42, 0.10);
}

.hero-visual-frame::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -1;
  border-radius: 2.5rem;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, rgba(45, 212, 191, 0) 70%);
  filter: blur(24px);
}

.hero-visual-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 2rem;
  border: 4px solid rgba(255,255,255,0.72);
}

.hero-visual-tint {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.45rem;
  border-radius: 1.45rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.62));
  border: 1px solid rgba(255,255,255,0.70);
  backdrop-filter: blur(16px);
  color: var(--heading-color);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}

.hero-chip-left {
  left: -1.75rem;
}

.hero-chip-right {
  right: -1.75rem;
}

.hero-chip-phone {
  top: 20%;
}

.hero-chip-laptop {
  top: -0.5rem;
}

.hero-chip-tablet {
  bottom: 18%;
}

.hero-chip-status {
  top: 40%;
}

.hero-chip-icon {
  font-size: 1.15rem;
}

.hero-chip-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.65);
  flex-shrink: 0;
}

/* ===================================================================
   SECTION HEADINGS
   =================================================================== */
.section-eyebrow {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--teal-600);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}

.section-sub {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ===================================================================
   HOW IT WORKS
   =================================================================== */
.how-section {
  padding: 6rem 5vw;
  background: var(--bg-surface);
  position: relative;
}

.how-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: calc(16.67% + 2rem);
  right: calc(16.67% + 2rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-300) 0, var(--teal-300) 8px, transparent 8px, transparent 18px);
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}

.step-card {
  text-align: center;
  padding: 2.2rem 1.75rem;
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-md);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  z-index: 1;
}

.step-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: transparent;
}

.step-card:hover .step-icon {
  transform: scale(1.12) rotate(-5deg);
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.4rem;
  transition: all .35s;
}

.icon-teal {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  box-shadow: 0 8px 20px rgba(13, 148, 136, .3);
}

.icon-orange {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 8px 20px rgba(249, 115, 22, .3);
}

.icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 8px 20px rgba(139, 92, 246, .3);
}

.step-num {
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
  color: var(--teal-500);
}

.step-card h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: .6rem;
}

.step-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   DEVICE SHOWCASE
   =================================================================== */
.device-section {
  padding: 6rem 5vw;
  background: var(--bg-main);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.device-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}

.device-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .5) 100%);
  opacity: 0;
  transition: opacity .4s;
  z-index: 1;
}

.device-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.device-card:hover::before {
  opacity: 1;
}

.device-card:hover .device-card-illustration {
  transform: scale(1.06) translateY(-6px);
}

.device-card:hover .device-card-label {
  opacity: 1;
  transform: translateY(0);
}

.device-card-illustration {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  transition: transform .45s;
}

.device-card-body {
  padding: 1.5rem;
}

.device-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--heading-color);
}

.device-card-body p {
  font-size: .83rem;
  color: var(--text-muted);
}

.device-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all .35s;
  z-index: 2;
  text-align: center;
}

.dc-phone .device-card-illustration {
  background: linear-gradient(135deg, var(--dc-phone-from), var(--dc-phone-to));
}

.dc-tablet .device-card-illustration {
  background: linear-gradient(135deg, var(--dc-tablet-from), var(--dc-tablet-to));
}

.dc-laptop .device-card-illustration {
  background: linear-gradient(135deg, var(--dc-laptop-from), var(--dc-laptop-to));
}

/* ===================================================================
   FEATURE SECTION
   =================================================================== */
.features-section {
  padding: 6rem 5vw;
  background: var(--bg-surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: 1.8rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--card-border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, .04), rgba(249, 115, 22, .04));
  opacity: 0;
  transition: opacity .3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--teal-200);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--badge-teal-bg);
  border: 1.5px solid var(--badge-teal-bg);
  transition: all .3s;
}

.feature-card:hover .icon-wrap {
  transform: rotate(-8deg) scale(1.1);
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: .4rem;
}

.feature-card p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   CTA SECTION
   =================================================================== */
.cta-section {
  padding: 6rem 5vw;
  background: linear-gradient(135deg, var(--teal-900) 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, .2), transparent 70%);
  right: -150px;
  top: -150px;
}

/* ===================================================================
   DIST BADGE
   =================================================================== */
.dist-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--bg-surface-hover);
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

/* ===================================================================
   LIGHTBOX
   =================================================================== */
#imageLightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  transition: background .35s;
  backdrop-filter: blur(0);
}

#imageLightbox.lb-open {
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(20px);
}

#imageLightbox.lb-open #lightboxImage {
  opacity: 1;
  transform: scale(1);
}

#lightboxImage {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: scale(.88);
  transition: opacity .35s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.lb-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(8px);
}

.lb-close-btn:hover {
  background: rgba(255, 255, 255, .2);
  transform: scale(1.1);
}

/* ===================================================================
   EMPTY STATES
   =================================================================== */
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.empty-state svg {
  opacity: .6;
}

.empty-state .empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.empty-state .empty-desc {
  font-size: .85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

/* ===================================================================
   CHAT
   =================================================================== */
.chat-modal-inner {
  background: var(--bg-surface);
  width: 100%;
  max-width: 500px;
  height: 70vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--card-border);
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading-color);
}

.chat-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: var(--bg-surface-hover);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all .2s;
}

.chat-close-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.chat-bubble {
  max-width: 75%;
  padding: .6rem .9rem;
  border-radius: 14px;
  font-size: .87rem;
  line-height: 1.5;
}

.chat-bubble.sent {
  background: var(--teal-500);
  color: #ffffff;
  align-self: flex-end;
  border-radius: 14px 14px 2px 14px;
}

.chat-bubble.received {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  align-self: flex-start;
  border-radius: 14px 14px 14px 2px;
  border: 1px solid var(--border-color);
}

.chat-footer {
  padding: .9rem;
  border-top: 1px solid var(--divider);
  display: flex;
  gap: .5rem;
}

.chat-input {
  flex: 1;
  padding: .6rem 1rem;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
  background: var(--input-bg);
  color: var(--input-text);
}

.chat-input::placeholder {
  color: var(--input-placeholder);
}

.chat-input:focus {
  border-color: var(--teal-400);
}

/* ===================================================================
   TABLES
   =================================================================== */
table {
  border-collapse: collapse;
  width: 100%;
}

table thead tr th {
  color: var(--table-header-text);
  font-weight: 700;
  background: var(--table-header-bg);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

table tbody tr td {
  color: var(--text-main);
  background: var(--table-row-bg);
  padding: .75rem 1rem;
  font-size: .88rem;
  border-bottom: 1px solid var(--border-color);
}

table tbody tr:hover td {
  background: var(--table-row-hover);
}

/* ===================================================================
   PROFILE
   =================================================================== */
.profile-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  width: 100%;
  box-sizing: border-box;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.profile-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange-300);
  box-shadow: var(--shadow-md);
}

.profile-image-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--orange-500);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  transition: all .2s;
  border: 2px solid var(--bg-surface);
}

.profile-image-upload-btn:hover {
  background: var(--orange-600);
  transform: scale(1.05);
}

.profile-title h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: .2rem;
}

.profile-title p {
  color: var(--text-muted);
  font-size: .9rem;
}

.profile-form {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.shop-gallery-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

.shop-gallery-section h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.shop-gallery {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.shop-gallery img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}

.shop-gallery img:hover {
  transform: scale(1.05);
}

.gallery-upload-btn {
  margin-top: .5rem;
  cursor: pointer;
}

/* ===================================================================
   SCROLL DOWN
   =================================================================== */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: rgba(255, 255, 255, .35);
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
  z-index: 2;
}

/* ===================================================================
   MAP MARKERS
   =================================================================== */
.user-location-marker,
.shop-marker {
  background: transparent;
}

#tab-profile {
  width: 100%;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-2xl);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 49;
    backdrop-filter: blur(2px);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .dash-main {
    margin-left: 0;
  }

  .dash-topbar {
    padding: .9rem 1.25rem;
    align-items: flex-start;
    gap: .75rem;
  }

  .dash-content {
    padding: 1.25rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn-primary-gradient,
  .hero-buttons .btn-outline-transparent {
    width: 100%;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    display: none;
  }

  .feature-boxes {
    flex-direction: column;
    align-items: stretch;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps-grid::before {
    display: none;
  }

  .device-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card,
  .auth-card,
  .request-card,
  .profile-container {
    border-radius: var(--radius-md);
  }

  .request-card {
    padding: 1rem;
  }

  .btn {
    white-space: normal;
  }

  .chat-modal-inner {
    height: 82vh;
    max-width: 100%;
  }

  .chat-input {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .profile-container {
    padding: 1rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: .75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-image {
    width: 80px;
    height: 80px;
  }

  .shop-gallery img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .auth-page {
    padding: 1rem;
    align-items: flex-start;
  }

  .auth-card {
    padding: 1.25rem;
  }

  .dash-topbar {
    padding: .85rem 1rem;
  }

  .dash-topbar h2 {
    font-size: 1.05rem;
  }

  .price-tag {
    font-size: 1.2rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .chat-bubble {
    max-width: 88%;
  }
}

/* ===================================================================
   RESPONSIVE ENHANCEMENTS
   =================================================================== */
html {
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img {
  display: block;
}

.form-input,
.form-select,
.form-textarea,
.chat-input {
  font-size: 16px;
}

.btn,
.nav-item,
.chat-close-btn {
  touch-action: manipulation;
}

.auth-page.auth-page-compact-top {
  align-items: flex-start;
  padding-top: 2rem;
}

.auth-orb {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.auth-orb-teal {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal-500) 12%, transparent), transparent 70%);
  top: -100px;
  right: -100px;
}

.auth-orb-orange {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--orange-500) 8%, transparent), transparent 70%);
  bottom: -50px;
  left: -80px;
}

.auth-brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  justify-content: center;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: .7;
  transition: opacity .2s;
  z-index: 10;
}

.password-toggle:hover {
  opacity: 1;
}

.landing-page {
  overflow-x: clip;
}

.landing-navbar {
  position: fixed;
  width: 100%;
  z-index: 100;
  top: 0;
  background: rgba(var(--bg-surface-rgb, 255,255,255), 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  transition: all .3s;
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

.landing-nav-logo {
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--teal-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.03em;
  transition: color .2s;
}

.landing-nav-logo svg {
  transition: transform .3s;
}

.landing-nav-logo:hover svg {
  transform: rotate(-15deg) scale(1.1);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav-login {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s;
}

.landing-nav-login:hover {
  color: var(--teal-600);
  background: var(--bg-surface-hover);
}

.landing-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.landing-mobile-overlay {
  display: none;
}

.landing-mobile-overlay.show {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 98;
  backdrop-filter: blur(4px);
}

.landing-mobile-panel {
  display: none;
}

.landing-mobile-panel.show {
  display: flex;
  position: fixed;
  top: 84px;
  left: 16px;
  right: 16px;
  z-index: 99;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-2xl);
}

.landing-mobile-panel .nav-login,
.landing-mobile-panel .nav-cta {
  width: 100%;
  justify-content: center;
}

.landing-section {
  padding: clamp(4.5rem, 8vw, 5.5rem) 24px;
}

.landing-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-shell-narrow {
  max-width: 1050px;
  margin: 0 auto;
}

.landing-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.landing-head .section-title,
.landing-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(45, 212, 191, .22);
  color: var(--teal-700);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--heading-color);
}

.hero-title-accent {
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-text {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  cursor: pointer;
  text-align: center;
  padding: 40px 24px;
}

.category-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform .3s;
}

.category-card:hover .category-icon {
  transform: scale(1.12) rotate(-5deg);
}

.category-card .badge {
  margin-top: 16px;
}

.landing-head {
  margin-bottom: 48px;
}

.landing-head.centered {
  text-align: center;
}

.landing-head.centered .section-eyebrow {
  justify-content: center;
}

.landing-head.centered .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.landing-shop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-link {
  color: var(--teal-600);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}

.landing-link:hover {
  text-decoration: underline;
}

.landing-socials {
  display: flex;
  gap: 16px;
}

.landing-socials a {
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}

.landing-socials a:hover {
  color: #2dd4bf;
}

.landing-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-2xl);
  padding: 28px;
  border-radius: 24px;
  width: 100%;
  max-width: 340px;
  margin: 16px;
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1);
}

.landing-modal-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--heading-color);
  font-family: 'Poppins', sans-serif;
}

.landing-modal-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: all .2s;
}

.landing-modal-option + .landing-modal-option {
  margin-top: 12px;
}

.landing-modal-option.user {
  background: linear-gradient(135deg, var(--teal-50), transparent);
  border: 1.5px solid var(--teal-100);
}

.landing-modal-option.user:hover {
  border-color: var(--teal-400);
}

.landing-modal-option.shop {
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
}

.landing-modal-option.shop:hover {
  border-color: var(--orange-400);
}

.landing-modal-option-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.landing-modal-option strong {
  display: block;
  font-size: .95rem;
}

.landing-modal-option.user strong {
  color: var(--teal-700);
}

.landing-modal-option.shop strong {
  color: var(--text-main);
}

.landing-modal-option span {
  font-size: .78rem;
  color: var(--text-muted);
}

.landing-modal-cancel {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}

.landing-modal-cancel:hover {
  background: var(--bg-surface-hover);
}

.floating-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.floating-input {
  width: 100%;
  padding: 1.3rem 1rem 0.5rem 2.8rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  color: var(--input-text);
  outline: none;
  transition: all 0.2s;
}

.floating-input.no-icon {
  padding-left: 1rem;
}

.floating-input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}

.floating-input.has-toggle {
  padding-right: 44px;
}

.floating-label {
  position: absolute;
  left: 2.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--input-placeholder);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

.floating-input.no-icon ~ .floating-label {
  left: 1rem;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: 0.4rem;
  transform: translateY(0);
  font-size: 0.75rem;
  color: var(--teal-600);
  font-weight: 500;
}

.floating-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.7;
}

.success-tick {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 1.1rem;
}

.floating-input:valid:not(:placeholder-shown) ~ .success-tick {
  opacity: 1;
}

.progress-track {
  height: 6px;
  background: var(--bg-surface-hover);
  border-radius: 99px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-400), var(--orange-400));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

.form-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}

.password-toggle:hover {
  opacity: 1;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  width: min(100%, 460px);
  padding: 1.25rem;
  border-radius: 20px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--slate-500);
}

.modal-title {
  font-size: 1.25rem;
  margin-bottom: .35rem;
  color: var(--slate-800);
}

.modal-copy {
  font-size: .88rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  gap: .6rem;
}

.modal-actions .btn {
  flex: 1;
}

.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-surface-hover);
  transition: all 0.2s;
}

.upload-dropzone:hover,
.upload-dropzone.is-active {
  border-color: var(--teal-400);
  background: var(--teal-50);
}

.upload-preview {
  display: none;
  max-height: 150px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.category-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 6px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 99px;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.category-btn.selected {
  border-color: var(--teal-500);
  background: var(--teal-50);
  color: var(--teal-700);
  font-weight: 600;
}

.map-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.map-canvas {
  height: 200px;
  border-radius: 12px;
  z-index: 0;
}

.chat-shell {
  min-height: 100vh;
  background: linear-gradient(180deg,#f8fafc 0%,#eefdf9 100%);
  padding: 1.25rem;
}

.chat-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.chat-panel .chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.chat-back-link {
  font-size: .82rem;
  color: var(--teal-600);
  text-decoration: none;
}

.chat-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: .2rem;
}

.chat-presence {
  font-size: .78rem;
  color: var(--slate-400);
}

.chat-surface {
  height: min(70vh, 680px);
  background: linear-gradient(180deg,#fbfffe 0%,#f8fafc 100%);
}

.typing-indicator {
  display: none;
  padding: 0.25rem 1rem 0.75rem;
  font-size: 0.8rem;
  color: var(--slate-400);
  font-style: italic;
}

.chat-footer {
  align-items: center;
  flex-wrap: nowrap;
}

.chat-footer .btn,
.chat-footer label.btn {
  flex-shrink: 0;
}

.chat-input {
  min-width: 0;
}

.chat-row {
  display: flex;
  margin-bottom: .6rem;
}

.chat-row.sent {
  justify-content: flex-end;
}

.chat-row.received {
  justify-content: flex-start;
}

.chat-status {
  font-weight: 700;
  letter-spacing: -.04em;
}

@media (max-width: 1024px) {
  .landing-nav-inner,
  .container,
  .landing-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .landing-nav-inner {
    min-height: 68px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-nav-actions .landing-nav-login,
  .landing-nav-actions .nav-cta {
    display: none;
  }

  .landing-nav-toggle {
    display: inline-flex;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-visual-frame {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-chip-left {
    left: 1rem;
  }

  .hero-chip-right {
    right: 1rem;
  }

  .hero-title {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }

  .trust-bar-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    scrollbar-width: none;
  }

  .trust-bar-inner::-webkit-scrollbar {
    display: none;
  }

  .trust-divider {
    display: none;
  }

  .category-grid,
  .why-grid,
  .testi-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 28px 20px;
  }

  .landing-shop-head {
    align-items: stretch;
  }

  .shop-card {
    min-width: min(84vw, 300px);
  }

  .dash-topbar {
    padding: .95rem 1rem;
  }

  .dash-content {
    padding: 1rem;
  }

  .fixbit-topbar-actions {
    gap: .5rem;
  }

  .chat-modal-inner {
    height: min(84vh, 720px);
  }
}

@media (max-width: 640px) {
  .landing-section,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-badge {
    white-space: normal;
    font-size: 0.75rem;
  }

  .hero-chip {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    gap: 0.55rem;
  }

  .hero-title-group {
    gap: 0.15rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .section-sub {
    font-size: .9rem;
  }

  .shop-card {
    min-width: min(88vw, 280px);
  }

  .shop-body {
    padding: 14px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 11vw, 2.7rem);
  }

  .hero-visual-frame {
    border-radius: 1.5rem;
  }

  .hero-visual-image,
  .hero-visual-tint {
    border-radius: 1.5rem;
  }

  .hero-chip-phone {
    top: 14%;
  }

  .hero-chip-laptop {
    top: -0.25rem;
  }

  .hero-chip-tablet {
    bottom: 10%;
  }

  .hero-chip-status {
    top: 56%;
  }

  .form-inline-grid,
  .modal-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .auth-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .chat-shell {
    padding: 0;
  }

  .chat-panel {
    min-height: 100vh;
    border-radius: 0;
  }

  .chat-panel .chat-header {
    padding: 1rem;
  }

  .chat-footer {
    padding: .75rem;
    gap: .45rem;
  }

  .chat-bubble {
    max-width: 88%;
  }
}
