:root {
    --navy: #060B18;
    --blue: #1D4ED8;
    --cyan: #06B6D4;
    --electric: #3B82F6;
    --purple: #7C3AED;
    --glow: rgba(59, 130, 246, 0.35);
    --glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text: #F8FAFC;
    --muted: #94A3B8;
    --card: rgba(15, 23, 42, 0.7);
    --bg: #060B18;
    --bg-noise-opacity: 0.4;
    --nav-bg: rgba(6, 11, 24, 0.75);
    --nav-scrolled-bg: rgba(6, 11, 24, 0.92);
    --footer-bg: rgba(3, 7, 18, 0.95);
    --card-bg: rgba(255, 255, 255, 0.04);
    --dashboard-bg: rgba(15, 23, 42, 0.85);
    --phone-frame-bg: linear-gradient(145deg, #1e293b, #0f172a);
    --phone-screen-bg: linear-gradient(160deg, #0f172a 0%, #1a2540 100%);
    --floating-card-bg: rgba(10, 20, 40, 0.92);
    --gradient-text-start: #fff;
    --compare-header-bg: rgba(255, 255, 255, 0.03);
    --compare-tr-hover: rgba(255, 255, 255, 0.015);
    --compare-td-highlight: rgba(29, 78, 216, 0.05);
    --orb-opacity: 1;
}

/* React integration helpers */
.builder-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--body-bg, #030712);
  color: var(--text, #f8fafc);
}

.loading-ring {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #38bdf8;
  animation: spin 0.8s linear infinite;
}

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

.field-error {
  color: #f87171;
  font-size: 12px;
  margin-top: 7px;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.48);
  color: var(--muted, #94a3b8);
  font-size: 13px;
}

.product-builder-list {
  display: grid;
  gap: 18px;
}

.product-builder-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.44);
}

.product-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.product-builder-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text, #f8fafc);
}

.product-builder-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.2);
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.builder-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text, #f8fafc);
  font-size: 14px;
  margin-bottom: 18px;
}

.builder-toggle input {
  position: absolute;
  opacity: 0;
}

.builder-toggle span {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.28);
  position: relative;
  transition: all 0.2s ease;
}

.builder-toggle span::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 0.2s ease;
}

.builder-toggle input:checked + span {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-color: rgba(6, 182, 212, 0.6);
}

.builder-toggle input:checked + span::after {
  transform: translateX(20px);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
  font-size: 12px;
}

.tag-pill button {
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.suggest-tag-pill {
  border: 0;
  cursor: pointer;
}

.drag-upload-box.has-file {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.08);
}

.light-mode {
    --navy: #F8FAFC;
    --bg: #F8FAFC;
    --bg-noise-opacity: 0.15;
    --text: #0F172A;
    --muted: #475569;
    --border: rgba(15, 23, 42, 0.08);
    --glass: rgba(15, 23, 42, 0.03);
    --card-bg: rgba(255, 255, 255, 0.75);
    --nav-bg: rgba(248, 250, 252, 0.8);
    --nav-scrolled-bg: rgba(248, 250, 252, 0.92);
    --footer-bg: #F1F5F9;
    --dashboard-bg: rgba(255, 255, 255, 0.9);
    --phone-frame-bg: linear-gradient(145deg, #cbd5e1, #94a3b8);
    --phone-screen-bg: linear-gradient(160deg, #f8fafc 0%, #cbd5e1 100%);
    --floating-card-bg: rgba(255, 255, 255, 0.95);
    --gradient-text-start: #0F172A;
    --compare-header-bg: rgba(15, 23, 42, 0.03);
    --compare-tr-hover: rgba(15, 23, 42, 0.015);
    --compare-td-highlight: rgba(59, 130, 246, 0.08);
    --glow: rgba(59, 130, 246, 0.15);
    --orb-opacity: 0.6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

h1,

h2,

h3,

h4,

.nav-logo {
    font-family: 'Poppins', sans-serif;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: var(--bg-noise-opacity);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px 48px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, padding 0.3s, border-color 0.3s;
}

nav.scrolled {
    background: var(--nav-scrolled-bg);
    /* padding: 12px 48px; */
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--gradient-text-start) 30%, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-slogan {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    border-left: 2px solid var(--border);
    padding-left: 12px;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.highlight-text {
    background: linear-gradient(90deg,
            #06B6D4 0%,
            #3B82F6 30%,
            #ffffff 50%,
            #3B82F6 70%,
            #06B6D4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: flare-loop 4s linear infinite;
}

@keyframes flare-loop {
    0% {
        background-position: -200% 0;
    }

    30% {
        background-position: 200% 0;
    }

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

}

@media (max-width: 1024px) {
    .nav-slogan {
        display: none;
    }

}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,

.nav-links a.active {
    color: var(--text);
}

.nav-links a.active {
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-login:hover {
    color: var(--text);
}

.customer-topbar .customer-nav-links a,
.customer-topbar .customer-nav-links button,
.customer-topbar .nav-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.customer-topbar .customer-nav-links a:hover,
.customer-topbar .customer-nav-links button:hover,
.customer-topbar .customer-nav-links a.active,
.customer-topbar .customer-nav-links button.active {
    color: var(--text);
}

.customer-topbar .customer-nav-links button:disabled {
    color: rgba(148, 163, 184, 0.45);
    cursor: not-allowed;
}

.customer-topbar .nav-logout-link {
    color: #fca5a5;
}

.customer-topbar .nav-logout-link:hover,
.customer-topbar .logout-link:hover {
    color: #fecaca;
}

.customer-topbar .mobile-logout-item {
    display: none;
}

.nav-cta {
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

section {
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 100px;
    overflow: hidden;
    position: relative;
}

/* Premium Animated Card Grid Background */

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    width: 100%;
    min-width: 1600px;
    left: 50%;
    transform: translateX(-50%) rotate(-12deg) scale(1.15);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at 50% 50%, transparent 25%, var(--bg) 92%),
        linear-gradient(to bottom, transparent 30%, var(--bg) 95%);
    pointer-events: none;
}

/* Perspective Multi-Depth Wrapper */

.column-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.depth-near {
    opacity: 0.33;
    filter: blur(0.3px);
    transform: scale(1.04);
}

.depth-medium {
    opacity: 0.38;
    filter: blur(0.7px);
    transform: scale(0.94);
}

.depth-far {
    opacity: 0.22;
    filter: blur(1.3px);
    transform: scale(0.84);
}

.card-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 240px;
    /* Thinner width for a realistic portrait screen aspect ratio */
    flex-shrink: 0;
}

.column-up {
    animation: scroll-up 40s linear infinite;
}

.column-down {
    animation: scroll-down 40s linear infinite;
}

@keyframes scroll-up {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, -50%, 0);
    }

}

@keyframes scroll-down {
    0% {
        transform: translate3d(0, -50%, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }

}

/* Card Mockup Styles - Full Mobile App Previews */

.bg-card {
    background: rgba(15, 23, 42, 0.65);
    /* Solid dark slate backdrop to preserve child contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 24px 18px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Light mode overrides for background cards to make them visible */

.light-mode .bg-card {
    background: rgba(255, 255, 255, 0.75);
    /* Solid white backdrop to preserve child contrast */
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.bg-card-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 12px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0 0 10px 10px;
}

.light-mode .bg-card-notch {
    background: rgba(15, 23, 42, 0.15);
}

.bg-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 6px;
}

.bg-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bg-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.bg-card-title {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.2;
    margin-top: 4px;
}

.bg-card-pills {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.bg-pill {
    font-size: 9px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.light-mode .bg-pill {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.bg-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bg-card-tile {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 6px;
    font-size: 9px;
    text-align: center;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.light-mode .bg-card-tile {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.bg-card-tile span {
    font-size: 14px;
}

.bg-card-footer {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.bg-card-btn {
    font-size: 10px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    color: #fff;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.light-mode .bg-card-btn {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18);
}

/* Card Themes */

.bg-card.theme-blue .bg-card-avatar {
    background: linear-gradient(135deg, var(--electric), var(--cyan));
}

.bg-card.theme-purple .bg-card-avatar {
    background: linear-gradient(135deg, var(--purple), var(--electric));
}

.bg-card.theme-cyan .bg-card-avatar {
    background: linear-gradient(135deg, var(--cyan), #22d3ee);
}

.bg-card.theme-gold .bg-card-avatar {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.bg-card.theme-rose .bg-card-avatar {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.bg-card.theme-green .bg-card-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Reduced Motion Support */

@media (prefers-reduced-motion: reduce) {
    .column-up,
    .column-down {
        animation: none;
        transform: none;
    }

    .hero-grid-bg {
        transform: rotate(-12deg) scale(1.15);
        opacity: 0.15;
    }

}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
    opacity: var(--orb-opacity);
}

.orb1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
}

.orb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
    bottom: 0;
    right: -150px;
}

.orb3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
    bottom: 100px;
    left: -100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
    animation: fadeUp 0.8s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.6);
    }

}

.hero h1 {
    font-size: clamp(40px, 7vw, 50px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeUp 0.8s 0.1s ease both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--electric) 0%, var(--cyan) 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    margin-bottom: 48px;
    line-height: 1.75;
    font-weight: 300;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(12px);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.trust-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 48px;
    animation: fadeUp 0.8s 0.4s ease both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.trust-badge em {
    color: var(--cyan);
    font-style: normal;
}

.hero-phone-wrap {
    position: relative;
    display: inline-block;
    animation: fadeUp 0.8s 0.5s ease both;
    transform-style: preserve-3d;
    will-change: transform;
    justify-self: center;
}

.phone-frame {
    width: 270px;
    height: 540px;
    border-radius: 42px;
    background: var(--phone-frame-bg);
    border: 2px solid var(--border);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: var(--bg);
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-screen {
    position: absolute;
    inset: 14px;
    border-radius: 30px;
    background: var(--phone-screen-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px 16px;
}

.phone-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric), var(--purple));
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.phone-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
}

.phone-role {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 14px;
}

.phone-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.phone-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}

.pp-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.pp-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.pp-purple {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

.phone-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.phone-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    font-size: 10px;
    color: var(--muted);
}

.pc-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.pc-label {
    font-weight: 700;
    color: var(--text);
    display: block;
    font-size: 9px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-card {
    position: absolute;
    background: var(--floating-card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    will-change: transform;
}

.fc1 {
    right: -80px;
    top: 70px;
    transform: translate3d(0, 0, 60px);
    animation: float1 5s ease-in-out infinite;
}

.fc2 {
    left: -90px;
    top: 180px;
    transform: translate3d(0, 0, 90px);
    animation: float2 5s ease-in-out infinite;
}

.fc3 {
    right: -70px;
    bottom: 110px;
    transform: translate3d(0, 0, 40px);
    animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
    0%,
    100% {
        transform: translate3d(0, 0, 60px);
    }

    50% {
        transform: translate3d(0, -10px, 60px);
    }

}

@keyframes float2 {
    0%,
    100% {
        transform: translate3d(0, 0, 90px);
    }

    50% {
        transform: translate3d(0, -8px, 90px);
    }

}

@keyframes float3 {
    0%,
    100% {
        transform: translate3d(0, 0, 40px);
    }

    50% {
        transform: translate3d(0, -12px, 40px);
    }

}

.fc-label {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 2px;
}

.fc-value {
    color: var(--text);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    margin-bottom: 2px;
}

.fc-tag {
    font-size: 10px;
    color: var(--cyan);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.stat-divider {
    width: 1px;
    background: var(--border);
}

.stat-item {
    text-align: center;
    padding: 56px 24px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(30px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.ps-section {
    padding: 130px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.ps-header {
    text-align: center;
    margin-bottom: 72px;
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    perspective: 1500px;
    transform-style: preserve-3d;
}

.ps-col {
    padding: 52px;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
    will-change: transform, opacity;
}

.ps-col.old {
    background: rgba(255, 255, 255, 0.015);
    transform-origin: left center;
}

.ps-col.new {
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.12), rgba(6, 182, 212, 0.04));
    transform-origin: right center;
}

.ps-section.reveal-3d .ps-col.old {
    opacity: 0;
    transform: rotateY(18deg) translate3d(-30px, 0, -50px);
}

.ps-section.reveal-3d .ps-col.new {
    opacity: 0;
    transform: rotateY(-18deg) translate3d(30px, 0, -50px);
}

.ps-section.reveal-3d.visible .ps-col.old {
    opacity: 1;
    transform: rotateY(0deg) translate3d(0, 0, 0);
}

.ps-section.reveal-3d.visible .ps-col.new {
    opacity: 1;
    transform: rotateY(0deg) translate3d(0, 0, 0);
}

.ps-col-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-col.old .ps-col-title {
    color: var(--muted);
}

.ps-col.new .ps-col-title {
    color: var(--cyan);
}

.ps-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
}

.ps-item:last-child {
    border-bottom: none;
}

.ps-col.new .ps-item {
    color: var(--text);
}

.check {
    color: var(--cyan);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cross {
    color: #334155;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.features-section {
    padding: 130px 48px;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 72px;
    text-align: left;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.12);
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 14px;
    display: block;
}

.feature-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}

.hiw-section {
    padding: 130px 48px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 72px;
    position: relative;
}

.hiw-connector {
    position: absolute;
    top: 40px;
    left: calc(12.5% + 40px);
    right: calc(12.5% + 40px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.hiw-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--line-progress, 0%);
    background: linear-gradient(90deg, var(--electric), var(--cyan));
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px) rotateX(15deg) scale(0.95);
    filter: blur(8px);
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hiw-step.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--glass);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--muted);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.hiw-step.revealed .step-number {
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    color: #fff;
    border-color: transparent;
    transform: scale(1.12);
    box-shadow: 0 0 45px rgba(59, 130, 246, 0.6);
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.hiw-step.revealed .step-number::before {
    opacity: 0.5;
    transform: scale(1);
    animation: stepPulse 2s infinite;
}

@keyframes stepPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

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

}

.step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.step-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 200px;
}

.ai-section {
    padding: 130px 48px;
    background: linear-gradient(180deg, transparent, rgba(29, 78, 216, 0.04) 50%, transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.ai-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ai-desc {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
    margin-top: 16px;
    max-width: 460px;
}

.ai-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 40px;
}

.ai-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s;
    cursor: default;
}

.ai-feature-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(6px);
}

.ai-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ai-feature-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.ai-feature-desc {
    font-size: 12px;
    color: var(--muted);
}

.dashboard-mock {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(16px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.dash-title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.dash-live {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    animation: pulse 2s infinite;
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.dash-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.dash-metric-val {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.dash-metric-label {
    font-size: 10px;
    color: var(--muted);
}

.dash-chart {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 16px 0;
    height: 90px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}

.bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, var(--electric), var(--cyan));
    opacity: 0.65;
    transition: opacity 0.2s;
}

.bar:hover {
    opacity: 1;
}

.dash-insights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-insight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 10px 14px;
}

.di-blue {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.di-purple {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.di-label {
    font-size: 12px;
    color: var(--muted);
}

.di-value {
    font-size: 12px;
    font-weight: 700;
}

.di-blue .di-value {
    color: #60a5fa;
}

.di-purple .di-value {
    color: #a78bfa;
}

.industries-section {
    padding: 100px 48px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-top: 56px;
}

.industry-chip {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 8px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    transition: all 0.25s;
    cursor: default;
}

.industry-chip:hover {
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.1);
}

.industry-chip .ic-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.integrations-section {
    padding: 100px 48px;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.integrations-row {
    display: flex;
    overflow: hidden;
    width: 100%;
    margin-top: 52px;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.integrations-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
    padding: 10px 0;
}

.integrations-row:hover .integrations-track {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }

}

.int-chip {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.int-chip:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--text);
    transform: translateY(-2px);
}

.int-chip .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: currentColor;
}

.compare-section {
    padding: 130px 48px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 64px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.compare-table th {
    padding: 20px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.compare-table th:first-child {
    text-align: left;
}

.compare-table th.th-highlight {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.2), rgba(6, 182, 212, 0.1));
    color: var(--cyan);
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}

.compare-table td {
    padding: 14px 24px;
    font-size: 14px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    text-align: center;
}

.compare-table td:first-child {
    text-align: left;
    color: var(--text);
    font-weight: 500;
}

.compare-table td.td-highlight {
    background: var(--compare-td-highlight);
}

.compare-table tr:hover td {
    background: var(--compare-tr-hover);
}

.c-check {
    color: var(--cyan);
    font-size: 16px;
}

.c-cross {
    color: #334155;
    font-size: 16px;
}

.pricing-section {
    padding: 130px 48px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 72px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px 36px;
    text-align: left;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-6px);
}

.pricing-card.featured {
    border-color: rgba(59, 130, 246, 0.45);
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.14), rgba(6, 182, 212, 0.05));
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.15);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 22px;
    right: 22px;
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.1em;
}

.plan-name {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.plan-price {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.plan-price sup {
    font-size: 22px;
    color: var(--muted);
    vertical-align: super;
}

.plan-period {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 36px;
}

.plan-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 36px;
}

.plan-features li {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.plan-features li::before {
    content: '✓';
    color: var(--cyan);
    font-weight: 700;
    flex-shrink: 0;
}

.plan-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.plan-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.plan-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.plan-btn-primary {
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    color: #fff;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
}

.plan-btn-primary:hover {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.55);
    transform: translateY(-1px);
}

.testimonials-section {
    padding: 130px 48px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 72px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    text-align: left;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.08);
}

.stars {
    color: #FBBF24;
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.author-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    display: block;
}

.author-role {
    font-size: 12px;
    color: var(--muted);
}

.faq-section {
    padding: 130px 48px;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.faq-list {
    margin-top: 64px;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    gap: 20px;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--cyan);
}

.faq-icon {
    color: var(--cyan);
    font-size: 22px;
    transition: transform 0.35s;
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 22px;
}

.final-cta {
    padding: 180px 48px;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(29, 78, 216, 0.1), transparent);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.final-cta-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(60px);
}

.final-cta h2 {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    max-width: 820px;
    margin: 0 auto 24px;
    line-height: 1.05;
    position: relative;
}

.final-cta p {
    font-size: 18px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 52px;
    line-height: 1.75;
    position: relative;
}

footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 88px 48px 44px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
    gap: 72px;
    margin-bottom: 72px;
}

.footer-brand-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    margin-top: 18px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 22px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 11px;
}

.footer-contact-item a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: var(--cyan);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 36px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--text);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-3d {
    opacity: 0;
    transform: perspective(1200px) rotateX(15deg) rotateY(-5deg) translate3d(0, 50px, -80px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-3d.visible {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0);
}

.card-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    border-radius: inherit;
    transition: background 0.15s ease;
}

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--electric), var(--purple));
    z-index: 9999;
    box-shadow: 0 0 8px var(--cyan);
    transition: width 0.1s ease-out;
    pointer-events: none;
}

@media (max-width: 1024px) {
    nav {
        padding: 14px 24px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hiw-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .hiw-connector {
        display: none;
    }

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

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

    .ai-inner {
        grid-template-columns: 1fr;
    }

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

    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .fc1,

    .fc2,

    .fc3 {
        display: none;
    }

    .compare-table {
        font-size: 13px;
    }

    .compare-table th,

    .compare-table td {
        padding: 12px 14px;
    }

}

@media (max-width: 768px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        margin: 0 auto 24px;
    }

    .hero p {
        margin: 0 auto 48px;
    }

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

    .trust-badges {
        justify-content: center;
    }

    .hero-phone-wrap {
        margin-top: 72px;
    }

    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }

}

@media (max-width: 640px) {
    nav {
        padding: 14px 20px;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .features-grid,

    .pricing-grid,

    .testimonials-grid,

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

    .hiw-connector {
        display: block !important;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: 40px;
        bottom: 40px;
        width: 2px;
        height: calc(100% - 80px);
        background: var(--border);
    }

    .hiw-connector::after {
        left: 0;
        top: 0;
        width: 100%;
        height: var(--line-progress, 0%);
        transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ps-section,

    .features-section,

    .hiw-section,

    .ai-section,

    .pricing-section,

    .testimonials-section,

    .faq-section,

    .final-cta,

    .industries-section,

    .integrations-section,

    .compare-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    footer {
        padding: 60px 20px 32px;
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
    }

    .compare-section {
        overflow-x: auto;
    }

    .compare-table {
        min-width: 540px;
    }

}

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--cyan);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.3);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

.light-mode .back-to-top {
    color: #fff;
}

/* ============ PRICING PAGE EXTRAS ============ */

.pricing-toggle-container {
    display: inline-flex;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 100px;
    margin: 40px auto 0 auto;
    position: relative;
    z-index: 10;
}

.pricing-toggle-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.pricing-card.hidden {
    display: none !important;
}

.card-types-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.card-type-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
}

.light-mode .card-type-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.card-type-badge.physical {
    border-color: rgba(124, 58, 237, 0.3);
    color: #a78bfa;
}

.card-type-badge.digital {
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--cyan);
}

.plan-description {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ==========================================================================

   CSS GLOBAL TOKENS & SYSTEM VARIABLES

   ========================================================================== */

:root {
  --bg-dark: #070B19;
  --bg-glass: rgba(15, 22, 42, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --glow-glow: rgba(59, 130, 246, 0.25);
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  /* Accent Colors (Default Ocean Blue) */
  --accent-primary: #06B6D4;
  --accent-secondary: #3B82F6;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --accent-glow: rgba(6, 182, 212, 0.3);
  /* Fonts */
  --font-main: 'DM Sans', sans-serif;
  --font-title: 'Poppins', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  /* Radii */
  --radius-card: 24px;
  --radius-input: 12px;
}

.light-mode {
  --bg-dark: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(15, 23, 42, 0.08);
  --glow-glow: rgba(59, 130, 246, 0.15);
  --text-primary: #0F172A;
  --text-muted: #475569;
  --accent-glow: rgba(6, 182, 212, 0.18);
}

/* ==========================================================================

   RESET & FOUNDATIONS

   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

input,

textarea,

button {
  font-family: inherit;
  color: inherit;
}

/* Background Decorative Orbs */

.builder-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.orb-primary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-secondary {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%);
  bottom: -200px;
  right: -100px;
}

/* ==========================================================================

   SPA VIEWS CONTROLLER

   ========================================================================== */

#app-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
}

.app-view {
  display: none;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(12px);
  min-height: 100vh;
  flex-direction: column;
}

.app-view.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================

   WIZARD VIEW LAYOUT (VIEW 1)

   ========================================================================== */

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(7, 11, 25, 0.8);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wizard-header.compact-builder-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: calc(100% - 48px);
  max-width: 980px;
  margin: 24px auto 20px;
  padding: 16px 18px;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  position: relative;
  top: auto;
}

.compact-builder-header .section-eyebrow {
  margin: 0;
  white-space: nowrap;
}

.builder-header-copy {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}

.builder-header-copy h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.builder-header-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}

.header-logo {
  height: 32px;
  object-fit: contain;
}

.progress-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: auto;
  max-width: none;
}

.progress-text {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-accent);
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  text-align: left;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 100px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  transition: all 0.2s;
}

.exit-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Two-Column Workspace */

.builder-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.wizard-pane {
  padding: 48px 60px;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
}

.preview-pane {
  padding: 48px;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
}

.preview-sticky {
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preview-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ==========================================================================

   WIZARD STEPS ENGINE

   ========================================================================== */

.wizard-step {
  display: none;
  opacity: 0;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step.active-step {
  display: flex;
  opacity: 1;
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

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

}

.step-intro h1 {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFF 30%, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-intro p {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 400;
}

/* STEP 1 & 2 Cards Grid */

.cards-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#step-1 .cards-select-grid {
  grid-template-columns: repeat(3, 1fr);
}

.selectable-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.selectable-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--glow-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.selectable-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  background: rgba(15, 22, 42, 0.6);
}

.selectable-card.active {
  border-color: var(--accent-primary);
  box-shadow: 0 12px 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(15, 22, 42, 0.75);
}

.selectable-card.active::before {
  opacity: 1;
}

.card-icon {
  font-size: 32px;
}

.selectable-card h2 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.selectable-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selectable-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.selectable-card ul li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

/* Coming soon disabled styling */

.selectable-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-accent);
}

.badge-soon {
  background: rgba(249, 115, 22, 0.15);
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Layout Mock Previews */

.layout-preview-mock {
  height: 100px;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.mock-page {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-glass);
  border-radius: 6px;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.mock-page.mock-active {
  background: var(--accent-glow);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
}

/* Step navigation footers */

.step-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.btn {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-input);
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #FFF;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================

   STEP 3 & 4 FORM COMPONENTS

   ========================================================================== */

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-section {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section legend {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,

.form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,

.form-group textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Social fields icon groups */

.input-with-icon {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-input);
  overflow: hidden;
  transition: all 0.2s;
}

.input-with-icon:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
  background: rgba(255, 255, 255, 0.04);
}

.icon-span {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-right: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
}

.input-with-icon input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* DRAG & DROP UPLOAD CONTROLS */

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.drag-upload-box {
  border: 2px dashed var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-input);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drag-upload-box.drag-over {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.upload-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.upload-prompt p {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-prompt p span {
  color: var(--accent-primary);
  font-weight: 700;
}

.upload-prompt small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* Upload Preview State */

.upload-preview {
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-upload-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFF;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.remove-upload-btn:hover {
  background: rgba(239, 68, 68, 0.9);
}

/* Resume PDF Card display */

.resume-upload-box {
  min-height: 100px;
}

.pdf-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 320px;
  border: 1px solid var(--border-glass);
}

.pdf-icon {
  font-size: 24px;
}

.pdf-filename {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tag based skills input */

.tags-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-input);
  padding: 8px 12px;
  min-height: 48px;
  align-items: center;
}

.tags-input-container:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
  background: rgba(255, 255, 255, 0.04);
}

.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  background: var(--accent-glow);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px 4px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
}

.tag-pill .remove-tag {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: bold;
}

.tag-pill .remove-tag:hover {
  color: #EF4444;
}

.tags-input-container input {
  border: none !important;
  background: transparent !important;
  padding: 4px 0 !important;
  flex: 1;
  min-width: 100px;
  outline: none !important;
  box-shadow: none !important;
}

.suggested-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.suggest-tag-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.suggest-tag-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.suggest-tag-pill.selected {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.6);
  color: #38BDF8;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.suggest-tag-pill.selected:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: #06B6D4;
}

/* ==========================================================================

   STEP 5 SUCCESS CELEBRATION

   ========================================================================== */

.success-step {
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.success-icon-wrap {
  margin-bottom: 16px;
}

.success-checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
}

.checkmark-svg {
  width: 44px;
  height: 44px;
  stroke: #10B981;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
}

.checkmark-kick {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeKey 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

@keyframes strokeKey {
  100% {
    stroke-dashoffset: 0;
  }

}

.plan-preview-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  text-align: left;
  margin-top: 12px;
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.plan-header h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
}

.plan-header .price {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-primary);
}

.plan-preview-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-preview-box ul li {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================

   CSS SMARTPHONE MOCKUP FRAME

   ========================================================================== */

.smartphone-frame {
  width: 280px;
  height: 570px;
  border-radius: 44px;
  background: #1E293B;
  border: 4px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.phone-status-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 15;
}

.phone-screen-area {
  position: absolute;
  inset: 12px;
  border-radius: 32px;
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 14px 14px;
}

.phone-view-page {
  display: none;
  flex-direction: column;
  flex: 1;
  width: 100%;
  animation: phonePageFade 0.3s ease-out forwards;
}

.phone-view-page.active-page {
  display: flex;
}

@keyframes phonePageFade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

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

}

.phone-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.phone-org-logo {
  height: 16px;
  max-width: 60px;
  object-fit: contain;
}

.phone-avatar-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: #FFF;
  box-shadow: 0 6px 16px var(--accent-glow);
  overflow: hidden;
}

.phone-avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-profile-section {
  text-align: left;
  margin-bottom: 14px;
}

.phone-profile-section h2 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.phone-profile-section p {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
}

.company-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* Preview details items */

.phone-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.phone-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s;
}

.phone-detail-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.detail-icon {
  font-size: 12px;
  color: var(--accent-primary);
}

.detail-val {
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.qr-mock-img {
  background: #FFF;
  padding: 8px;
  border-radius: 12px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scan-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Action button inside phone */

.phone-action-wrap {
  width: 100%;
}

.phone-cta-btn {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-title);
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Navigation tabs in mockup */

.phone-tab-bar {
  display: none;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 10px -14px -14px;
}

.phone-tab-item {
  background: none;
  border: none;
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.phone-tab-item.active {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Phone Layout 2 elements */

.phone-nav-pills {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.phone-pill {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-back-nav {
  margin-bottom: 12px;
}

.phone-page-nav-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.phone-scroll-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
  margin-right: -4px;
  padding-right: 4px;
}

/* Hide scrollbar but keep scroll functionality */

.phone-scroll-content::-webkit-scrollbar {
  width: 3px;
}

.phone-scroll-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.phone-detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.phone-detail-section h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-detail-section p {
  font-size: 10px;
  color: var(--text-primary);
  line-height: 1.5;
}

.phone-skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.phone-skill-tag {
  font-size: 8px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.phone-resume-btn-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.pdf-card-icon {
  font-size: 18px;
}

.pdf-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pdf-card-title {
  font-size: 10px;
  font-weight: 700;
}

.pdf-card-sub {
  font-size: 8px;
  color: var(--text-muted);
}

.pdf-card-download {
  font-size: 14px;
  color: var(--accent-primary);
}

.phone-socials-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 12px;
}

.phone-social-icon-btn {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-social-icon-btn:hover {
  color: var(--accent-primary);
}

/* ==========================================================================

   TEMPLATE GALLERY VIEW STYLING (VIEW 2)

   ========================================================================== */

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(7, 11, 25, 0.8);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.gallery-nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.gallery-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-input);
  padding: 8px 16px;
  width: 280px;
  transition: all 0.2s;
}

.gallery-search-box:focus-within {
  border-color: var(--accent-primary);
  width: 320px;
  background: rgba(255, 255, 255, 0.05);
}

.gallery-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
}

.gallery-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gallery-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.gallery-menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.gallery-menu a:hover,

.gallery-menu a.active {
  color: var(--text-primary);
}

.profile-dropdown-wrap {
  position: relative;
  cursor: pointer;
}

.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: #0F172A;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 8px 0;
  width: 150px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.user-dropdown-menu.show {
  display: block;
}

.user-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.user-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Gallery Workspace Split */

.gallery-content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.gallery-sidebar {
  padding: 40px 24px;
  border-right: 1px solid var(--border-glass);
}

.gallery-sidebar h3 {
  font-family: var(--font-title);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.filter-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
}

/* Main gallery cards pane */

.gallery-main-pane {
  padding: 40px 48px;
}

.gallery-header-info {
  margin-bottom: 36px;
}

.gallery-header-info h1 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.gallery-header-info p {
  color: var(--text-muted);
  font-size: 15px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.template-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.template-thumbnail-box {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-glass);
}

/* Template UI Mock previews styled inside thumbnails */

.mock-template-ui {
  width: 120px;
  height: 160px;
  background: #0B0F19;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  transform: rotate(5deg) scale(0.95);
  transition: transform 0.3s;
}

.template-card:hover .mock-template-ui {
  transform: rotate(0) scale(1);
}

.mock-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3B82F6;
  margin-bottom: 4px;
}

.mock-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  width: 100%;
}

.mock-line.short {
  width: 60%;
}

.mock-line.accent-line {
  background: var(--accent-primary);
  width: 40%;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: auto;
}

.mock-tile {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.mock-button {
  height: 14px;
  background: var(--accent-primary);
  border-radius: 4px;
  width: 100%;
  margin-top: 4px;
}

.template-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-meta h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.template-meta span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-accent);
}

.template-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  margin-top: 8px;
}

.btn-card {
  font-size: 12px;
  padding: 8px 14px;
  font-family: var(--font-title);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}

.btn-card-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-card-preview:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-card-use {
  background: var(--accent-gradient);
  color: #FFF;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.btn-card-use:hover {
  opacity: 0.95;
  box-shadow: 0 6px 16px var(--accent-glow);
}

/* ==========================================================================

   THEME SELECTION VIEW STYLING (VIEW 3)

   ========================================================================== */

.themes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(7, 11, 25, 0.8);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.back-link-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-primary);
  cursor: pointer;
  font-family: var(--font-title);
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}

.back-link-btn:hover {
  transform: translateX(-2px);
}

.themes-title-pane {
  text-align: center;
}

.themes-title-pane h1 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.themes-title-pane p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Split content layouts */

.themes-content-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.themes-sidebar-pane {
  padding: 40px;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.selection-status-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.highlight-label {
  color: var(--accent-primary);
  font-weight: 800;
}

.themes-grid-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.theme-card-option {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.theme-card-option:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(15, 22, 42, 0.6);
}

.theme-card-option.active {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.15);
  background: rgba(15, 22, 42, 0.75);
}

.theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-option-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Large preview frame layout */

.themes-preview-pane {
  padding: 48px;
  background: rgba(255, 255, 255, 0.005);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-centered-box {
  transform: scale(1.05);
}

/* ==========================================================================

   DYNAMIC MOBILE THEMES (SCREEN INJECTIONS)

   ========================================================================== */

.phone-screen-area.theme-ocean-blue {
  --accent-primary: #06B6D4;
  --accent-secondary: #3B82F6;
  --accent-gradient: linear-gradient(135deg, #06B6D4, #3B82F6);
  --accent-glow: rgba(6, 182, 212, 0.25);
}

.phone-screen-area.theme-midnight-black {
  --accent-primary: #94A3B8;
  --accent-secondary: #334155;
  --accent-gradient: linear-gradient(135deg, #475569, #0F172A);
  --accent-glow: rgba(51, 65, 85, 0.2);
}

.phone-screen-area.theme-emerald-green {
  --accent-primary: #10B981;
  --accent-secondary: #059669;
  --accent-gradient: linear-gradient(135deg, #10B981, #059669);
  --accent-glow: rgba(16, 185, 129, 0.25);
}

.phone-screen-area.theme-royal-purple {
  --accent-primary: #7C3AED;
  --accent-secondary: #4F46E5;
  --accent-gradient: linear-gradient(135deg, #7C3AED, #4F46E5);
  --accent-glow: rgba(124, 58, 237, 0.25);
}

.phone-screen-area.theme-sunset-orange {
  --accent-primary: #F97316;
  --accent-secondary: #EA580C;
  --accent-gradient: linear-gradient(135deg, #F97316, #EA580C);
  --accent-glow: rgba(249, 115, 22, 0.25);
}

.phone-screen-area.theme-coral-pink {
  --accent-primary: #EC4899;
  --accent-secondary: #D946EF;
  --accent-gradient: linear-gradient(135deg, #EC4899, #D946EF);
  --accent-glow: rgba(236, 72, 153, 0.25);
}

.phone-screen-area.theme-minimal-white {
  --accent-primary: #1E293B;
  --accent-secondary: #475569;
  --accent-gradient: linear-gradient(135deg, #E2E8F0, #F8FAFC);
  --accent-glow: rgba(15, 23, 42, 0.1);
}

/* Adjust button text for light theme minimal-white */

.phone-screen-area.theme-minimal-white .phone-cta-btn,

.phone-screen-area.theme-minimal-white .phone-tab-item.active {
  color: #0F172A !important;
  font-weight: 800;
}

.phone-screen-area.theme-dark-glass {
  --accent-primary: #64748B;
  --accent-secondary: #1E293B;
  --accent-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --accent-glow: rgba(255, 255, 255, 0.05);
}

.phone-screen-area.theme-premium-gold {
  --accent-primary: #F59E0B;
  --accent-secondary: #D97706;
  --accent-gradient: linear-gradient(135deg, #F59E0B, #D97706);
  --accent-glow: rgba(245, 158, 11, 0.25);
}

.phone-screen-area.theme-neon-gradient {
  --accent-primary: #FF007F;
  --accent-secondary: #7F00FF;
  --accent-gradient: linear-gradient(135deg, #FF007F, #7F00FF);
  --accent-glow: rgba(255, 0, 127, 0.3);
}

/* ==========================================================================

   DYNAMIC MOBILE TEMPLATES (STYLES OVERLAYS)

   ========================================================================== */

/* 1. Student Resume */

.template-student-resume .phone-avatar-placeholder {
  border-radius: 12px;
}

/* 2. Creative Student */

.template-creative-student {
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15) 0%, #0B0F19 80%) !important;
}

.template-creative-student .phone-avatar-placeholder {
  border: 2px solid var(--accent-primary);
}

/* 3. Modern Graduate */

.template-modern-graduate .phone-profile-section {
  border-left: 3px solid var(--accent-primary);
  padding-left: 10px;
}

/* 4. Elegant Portfolio */

.template-elegant-portfolio {
  font-family: var(--font-title) !important;
}

.template-elegant-portfolio .phone-detail-item {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
}

/* 5. Minimal Resume */

.template-minimal-resume {
  background: #000 !important;
}

.template-minimal-resume .phone-detail-item {
  background: none;
  border: 1px solid var(--border-glass);
}

/* 6. Blue Professional */

.template-blue-professional {
  background: linear-gradient(180deg, #1E3A8A 0%, #0F172A 40%) !important;
}

/* 7. Corporate Student */

.template-corporate-student .phone-qr-box {
  margin: 16px 0;
}

/* 8. Glass Resume */

.template-glass-resume .phone-detail-item,

.template-glass-resume .phone-avatar-placeholder {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* 9. Dark Portfolio */

.template-dark-portfolio {
  background: radial-gradient(circle, #1E1B4B 0%, #030712 100%) !important;
}

/* 10. AI Student */

.template-ai-student .phone-profile-section h2::after {
  content: ' · AI';
  color: var(--accent-primary);
  font-size: 10px;
  font-family: var(--font-accent);
}

/* ==========================================================================

   RESPONSIVE DESIGN ADAPTATIONS

   ========================================================================== */

@media (max-width: 1100px) {
  .builder-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .wizard-pane {
    padding: 36px 40px;
  }

  .preview-pane {
    padding: 36px;
  }

}

@media (max-width: 900px) {
  /* Tablet layout: Preview sticky floats, layouts shift */
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .wizard-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }

  .preview-pane {
    background: rgba(0, 0, 0, 0.15);
  }

  .preview-sticky {
    position: static;
  }

  .gallery-content-layout {
    grid-template-columns: 1fr;
  }

  .gallery-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 24px 40px;
  }

  .gallery-sidebar h3 {
    margin-bottom: 12px;
  }

  .filter-categories {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-btn {
    width: auto;
  }

  .themes-content-layout {
    grid-template-columns: 1fr;
  }

  .themes-sidebar-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }

}

@media (max-width: 600px) {
  /* Mobile Viewports styling overrides */
  .wizard-header {
    padding: 16px 20px;
  }

  .progress-container {
    width: auto;
    max-width: none;
  }

  .wizard-pane {
    padding: 32px 20px;
  }

  #step-1 .cards-select-grid {
    grid-template-columns: 1fr;
  }

  .cards-select-grid {
    grid-template-columns: 1fr;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

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

  .gallery-nav {
    padding: 16px 20px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .gallery-nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .gallery-nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .gallery-search-box {
    display: none;
    /* Hide template search on thin mobile nav, or fit at bottom */
  }

  .gallery-main-pane {
    padding: 32px 20px;
  }

  .themes-header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .themes-sidebar-pane {
    padding: 24px 20px;
  }

  .themes-preview-pane {
    padding: 32px 10px;
  }

}

/* ==========================================================================

   LIGHT MODE WIZARD OVERRIDES

   ========================================================================== */

#view-wizard {
  padding-top: 40px;
}

.light-mode .step-intro h1 {
  background: linear-gradient(135deg, #0F172A 30%, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light-mode .selectable-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.15);
}

.light-mode .selectable-card.active {
  background: #ffffff;
  border-color: var(--accent-primary);
}

.light-mode .layout-preview-mock {
  background: rgba(15, 23, 42, 0.04);
}

.light-mode .mock-page {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.08);
}

.light-mode .form-group input,

.light-mode .form-group textarea,

.light-mode .input-with-icon {
  background: rgba(15, 23, 42, 0.02);
}

.light-mode .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
}

.light-mode .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08);
}

.light-mode .drag-upload-box {
  background: rgba(15, 23, 42, 0.01);
}

.light-mode .upload-prompt small {
  color: rgba(15, 23, 42, 0.45);
}

.light-mode .pdf-indicator {
  background: rgba(15, 23, 42, 0.04);
}

.light-mode .tags-input-container {
  background: rgba(15, 23, 42, 0.02);
}

.light-mode .suggest-tag-pill {
  background: rgba(15, 23, 42, 0.03);
}

.light-mode .suggest-tag-pill:hover {
  background: rgba(15, 23, 42, 0.06);
}

/* ==========================================================================

   USER DASHBOARD VIEW (VIEW 4)

   ========================================================================== */

#view-dashboard {
  min-height: 100vh;
  background: var(--bg-dark);
}

.db-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar Styling */

.db-sidebar {
  width: 270px;
  min-width: 270px;
  background: rgba(10, 16, 32, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}

.light-mode .db-sidebar {
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.db-sidebar-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.db-logo-img {
  height: 52px;
  object-fit: contain;
}

.db-nav-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 12px 0 6px 12px;
}

.db-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.db-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.light-mode .db-nav-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

.db-nav-item.active {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

.db-nav-icon {
  font-size: 1.1rem;
}

.db-badge-lock {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Theme Switcher in Sidebar */

.db-appearance-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-top: 4px;
}

.light-mode .db-appearance-toggle {
  background: rgba(15, 23, 42, 0.03);
}

.db-appearance-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.db-theme-switch {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.light-mode .db-theme-switch {
  background: #3B82F6;
}

.db-switch-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.light-mode .db-switch-thumb {
  transform: translateX(20px);
}

/* User Profile Footer in Sidebar */

.db-user-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  margin-top: 20px;
}

.light-mode .db-user-footer {
  background: rgba(15, 23, 42, 0.04);
}

.db-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.db-user-info {
  flex: 1;
  overflow: hidden;
}

.db-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-user-plan {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.db-btn-logout-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.db-btn-logout-icon:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Main Content Panel */

.db-main-content {
  flex: 1;
  padding: 28px 36px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Welcome Alert Notice Banner */

.db-welcome-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  animation: fadeInDown 0.4s ease;
}

.db-notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.db-notice-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.db-notice-btn:hover {
  transform: translateX(4px);
  text-decoration: underline;
}

/* Main Header */

.db-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.db-header-titles h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.db-header-titles p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.db-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 30px;
  color: #10B981;
  font-size: 0.85rem;
  font-weight: 600;
}

.db-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }

  50% { opacity: 0.5; transform: scale(1.2); }

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

}

/* Upgrade Banner */

.db-upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.db-upgrade-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.db-upgrade-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.db-upgrade-info h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.db-upgrade-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.db-upgrade-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.db-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

/* Stats Grid */

.db-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .db-stats-grid { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 600px) {
  .db-stats-grid { grid-template-columns: 1fr; }

}

.db-stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.db-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.3);
}

.db-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-stat-icon {
  font-size: 1.4rem;
}

.db-badge-m2 {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.db-badge-live {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.db-stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.db-stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Grid 2 Column for Analytics & Quick Actions */

.db-grid-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

@media (max-width: 992px) {
  .db-grid-two-col { grid-template-columns: 1fr; }

}

.db-card-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.db-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-panel-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.db-panel-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Analytics Bar Chart Visual */

.db-chart-container {
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding-top: 20px;
}

.db-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 12px;
}

.db-chart-bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.db-chart-bar {
  width: 100%;
  max-width: 36px;
  height: var(--height, 50%);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.6), rgba(59, 130, 246, 0.3));
  border-radius: 8px 8px 4px 4px;
  position: relative;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  cursor: pointer;
}

.db-chart-bar:hover {
  background: linear-gradient(180deg, #06B6D4, #3B82F6);
}

.db-chart-bar::after {
  content: attr(data-val);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.db-chart-bar:hover::after {
  opacity: 1;
}

.db-chart-bar.active-day {
  background: linear-gradient(180deg, #06B6D4, #3B82F6);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.db-chart-day {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.db-chart-day.active {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Quick Actions Grid */

.db-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.db-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.light-mode .db-action-btn {
  background: rgba(15, 23, 42, 0.03);
}

.db-action-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.db-action-icon {
  font-size: 1.5rem;
}

.db-action-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.db-action-special {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.12));
  border-color: rgba(6, 182, 212, 0.3);
  flex-direction: row;
}

/* Recent Leads Panel & Empty State */

.db-leads-panel {
  min-height: 200px;
}

.db-link-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.db-empty-leads {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
  gap: 12px;
}

.db-empty-icon {
  font-size: 2.5rem;
  opacity: 0.7;
}

.db-empty-leads h3 {
  font-size: 1.1rem;
}

.db-empty-leads p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
}

.db-empty-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.db-btn-primary {
  padding: 10px 20px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s ease;
}

.db-btn-primary:hover {
  transform: translateY(-2px);
}

.db-btn-secondary {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.light-mode .db-btn-secondary {
  background: rgba(15, 23, 42, 0.05);
}

.db-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Leads Table Item */

.db-lead-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
}

.light-mode .db-lead-item {
  background: rgba(15, 23, 42, 0.02);
}

.db-lead-item:hover {
  background: rgba(6, 182, 212, 0.08);
}

.db-lead-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-lead-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #7C3AED);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.db-lead-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.db-lead-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.db-lead-badge-hot {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.15);
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-weight: 600;
}

/* MODAL OVERLAYS */

.db-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.75);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.db-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.db-modal-content {
  background: #0D1527;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-mode .db-modal-content {
  background: #ffffff;
}

.db-modal-overlay.active .db-modal-content {
  transform: scale(1);
}

.db-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.db-modal-header h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.db-modal-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.db-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.db-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.db-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.db-form-group input,

.db-select,

.db-textarea {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  font-size: 0.92rem;
}

.light-mode .db-form-group input,

.light-mode .db-select,

.light-mode .db-textarea {
  background: rgba(15, 23, 42, 0.03);
}

.db-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.db-input-copy-group {
  display: flex;
  gap: 8px;
}

.db-input-copy-group input {
  flex: 1;
}

.db-social-share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.db-social-btn {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.db-social-btn:hover {
  transform: translateY(-2px);
}

.db-qr-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.db-qr-frame {
  padding: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.db-qr-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.db-upgrade-modal-content {
  max-width: 520px;
}

.db-modal-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.2);
  color: #7C3AED;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.db-price-tag {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 10px 0 16px;
}

.db-price-tag .period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.db-pro-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.db-pro-features-list li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-btn-hero-upgrade {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
}

/* ==========================================================================

   MY CARD TAB & 3D PVC BUSINESS CARD FLIP ANIMATION

   ========================================================================== */

.db-tab-pane {
  display: none;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.db-tab-pane.active {
  display: flex;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }

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

}

/* Card URL Panel & Mini Stats */

.db-card-url-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px 24px;
  backdrop-filter: blur(16px);
}

.db-url-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.db-url-box label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.db-mycard-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

@media (max-width: 768px) {
  .db-mycard-stats-row { grid-template-columns: 1fr; }

}

.db-mini-stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-mini-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
}

.db-mini-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* My Card 2-Column Main Layout */

.db-mycard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .db-mycard-grid { grid-template-columns: 1fr; }

}

/* 3D PVC Stage Wrapper */

.pvc-stage-wrapper {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pvc-card-stage {
  perspective: 1200px;
  width: 100%;
  max-width: 440px;
  height: 250px;
  margin: 0 auto;
  animation: pvc-float 4s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(7, 121, 135, 0.35));
}

@keyframes pvc-float {
  0%   { transform: translateY(0px);    filter: drop-shadow(0 24px 40px rgba(7, 121, 135, 0.35)); }

  25%  { transform: translateY(-8px);   filter: drop-shadow(0 32px 48px rgba(7, 121, 135, 0.25)); }

  50%  { transform: translateY(-14px);  filter: drop-shadow(0 38px 56px rgba(7, 121, 135, 0.18)); }

  75%  { transform: translateY(-8px);   filter: drop-shadow(0 32px 48px rgba(7, 121, 135, 0.25)); }

  100% { transform: translateY(0px);    filter: drop-shadow(0 24px 40px rgba(7, 121, 135, 0.35)); }

}

.pvc-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border-radius: 24px;
}

.pvc-card-3d.flipped {
  transform: rotateY(180deg);
}

.pvc-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(13, 184, 158, 0.35), 0 0 24px rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
}

/* PVC FRONT FACE STYLING */

.pvc-card-front {
  background: linear-gradient(135deg, #077987 0%, #0db89e 55%, #049377 100%);
}

.pvc-bg-pattern {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 45% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.pvc-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding-bottom: 2px;
}

.pvc-brand-logo {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pvc-nfc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7, 0 0 4px #ffffff;
}

.pvc-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 0 10px;
  min-width: 0;
}

.pvc-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  margin-bottom: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.pvc-user-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pvc-user-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pvc-user-company {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pvc-contact-pills {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
}

.pvc-pill {
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}

.pvc-pill-icon {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.pvc-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* PVC BACK FACE STYLING */

.pvc-card-back {
  background: linear-gradient(135deg, #091326 0%, #0f243f 100%);
  transform: rotateY(180deg);
  border: 1px solid rgba(6, 182, 212, 0.4);
  justify-content: space-between;
  align-items: stretch;
  text-align: center;
}

.pvc-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: auto;
}

.pvc-qr-box {
  padding: 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.pvc-back-hint {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

.pvc-back-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Flip Navigation Controls Below Card */

.pvc-flip-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.pvc-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pvc-arrow-btn:hover {
  background: rgba(124, 58, 237, 0.3);
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.pvc-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pvc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.pvc-dot.active {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  transform: scale(1.25);
}

.pvc-hint-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

/* Right Actions Column */

.db-mycard-actions-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.db-mycard-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-mycard-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--text-primary);
  width: 100%;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.light-mode .db-mycard-action-row {
  background: rgba(15, 23, 42, 0.02);
}

.db-mycard-action-row:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(4px);
}

.action-row-icon {
  font-size: 1.2rem;
}

.badge-live-now {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: auto;
  font-weight: 600;
}

.badge-waitlist {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: auto;
  font-weight: 600;
}

/* ==========================================================================

   LEADS MANAGEMENT TAB STYLES

   ========================================================================== */

.db-leads-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 992px) {
  .db-leads-stats-grid { grid-template-columns: repeat(3, 1fr); }

}

@media (max-width: 600px) {
  .db-leads-stats-grid { grid-template-columns: repeat(2, 1fr); }

}

.db-lead-stat-chip {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.db-lead-stat-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.3);
}

.db-lead-stat-chip.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15);
}

.chip-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-icon {
  font-size: 1.1rem;
}

.chip-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.db-lead-stat-chip.active .chip-title {
  color: var(--text-primary);
}

.chip-count {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Toolbar: Search & Actions */

.db-leads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.db-leads-search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  backdrop-filter: blur(16px);
}

.db-leads-search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  width: 100%;
}

.db-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Leads Card List Items */

.db-lead-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 16px;
}

.light-mode .db-lead-card-row {
  background: rgba(15, 23, 42, 0.02);
}

.db-lead-card-row:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateX(3px);
}

.db-lead-main-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.db-lead-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.db-lead-details-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.db-lead-row-name {
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-lead-row-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.db-lead-row-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.db-lead-badge-status {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.db-lead-badge-status.hot {
  background: rgba(249, 115, 22, 0.15);
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.db-lead-badge-status.warm {
  background: rgba(234, 179, 8, 0.15);
  color: #EAB308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.db-lead-badge-status.cold {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.db-lead-badge-status.new {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.db-lead-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-btn-icon-action {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.light-mode .db-btn-icon-action {
  background: rgba(15, 23, 42, 0.04);
}

.db-btn-icon-action:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
}

.db-btn-delete-lead {
  color: #EF4444;
}

.db-btn-delete-lead:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================

   SMART OUTREACH TAB STYLES

   ========================================================================== */

.db-outreach-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .db-outreach-grid { grid-template-columns: 1fr; }

}

.db-outreach-composer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.db-outreach-pills-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-outreach-pills-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.db-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.db-pill-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.light-mode .db-pill-btn {
  background: rgba(15, 23, 42, 0.03);
}

.db-pill-btn:hover {
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.1);
}

.db-pill-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--text-primary);
  font-weight: 700;
}

.db-btn-generate-ai {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  margin-top: 4px;
}

.db-textarea-wrapper {
  position: relative;
  width: 100%;
}

.db-textarea-wrapper textarea {
  width: 100%;
  padding: 14px 14px 32px 14px;
  resize: vertical;
  min-height: 120px;
}

.db-char-count {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.db-outreach-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.db-btn-wa {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.db-btn-wa:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Outreach Sidebar: AI Tips & Usage */

.db-outreach-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.db-tips-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.db-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
}

.light-mode .db-tip-item {
  background: rgba(15, 23, 42, 0.02);
}

.db-tip-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.db-tip-item p {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* Usage Panel */

.db-usage-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-usage-text {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.db-usage-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.db-usage-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 4px 0;
}

.light-mode .db-usage-bar-bg {
  background: rgba(15, 23, 42, 0.08);
}

.db-usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06B6D4, #3B82F6);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.db-usage-upgrade {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.88rem;
}

/* ==========================================================================

   ANALYTICS TAB STYLES

   ========================================================================== */

.db-badge-coming-soon {
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(6,182,212,0.3);
  color: #06B6D4;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
}

/* KPI Grid */

.db-analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) { .db-analytics-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 600px)  { .db-analytics-kpi-grid { grid-template-columns: 1fr; } }

.db-analytics-kpi-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px 18px 14px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.db-analytics-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6,182,212,0.12);
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kpi-icon { font-size: 1.1rem; }

.kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
}

.kpi-badge-m2 {
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.kpi-badge-live {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10B981;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.kpi-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Sparkline Bars */

.kpi-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-top: 8px;
}

.kpi-sparkline-bar {
  flex: 1;
  background: rgba(6,182,212,0.15);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

.kpi-sparkline-bar.active {
  background: linear-gradient(180deg, #06B6D4, #3B82F6);
  box-shadow: 0 0 8px rgba(6,182,212,0.4);
}

/* Charts Row */

.db-analytics-charts-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

@media (max-width: 992px) { .db-analytics-charts-row { grid-template-columns: 1fr; } }

.db-chart-panel { padding-bottom: 16px; }

.db-chart-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0 8px;
}

.db-coming-icon { font-size: 2rem; }

.db-coming-title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); text-align: center; }

.db-coming-sub { font-size: 0.82rem; color: var(--text-muted); text-align: center; max-width: 320px; }

/* Skeleton Chart Bars */

.db-skeleton-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  width: 100%;
  padding: 0 4px;
  margin: 12px 0 4px;
  opacity: 0.25;
}

.sk-bar {
  flex: 1;
  background: var(--text-muted);
  border-radius: 4px 4px 0 0;
  animation: pulse-skeleton 1.8s ease-in-out infinite;
}

.sk-bar:nth-child(odd) { animation-delay: 0.2s; }

@keyframes pulse-skeleton {
  0%, 100% { opacity: 0.25; }

  50% { opacity: 0.5; }

}

.db-chart-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 4px;
}

/* Right Col */

.db-analytics-right-col { display: flex; flex-direction: column; gap: 18px; }

/* Traffic Source Bars */

.db-analytics-source-list { display: flex; flex-direction: column; gap: 10px; }

.db-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-source-label { font-size: 0.82rem; font-weight: 600; min-width: 90px; }

.db-source-bar-wrap {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.light-mode .db-source-bar-wrap { background: rgba(15,23,42,0.06); }

.db-source-bar {
  height: 100%;
  background: linear-gradient(90deg, #06B6D4, #3B82F6);
  border-radius: 10px;
  transition: width 0.6s ease;
}

.db-source-pct { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); min-width: 24px; text-align: right; }

.db-no-data-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Device Grid */

.db-device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.db-device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
}

.light-mode .db-device-card { background: rgba(15,23,42,0.02); }

.db-device-icon { font-size: 1.4rem; }

.db-device-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

.db-device-val { font-size: 1.1rem; font-weight: 800; }

/* Bottom Row */

.db-analytics-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

@media (max-width: 768px) { .db-analytics-bottom-row { grid-template-columns: 1fr; } }

/* Cities List */

.db-cities-list { display: flex; flex-direction: column; gap: 10px; }

.db-city-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-city-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(6,182,212,0.12);
  color: #06B6D4;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db-city-name { font-size: 0.85rem; font-weight: 600; min-width: 80px; }

/* Activity Feed */

.db-activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}

.db-activity-empty-icon { font-size: 2rem; }

/* ==========================================================================

   SETTINGS TAB STYLES

   ========================================================================== */

.db-settings-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 768px) {
  .db-settings-layout {
    grid-template-columns: 1fr;
  }

  .db-settings-sidenav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

}

/* Vertical Settings Nav — glass panel */

.db-settings-sidenav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 10px 8px;
  backdrop-filter: blur(16px);
}

.db-settings-navbtn {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.db-settings-navbtn:hover {
  background: rgba(6,182,212,0.07);
  color: var(--text-primary);
  border-left-color: rgba(6,182,212,0.3);
}

.db-settings-navbtn.active {
  background: linear-gradient(90deg, rgba(6,182,212,0.13), rgba(59,130,246,0.08));
  border-left-color: #06B6D4;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(6,182,212,0.12);
}

.db-settings-content { min-width: 0; }

.db-settings-pane { display: none; }

.db-settings-pane.active { display: block; }

.db-settings-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

/* Profile Split Layout */

.db-settings-split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) { .db-settings-split { grid-template-columns: 1fr; } }

.db-settings-form-col { display: flex; flex-direction: column; gap: 0; }

/* Form Group — label + input spacing */

.db-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.db-form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.db-form-group input,

.db-form-group textarea,

.db-form-group select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.light-mode .db-form-group input,

.light-mode .db-form-group textarea,

.light-mode .db-form-group select {
  background: rgba(15,23,42,0.03);
}

.db-form-group input:focus,

.db-form-group textarea:focus,

.db-form-group select:focus {
  border-color: rgba(6,182,212,0.6);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
  background: rgba(6,182,212,0.04);
}

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

.db-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) { .db-form-row-2 { grid-template-columns: 1fr; } }

.db-settings-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  padding-top: 8px;
}

/* Avatar Col */

.db-settings-avatar-col { display: flex; flex-direction: column; gap: 16px; }

.db-settings-avatar-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.db-settings-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(6,182,212,0.4);
}

.db-settings-avatar-meta { display: flex; flex-direction: column; gap: 6px; }

.db-settings-photo-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.light-mode .db-settings-photo-btn { background: rgba(15,23,42,0.04); }

.db-settings-photo-btn:hover { background: rgba(6,182,212,0.12); border-color: rgba(6,182,212,0.3); }

.db-settings-card-url-panel {
  padding: 16px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
}

.db-settings-url-label { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }

.db-settings-url-hint { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }

.db-settings-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.db-settings-url-text {
  font-size: 0.82rem;
  color: #06B6D4;
  font-weight: 600;
  word-break: break-all;
  flex: 1;
}

.db-btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.db-btn-full-w { width: 100%; margin-top: 16px; }

/* ── Billing Plan Box Tab ─────────────────────────────────── */

.db-billing-plan-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

/* Top coloured tier bar */

.db-billing-plan-tier {
  background: linear-gradient(135deg, #0e7490 0%, #0284c7 100%);
  padding: 20px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.db-billing-tier-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-billing-tier-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-plan-badge-free {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.db-plan-renew {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* Bottom: features + upgrade button */

.db-billing-plan-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.db-plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.db-plan-feature::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #10B981;
}

/* Billing Usage Grid */

.db-billing-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 600px) { .db-billing-usage-grid { grid-template-columns: 1fr; } }

.db-billing-usage-item { display: flex; flex-direction: column; gap: 8px; }

.db-billing-usage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.db-billing-usage-nums {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.db-billing-history-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border-glass);
  border-radius: 14px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.light-mode .db-billing-history-empty { background: rgba(15,23,42,0.02); }

/* Integrations */

.db-integrations-list { display: flex; flex-direction: column; gap: 14px; }

.db-integration-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.db-integration-row:hover {
  border-color: rgba(6,182,212,0.25);
  transform: translateX(3px);
}

.db-integration-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.db-int-wa   { background: rgba(37,211,102,0.15); }

.db-int-email { background: rgba(234,67,53,0.12); }

.db-int-sf   { background: rgba(0,161,224,0.12); }

.db-int-hs   { background: rgba(255,122,89,0.15); }

.db-int-zap  { background: rgba(255,74,20,0.12); }

.db-integration-info { flex: 1; }

.db-integration-info strong { font-size: 0.92rem; font-weight: 700; display: block; margin-bottom: 2px; }

.db-integration-info p { font-size: 0.8rem; color: var(--text-muted); }

.db-integration-btn {
  padding: 8px 18px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  color: #06B6D4;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.db-integration-btn:hover {
  background: rgba(6,182,212,0.2);
  box-shadow: 0 4px 14px rgba(6,182,212,0.2);
}

/* Notifications */

.db-notification-list { display: flex; flex-direction: column; gap: 0; }

.db-notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-glass);
}

.db-notification-row:last-child { border-bottom: none; }

.db-notification-info { flex: 1; }

.db-notification-info strong { font-size: 0.92rem; font-weight: 700; display: block; margin-bottom: 2px; }

.db-notification-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Toggle Switch */

.db-toggle-switch {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.db-toggle-switch input { display: none; }

.db-toggle-track {
  display: block;
  width: 46px;
  height: 26px;
  background: rgba(148,163,184,0.25);
  border-radius: 13px;
  transition: background 0.25s ease;
  position: relative;
}

.db-toggle-switch input:checked + .db-toggle-track {
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
}

.db-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.25s ease;
}

.db-toggle-switch input:checked + .db-toggle-track .db-toggle-thumb {
  transform: translateX(20px);
}

/* Security */

.db-security-list { display: flex; flex-direction: column; gap: 0; }

.db-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.db-security-row:last-child { border-bottom: none; }

.db-security-info { flex: 1; }

.db-security-info strong { font-size: 0.92rem; font-weight: 700; display: block; margin-bottom: 2px; }

.db-security-info p { font-size: 0.8rem; color: var(--text-muted); }

.db-btn-danger-outline {
  border-color: rgba(239,68,68,0.4) !important;
  color: #EF4444 !important;
}

.db-btn-danger-outline:hover {
  background: rgba(239,68,68,0.1) !important;
}

.db-security-password-form { display: flex; flex-direction: column; gap: 0; }

/* Danger Zone */

.db-danger-zone {
  margin-top: 28px;
  padding: 20px 22px;
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.db-danger-zone-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #EF4444;
  margin-bottom: 4px;
}

.db-danger-zone-header p { font-size: 0.82rem; color: var(--text-muted); }

.db-btn-danger {
  padding: 10px 22px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(239,68,68,0.3);
  white-space: nowrap;
}

.db-btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239,68,68,0.5);
  transform: translateY(-1px);
}

/* ==========================================================================

   COMPLETE MOBILE RESPONSIVE ARCHITECTURE & WHATSAPP UX DESIGN

   ========================================================================== */

/* Mobile Top Header (Hidden on Desktop) */

.db-mobile-header {
  display: none;
}

/* Mobile Bottom Navigation (Hidden on Desktop) */

.db-mobile-bottom-nav {
  display: none;
}

/* ──────────────────────────────────────────────────────────────────────────

   RESPONSIVE BREAKPOINTS (TABLETS & DESKTOPS <= 992px)

   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
  .db-wrapper {
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Hide Desktop Sidebar */

  .db-sidebar {
    display: none !important;
  }

  /* Show Mobile Header Bar */

  .db-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(10, 16, 32, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    box-sizing: border-box;
  }

  .light-mode .db-mobile-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .db-mobile-logo-img {
    height: 38px;
    object-fit: contain;
  }

  .db-mobile-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .db-mobile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06B6D4, #3B82F6);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
  }

  /* Show WhatsApp-Style Mobile Bottom Navigation Bar */

  .db-mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(10, 16, 32, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-glass);
    z-index: 1000;
    padding: 0 4px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
  }

  .light-mode .db-mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .db-mobile-bottom-nav .db-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
  }

  .db-mobile-bottom-nav .db-nav-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
  }

  .db-mobile-bottom-nav .db-nav-text {
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

  /* Active Navigation State (WhatsApp Glowing Pill) */

  .db-mobile-bottom-nav .db-nav-item.active {
    color: #06B6D4;
    background: rgba(6, 182, 212, 0.12);
  }

  .db-mobile-bottom-nav .db-nav-item.active .db-nav-icon {
    transform: translateY(-2px) scale(1.12);
  }

  .light-mode .db-mobile-bottom-nav .db-nav-item.active {
    color: #0284C7;
    background: rgba(2, 132, 199, 0.1);
  }

  /* Main Content Padding for Mobile */

  .db-main-content {
    width: 100%;
    padding: 18px 16px 88px 16px;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Dashboard Overview Mobile Layout */

  .db-welcome-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .db-notice-btn {
    width: 100%;
    justify-content: center;
  }

  .db-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .db-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .db-metric-card {
    padding: 16px 14px;
  }

  .db-dashboard-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .db-quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* My Card Tab Mobile Layout */

  .db-mycard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .db-card-url-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .db-card-url-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .db-card-url-actions button {
    flex: 1;
    justify-content: center;
  }

  .pvc-stage-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .pvc-card-stage {
    max-width: 100%;
    height: 220px;
  }

  .db-share-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Leads CRM Tab Mobile Layout (WhatsApp Filter Slider) */

  .db-leads-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .db-leads-header-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .db-leads-header-actions button {
    flex: 1;
    justify-content: center;
  }

  /* WhatsApp Style Horizontal Chip Filter Slider */

  .db-leads-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
    width: 100%;
    margin-bottom: 14px;
    scrollbar-width: none; /* Firefox */
  }

  .db-leads-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .db-chip-filter {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .db-leads-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .db-lead-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .db-lead-actions {
    width: 100%;
    justify-content: flex-end;
    border-top: 1px solid var(--border-glass);
    padding-top: 10px;
  }

  /* Smart Outreach (WhatsApp AI Message Composer) Mobile Layout */

  .db-outreach-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* WhatsApp Horizontal Pill Options Slider */

  .db-pill-options {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .db-pill-options::-webkit-scrollbar {
    display: none;
  }

  .db-pill-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .db-composer-actions {
    flex-direction: column;
    gap: 10px;
  }

  .db-composer-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Analytics Tab Mobile Layout */

  .db-analytics-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .db-analytics-charts-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .db-analytics-bottom-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Settings Tab Mobile Layout */

  .db-settings-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* WhatsApp Style Horizontal Settings Tab Bar */

  .db-settings-sidenav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    scrollbar-width: none;
    position: static;
  }

  .db-settings-sidenav::-webkit-scrollbar {
    display: none;
  }

  .db-settings-navbtn {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 10px;
  }

  .db-settings-navbtn.active {
    border-left: none;
    border-bottom-color: #06B6D4;
  }

  .db-settings-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .db-form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}

/* ──────────────────────────────────────────────────────────────────────────

   RESPONSIVE BREAKPOINTS (SMALL MOBILE <= 550px)

   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 550px) {
  .db-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .db-analytics-kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .db-share-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pvc-card-stage {
    height: 200px;
  }

  .pvc-user-name {
    font-size: 1.15rem;
  }

  .pvc-pill {
    padding: 3px 6px;
    font-size: 0.65rem;
  }

  /* Touch-friendly modal bottom sheet */

  .db-modal-content {
    width: 94%;
    max-height: 90vh;
    padding: 20px 16px;
    border-radius: 20px;
  }

}

/* ──────────────────────────────────────────────────────────────────────────

   NON-WHITE GLASS URL CARD TEXT BOXES & MOBILE NAV CONTROLS

   ────────────────────────────────────────────────────────────────────────── */

/* Glass URL Card Text Boxes (Never Stark White) */

.db-input-copy-group input,

#mycard-url-input,

#share-link-input,

.db-share-field input {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #06B6D4 !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-family: monospace, inherit !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  outline: none !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease !important;
}

.light-mode .db-input-copy-group input,

.light-mode #mycard-url-input,

.light-mode #share-link-input,

.light-mode .db-share-field input {
  background: rgba(15, 23, 42, 0.04) !important;
  color: #0284C7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.db-input-copy-group input:focus,

#mycard-url-input:focus,

#share-link-input:focus {
  border-color: #06B6D4 !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2) !important;
}

/* Mobile Nav Bar Smooth Hide/Show Animation */

.db-mobile-bottom-nav {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.db-mobile-bottom-nav.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* Mobile Header Action Controls (Nav Toggle & Logout) */

.db-mobile-toggle-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #06B6D4;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.db-mobile-toggle-nav:hover,

.db-mobile-toggle-nav.active {
  background: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.db-mobile-logout {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.db-mobile-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}

/* ==========================================================================

   MY CARDS ENHANCEMENT: TWO PRODUCTS (DIGITAL VISITING CARD & BUSINESS CARD)

   ========================================================================== */

/* Product Switcher Bar at top of My Cards Page */

.db-products-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .db-products-switcher {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}

.db-product-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.db-product-tab:hover {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.db-product-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.12));
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.18);
}

.product-tab-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-tab-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-tab-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-tab-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-tab-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.db-badge-product-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.db-badge-product-status.status-active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.db-badge-product-status.status-inactive {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-muted);
}

/* Product Panes */

.db-product-pane {
  display: none;
}

.db-product-pane.active {
  display: block;
}

/* Business Card CTA Screen (Inactive state) */

.db-biz-cta-card {
  padding: 36px 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px dashed rgba(6, 182, 212, 0.35);
  border-radius: 24px;
}

.biz-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 620px;
  margin: 0 auto;
}

.biz-cta-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

.biz-cta-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.biz-cta-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.biz-cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.biz-feat-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
}

/* Business Card Customizer Module Bar */

.db-biz-module-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.biz-module-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.biz-module-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.biz-module-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Module Workspace 2-Column Grid */

.db-biz-workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .db-biz-workspace-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

/* Real-Time Live Business Card Stage */

.biz-preview-card {
  padding: 20px;
}

.biz-side-toggle {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 4px;
}

.biz-side-btn {
  padding: 5px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.biz-side-btn.active {
  background: #06B6D4;
  color: #ffffff;
}

.biz-card-stage-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 10px;
  min-height: 240px;
}

.biz-card-stage {
  width: 100%;
  max-width: 420px;
  height: 235px;
  position: relative;
  transition: all 0.3s ease;
}

.biz-card-stage.vertical {
  max-width: 250px;
  height: 380px;
}

.biz-card-frame {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(0.96);
  box-shadow: 0 16px 38px rgba(7, 121, 135, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  box-sizing: border-box;
}

.biz-card-frame.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.biz-card-front {
  background: linear-gradient(135deg, #077987 0%, #0db89e 55%, #049377 100%);
}

.biz-card-back {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
  align-items: center;
}

.biz-card-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%);
  pointer-events: none;
}

.biz-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 2;
}

.biz-brand-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}

.biz-logo-symbol {
  font-size: 1.1rem;
  color: #06B6D4;
}

.biz-middle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  margin: 10px 0;
}

.biz-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.biz-person-info {
  display: flex;
  flex-direction: column;
}

.biz-person-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.biz-person-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.biz-person-tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.biz-footer-contact {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  z-index: 2;
}

.biz-contact-item {
  flex: 1;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  font-size: 0.68rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-back-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: auto;
  z-index: 2;
}

.biz-scan-hint {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.biz-address-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}

.biz-live-status-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Customization Panel & Templates Gallery */

.db-biz-tab-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 4px;
}

.biz-tab-btn {
  flex: 1;
  padding: 9px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.biz-tab-btn.active {
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.db-biz-pane {
  display: none;
}

.db-biz-pane.active {
  display: block;
}

.biz-template-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.biz-filter-pill {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.biz-filter-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #06B6D4;
}

.biz-template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.biz-tpl-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.biz-tpl-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.biz-tpl-card.active {
  border-color: #06B6D4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.4);
}

.tpl-thumb-frame {
  height: 85px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
}

.tpl-lock-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.tpl-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.tpl-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tpl-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.tpl-badge.free {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.tpl-badge.premium {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
}

/* Customizer Controls Styling */

.biz-ctrl-group {
  padding: 16px;
  margin-bottom: 14px;
}

.biz-ctrl-group h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.biz-btn-toggle-row {
  display: flex;
  gap: 8px;
}

.biz-toggle-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.biz-toggle-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06B6D4;
  color: #06B6D4;
}

.biz-color-palette-row {
  display: flex;
  gap: 10px;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-dot:hover,

.color-dot.active {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================

   DIGITAL VISITING CARD LANDING PROFILE PREVIEW (REALISTIC MOBILE MOCKUP)

   ========================================================================== */

.dvc-preview-wrapper {
  width: 100%;
}

.dvc-stage-panel {
  padding: 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dvc-stage-panel .db-panel-header {
  width: 100%;
}

.dvc-phone-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 10px 0;
  width: 100%;
}

.dvc-phone-mockup {
  width: 320px;
  max-width: 320px;
  background: #070c18;
  border: 10px solid #1e293b;
  border-radius: 42px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75),
              0 0 30px rgba(6, 182, 212, 0.28),
              inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.dvc-phone-notch {
  width: 104px;
  height: 22px;
  background: #0f172a;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dvc-notch-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #030712;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.dvc-notch-speaker {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: #1e293b;
}

.dvc-profile-card {
  padding: 28px 0 20px 0 !important;
  overflow: hidden;
  border-radius: 0;
  position: relative;
  background: transparent;
  box-shadow: none !important;
  border: none !important;
}

.dvc-banner {
  height: 95px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%),
              radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3), transparent 50%);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px 14px;
}

.dvc-brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.dvc-live-badge {
  position: absolute;
  top: 14px;
  right: 16px;
}

.dvc-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -42px;
  padding: 0 20px;
}

.dvc-avatar-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  border: 3.5px solid #060B18;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

.dvc-user-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 10px 0 2px 0;
}

.dvc-user-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: #06B6D4;
}

.dvc-user-company {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dvc-action-buttons {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.dvc-btn-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dvc-btn-action.primary {
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.dvc-btn-action.wa {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.dvc-btn-action.mail {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3B82F6;
}

.dvc-btn-action:hover {
  transform: translateY(-2px);
}

.dvc-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
  margin-top: 6px;
}

.dvc-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
}

.dvc-icon {
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dvc-contact-info {
  display: flex;
  flex-direction: column;
}

.dvc-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dvc-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dvc-qr-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 20px 0 20px;
  padding: 12px 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 16px;
}

.dvc-qr-mini {
  flex-shrink: 0;
}

.dvc-qr-text p {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.dvc-qr-text small {
  font-size: 0.75rem;
  color: #06B6D4;
}

/* ==========================================================================

   PROFESSIONAL LAYOUTS & PHONE PREVIEW STYLES

   ========================================================================== */

/* UI STANDARD SELECTION CARDS (STRIPE/VERCEL COMPLIANT ALIGNMENT) */

.ui-standard-card {
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.45);
  border: 1.5px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.ui-standard-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(15, 23, 42, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* HIGH VISIBILITY SELECTED STATE */

.ui-standard-card.active {
  border: 2px solid var(--accent-primary) !important;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.15), rgba(15, 23, 42, 0.96)) !important;
  box-shadow: 0 0 0 1px var(--accent-primary), 0 12px 30px var(--accent-glow) !important;
}

/* Header Section */

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.card-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ui-standard-card.active .card-icon-box {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
}

.card-heading-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-badge-container {
  display: flex;
  align-items: center;
  height: 20px;
  margin-bottom: 2px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.card-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  line-height: 1;
}

.card-badge.pro {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.card-badge.max {
  color: #C084FC;
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.3);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Radio Selection Circle */

.card-radio-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: transparent;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-top: 2px;
}

.ui-standard-card.active .card-radio-circle {
  border-color: var(--accent-primary);
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.08);
}

/* Section Divider */

.card-divider {
  height: 1px;
  background: var(--border-glass);
  width: 100%;
}

/* Body & Highlighter Rows */

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hl-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hl-pill {
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-accent);
  padding: 3px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  color: #38BDF8;
  border: 1px solid rgba(6, 182, 212, 0.35);
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ui-standard-card.active .hl-pill {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.hl-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.light-mode .ui-standard-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

.light-mode .ui-standard-card.active {
  background: #ffffff !important;
  border-color: var(--accent-primary) !important;
}

.light-mode .card-icon-box {
  background: rgba(15, 23, 42, 0.04);
}

.light-mode .hl-pill {
  background: rgba(6, 182, 212, 0.12);
  color: #0284C7;
  border-color: rgba(6, 182, 212, 0.3);
}

.light-mode .ui-standard-card.active .hl-pill {
  background: var(--accent-gradient);
  color: #ffffff;
}

@media (max-width: 768px) {
  .cards-select-grid.layout-select-grid {
    grid-template-columns: 1fr;
  }

}

.layout-preview-mock.three-page-mock {
  gap: 4px;
}

.layout-preview-mock.three-page-mock .mock-page {
  font-size: 9px;
  padding: 2px;
}

.phone-section-title-wrap {
  margin-bottom: 12px;
}

.phone-section-title-wrap h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.phone-section-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.phone-products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-product-card {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px;
  align-items: center;
  transition: transform 0.2s, border-color 0.2s;
}

.phone-product-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.product-card-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.product-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-title-row h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
}

.product-card-content p {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.product-inquire-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.phone-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-form-group label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
}

.phone-input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.phone-textarea {
  resize: none;
  font-family: inherit;
}

.phone-enquiry-submit-btn {
  background: var(--accent-gradient);
  color: #FFF;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: opacity 0.2s;
}

.phone-enquiry-submit-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================

   InstaVIZ - PROFILE CREATE BUILDER STYLES (DEDICATED & MODULAR)

   ========================================================================== */

/* Design Tokens & Variables */

:root {
  --bg-dark: #070B19;
  --bg-glass: rgba(15, 22, 42, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --glow-glow: rgba(59, 130, 246, 0.25);
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --accent-primary: #06B6D4;
  --accent-secondary: #3B82F6;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --accent-glow: rgba(6, 182, 212, 0.3);
  --font-main: 'DM Sans', sans-serif;
  --font-title: 'Poppins', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  --radius-card: 24px;
  --radius-input: 12px;
}

.light-mode {
  --bg-dark: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(15, 23, 42, 0.08);
  --glow-glow: rgba(59, 130, 246, 0.15);
  --text-primary: #0F172A;
  --text-muted: #475569;
  --accent-glow: rgba(6, 182, 212, 0.18);
}

/* Reset & Base */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Orbs */

.builder-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.orb-primary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-secondary {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%);
  bottom: -200px;
  right: -100px;
}

/* App Container & Views */

#app-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
}

.app-view {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
  min-height: 100vh;
  flex-direction: column;
}

.app-view.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Builder Layout (Two Columns) */

.builder-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  width: 100%;
}

.builder-layout.no-live-preview {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  border-right: 0 !important;
}

.builder-layout.no-live-preview .wizard-pane {
  width: 100%;
  border-right: 0 !important;
}

.builder-layout.no-live-preview::before,
.builder-layout.no-live-preview::after,
.builder-layout.no-live-preview .wizard-pane::before,
.builder-layout.no-live-preview .wizard-pane::after {
  display: none !important;
}

.wizard-pane {
  display: flex;
  flex-direction: column;
}

/* Progress Bar */

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Wizard Steps */

.wizard-step {
  display: none;
  flex-direction: column;
  gap: 28px;
}

.wizard-step.active-step {
  display: flex;
}

.step-intro h1 {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-title);
  margin-bottom: 8px;
}

.step-intro p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Selectable Cards Grid */

.cards-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.selectable-card {
  background: var(--bg-glass);
  border: 2px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.selectable-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.selectable-card.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px var(--accent-glow);
}

.selectable-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card-icon {
  font-size: 2.2rem;
}

.selectable-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.selectable-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selectable-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.selectable-card ul li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 10px;
}

.badge-soon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Layout Cards */

.ui-standard-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-header-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-icon-box {
  font-size: 1.8rem;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
}

.selectable-card.active .card-radio-circle {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: #fff;
}

.card-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 4px 0;
}

.hl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.hl-pill {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-primary);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hl-text {
  color: var(--text-muted);
}

/* Form Section */

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 20px;
  background: var(--bg-glass);
}

.form-section legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 8px;
  color: var(--accent-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group label small {
  font-weight: normal;
  opacity: 0.8;
}

.form-group input,

.form-group textarea {
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,

.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

/* Input Icon Group */

.input-with-icon {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-input);
  overflow: hidden;
}

.icon-span {
  padding: 10px 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.input-with-icon input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 1;
}

/* Drag Upload Boxes */

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.drag-upload-box {
  border: 2px dashed var(--border-glass);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}

.drag-upload-box:hover {
  border-color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.04);
}

.upload-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.upload-prompt p {
  font-size: 0.88rem;
  font-weight: 500;
}

.upload-prompt p span {
  color: var(--accent-primary);
  text-decoration: underline;
}

.upload-prompt small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.upload-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.upload-preview img {
  max-height: 80px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.hidden {
  display: none !important;
}

.remove-upload-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #EF4444;
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}

/* Tags Input */

.tags-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-input);
  min-height: 48px;
}

.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  background: var(--accent-gradient);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.remove-tag-btn {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
}

.remove-tag-btn:hover {
  opacity: 1;
}

.tags-input-container input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 1;
  min-width: 120px;
  padding: 4px 0 !important;
}

.suggested-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.suggest-tag-pill {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggest-tag-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* Buttons & Step Footer */

.step-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Success Step */

.success-step {
  text-align: center;
  align-items: center;
}

.success-icon-wrap {
  margin: 0 auto;
}

.success-checkmark-circle {
  width: 72px;
  height: 72px;
}

.checkmark-svg {
  width: 72px;
  height: 72px;
  stroke: #10B981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-preview-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  text-align: left;
  max-width: 440px;
  width: 100%;
  margin: 16px auto;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.plan-header h3 {
  font-size: 1.1rem;
}

.plan-header .price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.plan-preview-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Smartphone Mockup Preview */

.preview-pane {
  position: relative;
}

.preview-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.smartphone-frame {
  width: 330px;
  height: 640px;
  background: #0d1322;
  border: 10px solid #1e293b;
  border-radius: 44px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status-notch {
  width: 110px;
  height: 20px;
  background: #1e293b;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen-area {
  flex: 1;
  padding-top: 24px;
  background: var(--bg-dark);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-view-page {
  display: none;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
  flex: 1;
}

.phone-view-page.active-page {
  display: flex;
}

.phone-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-org-logo {
  height: 24px;
  width: auto;
}

.phone-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.phone-profile-section {
  text-align: center;
}

.phone-profile-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.phone-profile-section p {
  font-size: 0.88rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.company-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.phone-nav-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.phone-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.phone-qr-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-glass);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-scan-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.phone-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-socials-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.phone-action-wrap {
  margin-top: auto;
  padding-top: 10px;
}

.phone-cta-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.phone-back-nav {
  margin-bottom: 8px;
}

.phone-page-nav-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.phone-scroll-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-detail-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.phone-detail-section p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.phone-skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phone-resume-btn-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
}

/* Site Footer */

footer {
  background: rgba(7, 11, 25, 0.85);
  border-top: 1px solid var(--border-glass);
  padding: 40px 24px 20px;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-btn:hover {
  color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.15);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-contact-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1280px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
}

/* Responsive Media Queries */

@media (max-width: 1024px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .preview-pane {
    display: flex;
    justify-content: center;
  }

  .preview-sticky {
    position: static;
  }

}

@media (max-width: 768px) {
  #main-nav {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .form-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Lock Desktop Page Viewport to 100vh - No Window Vertical Scrollbar on Desktop */
@media (min-width: 1025px) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }

  #app-container {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding-top: 75px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .app-view, .app-view.active {
    height: calc(100vh - 75px) !important;
    max-height: calc(100vh - 75px) !important;
    overflow: hidden !important;
  }

  .builder-layout {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
}

.wizard-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  flex: 1;
}

.progress-container {
  flex-shrink: 0;
  margin-bottom: 24px;
  z-index: 10;
}

.wizard-step.active-step {
  flex: 1;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-bottom: 32px;
  padding-right: 4px;
}

/* Hide scrollbar visually while retaining smooth scroll functionality */
html,
body,
#app-container,
.builder-layout,
.wizard-pane,
.wizard-step,
#step-3,
#form-contact,
.preview-pane,
.app-view {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
#app-container::-webkit-scrollbar,
.builder-layout::-webkit-scrollbar,
.wizard-pane::-webkit-scrollbar,
.wizard-step::-webkit-scrollbar,
#step-3::-webkit-scrollbar,
#form-contact::-webkit-scrollbar,
.preview-pane::-webkit-scrollbar,
.app-view::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS FOR ALL DEVICES
   ========================================================================== */

/* Tablets & iPad (max-width: 1024px) */
@media (max-width: 1024px) {
  #main-nav {
    padding: 14px 24px !important;
  }

  .nav-slogan {
    display: none !important;
  }

  .builder-layout {
    flex-direction: column !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    gap: 32px !important;
  }

  .wizard-pane {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .wizard-step.active-step {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .preview-pane {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--border) !important;
  }

  .preview-sticky {
    position: static !important;
    transform: scale(0.9) !important;
    transform-origin: top center !important;
  }
}

/* Mobile Devices & Smartphones (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
  }

  #app-container {
    padding-top: 64px !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  .app-view, .app-view.active {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #main-nav {
    padding: 12px 16px !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-links.active {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--nav-scrolled-bg, rgba(6, 11, 24, 0.96)) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--border) !important;
    gap: 16px !important;
    z-index: 1000 !important;
  }

  .customer-topbar .customer-nav-links a,
  .customer-topbar .customer-nav-links button {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .customer-topbar .mobile-logout-item {
    display: block !important;
  }

  .customer-topbar .nav-logout-link {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .cards-select-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .layout-select-grid {
    grid-template-columns: 1fr !important;
  }

  .form-grid,
  .upload-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .form-group.full-width {
    grid-column: span 1 !important;
  }

  /* Prevent iOS zoom on input focus */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
  }

  .step-footer {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-top: 20px !important;
  }

  .step-footer .btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 12px 16px !important;
  }

  .wizard-header.compact-builder-header {
    width: calc(100% - 32px) !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .builder-header-copy {
    display: grid !important;
    gap: 6px !important;
  }

  .builder-header-copy h1 {
    white-space: normal !important;
  }

  .builder-header-copy p {
    text-align: left !important;
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .create-builder-page,
  .edit-builder-page,
  #app-container,
  .app-view,
  .builder-layout,
  .wizard-pane,
  .wizard-form,
  .form-section,
  .section-box,
  .template-grid,
  .layout-grid,
  .professional-layout-grid,
  .student-layout-grid,
  .form-grid,
  .upload-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .create-builder-page #app-container,
  .edit-builder-page #app-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .wizard-pane {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }

  .form-grid,
  .upload-grid,
  .template-grid,
  .layout-grid,
  .professional-layout-grid,
  .student-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .form-section,
  .section-box,
  .layout-card,
  .template-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  input,
  textarea,
  select,
  button {
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  .action-row,
  .form-actions,
  .button-row,
  .wizard-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .action-row button,
  .form-actions button,
  .button-row button,
  .wizard-actions button {
    width: 100% !important;
    white-space: normal !important;
  }

  .step-intro h1 {
    font-size: 20px !important;
  }

  .step-intro p {
    font-size: 13px !important;
  }

  .preview-sticky {
    transform: scale(0.82) !important;
  }

  .nav-logo img {
    height: 32px !important;
  }
}

footer {
  display: none !important;
}

.create-builder-page .wizard-header.compact-builder-header {
  grid-template-columns: auto minmax(0, 1fr) !important;
  max-width: 980px !important;
  margin: 24px auto 20px !important;
}

.create-builder-page .builder-header-copy {
  justify-content: flex-end !important;
}

.create-builder-page .builder-header-copy h1 {
  display: none !important;
}

.create-builder-page .builder-layout.no-live-preview {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 980px !important;
  border-right: 0 !important;
}

.create-builder-page .builder-layout.no-live-preview .wizard-pane {
  border-right: 0 !important;
  padding-right: 24px !important;
}

@media (min-width: 1025px) {
  html:has(.create-builder-page),
  body:has(.create-builder-page) {
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    position: static !important;
  }

  .create-builder-page #app-container {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .create-builder-page .app-view,
  .create-builder-page .app-view.active {
    height: auto !important;
    min-height: calc(100vh - 75px) !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .create-builder-page .builder-layout.no-live-preview,
  .create-builder-page .wizard-pane,
  .create-builder-page .wizard-step.active-step {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

.create-builder-page .professional-layout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 20px !important;
}

.create-builder-page .professional-layout-grid .ui-standard-card {
  min-height: 230px !important;
  height: 100% !important;
  padding: 24px 26px !important;
}

.create-builder-page .professional-layout-grid .card-header {
  min-height: 104px !important;
}

.create-builder-page .professional-layout-grid .card-header-left {
  width: 100% !important;
  align-items: flex-start !important;
}

.create-builder-page .professional-layout-grid .card-heading-group {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: center !important;
}

.create-builder-page .professional-layout-grid .card-badge-container {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
}

.create-builder-page .professional-layout-grid .card-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.create-builder-page .professional-layout-grid .card-title {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.18 !important;
  white-space: normal !important;
}

.create-builder-page .professional-layout-grid .card-subtitle {
  min-height: 34px !important;
  text-align: center !important;
  line-height: 1.35 !important;
}

.create-builder-page .professional-layout-grid .card-radio-circle {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
}

.create-builder-page .professional-layout-grid .card-body {
  display: grid !important;
  gap: 10px !important;
  align-content: start !important;
}

.create-builder-page .professional-layout-grid .hl-row {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

.create-builder-page .professional-layout-grid .hl-pill {
  text-align: center !important;
  white-space: nowrap !important;
}

.create-builder-page .professional-layout-grid .hl-text {
  text-align: left !important;
  line-height: 1.35 !important;
}

@media (max-width: 768px) {
  .create-builder-page .professional-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .create-builder-page .professional-layout-grid .ui-standard-card {
    min-height: 0 !important;
  }
}

.themes-builder-page .builder-layout.no-live-preview {
  max-width: 1040px !important;
}

.themes-builder-page .themes-wizard-pane {
  padding-right: 0 !important;
}

.theme-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.theme-back-link:hover {
  color: var(--text);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 40px;
}

.theme-card {
  display: flex;
  flex-direction: column;
  min-height: 405px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(2, 8, 23, 0.76));
  box-shadow: 0 18px 50px rgba(2, 8, 23, 0.36);
}

.theme-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  cursor: pointer;
}

.theme-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.theme-preview:hover img {
  transform: scale(1.04);
}

.theme-preview-hover {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.theme-preview:hover .theme-preview-hover {
  opacity: 1;
}

.theme-count {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.theme-color-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.72);
}

.theme-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 82px;
  padding: 18px 2px 14px;
}

.theme-card-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.theme-card-body p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.theme-swatch {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
}

.theme-use-button {
  width: 100%;
  margin-top: auto;
}

.empty-theme-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 54px 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.54);
  text-align: center;
}

.empty-theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
}

.empty-theme-state h3 {
  color: var(--text);
  font-size: 18px;
}

.empty-theme-state p {
  color: var(--muted);
  font-size: 14px;
}

.builder-toast {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  max-width: 390px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.builder-toast.error {
  border-color: rgba(248, 113, 113, 0.38);
}

.builder-toast.success {
  border-color: rgba(34, 197, 94, 0.34);
}

.builder-toast p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.builder-toast button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.payment-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.payment-prompt-card {
  position: relative;
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 22% 0%, rgba(6, 182, 212, 0.16), transparent 15rem),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  color: var(--text);
  text-align: center;
}

.payment-prompt-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.payment-prompt-close:hover {
  border-color: rgba(6, 182, 212, 0.38);
  color: var(--text);
}

.payment-prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(59, 130, 246, 0.2));
  color: var(--cyan);
  box-shadow: 0 16px 42px rgba(6, 182, 212, 0.18);
}

.payment-prompt-card .section-eyebrow {
  justify-content: center;
  margin-bottom: 10px;
}

.payment-prompt-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.12;
}

.payment-prompt-card p {
  margin: 12px auto 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.payment-prompt-summary {
  display: grid;
  gap: 5px;
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.26);
  text-align: left;
}

.payment-prompt-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-prompt-summary strong {
  color: var(--text);
  font-size: 15px;
}

.payment-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.theme-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2, 6, 23, 0.92);
}

.theme-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.theme-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(1040px, 100%);
  max-height: 92vh;
  color: #fff;
}

.theme-modal-content h3 {
  font-size: 20px;
}

.theme-modal-content p {
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
}

.theme-modal-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  flex: 1;
}

.theme-modal-frame img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
}

.theme-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  cursor: pointer;
}

.theme-modal-nav.prev {
  left: 14px;
}

.theme-modal-nav.next {
  right: 14px;
}

.theme-modal-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .theme-card {
    min-height: 0;
  }

  .theme-preview {
    height: 200px;
  }

  .builder-toast {
    left: 16px;
    right: 16px;
    top: 78px;
    max-width: none;
  }

  .payment-prompt-card {
    padding: 30px 20px 22px;
  }

  .payment-prompt-actions {
    grid-template-columns: 1fr;
  }
}

.account-builder-page #main-nav.customer-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  display: block !important;
  min-height: 80px !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(17, 24, 39, 0.9) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

.account-builder-page .customer-topbar-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 1152px !important;
  height: 80px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
}

.account-builder-page .customer-topbar .nav-logo img {
  height: 40px !important;
  width: auto !important;
}

.account-builder-page .customer-topbar .nav-links,
.account-builder-page .customer-topbar .nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.account-builder-page .customer-topbar .customer-nav-links a,
.account-builder-page .customer-topbar .customer-nav-links button,
.account-builder-page .customer-topbar .nav-logout-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  color: #cbd5e1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.account-builder-page .customer-topbar .customer-nav-links a:hover,
.account-builder-page .customer-topbar .customer-nav-links button:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.account-builder-page .customer-topbar .customer-nav-links a.active,
.account-builder-page .customer-topbar .customer-nav-links button.active {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #c7d2fe !important;
}

.account-builder-page .customer-topbar .nav-logout-link {
  color: #fca5a5 !important;
}

.account-builder-page .customer-topbar .mobile-logout-item {
  display: none !important;
}

.account-builder-page #app-container {
  width: 100% !important;
  height: auto !important;
  min-height: calc(100vh - 80px) !important;
  max-height: none !important;
  padding-top: 0 !important;
  overflow: visible !important;
}

.account-builder-page .app-view,
.account-builder-page .app-view.active {
  height: auto !important;
  min-height: calc(100vh - 80px) !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 32px 24px 56px !important;
}

.account-builder-page .wizard-header.compact-builder-header,
.account-builder-page .builder-layout.no-live-preview {
  width: 100% !important;
  max-width: 1152px !important;
}

.account-builder-page .wizard-header.compact-builder-header {
  margin: 0 auto 28px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24) !important;
}

.account-builder-page .builder-layout.no-live-preview {
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.account-builder-page .builder-layout.no-live-preview .wizard-pane {
  width: 100% !important;
  padding: 28px 48px 40px !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: transparent !important;
}

.account-builder-page .progress-container {
  margin-bottom: 26px !important;
}

@media (max-width: 768px) {
  .account-builder-page #main-nav.customer-topbar {
    min-height: 64px !important;
  }

  .account-builder-page .customer-topbar-inner {
    height: 64px !important;
    padding: 0 16px !important;
  }

  .account-builder-page .customer-topbar .nav-logo img {
    height: 36px !important;
  }

  .account-builder-page .customer-topbar .nav-links {
    display: none !important;
  }

  .account-builder-page .customer-topbar .nav-links.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 18px 20px !important;
  }

  .account-builder-page .customer-topbar .customer-nav-links a,
  .account-builder-page .customer-topbar .customer-nav-links button {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .account-builder-page .customer-topbar .mobile-logout-item {
    display: block !important;
  }

  .account-builder-page .customer-topbar .nav-logout-link {
    display: none !important;
  }

  .account-builder-page .app-view,
  .account-builder-page .app-view.active {
    padding: 24px 16px 40px !important;
  }

  .account-builder-page .builder-layout.no-live-preview .wizard-pane {
    padding: 8px 0 32px !important;
  }
}
