/* ============================================
   FFLScan - Deepgram-Style Design System
   ============================================ */

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

:root {
    /* Colors - Deepgram palette */
    --black: #000000;
    --bg: #0A0A0A;
    --bg-elevated: #101014;
    --bg-card: #1A1A1F;

    --white: #FFFFFF;
    --gray-100: #F3F3F3;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #B0B7C0;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;

    /* Deepgram accent colors */
    --green: #13EF95;
    --green-dim: rgba(19, 239, 149, 0.1);
    --cyan: #149AFB;
    --purple: #7800ED;
    --yellow: #facc15;
    --primary: #13EF95;

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, #149AFB, #13EF95);
    --gradient-text: linear-gradient(90deg, #149AFB, #13EF95);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-max: 1280px;
    --section-px: 20px;
}

@media (min-width: 768px) {
    :root { --section-px: 32px; }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox scrollbar */
* {
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.05);
}

/* ============================================
   Background Effects
   ============================================ */

.aurora-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(19, 239, 149, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(20, 154, 251, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(120, 0, 237, 0.08) 0%, transparent 50%);
}

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

.noise-overlay {
    display: none;
}

/* ============================================
   Layout
   ============================================ */

.public-layout {
    min-height: 100vh;
}

.landing {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-px);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px var(--section-px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.logo-img-collapsed {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:not(.btn) {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--green);
}

.nav-phone {
    color: var(--gray-300) !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.nav-phone:hover {
    text-shadow: 0 0 10px rgba(19, 239, 149, 0.3) !important;
}

.nav-phone-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(19, 239, 149, 0.12);
    color: var(--green);
    margin-right: 4px;
    vertical-align: middle;
}

/* ============================================
   Buttons - Deepgram Style (1:1 Clone)
   ============================================ */

a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s;
    overflow: hidden;
}

/* Ensure button content stays above ::before */
.btn > * {
    position: relative;
    z-index: 1;
}

/* Primary Button - White bg with gradient sweep on hover */
.btn-primary,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: white;
    color: #000 !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099);
    background-size: 300% 100%;
    background-position: 0% 0%;
    opacity: 0;
    transition: all 0.3s;
    z-index: -1;
}

.btn-primary:hover,
a.btn-primary:hover {
    color: #000 !important;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover::before {
    opacity: 1;
    background-position: 100% 0%;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 2px #687EF7;
}

.btn-primary:disabled {
    background: #1f2937;
    color: #9ca3af;
    border-color: #1f2937;
}

.btn-primary:disabled::before {
    opacity: 0;
}

/* Hero primary button glow */
.hero-ctas .btn-primary {
    box-shadow:
        0 0 20px rgba(0, 240, 153, 0.25),
        0 0 40px rgba(0, 143, 193, 0.15);
}

.hero-ctas .btn-primary:hover {
    box-shadow:
        0 0 25px rgba(0, 240, 153, 0.35),
        0 0 50px rgba(0, 143, 193, 0.2);
}

/* Secondary Button - Gradient border with fill on hover */
.btn-secondary,
a.btn-secondary,
a.btn-secondary:link,
a.btn-secondary:visited {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff !important;
    background:
        linear-gradient(#000, #000) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
    background-size: auto, 300% 100%;
    background-position: 0 0, 0% 0%;
    box-shadow:
        6px 0 15px 0 rgba(56, 237, 172, 0.2),
        -6px 0 15px 0 rgba(20, 154, 251, 0.2);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099);
    background-size: 300% 100%;
    background-position: 0% 0%;
    opacity: 0;
    transition: all 0.3s;
    z-index: -1;
}

.btn-secondary:hover,
a.btn-secondary:hover,
a.btn-secondary:active {
    color: #000 !important;
    background:
        linear-gradient(transparent, transparent) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
    background-size: auto, 300% 100%;
    background-position: 0 0, 100% 0%;
}

.btn-secondary:hover::before {
    opacity: 1;
    background-position: 100% 0%;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 2px #687EF7;
}

.btn-secondary:disabled {
    opacity: 0.5;
    box-shadow: none;
}

/* Hero secondary button shimmer */
.hero-ctas .btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 100%
    );
    z-index: 1;
    animation: shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    40% { left: 120%; }
    100% { left: 120%; }
}

/* Brand button - frosted green */
.btn-brand,
a.btn-brand,
a.btn-brand:link,
a.btn-brand:visited,
a.btn-brand:hover,
a.btn-brand:active {
    background: rgba(19, 239, 149, 0.12);
    color: var(--green) !important;
    font-weight: 600;
    border: 1px solid rgba(19, 239, 149, 0.2);
    box-shadow: 0 0 10px rgba(19, 239, 149, 0.08);
    transition: all 0.3s;
}

.btn-brand:hover,
a.btn-brand:hover {
    background: rgba(19, 239, 149, 0.2);
    border-color: rgba(19, 239, 149, 0.35);
    box-shadow: 0 0 14px rgba(19, 239, 149, 0.12);
}

.btn-brand:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(19, 239, 149, 0.3);
}

/* Ghost button */
.btn-ghost {
    background: transparent;
    color: var(--gray-400);
    height: auto;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: none;
}

.btn-ghost:hover {
    color: var(--white);
}

/* Button sizes */
.btn-lg {
    height: 52px;
    padding: 0 24px;
    font-size: 1rem;
}

.btn-sm {
    height: 40px;
    padding: 0 16px;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Button icon */
.btn-icon {
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ============================================
   Typography
   ============================================ */

h1:focus {
    outline: none;
}

.text-display-xl {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-display-lg {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-400);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 140px var(--section-px) 20px;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(19, 239, 149, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 32px;
    transition: all 0.3s;
}

.hero-badge:hover {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    margin-bottom: 24px;
    outline: none;
    border: none;
    text-shadow: none;
}

.hero-tagline {
    color: var(--green);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray-400);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-rating .stars {
    color: #facc15;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.hero-rating .rating-text {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.hero-stats-inline {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats-inline span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   Trust Bar
   ============================================ */

.trust-bar {
    padding: 48px var(--section-px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.trust-text {
    font-size: 0.9375rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 4px;
}

.trust-tagline {
    font-size: 0.8125rem;
    color: rgba(19, 239, 149, 0.65);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.trust-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.trust-stat {
    text-align: center;
    padding: 0 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-stat:last-child {
    border-right: none;
    padding-right: 0;
}

.trust-stat:first-child {
    padding-left: 0;
}

.trust-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.trust-stat-label {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* ============================================
   Problem/Solution Section
   ============================================ */

.problem-section {
    padding: 20px var(--section-px) 80px;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

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

.problem-card,
.solution-card {
    padding: 32px;
    border-radius: 12px;
}

.problem-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.solution-card {
    background: rgba(19, 239, 149, 0.05);
    border: 1px solid rgba(19, 239, 149, 0.2);
}

.problem-title,
.solution-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.problem-list,
.solution-list {
    list-style: none;
}

.problem-list li,
.solution-list li {
    padding: 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-300);
    font-size: 0.9375rem;
    height: 3.6em;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.problem-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 100px var(--section-px);
    position: relative;
    scroll-margin-top: 80px;
}

.section-dark {
    background: rgba(255, 255, 255, 0.01);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header .text-display-lg {
    margin-bottom: 16px;
}

#features .section-header {
    max-width: none;
    margin-bottom: 48px;
}

#features .text-body-lg {
    max-width: 700px;
    margin: 0 auto;
}

.features-eyebrow {
    font-size: 1.0625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.features-heading {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.features-phrase {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding: 14px 28px;
    border: 1px solid rgba(19, 239, 149, 0.15);
    border-radius: 10px;
    background-color: rgba(19, 239, 149, 0.03);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .features-heading {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .features-phrase {
        font-size: 1.25rem;
        padding: 12px 24px;
    }
}

/* ============================================
   Feature Cards
   ============================================ */

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

.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease-in-out;
}

/* Gradient border on hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
    box-shadow:
        0 0 30px rgba(19, 239, 149, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(19, 239, 149, 0.1);
    border: 1px solid rgba(19, 239, 149, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--green);
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding-left: 54px;
}

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

    .feature-card p {
        padding-left: 0;
    }
}

/* ============================================
   Steps Section
   ============================================ */

#how-it-works .section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: none;
    margin-bottom: 48px;
}

.section-header .steps-heading {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
}

.steps-subtext {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.5;
    margin: 0;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    justify-items: center;
}

.step {
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.2s;
}

.step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(19, 239, 149, 0.15);
}

.step-number {
    width: 56px;
    height: 56px;
    background: rgba(19, 239, 149, 0.1);
    border: 1px solid rgba(19, 239, 149, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--green);
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
    line-height: 1.5;
}

.step-or {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    margin: 4px 0;
}

.step p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    color: var(--green);
    font-size: 1.125rem;
}

.step-connector-line {
    width: 32px;
    height: 2px;
    background: rgba(19, 239, 149, 0.3);
    margin-right: 4px;
}

@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 16px;
    }
    .step-connector { display: none; }
}

.steps-cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   Reviews
   ============================================ */

#reviews .section-header {
    max-width: 800px;
    margin-bottom: 24px;
}

.section-header .reviews-heading {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.reviews-stars {
    color: #facc15;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.reviews-rating {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
}

.reviews-count {
    display: block;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-top: 6px;
}

.reviews-count i {
    color: var(--gray-400);
    margin-right: 4px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.review-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(19, 239, 149, 0.1);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-header strong {
    display: block;
    color: var(--white);
    font-size: 0.9375rem;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
    font-size: 0.75rem;
}

.review-stars {
    color: #facc15;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review-text {
    color: var(--gray-300);
    font-size: 0.9375rem;
    line-height: 1.65;
    font-style: italic;
}

/* ============================================
   FAQ Section
   ============================================ */

.section-header .faq-heading {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0;
}

#faq .section-header {
    margin-bottom: 24px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.faq-answer {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--green);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ============================================
   Pricing Cards
   ============================================ */

.pricing-toggle-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--gray-500);
}

.pricing-toggle-active {
    color: var(--white);
    font-weight: 600;
}

.pricing-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.pricing-switch:hover {
    border-color: rgba(19, 239, 149, 0.3);
}

.pricing-switch.active {
    background: rgba(19, 239, 149, 0.2);
    border-color: rgba(19, 239, 149, 0.4);
}

.pricing-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.2s;
}

.pricing-switch.active .pricing-switch-knob {
    transform: translateX(22px);
    background: var(--green);
}

.pricing-save-badge {
    display: inline-block;
    margin-top: 8px;
    background: rgba(19, 239, 149, 0.12);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 0.2s;
}

.pricing-save-badge.visible {
    opacity: 1;
}

.price-billed {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.grecaptcha-badge { visibility: hidden !important; }

.recaptcha-notice {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 12px;
}

.recaptcha-notice a {
    color: var(--gray-400);
    text-decoration: underline;
}

.pricing-coming-soon {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.8125rem;
    margin-top: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.pricing-card:hover::before {
    opacity: 0.5;
}

.pricing-card.featured {
    border-color: transparent;
}

.pricing-card.featured::before {
    opacity: 0.6;
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: var(--gradient-primary);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.2;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--black);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-200);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card.featured .pricing-header h3 {
    color: var(--white);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-period {
    font-size: 1rem;
    color: var(--gray-400);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 600;
}

.pricing-features li.feature-disabled {
    color: var(--gray-600);
}

.pricing-features li.feature-disabled::before {
    content: '—';
    color: var(--gray-600);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-400);
    align-self: flex-start;
    margin-top: 8px;
}

.price-description {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-top: 8px;
}

/* ============================================
   CTA Section - Deepgram 1:1 Clone
   ============================================ */

.cta-section {
    position: relative;
    background: transparent;
    contain: content;
    scroll-margin-top: 64px;
}


/* Container */
.cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px var(--section-px) 40px;
}

@media (min-width: 640px) {
    .cta-container {
        padding: 16px 32px 48px;
    }
}

/* Content wrapper */
.cta-content-wrapper {
    position: relative;
    padding-top: 0;
}

/* Subtle glow behind card */
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(19, 239, 149, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Stars particles - rising from box top */
.cta-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    transform: translateY(-100%);
    overflow: visible;
    pointer-events: none;
    z-index: 5;
}

.cta-stars .star {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: riseFromBox 5s ease-out infinite;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Randomize star positions and timing */
.cta-stars .star:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 4s; }
.cta-stars .star:nth-child(2) { left: 10%; animation-delay: 0.8s; animation-duration: 4.5s; }
.cta-stars .star:nth-child(3) { left: 15%; animation-delay: 1.6s; animation-duration: 5s; }
.cta-stars .star:nth-child(4) { left: 20%; animation-delay: 0.4s; animation-duration: 4.2s; }
.cta-stars .star:nth-child(5) { left: 25%; animation-delay: 2s; animation-duration: 4.8s; }
.cta-stars .star:nth-child(6) { left: 30%; animation-delay: 1.2s; animation-duration: 5.2s; }
.cta-stars .star:nth-child(7) { left: 35%; animation-delay: 2.8s; animation-duration: 4.4s; }
.cta-stars .star:nth-child(8) { left: 40%; animation-delay: 0.2s; animation-duration: 4.6s; }
.cta-stars .star:nth-child(9) { left: 45%; animation-delay: 1.8s; animation-duration: 5.4s; }
.cta-stars .star:nth-child(10) { left: 50%; animation-delay: 1s; animation-duration: 4.3s; }
.cta-stars .star:nth-child(11) { left: 55%; animation-delay: 2.4s; animation-duration: 4.7s; }
.cta-stars .star:nth-child(12) { left: 60%; animation-delay: 0.6s; animation-duration: 5.1s; }
.cta-stars .star:nth-child(13) { left: 65%; animation-delay: 2.2s; animation-duration: 4.1s; }
.cta-stars .star:nth-child(14) { left: 70%; animation-delay: 3s; animation-duration: 4.9s; }
.cta-stars .star:nth-child(15) { left: 75%; animation-delay: 0.9s; animation-duration: 5.3s; }
.cta-stars .star:nth-child(16) { left: 80%; animation-delay: 2.6s; animation-duration: 4.5s; }
.cta-stars .star:nth-child(17) { left: 85%; animation-delay: 1.4s; animation-duration: 4.8s; }
.cta-stars .star:nth-child(18) { left: 90%; animation-delay: 3.2s; animation-duration: 5s; }
.cta-stars .star:nth-child(19) { left: 95%; animation-delay: 1.5s; animation-duration: 4.4s; }
.cta-stars .star:nth-child(20) { left: 98%; animation-delay: 0.3s; animation-duration: 4.6s; }

@keyframes riseFromBox {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-300px);
        opacity: 0;
    }
}

/* Frosted glass card */
.cta-box {
    position: relative;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(19, 239, 149, 0.2), rgba(255, 255, 255, 0.05), rgba(20, 181, 242, 0.15));
    overflow: visible;
}

.cta-box::after {
    display: none;
}

/* Inner content box - frosted glass */
.cta-box-inner {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 11px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
    .cta-box-inner {
        padding: 40px 56px;
    }
}

@media (min-width: 1024px) {
    .cta-box-inner {
        padding: 40px 56px;
    }
}

/* Center content */
.cta-content {
    max-width: 615px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .cta-content {
        max-width: 692px;
    }
}

.cta-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-200);
    margin-bottom: 0;
}

.cta-subtitle {
    font-size: 0.875rem;
    color: var(--white);
    margin-top: 12px;
    margin-bottom: 24px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .cta-subtitle {
        font-size: 1rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        width: auto;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px var(--section-px) 32px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
}

.footer-brand p {
    color: var(--gray-500);
    margin-top: 16px;
    font-size: 0.9375rem;
    max-width: 260px;
    line-height: 1.6;
}

.footer-contact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--green);
}

.contact-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(19, 239, 149, 0.2);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.footer-status-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.75rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-status-pill:hover {
    border-color: rgba(19, 239, 149, 0.2);
    box-shadow: 0 0 12px rgba(19, 239, 149, 0.08);
}

.footer-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-status-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-status-item i {
    font-size: 0.85rem;
    color: var(--green);
}

.status-countdown {
    color: var(--green);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.status-heartbeat {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(19, 239, 149, 0.4); }
    15% { transform: scale(1.3); box-shadow: 0 0 8px 2px rgba(19, 239, 149, 0.3); }
    30% { transform: scale(1); box-shadow: 0 0 0 0 rgba(19, 239, 149, 0.1); }
    45% { transform: scale(1.2); box-shadow: 0 0 6px 1px rgba(19, 239, 149, 0.2); }
    60% { transform: scale(1); box-shadow: 0 0 0 0 rgba(19, 239, 149, 0); }
}

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

.footer-bottom .footer-legal a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-bottom .footer-legal a:hover {
    color: var(--gray-400);
}

.footer-bottom a.footer-brand-link {
    color: rgba(19, 239, 149, 0.5);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-bottom a.footer-brand-link:hover {
    color: var(--green);
    text-shadow: 0 0 12px rgba(19, 239, 149, 0.4);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero {
        padding: max(100px, 15vh) var(--section-px) 60px;
    }
    .section { padding: 64px var(--section-px); }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .trust-stat {
        padding: 0;
        border-right: none;
    }
    .trust-stat-value {
        font-size: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Mobile Hamburger Menu
   ============================================ */

.hamburger-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.nav-mobile-actions {
    display: none;
}

@media (max-width: 768px) {
    .nav-mobile-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: var(--bg-elevated);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.mobile-drawer-close:hover {
    color: var(--white);
}

.mobile-drawer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    overflow-y: auto;
}

.mobile-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.mobile-drawer-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.mobile-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer-footer .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Blazor Defaults
   ============================================ */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #dc2626;
    padding: 16px;
    color: white;
}

.blazor-error-boundary {
    background: #dc2626;
    padding: 1rem;
    color: white;
}

/* ============================================
   Dashboard Layout
   ============================================ */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--black);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-elevated);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar.collapsed {
    width: 72px;
}

.sidebar.collapsed .sidebar-header {
    padding: 12px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav {
    padding: 8px 6px;
    gap: 2px;
}

.sidebar.collapsed .nav-item {
    padding: 8px 16px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 8px 6px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
}

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

.nav-item.active {
    background: rgba(19, 239, 149, 0.1);
    color: var(--green);
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.sidebar .unread-badge {
    margin-left: auto;
    flex-shrink: 0;
}

.nav-badge-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--bg-elevated);
}

.sidebar-footer {
    padding: 16px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main Content Area */
.dashboard-main {
    flex: 1;
    margin-left: 240px;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    min-width: 0;
}

.sidebar.collapsed + .dashboard-main {
    margin-left: 72px;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

.sidebar-overlay {
    display: none;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

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

.sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-500);
}

.status-dot.active {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.pending { background: rgba(20, 154, 251, 0.1); }
.stat-icon.success { background: rgba(19, 239, 149, 0.1); }
.stat-icon.warning { background: rgba(250, 204, 21, 0.1); }
.stat-icon.shipped { background: rgba(168, 85, 247, 0.1); }

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    word-wrap: break-word;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.card-link {
    font-size: 0.875rem;
    color: var(--green);
    text-decoration: none;
}

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

.card-body {
    padding: 20px;
}

.card-body.no-padding {
    padding: 0;
}

/* Connection Status */
.connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.connection-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connection-icon {
    font-size: 1.5rem;
}

.connection-name {
    display: block;
    font-weight: 500;
    color: var(--white);
}

.connection-status {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.connection-status.connected {
    color: var(--green);
}

.connection-status.disconnected {
    color: var(--gray-500);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--gray-300);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

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

/* Quick Search Results */
.quick-results {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.quick-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.quick-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quick-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.quick-result-name {
    color: var(--white);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-result-meta {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.quick-result-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.quick-result-price .price-value {
    color: var(--green);
    font-weight: 600;
    font-size: 0.95rem;
}

.quick-result-price .price-label {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.quick-result-more {
    display: block;
    padding: 12px;
    text-align: center;
    color: var(--cyan);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.quick-result-more:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quick-results-empty {
    padding: 16px 12px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--gray-400);
    margin: 0 0 8px;
}

.empty-hint {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.empty-state.compact {
    padding: 32px 24px;
}

.empty-state.compact .empty-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.empty-state.compact p {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* Data Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.data-table .empty-row td {
    border-bottom: none;
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group.search {
    flex: 1;
    min-width: 200px;
}

.filter-select,
.filter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--white);
    min-width: 150px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

.filter-select option {
    background: var(--bg-elevated);
    padding: 8px 12px;
}

.filter-select optgroup {
    background: var(--bg-elevated);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0 4px 0;
}

.filter-select optgroup option {
    color: var(--white);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    padding-left: 12px;
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 8px;
}

.form-input,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.9375rem;
    color: var(--white);
    transition: all 0.2s;
}

.form-input:focus,
select:focus {
    outline: none;
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

.form-input::placeholder {
    color: var(--gray-500);
}

/* Select dropdowns - match form inputs */
select,
select.form-input {
    cursor: pointer;
}

select option {
    background: var(--bg-elevated);
    color: var(--white);
    padding: 8px 12px;
}

select optgroup {
    background: #1a1a1f !important;
    background-color: #1a1a1f !important;
    color: #13EF95 !important;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-style: normal;
}

select optgroup option {
    background: #101014 !important;
    background-color: #101014 !important;
    color: #ffffff !important;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    padding-left: 16px;
    font-size: 0.875rem;
}

/* Disabled options as section separators */
select option:disabled {
    background: #1a1a1f !important;
    background-color: #1a1a1f !important;
    color: #13EF95 !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 6px;
}

.form-value {
    color: var(--white);
    padding-top: 8px;
}

.message-display {
    white-space: pre-wrap;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Settings Rows */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-row:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-name {
    font-weight: 500;
    color: var(--white);
}

.setting-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
    background: var(--green);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Status Badge */
.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge.connected {
    background: rgba(19, 239, 149, 0.1);
    color: var(--green);
}

.status-badge.disconnected {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-500);
}

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

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0 !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .sidebar-toggle {
        display: none;
    }

    .header-left {
        padding-left: 48px;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 14px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

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

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group.search {
        width: 100%;
    }

    .dashboard-header {
        padding: 12px 16px;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .header-right {
        gap: 12px;
    }

    .trial-badge {
        display: none;
    }

    .dashboard-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 10px 12px;
    }

    .page-title {
        font-size: 1rem;
    }

    .header-right {
        gap: 8px;
    }

    .dashboard-content {
        padding: 12px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-input-group .btn {
        width: 100%;
    }

    .action-btn {
        padding: 16px 12px;
        font-size: 0.8125rem;
    }

    .action-icon {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 14px;
        gap: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .empty-state {
        padding: 32px 16px;
    }

    .loading-state {
        padding: 48px 20px;
    }
}

/* ============================================
   Auth Pages
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .logo {
    display: inline-flex;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.auth-form {
    position: relative;
    z-index: 1;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 8px;
}

.auth-form .form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--white);
    transition: all 0.2s;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

.auth-form .form-input::placeholder {
    color: var(--gray-500);
}

.auth-form .form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 6px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.form-link {
    color: var(--green);
    text-decoration: none;
    font-size: 0.875rem;
}

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-footer p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-terms {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.auth-terms a {
    color: var(--gray-400);
    text-decoration: none;
}

.auth-terms a:hover {
    color: var(--green);
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(19, 239, 149, 0.1);
    border: 1px solid rgba(19, 239, 149, 0.3);
    color: var(--green);
}

.alert-info {
    background: rgba(20, 154, 251, 0.1);
    border: 1px solid rgba(20, 154, 251, 0.3);
    color: #93c5fd;
}

.alert-icon {
    flex-shrink: 0;
}

.validation-message {
    color: #fca5a5;
    font-size: 0.8125rem;
    margin-top: 4px;
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
}

/* ============================================
   Activity List
   ============================================ */

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.activity-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-description {
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.activity-time {
    color: var(--gray-500);
    font-size: 0.8125rem;
}

/* ============================================
   Loading States
   ============================================ */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    color: var(--gray-400);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* Action buttons as links */
a.action-btn {
    text-decoration: none;
}

/* ============================================
   Order Status Badges
   ============================================ */

.status-badge.status-pending {
    background: rgba(20, 154, 251, 0.1);
    color: var(--cyan);
}

.status-badge.status-synced {
    background: rgba(19, 239, 149, 0.1);
    color: var(--green);
}

.status-badge.status-fflhold {
    background: rgba(250, 204, 21, 0.1);
    color: #fcd34d;
}

.status-badge.status-shipped {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
}

.status-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* Order table extras */
.order-secondary {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.75rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-action:hover {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
    color: var(--cyan);
}

/* Data table row hover */
.data-table tbody tr:not(.empty-row):hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   Account Info
   ============================================ */

.account-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.account-value {
    color: var(--white);
    font-weight: 500;
}

.account-value.trial-active {
    color: var(--green);
}

.account-value.trial-expired {
    color: #f87171;
}

/* Settings Page Layout */
.settings-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.settings-page .settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.settings-page .dashboard-card {
    height: fit-content;
}

.settings-page .dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-page .form-group {
    margin: 0;
}

.settings-actions {
    display: flex;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.free {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

.plan-badge.basic {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.plan-badge.pro {
    background: rgba(19, 239, 149, 0.15);
    color: var(--green);
}

.plan-badge.enterprise {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.loading-spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.alert-dismiss {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 4px;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-dismiss:hover {
    opacity: 1;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .settings-page {
        padding: 0 16px;
    }

    .settings-page .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .settings-row {
        padding: 12px 0;
    }

    .settings-actions {
        flex-direction: column;
    }

    .settings-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .settings-page {
        padding: 0 8px;
    }

    .settings-page .settings-grid {
        gap: 12px;
    }

    .account-row .account-label {
        font-size: 0.8rem;
    }

    .account-row .account-value {
        font-size: 0.875rem;
    }

    .settings-row {
        padding: 10px 0;
    }

    .setting-name {
        font-size: 0.9rem;
    }

    .setting-desc {
        font-size: 0.75rem;
    }

    .settings-actions {
        padding: 16px 0;
        gap: 8px;
    }
}

/* ============================================
   Trial Badge
   ============================================ */

.trial-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.trial-icon {
    font-size: 0.875rem;
}

.trial-text {
    color: #fcd34d;
    font-weight: 500;
}

/* ============================================
   Search Page Styles
   ============================================ */

.search-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.search-page .dashboard-card {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .search-page {
        padding: 0 16px;
    }
}

.search-bar-card .card-body {
    padding: 24px;
}

.search-input-group {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    font-size: 1.125rem;
    padding: 14px 20px;
}

.search-hints {
    margin-top: 12px;
}

.search-hints .hint {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.search-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--gray-400);
}

.results-count {
    font-weight: 500;
    color: var(--white);
}

.search-time {
    font-size: 0.875rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
    transform: translateY(-2px);
}

.product-header {
    margin-bottom: 12px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

.product-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.product-manufacturer {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.product-line {
    color: var(--blue);
    font-size: 0.875rem;
    font-weight: 500;
}

.product-identifiers {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-upc, .product-sku {
    font-size: 0.75rem;
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.product-pricing {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.price-main {
    display: flex;
    flex-direction: column;
}

.dealer-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
}

.price-msrp {
    display: flex;
    flex-direction: column;
}

.msrp-value {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.price-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-price {
    color: var(--gray-500);
    font-style: italic;
}

.product-availability {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.distributor-count {
    color: var(--gray-400);
}

.stock-count.in-stock {
    color: var(--green);
}

.stock-count.out-of-stock {
    color: var(--gray-500);
}

.price-preview {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.875rem;
}

.price-row.out-of-stock {
    opacity: 0.5;
}

.price-row .dist-name {
    color: var(--gray-300);
}

.price-row .dist-price {
    font-weight: 600;
    color: var(--white);
}

.price-row .price-drop {
    color: var(--green);
    font-size: 0.75rem;
    margin-left: 8px;
}

.more-prices {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.75rem;
    padding-top: 8px;
}

/* Product Image Styles */
.product-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.product-image-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-image-inner img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    padding: 0 8px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.img-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    padding: 0;
    margin: 0;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}

.product-image:hover .img-nav {
    opacity: 1;
}

.img-nav:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

.img-nav:focus,
.img-nav:active {
    outline: none !important;
    box-shadow: none !important;
}

.img-prev {
    left: 0;
    border-radius: 8px 0 0 8px;
}

.img-next {
    right: 0;
    border-radius: 0 8px 8px 0;
}

.img-counter {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 4;
}

.product-image:hover .img-counter {
    opacity: 1;
}

/* Distributor Info on Cards */
.distributor-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.distributor-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dist-label {
    font-weight: 600;
    color: var(--blue);
}

.dist-code {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.stock-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.stock-badge .qty {
    opacity: 0.8;
}

.stock-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.875rem;
}

.stock-info.in-stock {
    color: var(--green);
}

.stock-info.out-of-stock {
    color: #f87171;
}

.qty-number {
    font-size: 1.125rem;
    font-weight: 700;
}

.qty-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

.pagination-ellipsis {
    color: var(--gray-400);
    padding: 0 4px;
    user-select: none;
}

.page-info {
    color: var(--gray-400);
}

/* Product Detail Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

@media (max-width: 480px) {
    .modal-content { padding: 20px; border-radius: 12px; max-height: 90vh; }
    .modal-close { width: 40px; height: 40px; font-size: 1.25rem; }
    .modal-actions { flex-direction: column; }
    .modal-actions .btn { width: 100%; }
    .confirm-modal { max-width: 100%; }
    .alert-modal { max-width: 100%; }
}

.product-detail-header {
    margin-bottom: 20px;
}

.product-detail-header h2 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 8px;
}

.product-detail-header .manufacturer {
    color: var(--gray-400);
}

.product-detail-ids {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.product-detail-ids .id-item {
    display: flex;
    gap: 8px;
}

.product-detail-ids label {
    color: var(--gray-500);
}

.product-detail-ids span {
    color: var(--white);
    font-family: monospace;
}

.price-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.price-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.price-stat label {
    display: block;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.price-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.price-stat .value.low {
    color: var(--green);
}

.price-stat .value.high {
    color: var(--gray-400);
}

.product-detail-modal h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.prices-table {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.prices-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prices-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.prices-row.out-of-stock {
    opacity: 0.5;
}

.prices-row .dist-name {
    color: var(--white);
}

.prices-row .dist-price {
    font-weight: 600;
    color: var(--green);
}

.prices-row .price-change {
    font-size: 0.75rem;
    margin-left: 8px;
}

.prices-row .price-change.down {
    color: var(--green);
}

.prices-row .dist-stock {
    text-transform: capitalize;
}

.prices-row .dist-stock.instock {
    color: var(--green);
}

.prices-row .dist-stock.outofstock {
    color: var(--gray-500);
}

.prices-row .dist-sku {
    color: var(--gray-400);
    font-family: monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prices-row .dist-sku .sku-mfg {
    font-size: 0.65rem;
    color: var(--gray-500);
}

.prices-row .dist-mfg {
    color: var(--gray-300);
    font-size: 0.8rem;
}

.prices-row .dist-upc {
    color: var(--gray-400);
    font-family: monospace;
    font-size: 0.75rem;
}

/* Expanded prices table with more columns */
.prices-table.expanded .prices-header,
.prices-table.expanded .prices-row {
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr 0.8fr 0.8fr auto;
    gap: 12px;
}

.prices-table.expanded .prices-header {
    font-size: 0.7rem;
}

.prices-table.expanded .prices-row {
    font-size: 0.8rem;
}

.prices-row .dist-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prices-row .dist-link a {
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.prices-row .dist-link a:hover {
    opacity: 1;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   Enhanced Product Detail Modal
   ============================================ */

.product-detail-modal-enhanced {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
}

.product-detail-top {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.product-detail-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-image .img-zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--gray-300);
    opacity: 0;
    transition: opacity 0.2s;
}

.product-detail-image:hover .img-zoom-hint {
    opacity: 1;
}

.product-detail-title {
    flex: 1;
    min-width: 0;
}

.product-detail-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-detail-title .manufacturer {
    display: block;
    color: var(--gray-400);
    font-size: 1rem;
    margin-bottom: 16px;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-badges .badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-category {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-caliber {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-action {
    background: rgba(251, 146, 60, 0.2);
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.product-description {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.product-description .short-desc {
    color: var(--gray-200);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.product-description .long-desc {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 12px;
}

.product-description .desc-toggle {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.product-description .desc-toggle:hover {
    text-decoration: underline;
}

.specs-section {
    margin-bottom: 24px;
}

.specs-section h4,
.pricing-section h4,
.section-title {
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    color: var(--gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.spec-value {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
}

.pricing-section {
    margin-bottom: 24px;
}

.price-summary-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-item {
    text-align: center;
    padding: 12px;
}

.price-item .price-label {
    display: block;
    color: var(--gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.price-item .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.price-item.lowest .price-value {
    color: var(--green);
}

.price-item.highest .price-value {
    color: var(--gray-400);
}

.identifiers-box {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    margin-bottom: 24px;
}

.identifiers-box .identifier {
    display: flex;
    gap: 8px;
    align-items: center;
}

.identifiers-box .id-label {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.identifiers-box .id-value {
    color: var(--white);
    font-family: monospace;
    font-size: 0.9rem;
}

.prices-table-compact {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.prices-header-compact {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr auto;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prices-row-compact {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr auto;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    align-items: center;
}

.prices-row-compact.out-of-stock {
    opacity: 0.5;
}

.prices-row-compact .dist-name {
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prices-row-compact .dist-sku {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: var(--font-mono, monospace);
}

.prices-row-compact .dist-price {
    font-weight: 600;
    color: var(--green);
}

.prices-row-compact .dist-stock {
    text-transform: capitalize;
}

.prices-row-compact .dist-stock.instock {
    color: var(--green);
}

.prices-row-compact .dist-stock.lowstock {
    color: var(--yellow);
}

.prices-row-compact .dist-stock.outofstock {
    color: var(--gray-500);
}

.prices-row-compact .dist-action .btn-sm {
    padding: 4px 12px;
    font-size: 0.75rem;
}

/* Responsive adjustments for enhanced modal */
@media (max-width: 768px) {
    .product-detail-modal-enhanced {
        padding: 20px;
    }

    .product-detail-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-detail-image {
        width: 150px;
        height: 150px;
    }

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

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

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

    .prices-header-compact,
    .prices-row-compact {
        grid-template-columns: 1.5fr 1fr 1fr auto;
        gap: 8px;
        font-size: 0.8rem;
    }

    .identifiers-box {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   Modal Tab System - Segmented Control
   ============================================ */

.modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 4px;
    margin: 16px 0;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: transparent;
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--white);
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099) border-box;
}

.tab-btn.active {
    color: var(--white);
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #00f099, #008fc1) border-box;
}

.tab-btn i {
    font-size: 1rem;
}

/* Additional Badge Types */
.badge-subcategory {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Identifiers Inline (in header) */
.identifiers-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.85rem;
}

.identifier-inline {
    display: inline-flex;
    gap: 4px;
    color: var(--gray-400);
}

.identifier-inline::before {
    color: var(--gray-500);
}

/* Description Section (Full Details tab) */
.description-section {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--green);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.description-section .short-desc {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.description-section .long-desc {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Specs Grid - Responsive Full */
.specs-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Identifiers Row (bottom of modal) */
.identifiers-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.identifiers-row .identifier {
    display: flex;
    gap: 6px;
}

.identifiers-row .identifier-label {
    color: var(--gray-500);
}

.identifiers-row .identifier-value {
    color: var(--white);
    font-family: monospace;
}

/* Distributor Details Card */
.distributor-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.distributor-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    transition: background 0.2s ease;
}

.distributor-detail-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.distributor-detail-card.out-of-stock {
    opacity: 0.6;
}

.dist-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.dist-name-large {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.dist-code {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.dist-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.dist-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dist-detail .detail-label {
    color: var(--gray-500);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dist-detail .detail-value {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.dist-detail .detail-value.price {
    color: var(--green);
    font-weight: 700;
}

.dist-detail .detail-value.instock {
    color: var(--green);
}

.dist-detail .detail-value.lowstock {
    color: #facc15;
}

.dist-detail .detail-value.outofstock {
    color: var(--gray-500);
}

.dist-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive for tabs */
@media (max-width: 768px) {
    .modal-tabs {
        flex-direction: row;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .tab-btn i {
        display: none;
    }

    .specs-grid-full {
        grid-template-columns: 1fr 1fr;
    }

    .identifiers-inline {
        gap: 8px;
        font-size: 0.8rem;
    }

    .dist-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Alerts Page Styles
   ============================================ */

.alerts-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.alerts-page .page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.notifications-section {
    margin-bottom: 24px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--green);
}

.notification-item.read {
    opacity: 0.6;
    border-left-color: var(--gray-600);
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 2px;
}

.notification-message {
    color: var(--gray-300);
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.notification-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.notification-details .price-current {
    color: var(--green);
    font-weight: 600;
    font-size: 1rem;
}

.notification-details .price-previous {
    color: var(--gray-500);
    text-decoration: line-through;
}

.notification-details .price-change {
    font-weight: 500;
}

.notification-details .price-change.down {
    color: var(--green);
}

.notification-details .price-change.up {
    color: #ef4444;
}

.notification-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.notification-distributor {
    color: var(--gray-400);
}

.notification-price {
    color: var(--green);
    font-weight: 600;
}

.notification-details .stock-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-details .stock-status.in-stock {
    background: rgba(19, 239, 149, 0.15);
    color: var(--green);
}

.notification-details .stock-status.low-stock {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.notification-details .stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.notification-details .stock-status.backorder {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.notification-details .stock-status.discontinued {
    background: rgba(107, 114, 128, 0.15);
    color: var(--gray-400);
}

.notification-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-icon.danger:hover {
    color: #ef4444;
}

/* Alert Cards Grid */
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 20px;
}

.alert-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.alert-card.disabled {
    opacity: 0.5;
}

.alert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.alert-type-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--white);
}

.alert-type-icon {
    font-size: 1.25rem;
}

.alert-card-body {
    padding: 20px;
}

.alert-watch-target {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.watch-item:last-child {
    margin-bottom: 0;
}

.watch-label {
    color: var(--gray-500);
    font-size: 0.8125rem;
}

.watch-value {
    color: var(--white);
    font-weight: 500;
    text-align: right;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.config-label {
    color: var(--gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.config-value {
    color: var(--gray-300);
    font-size: 0.875rem;
}

.config-value.highlight {
    color: var(--green);
    font-weight: 600;
}

.alert-stats {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-item .stat-value {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
}

.stat-item .stat-label {
    color: var(--gray-500);
    font-size: 0.6875rem;
    text-transform: uppercase;
}

.alert-notes {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.alert-notes .notes-label {
    color: var(--gray-500);
}

.alert-card-footer {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.alert-card-footer .btn {
    flex: 1;
}

.toggle.small {
    transform: scale(0.8);
}

/* Alert Modal */
.alert-modal {
    max-width: 700px;
}

.alert-modal h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.alert-product-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.alert-product-summary .product-name {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.alert-product-summary .product-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.alert-product-summary .id-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, monospace;
}

.alert-product-summary .current-price {
    color: var(--green);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.alert-modal .form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.input-with-suffix {
    display: flex;
    align-items: center;
}

.input-with-suffix .form-input {
    border-radius: 8px 0 0 8px;
}

.input-with-suffix .suffix {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group.horizontal {
    flex-direction: row;
    gap: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-300);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

/* Input with button (for lookup) */
.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button .form-input {
    flex: 1;
}

.input-with-button .btn {
    white-space: nowrap;
}

/* Lookup result display */
.lookup-result {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.lookup-result .lookup-label {
    color: var(--green);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.lookup-result .lookup-value {
    color: var(--white);
    font-weight: 500;
}

/* Alert card watch target enhancements */
.watch-item.product-name {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-item.product-name .watch-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    max-width: none;
    white-space: normal;
    line-height: 1.4;
}

.watch-value.mono {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .alerts-page .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .alerts-page .page-header h1 {
        font-size: 1.25rem;
    }

    .alerts-page .page-header .btn {
        width: 100%;
        justify-content: center;
    }

    .notifications-section {
        margin-bottom: 16px;
    }

    .notification-item {
        gap: 12px;
        padding: 12px;
    }

    .notification-icon {
        font-size: 1.25rem;
    }

    .notification-details {
        flex-wrap: wrap;
        gap: 6px;
    }

    .notification-meta {
        gap: 10px;
    }

    .alerts-grid {
        gap: 14px;
    }

    .alert-card-header {
        padding: 12px 16px;
    }

    .alert-card-body {
        padding: 12px 16px;
    }

    .alert-card-footer {
        padding: 12px 16px;
    }

    .alert-stats {
        gap: 14px;
    }

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

@media (max-width: 480px) {
    .alerts-page {
        padding: 0 8px;
    }

    .alerts-page .page-header {
        margin-bottom: 12px;
    }

    .alerts-page .page-header h1 {
        font-size: 1.1rem;
    }

    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        gap: 8px;
    }

    .notification-icon {
        display: none;
    }

    .notification-title {
        font-size: 0.9rem;
    }

    .notification-message {
        font-size: 0.8rem;
    }

    .notification-details {
        font-size: 0.8rem;
    }

    .notification-details .price-current {
        font-size: 0.9rem;
    }

    .notification-meta {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.75rem;
    }

    .notification-actions {
        align-self: flex-end;
    }

    .alerts-grid {
        gap: 12px;
    }

    .alert-card {
        border-radius: 8px;
    }

    .alert-card-header {
        padding: 10px 12px;
    }

    .alert-type-badge {
        font-size: 0.875rem;
        gap: 6px;
    }

    .alert-type-icon {
        font-size: 1rem;
    }

    .alert-card-body {
        padding: 10px 12px;
    }

    .alert-watch-target {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .watch-value {
        max-width: 150px;
        font-size: 0.85rem;
    }

    .alert-config {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .alert-stats {
        gap: 12px;
        flex-wrap: wrap;
    }

    .alert-card-footer {
        flex-direction: column;
        padding: 10px 12px;
    }

    .alert-card-footer .btn {
        width: 100%;
    }

    .alert-modal {
        margin: 8px;
        border-radius: 8px;
    }

    .alert-modal h2 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
}

/* ============================================
   Admin Pages
   ============================================ */

.admin-page {
    padding: 32px;
}

.settings-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.settings-sections .dashboard-card {
    height: fit-content;
}

@media (max-width: 768px) {
    .settings-sections {
        grid-template-columns: 1fr;
    }
}

.admin-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.admin-page .page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.admin-page .page-subtitle {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Feed Status Bar */
.feed-status-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.feed-status-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 18px 18px 14px;
    position: relative;
    border-top: 2px solid rgba(255, 255, 255, 0.06);
}

.feed-status-card.green { border-top-color: var(--green); }
.feed-status-card.red { border-top-color: #ef4444; }
.feed-status-card.yellow { border-top-color: #f59e0b; }
.feed-status-card.neutral { border-top-color: var(--green); }

.feed-status-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.feed-status-icon.green { background: rgba(19, 239, 149, 0.1); color: var(--green); }
.feed-status-icon.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.feed-status-icon.yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.feed-status-icon.neutral { background: rgba(255, 255, 255, 0.05); color: var(--gray-400); }

.feed-status-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 4px;
}

.feed-status-value .feed-status-dim {
    font-weight: 400;
    color: var(--gray-500);
    font-size: 1.15rem;
}

.feed-status-value.green { color: var(--green); }
.feed-status-value.red { color: #ef4444; }
.feed-status-value.yellow { color: #f59e0b; }

.feed-status-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
}

.feed-status-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: super;
    animation: feedStatusPulse 2s infinite;
}

.feed-status-pulse.red { background: #ef4444; }
.feed-status-pulse.yellow { background: #f59e0b; }

@keyframes feedStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Hot Buys Status Card */
.hot-buys-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hot-buys-status .status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hot-buys-status .status-row:last-of-type {
    border-bottom: none;
}

.hot-buys-status .status-label {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.hot-buys-status .status-value {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9375rem;
}

.loading-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Data Tables */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-200);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr.disabled-row {
    opacity: 0.5;
}

.data-table .empty-row td {
    padding: 48px;
}

/* Distributor Info in Table */
.dist-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dist-info strong {
    color: var(--white);
}

.dist-code {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: monospace;
}

.feed-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(20, 154, 251, 0.15);
    color: var(--cyan);
}

.product-count {
    color: var(--white);
    font-weight: 500;
}

.in-stock-count {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-left: 4px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-action.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-action.warning:hover {
    background: rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.3);
}

/* Filters Bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
    min-width: 150px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: transparent;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

/* Import Log Styles */
.changes-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.changes-summary span {
    font-size: 0.8rem;
}

.change-down {
    color: var(--green);
}

.change-up {
    color: #ef4444;
}

.back-in-stock {
    color: var(--cyan);
}

.errors {
    color: #f59e0b;
}

.skipped {
    color: var(--gray-500);
    font-style: italic;
}

.new-products {
    color: var(--green);
    margin-left: 4px;
    font-size: 0.85rem;
}

/* Error Modal */
.error-modal {
    max-width: 700px;
}

.error-modal h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.error-modal h3 {
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 16px 0 8px;
}

.error-details .detail-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.error-details .detail-row label {
    color: var(--gray-400);
    min-width: 80px;
}

.error-message,
.error-details-text {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    color: #ef4444;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.error-details-text {
    color: var(--gray-300);
}

/* ============================================
   Distributor Pages (User & Admin)
   ============================================ */

.distributors-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.distributors-section {
    margin-bottom: 40px;
}

.distributors-page .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    max-width: none;
    text-align: left;
}

.distributors-page .section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.section-count {
    font-size: 0.8rem;
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 100px;
}

/* Connected Distributors */
.connected-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.connected-row {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.connected-row.disabled {
    opacity: 0.6;
}

.connected-row .logo-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(19, 239, 149, 0.2), rgba(20, 154, 251, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.connected-row .logo-box .logo-text {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--green);
}

.connected-row .info {
    flex: 1;
    min-width: 0;
}

.connected-row .name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
}

.connected-row .name-row h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.connected-row .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.connected-row .meta > span:not(.status-badge):not(:first-child)::before {
    content: "·";
    margin-right: 4px;
    color: var(--gray-600);
}

.connected-row .meta .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 4px;
}

.connected-row .meta .status-badge.success {
    background: rgba(19, 239, 149, 0.1);
    color: var(--green);
}

.connected-row .meta .status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.connected-row .meta .status-badge.pending {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
}

.connected-row .meta .status-badge.info {
    background: rgba(20, 154, 251, 0.1);
    color: var(--cyan);
}

.connected-row .meta .status-badge.syncing {
    background: rgba(19, 239, 149, 0.1);
    color: var(--green);
}

.loading-spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.dist-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dist-actions .btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
}

.dist-actions .danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Available Distributors */
.avail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.avail-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.avail-card.connected {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

.avail-card .logo-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(19, 239, 149, 0.15), rgba(20, 154, 251, 0.15));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avail-card .logo-box .logo-text {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--green);
}

.avail-card .info {
    flex: 1;
    min-width: 0;
}

.avail-card .info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 4px;
}

.avail-card .desc {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin: 0 0 8px;
    line-height: 1.4;
}

.avail-card .detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-400);
    padding: 3px 7px;
    border-radius: 4px;
}

.detail-link {
    font-size: 0.78rem;
    color: var(--green);
    text-decoration: none;
}

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

.avail-action {
    flex-shrink: 0;
    align-self: center;
}

.connected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(19, 239, 149, 0.1);
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

.connected-badge::before {
    content: "✓";
}

.more-coming {
    text-align: center;
    padding: 20px;
    color: var(--gray-500);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.more-coming p {
    margin: 0;
}

/* Global Distributors */
.global-distributors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.global-distributor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.global-distributor-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.global-distributor-item.hidden-dist {
    opacity: 0.5;
}

.global-dist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-dist-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(19, 239, 149, 0.15), rgba(20, 154, 251, 0.15));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.global-dist-logo .logo-text {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--green);
}

.global-dist-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.global-dist-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
}

.global-dist-stats {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.global-dist-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-dist-toggle .toggle-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    min-width: 50px;
}

/* Distributor Modal */
.distributor-modal {
    max-width: 600px;
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.modal-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(19, 239, 149, 0.15), rgba(20, 154, 251, 0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-logo .logo-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--green);
}

.modal-logo i {
    font-size: 1.5rem;
    color: var(--cyan);
}

.modal-header-info h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0 0 4px;
}

.modal-subtitle {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

.distributor-modal h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.distributor-modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 24px;
}

.distributor-modal .form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

/* User Modal (Admin) */
.user-modal {
    max-width: 560px;
}

.user-modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 24px;
}

.user-modal .form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.user-modal .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.user-modal .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-modal .detail-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-modal .detail-value {
    color: var(--white);
    font-size: 0.95rem;
}

.user-modal .detail-value.mono {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.user-modal .detail-sub {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.user-modal .ffl-section {
    margin-bottom: 24px;
}

.user-modal .ffl-section-header {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.user-modal .ffl-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    padding: 16px;
    background: rgba(19, 239, 149, 0.05);
    border: 1px solid rgba(19, 239, 149, 0.15);
    border-radius: 8px;
}

.user-modal .ffl-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-modal .ffl-info-item.full {
    grid-column: 1 / -1;
}

.user-modal .ffl-info-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-modal .ffl-info-value {
    color: var(--white);
}

.user-modal .admin-toggle {
    padding: 16px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 8px;
}

.user-modal .admin-toggle .checkbox-label {
    margin-bottom: 4px;
}

/* Delete Confirmation Modal */
.delete-confirm-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.delete-warning-icon {
    font-size: 48px;
    line-height: 1;
}

.delete-details {
    flex: 1;
}

.delete-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.delete-count {
    font-size: 2rem;
    font-weight: 700;
    color: #ef4444;
}

.delete-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.delete-distributor {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.delete-distributor strong {
    color: var(--text-primary);
}

.alert-warning {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    color: #fbbf24;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.credentials-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(20, 154, 251, 0.08);
    border: 1px solid rgba(20, 154, 251, 0.15);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.8rem;
    color: var(--gray-300);
    line-height: 1.5;
}

.credentials-help .help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(20, 154, 251, 0.2);
    border-radius: 50%;
    color: #149afb;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Confirm Delete Modal */
.confirm-modal {
    max-width: 450px;
    text-align: center;
}

.confirm-modal h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.confirm-modal p {
    color: var(--gray-400);
    margin-bottom: 8px;
}

.delete-warning {
    color: #ef4444 !important;
    font-size: 0.875rem;
    margin-bottom: 24px !important;
}

.confirm-modal .modal-actions {
    justify-content: center;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Info Card */
.info-card {
    margin-top: 32px;
    border-color: rgba(20, 154, 251, 0.2);
    background: rgba(20, 154, 251, 0.06);
}

.info-card h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 12px;
}

.info-card ul {
    margin: 12px 0;
    padding-left: 20px;
}

.info-card li {
    color: var(--gray-400);
    margin-bottom: 8px;
    line-height: 1.5;
}

.info-card p {
    color: var(--gray-400);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .distributors-page {
        padding: 0 16px;
    }

    .distributors-section {
        margin-bottom: 28px;
    }

    .distributors-page .section-header {
        margin-bottom: 14px;
    }

    .distributors-page .section-header h2 {
        font-size: 1.1rem;
    }

    .connected-row {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }

    .connected-row .name-row h3 {
        font-size: 0.875rem;
    }

    .dist-actions {
        justify-content: flex-end;
    }

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

    .avail-card {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .avail-action {
        margin-top: 8px;
    }

    .avail-action .btn {
        width: 100%;
    }

    .global-distributor-item {
        padding: 10px 12px;
    }

    .global-dist-info {
        gap: 10px;
    }

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

    .modal-header-info {
        gap: 12px;
        margin-bottom: 20px;
    }

    .modal-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .user-modal .form-grid,
    .user-modal .details-grid,
    .user-modal .ffl-info-grid {
        grid-template-columns: 1fr;
    }

    .user-modal {
        max-width: 100%;
        margin: 16px;
    }
}

@media (max-width: 480px) {
    .distributors-page {
        padding: 0 8px;
    }

    .distributors-section {
        margin-bottom: 20px;
    }

    .distributors-page .section-header {
        margin-bottom: 10px;
        gap: 8px;
    }

    .distributors-page .section-header h2 {
        font-size: 1rem;
    }

    .section-count {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .connected-list {
        gap: 8px;
    }

    .connected-row {
        padding: 10px;
        gap: 8px;
        border-radius: 8px;
    }

    .connected-row .logo-box {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .connected-row .meta {
        font-size: 0.72rem;
    }

    .dist-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .dist-actions .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .avail-grid {
        gap: 8px;
    }

    .avail-card {
        padding: 10px;
        gap: 10px;
        border-radius: 8px;
    }

    .avail-card .logo-box {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .avail-card .info h3 {
        font-size: 0.875rem;
    }

    .avail-card .desc {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .avail-card .detail-row {
        gap: 8px;
    }

    .connected-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .more-coming {
        padding: 14px;
        font-size: 0.8rem;
    }

    .global-distributor-item {
        padding: 10px;
        border-radius: 8px;
    }

    .global-dist-logo {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    .global-dist-name {
        font-size: 0.825rem;
    }

    .global-dist-toggle {
        gap: 6px;
    }

    .global-dist-toggle .toggle-label {
        display: none;
    }

    .distributor-modal {
        margin: 8px;
        border-radius: 8px;
    }

    .modal-header-info {
        gap: 10px;
        margin-bottom: 16px;
    }

    .modal-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .info-card {
        margin-top: 20px;
    }
}

.info-card p {
    color: var(--gray-300);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.info-card ul {
    margin: 12px 0;
    padding-left: 20px;
}

.info-card li {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* ============================================
   Navigation Enhancements
   ============================================ */

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    padding: 2px 16px 2px;
}

.nav-divider ~ .nav-item {
    padding: 6px 16px;
    font-size: 0.9rem;
}

/* Notification Badge */
.notification-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--gray-300);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge .badge-count {
    font-weight: 600;
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Notification Dropdown */
.notification-dropdown-container {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: var(--white);
}

.notification-dropdown .mark-all-read {
    background: none;
    border: none;
    color: var(--cyan);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0;
}

.notification-dropdown .mark-all-read:hover {
    text-decoration: underline;
}

.notification-dropdown .dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-dropdown .dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.notification-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-dropdown .dropdown-item.unread {
    background: rgba(19, 239, 149, 0.05);
    border-left: 3px solid var(--green);
}

.notification-dropdown .dropdown-item.read {
    opacity: 0.6;
}

.notification-dropdown .dropdown-item .item-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 154, 251, 0.2), rgba(19, 239, 149, 0.2));
    border-radius: 8px;
    color: var(--cyan);
}

.notification-dropdown .dropdown-item .item-content {
    flex: 1;
    min-width: 0;
}

.notification-dropdown .dropdown-item .item-title {
    color: var(--white);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-dropdown .dropdown-item .item-time {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: 4px;
}

.notification-dropdown .dropdown-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--gray-500);
}

.notification-dropdown .dropdown-footer {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: var(--cyan);
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
}

.notification-dropdown .dropdown-footer:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: 56px;
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.page-info {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Never text for timestamps */
span.never {
    color: var(--gray-600);
    font-style: italic;
}

/* ============================================
   Notifications Page
   ============================================ */

.notifications-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.notifications-page .notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.notifications-page .notifications-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.notifications-page .notifications-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.notifications-page .notif-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.notifications-page .notif-date-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notifications-page .notif-date-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.05em;
    padding: 0;
    margin: 0;
}

.notifications-page .notif-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s;
}

.notifications-page .notif-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.notifications-page .notif-card.unread {
    background: rgba(19, 239, 149, 0.03);
    border-left: 3px solid var(--green);
}

.notifications-page .notif-card.unread:hover {
    background: rgba(19, 239, 149, 0.06);
}

.notifications-page .notif-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 154, 251, 0.2), rgba(19, 239, 149, 0.2));
    border-radius: 10px;
    color: var(--cyan);
}

.notifications-page .notif-body {
    flex: 1;
    min-width: 0;
}

.notifications-page .notif-title {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notifications-page .notif-message {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.5;
    white-space: pre-line;
    margin-bottom: 8px;
}

.notifications-page .notif-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notifications-page .notif-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.notifications-page .notif-unread-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.notifications-page .notif-actions {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    flex-shrink: 0;
}

.notifications-page .load-more-container {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.notifications-page .load-more-btn {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--gray-400);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.notifications-page .load-more-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.notifications-page .load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notifications-page .empty-state {
    text-align: center;
    padding: 64px 24px;
}

.notifications-page .empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.notifications-page .empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.notifications-page .empty-state p {
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.notifications-page .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px;
    gap: 16px;
    color: var(--gray-500);
}

.notifications-page .loading-state .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: notif-spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .notifications-page {
        padding: 16px;
    }

    .notifications-page .notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .notifications-page .notifications-header h2 {
        font-size: 1.25rem;
    }

    .notifications-page .notifications-filters {
        margin-bottom: 16px;
        padding-bottom: 12px;
        gap: 6px;
    }

    .notifications-page .notif-list {
        gap: 16px;
    }

    .notifications-page .notif-card {
        gap: 12px;
        padding: 12px;
    }

    .notifications-page .notif-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .notifications-page .notif-actions {
        align-self: flex-start;
    }

    .notifications-page .load-more-container {
        padding: 16px 0;
    }

    .notifications-page .empty-state {
        padding: 40px 16px;
    }

    .notifications-page .loading-state {
        padding: 40px;
    }
}

@media (max-width: 480px) {
    .notifications-page {
        padding: 8px;
    }

    .notifications-page .notifications-header {
        margin-bottom: 12px;
    }

    .notifications-page .notifications-header h2 {
        font-size: 1.1rem;
    }

    .notifications-page .notifications-filters {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .notifications-page .notifications-filters .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .notifications-page .notif-list {
        gap: 12px;
    }

    .notifications-page .notif-date-group {
        gap: 8px;
    }

    .notifications-page .notif-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        gap: 8px;
        border-radius: 8px;
    }

    .notifications-page .notif-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    .notifications-page .notif-title {
        font-size: 0.875rem;
    }

    .notifications-page .notif-message {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .notifications-page .notif-actions {
        align-self: stretch;
        justify-content: flex-end;
    }

    .notifications-page .load-more-btn {
        padding: 10px 24px;
        font-size: 0.8rem;
        width: 100%;
    }

    .notifications-page .load-more-container {
        padding: 12px 0;
    }

    .notifications-page .empty-state {
        padding: 32px 12px;
    }

    .notifications-page .empty-state .empty-icon {
        font-size: 2.5rem;
    }

    .notifications-page .empty-state h3 {
        font-size: 1.1rem;
    }

    .notifications-page .empty-state p {
        font-size: 0.85rem;
    }

    .notifications-page .loading-state {
        padding: 32px;
    }
}

/* ============================================
   Image Lightbox
   ============================================ */

.lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 2010;
}

.lightbox-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: min(90vw, 900px);
    max-height: 92vh;
}

/* White box — mirrors the product card image area */
.lightbox-image-container {
    position: relative;
    width: min(82vw, 800px);
    height: min(70vh, 700px);
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    padding: 16px 48px;
    object-fit: contain;
}

.lightbox-loading {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.lightbox-placeholder {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Nav buttons — overlaid at edges, same pattern as product cards */
.lightbox-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.3);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 3;
    user-select: none;
    -webkit-user-select: none;
    outline: none !important;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.09);
    color: rgba(0, 0, 0, 0.7);
}

.lightbox-nav:focus {
    outline: none !important;
    box-shadow: none !important;
}

.lightbox-prev {
    left: 0;
    border-radius: 12px 0 0 12px;
}

.lightbox-next {
    right: 0;
    border-radius: 0 12px 12px 0;
}

/* Counter pill inside the white box */
.lightbox-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 4;
}

/* Thumbnails */
.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.lightbox-thumb {
    width: 56px;
    height: 56px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    background: #ffffff;
}

.lightbox-thumb:hover {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb.hidden {
    display: none;
}

/* Product info below */
.lightbox-info {
    text-align: center;
    max-width: 600px;
}

.lightbox-product-name {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.lightbox-product-sku {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Product image zoom hint */
.product-image .img-zoom-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-size: 0.875rem;
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 5;
}

.product-image:hover .img-zoom-hint {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-image-container {
        width: 90vw;
        height: min(60vh, 500px);
    }

    .lightbox-image {
        padding: 12px 40px;
    }

    .lightbox-nav {
        width: 36px;
        font-size: 1rem;
    }

    .lightbox-thumb {
        width: 44px;
        height: 44px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .lightbox-container {
        gap: 10px;
    }
}

/* Keyboard hint */
.lightbox-backdrop::after {
    content: "ESC to close \2022 Arrow keys to navigate";
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-600);
    font-size: 0.7rem;
    pointer-events: none;
}

/* ============================================
   Partner Program Page Styles (Deepgram-style)
   ============================================ */

.partners-page {
    min-height: 100vh;
    background: #000;
    position: relative;
    overflow-x: hidden;
}

/* Starfield Background */
.starfield-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 80%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 60%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 90%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 75%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 45%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 85%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 55%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(19, 239, 149, 0.08) 0%, transparent 50%);
}

/* Partners Header */
.partners-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.partners-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.partners-header .logo-icon {
    font-size: 1.5rem;
}

.partners-header .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

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

.header-nav a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--white);
}

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

.btn-header-secondary {
    padding: 8px 16px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-header-secondary:hover {
    color: var(--white);
}

.btn-header-primary {
    padding: 8px 20px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-header-primary:hover {
    background: var(--gray-200);
}

/* Partners Hero */
.partners-hero {
    position: relative;
    z-index: 1;
    padding: 120px 32px 40px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-heading {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(19, 239, 149, 0.4);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(19, 239, 149, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    border-color: rgba(19, 239, 149, 0.6);
    box-shadow: 0 4px 16px rgba(19, 239, 149, 0.15);
    background: rgba(19, 239, 149, 0.05);
}

/* Partner Directory Section */
.partners-directory {
    position: relative;
    z-index: 1;
    padding: 40px 32px 80px;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.6) 120px);
}

.directory-container {
    max-width: 1200px;
    margin: 0 auto;
}

.directory-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 32px;
    padding-top: 40px;
    border-top: 2px solid transparent;
    border-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent) 1;
}

.directory-count {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9375rem;
    margin-bottom: 32px;
    margin-top: -20px;
}

.filter-result-count {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.8125rem;
    margin-bottom: 20px;
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    max-width: 568px;
    margin: 0 auto 24px;
}

.search-input {
    width: 100%;
    background: rgba(26, 26, 31, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.5);
    border-radius: 8px;
    padding: 14px 16px 14px 48px;
    font-size: 1rem;
    color: var(--white);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

.search-input::placeholder {
    color: var(--gray-500);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.category-btn.active {
    background: rgba(19, 239, 149, 0.1);
    border-color: rgba(19, 239, 149, 0.4);
    color: var(--green);
    box-shadow: 0 0 12px rgba(19, 239, 149, 0.15);
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.partner-card {
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    outline: none;
}

.partner-card-inner {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    gap: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    padding: 12px;
    color: #fff;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-card-inner {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Glow overlay - exact Deepgram style */
.partner-card-glow {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    mix-blend-mode: soft-light;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity, background;
    background: radial-gradient(500px circle at var(--xpos, 50%) var(--ypos, 50%), rgba(19, 239, 147, 0.6) 0%, transparent 60%);
    border-radius: 6px;
}

/* Logo box - left side */
.partner-logo-box {
    flex: 1;
    flex-shrink: 0;
    flex-basis: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: rgb(17, 24, 39);
    padding: 12px;
}

.partner-logo-box.partner-logo-light {
    background: rgba(255, 255, 255, 0.85);
}

.partner-logo-picture {
    position: relative;
    display: block;
    height: 80px;
    width: 100%;
}

.partner-logo-picture img {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
    object-fit: contain;
}

.partner-logo-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
}

.partner-logo-placeholder span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 2px;
}

/* Info section - right side */
.partner-info {
    flex: 1;
    flex-shrink: 0;
    flex-basis: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.partner-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.partner-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    border-radius: 3px;
    background: rgb(31, 41, 55);
    padding: 2px 6px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    color: var(--gray-300);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    grid-column: 1 / -1;
}

/* Partners Form Section */
.partners-form-section {
    position: relative;
    z-index: 1;
    padding: 80px 32px 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.8) 100%);
}

.partners-form-section .form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 16px;
}

.form-subheading {
    font-size: 1rem;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.partner-form-wrapper {
    background: rgba(26, 26, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.partners-form-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.partners-form-section .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.partners-form-section .form-row .form-field {
    margin-bottom: 0;
}

.partners-form-section label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
}

.partners-form-section input,
.partners-form-section select,
.partners-form-section textarea {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--white);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.partners-form-section input:focus,
.partners-form-section select:focus,
.partners-form-section textarea:focus {
    outline: none;
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
}

.partners-form-section input::placeholder,
.partners-form-section textarea::placeholder {
    color: var(--gray-600);
}

.partners-form-section select option {
    background: var(--bg-card);
    color: var(--white);
}

.partners-form-section textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    margin-top: 8px;
    background: var(--gradient-primary);
    color: var(--black);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(19, 239, 149, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Success */
.partners-form-section .form-success {
    text-align: center;
    padding: 60px 20px;
    background: rgba(26, 26, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--black);
    margin: 0 auto 24px;
}

.partners-form-section .form-success h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.partners-form-section .form-success p {
    color: var(--gray-400);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 32px;
}

/* Validation Messages */
.partners-form-section .validation-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
}


/* Partners Page Responsive */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero-heading {
        font-size: 2.5rem;
    }

    .partners-hero {
        padding: 80px 20px 60px;
    }

    .partners-directory {
        padding: 60px 20px;
    }

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

    .category-filters {
        gap: 6px;
    }

    .category-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .partners-form-section {
        padding: 60px 20px 80px;
    }

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

    .partner-form-wrapper {
        padding: 24px;
    }
}

/* ============================================
   Status Page
   ============================================ */

.status-page {
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.status-section {
    padding: 110px var(--section-px) 60px;
}

.status-container {
    max-width: 860px;
    margin: 0 auto;
}

.status-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

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

.status-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(19, 239, 149, 0.06);
    border: 1px solid rgba(19, 239, 149, 0.2);
    box-shadow: 0 0 20px rgba(19, 239, 149, 0.1), 0 0 40px rgba(19, 239, 149, 0.05);
    position: relative;
    overflow: hidden;
}

.status-counter-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    text-shadow: 0 0 20px rgba(19, 239, 149, 0.5);
}

.status-counter-sep {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.25);
    margin: 0 1px;
}

.status-counter-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-300);
    line-height: 1;
}

.status-counter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    margin-left: 8px;
    opacity: 0.8;
}

.status-counter-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    animation: counter-pulse 3s ease-in-out infinite;
}

@keyframes counter-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(19, 239, 149, 0); }
    50% { box-shadow: 0 0 60px 30px rgba(19, 239, 149, 0.06); }
}

.status-heading {
    margin-bottom: 0;
}

.status-heading-tag {
    font-size: 1.925rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 6px 18px;
    border-radius: 6px;
    background: rgba(19, 239, 149, 0.08);
    color: var(--white);
    border: 1px solid rgba(19, 239, 149, 0.2);
    box-shadow: 0 0 16px rgba(19, 239, 149, 0.1), 0 0 32px rgba(19, 239, 149, 0.05);
    text-shadow: 0 0 20px rgba(19, 239, 149, 0.25);
}

.status-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status-subtitle {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.status-last-checked {
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-last-checked i {
    font-size: 0.7rem;
}

.status-legend {
    display: flex;
    gap: 16px;
    white-space: nowrap;
}

.status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-green {
    background: var(--green);
    box-shadow: 0 0 6px rgba(19, 239, 149, 0.4);
}

.status-dot-yellow {
    background: #d4a847;
    box-shadow: 0 0 6px rgba(212, 168, 71, 0.4);
}

.status-dot-red {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.status-table-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table thead {
    background: linear-gradient(135deg, rgba(0, 143, 193, 0.06), rgba(19, 239, 149, 0.06));
    border-bottom: 1px solid transparent;
    background-clip: padding-box;
}

.status-table thead tr {
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, #008fc1, #00f099) 1;
}

.status-table th {
    padding: 6px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-table td {
    padding: 5px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.875rem;
}

.status-table tbody tr:last-child td {
    border-bottom: none;
}

.status-table tbody tr {
    transition: background 0.15s;
}

.status-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.status-name-cell {
    color: var(--white);
    font-weight: 500;
    width: 100%;
}

.status-col {
    text-align: right;
    white-space: nowrap;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-connected {
    color: var(--green);
}

.status-degraded {
    color: #d4a847;
}

.status-disconnected {
    color: #ef4444;
}

.status-heartbeat-yellow {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4a847;
    flex-shrink: 0;
    animation: heartbeat-yellow 1.5s ease-in-out infinite;
}

@keyframes heartbeat-yellow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 168, 71, 0.4); }
    15% { transform: scale(1.3); box-shadow: 0 0 8px 2px rgba(212, 168, 71, 0.3); }
    30% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 168, 71, 0.1); }
}

.status-heartbeat-red {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    animation: heartbeat-red 1.5s ease-in-out infinite;
}

@keyframes heartbeat-red {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    15% { transform: scale(1.3); box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.3); }
    30% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.1); }
}

.status-col-center {
    text-align: center;
    white-space: nowrap;
}

.status-products {
    font-size: 0.8rem;
    color: var(--gray-300);
    font-weight: 500;
}

.status-products-off {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.status-uptime {
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.status-uptime-good {
    color: var(--green);
}

.status-uptime-warn {
    color: #d4a847;
}

.status-uptime-bad {
    color: #ef4444;
}

.status-changelog {
    margin-top: 32px;
}

.status-changelog-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.status-changelog-list {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.status-changelog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

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

.status-changelog-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-changelog-name {
    color: var(--white);
    font-weight: 500;
}

.status-changelog-action {
    color: var(--gray-400);
}

.status-changelog-date {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .status-section {
        padding: 100px 16px 60px;
    }

    .status-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .status-heading {
        font-size: 1.4rem;
    }

    .status-counter-number {
        font-size: 1.3rem;
    }

    .status-subtitle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .status-table th,
    .status-table td {
        padding: 10px 10px;
    }

    .status-table th.status-col-center,
    .status-table td.status-col-center {
        display: none;
    }

    .status-changelog-item {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* ============================================
   Admin Stats Row
   ============================================ */

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 154, 251, 0.2), rgba(19, 239, 149, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.25rem;
    color: var(--cyan);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Status badge variants */
.status-badge.info {
    background: rgba(20, 154, 251, 0.15);
    color: var(--cyan);
}

/* Notification Preview */
.notification-preview {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 8px;
}

.notification-preview .preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(20, 154, 251, 0.2), rgba(19, 239, 149, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-preview .preview-icon i {
    font-size: 1.1rem;
    color: var(--cyan);
}

.notification-preview .preview-content {
    flex: 1;
    min-width: 0;
}

.notification-preview .preview-title {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notification-preview .preview-message {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.notification-preview .preview-meta {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }

    .admin-page .page-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .admin-page .page-header .header-actions { width: 100%; }
    .feed-status-bar { grid-template-columns: repeat(2, 1fr); }
    .data-table th, .data-table td { padding: 10px 8px; font-size: 0.8rem; }

    /* Admin page padding */
    .admin-page { padding: 20px 16px; }
    .admin-page .page-header { margin-bottom: 20px; }
    .admin-page .page-header h1 { font-size: 1.4rem; }

    /* Card padding */
    .admin-page .card-body { padding: 16px; }
    .admin-page .card-header { padding: 14px 16px; }

    /* Form grid single-column (Settings, Notifications modals) */
    .admin-page .form-grid { grid-template-columns: 1fr; }

    /* Filter select remove min-width */
    .filter-select { min-width: 0; width: 100%; }

    /* Support tabs scrollable */
    .support-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .support-tab { white-space: nowrap; padding: 10px 14px; font-size: 0.85rem; }

    /* Admin chat layout stack at 768px */
    .admin-chat-layout { grid-template-columns: 1fr; height: auto; }
    .admin-chat-sessions { max-height: 200px; }
    .admin-chat-window { min-height: 350px; }

    /* Admin chat input buttons */
    .admin-chat-window .chat-window-input { padding: 10px 12px; }
    .admin-chat-window .chat-window-input .send-btn { padding: 10px 14px; min-width: 44px; min-height: 44px; }
    .admin-chat-window .chat-window-input .end-chat-btn { padding: 10px 14px; min-width: 44px; min-height: 44px; }

    /* KB article cards stack */
    .kb-article-card { flex-direction: column; align-items: flex-start; gap: 10px; }
    .kb-article-actions { align-self: flex-end; }

    /* Ticket detail header stack */
    .ticket-detail-header { flex-direction: column; gap: 12px; }
    .ticket-detail-actions { width: 100%; }

    /* Ticket reply input wrap */
    .ticket-reply-input { flex-wrap: wrap; }

    /* Action buttons wrap (distributors table) */
    .action-buttons { flex-wrap: wrap; }

    /* Connection item stack (admin settings) */
    .connection-item { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Import logs changes summary */
    .changes-summary span { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .data-table th, .data-table td { padding: 8px 6px; font-size: 0.75rem; }

    /* Admin page padding further */
    .admin-page { padding: 12px 10px; }
    .admin-page .page-header { margin-bottom: 14px; }
    .admin-page .page-header h1 { font-size: 1.2rem; }
    .admin-page .page-subtitle { font-size: 0.8rem; }

    /* Card further reduction */
    .admin-page .card-body { padding: 12px; }
    .admin-page .card-header { padding: 12px; flex-wrap: wrap; gap: 8px; }
    .admin-page .card-header h3 { font-size: 0.9rem; }

    /* Feed status bar 1-col (distributors) */
    .feed-status-bar { grid-template-columns: 1fr; }
    .feed-status-card { padding: 14px; }
    .feed-status-value { font-size: 1.35rem; }

    /* Stats row cards (support, notifications) */
    .stats-row .stat-card { padding: 14px; gap: 12px; }
    .stats-row .stat-icon { width: 40px; height: 40px; }
    .stats-row .stat-value { font-size: 1.3rem; }

    /* Support tabs further */
    .support-tab { padding: 8px 10px; font-size: 0.8rem; }

    /* Admin chat sessions */
    .admin-chat-sessions { max-height: 160px; }

    /* Notification preview */
    .notification-preview { padding: 12px; gap: 10px; }
    .notification-preview .preview-icon { width: 32px; height: 32px; }

    /* Ticket messages */
    .ticket-msg { padding: 10px 12px; font-size: 0.8rem; }
    .ticket-messages { max-height: 300px; }

    /* Filter bar tighter */
    .filters-bar { gap: 10px; }
    .filter-group label { font-size: 0.7rem; }
    .filter-select { padding: 8px 10px; font-size: 0.85rem; }

    /* Action buttons smaller */
    .btn-action { width: 32px; height: 32px; font-size: 0.9rem; }

    /* Error modal details (import logs) */
    .error-details .detail-row { flex-direction: column; gap: 4px; }

    /* Admin chat input buttons 480px */
    .admin-chat-window .chat-window-input { padding: 8px 10px; gap: 6px; }
    .admin-chat-window .chat-window-input input { padding: 10px 12px; font-size: 0.85rem; }
    .admin-chat-window .chat-window-input .send-btn { padding: 10px 12px; font-size: 1rem; }
    .admin-chat-window .chat-window-input .end-chat-btn { padding: 10px 12px; font-size: 0.8rem; }
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    min-width: 300px;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-200);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}

.toast-close:hover {
    color: var(--gray-200);
}

.toast-success {
    border-color: rgba(19, 239, 149, 0.3);
}

.toast-success .toast-icon {
    color: var(--green);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-color: rgba(20, 154, 251, 0.3);
}

.toast-info .toast-icon {
    color: var(--cyan);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-animate-in {
    animation: toast-slide-in 0.3s ease-out;
}

/* ============================================
   POWER SEARCH STYLES
   ============================================ */

/* Quick Filters Bar */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-700);
    margin-bottom: 16px;
}

.quick-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-filters .filter-select {
    min-width: 160px;
}

/* Price Quick Buttons */
.price-quick-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.btn-chip {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--gray-600);
    border-radius: 20px;
    color: var(--gray-400);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-chip:hover {
    border-color: var(--gray-500);
    color: var(--gray-300);
}

.btn-chip.active {
    background: rgba(19, 239, 149, 0.15);
    border-color: var(--green);
    color: var(--green);
}

/* Stock Toggle */
.stock-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 0.9rem;
    white-space: nowrap;
}

.stock-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}

.stock-toggle:hover {
    color: var(--gray-300);
}

/* More Filters Button */
.btn-ghost {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--gray-400);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gray-600);
    color: var(--gray-300);
}

.btn-ghost i {
    font-size: 1rem;
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--green);
    border-radius: 10px;
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Advanced Filters Panel */
.advanced-filters-panel {
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New Filters Layout - 3 Column Design */
.filters-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.6fr;
    gap: 20px;
    margin-bottom: 20px;
}

.filters-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filters-column-narrow {
    min-width: 180px;
}

.filter-group-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    overflow: hidden;
}

.filter-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--gray-700);
}

.filter-group-title i {
    color: var(--primary);
    font-size: 1rem;
}

.filter-group-content {
    padding: 16px;
}

/* Checkbox Grid - 2 columns for categories/distributors */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.checkbox-grid.compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

/* Checkbox Row - horizontal layout */
.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Filter Row - for dropdowns side by side */
.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-field .filter-select,
.filter-field .filter-input {
    width: 100%;
}

/* Price Range Vertical Layout */
.price-range-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.price-range-vertical .input-with-prefix {
    width: 100%;
}

.price-range-vertical .filter-input {
    flex: 1;
    min-width: 0;
}

/* Price Presets */
.price-presets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preset-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    color: var(--gray-300);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gray-600);
}

.preset-btn.active {
    background: rgba(19, 239, 149, 0.15);
    border-color: var(--green);
    color: var(--green);
}

/* Range Inputs Compact */
.range-inputs.compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.range-inputs.compact .filter-input {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 8px 10px;
    font-size: 0.85rem;
}

.range-inputs.compact .range-separator {
    flex-shrink: 0;
}

/* Legacy support - keep old class names working */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.filter-section {
    display: flex;
    flex-direction: column;
}

.filter-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
}

.checkbox-list.scrollable {
    max-height: 200px;
    padding-right: 8px;
}

/* Tablet breakpoint for filters layout */
@media (max-width: 1100px) {
    .filters-layout {
        grid-template-columns: 1fr 1fr;
    }

    .filters-column-narrow {
        grid-column: span 2;
    }

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

    .price-range-vertical {
        flex-direction: row;
        gap: 16px;
    }

    .price-range-vertical .filter-field {
        flex: 1;
    }
}

.checkbox-list::-webkit-scrollbar {
    width: 6px;
}

.checkbox-list::-webkit-scrollbar-track {
    background: var(--gray-800);
    border-radius: 3px;
}

.checkbox-list::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 3px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--gray-300);
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: var(--green);
}

/* Tri-State Checkbox */
.checkbox-item.tristate {
    cursor: pointer;
}

.tristate-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--gray-600);
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    color: transparent;
    font-size: 14px;
}

.tristate-checkbox:hover {
    border-color: var(--gray-400);
}

.tristate-checkbox i {
    font-size: 12px;
    font-weight: bold;
}

/* Include state - Green */
.checkbox-item.tristate.include .tristate-checkbox {
    background: var(--green);
    border-color: var(--green);
    color: var(--black);
}

.checkbox-item.tristate.include span {
    color: var(--green);
}

/* Exclude state - Red */
.checkbox-item.tristate.exclude .tristate-checkbox {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.checkbox-item.tristate.exclude span {
    color: #ef4444;
}

/* Range Inputs */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs .filter-input {
    flex: 1;
    min-width: 0;
    max-width: 100px;
}

.range-separator {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--gray-600);
    border-radius: 8px;
    overflow: hidden;
}

.input-with-prefix .prefix {
    padding: 8px 10px;
    background: var(--gray-800);
    color: var(--gray-400);
    font-size: 0.9rem;
    border-right: 1px solid var(--gray-600);
}

.input-with-prefix .filter-input {
    border: none;
    border-radius: 0;
    background: transparent;
}

.input-with-prefix .filter-input:focus {
    border: none;
    box-shadow: none;
}

/* Filters Actions */
.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-700);
}

.filters-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Active Filter Chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.active-label {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-right: 4px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(19, 239, 149, 0.12);
    border: 1px solid rgba(19, 239, 149, 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--green);
}

/* Exclude filter chip - Red */
.filter-chip.exclude {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.filter-chip.exclude .chip-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

.chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.chip-remove:hover {
    background: rgba(19, 239, 149, 0.2);
}

.chip-remove i {
    font-size: 0.85rem;
}

.btn-link {
    background: none;
    border: none;
    padding: 4px 8px;
    color: var(--gray-400);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--gray-300);
}

/* Search Results Header */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 16px;
}

.results-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.results-count {
    font-size: 1rem;
    color: var(--gray-300);
}

.results-count strong {
    color: var(--green);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-controls label {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.sort-select {
    min-width: 180px;
}

/* Pagination Improvements */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--gray-600);
    border-radius: 8px;
    color: var(--gray-400);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-page:hover {
    border-color: var(--gray-500);
    color: var(--gray-300);
}

.btn-page.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--bg-dark);
    font-weight: 600;
}

.page-ellipsis {
    color: var(--gray-500);
    padding: 0 4px;
}

.page-info {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Empty hint for filter sections */
.filter-section .empty-hint {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-style: italic;
    padding: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .quick-filters .filter-group {
        width: 100%;
    }

    .quick-filters .filter-select {
        width: 100%;
    }

    .price-quick-buttons {
        width: 100%;
        justify-content: center;
    }

    .stock-toggle {
        justify-content: center;
    }

    .btn-ghost {
        justify-content: center;
    }

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

    .advanced-filters-panel {
        padding: 16px;
    }

    .filter-group-content {
        padding: 12px;
    }

    .filters-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filters-column {
        gap: 10px;
    }

    .filters-column-narrow {
        min-width: auto;
        grid-column: auto;
    }

    .price-range-vertical {
        flex-direction: column;
    }

    .filter-row {
        gap: 10px;
    }

    .filter-group-title {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .checkbox-item {
        padding: 4px 6px;
        font-size: 0.85rem;
    }

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

    .product-card {
        padding: 16px;
    }

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

    .price-presets {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .filters-actions {
        flex-direction: column;
    }

    .filters-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-controls {
        width: 100%;
    }

    .sort-select {
        flex: 1;
    }

    .pagination {
        flex-direction: column;
        gap: 16px;
    }

    .page-numbers {
        order: -1;
    }
}

@media (max-width: 480px) {
    .advanced-filters-panel {
        padding: 12px;
        border-radius: 8px;
    }

    .filter-group-content {
        padding: 10px;
    }

    .filter-group-box {
        border-radius: 8px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .checkbox-item {
        padding: 5px 6px;
    }

    .btn-chip {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .search-input-group .search-icon {
        display: none;
    }

    .search-input-group .search-input {
        padding-left: 14px;
    }

    .search-bar-card .card-body {
        padding: 16px;
    }

    .search-page {
        padding: 0 12px;
    }
}

/* Search icon in input */
.search-input-group {
    position: relative;
}

.search-input-group .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-input-group .search-input {
    padding-left: 48px;
}

/* ========================================
   Hot Buys Page Styles
   ======================================== */

.hot-buys-page {
    max-width: 1600px;
}

.hot-buys-header {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hot-buys-header .header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hot-buys-header .header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff5722, #ff9800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.hot-buys-header .header-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.hot-buys-header .header-text p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 4px 0 0;
}

.hot-buys-header .results-summary {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hot-buys-header .results-count {
    font-weight: 600;
    color: var(--white);
}

.hot-buys-header .search-time {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.hot-buys-header .cache-time {
    color: var(--gray-500);
    font-size: 0.75rem;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--gray-400);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.category-tab.active {
    background: rgba(19, 239, 149, 0.15);
    color: var(--green);
}

.category-tab i {
    font-size: 1rem;
}

@media (max-width: 600px) {
    .category-tabs {
        width: 100%;
        justify-content: stretch;
    }

    .category-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}

/* Hot Buys Filter Controls */
.hot-buys-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: transparent;
    color: var(--gray-400);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: rgba(19, 239, 149, 0.15);
    color: var(--green);
    border-color: rgba(19, 239, 149, 0.3);
}

.filter-group select.form-input {
    width: auto;
    min-width: 160px;
    padding-right: 32px;
}

@media (max-width: 768px) {
    .hot-buys-filters {
        gap: 12px;
    }

    .filter-group {
        flex: 1;
        min-width: calc(50% - 8px);
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .filter-group {
        min-width: 100%;
    }
}

/* Hot Buy Card Styling */
.hot-buy-card {
    position: relative;
}

.hot-buy-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}

.hot-buy-badge .savings-percent {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hot Buy Pricing Layout */
.hot-buy-pricing {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hot-buy-pricing .price-best {
    display: flex;
    flex-direction: column;
}

.hot-buy-pricing .best-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
}

.hot-buy-pricing .price-compare {
    display: flex;
    flex-direction: column;
}

.hot-buy-pricing .avg-price {
    font-size: 1rem;
    color: var(--gray-400);
}

.hot-buy-pricing .avg-price.strikethrough {
    text-decoration: line-through;
}

.hot-buy-pricing .price-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hot-buy-pricing .savings-display {
    margin-left: auto;
}

.hot-buy-pricing .savings-amount {
    background: rgba(0, 200, 83, 0.15);
    color: var(--green);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Best Deal Distributor Badge */
.distributor-badge.best-deal {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.15));
    border: 1px solid rgba(255, 193, 7, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
}

.distributor-badge.best-deal i {
    color: #ffc107;
    font-size: 0.875rem;
}

.distributor-badge.best-deal .dist-label {
    color: #ffc107;
    font-weight: 600;
}

.compare-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Modal Hot Buy Badge */
.modal-hot-buy-badge {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-hot-buy-badge i {
    font-size: 1.25rem;
}

/* Hot Buy Summary in Modal */
.hot-buy-summary .price-item.best .price-value {
    color: var(--green);
}

.hot-buy-summary .price-item.savings .price-value {
    color: var(--green);
}

.hot-buy-summary .price-value.strikethrough {
    text-decoration: line-through;
    color: var(--gray-400);
}

.hot-buy-summary .price-value.savings-highlight {
    background: rgba(0, 200, 83, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
}

.hot-buy-summary .price-subtext {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Best price row highlight in table */
.best-price-row {
    background: rgba(0, 200, 83, 0.08);
    border-left: 3px solid var(--green);
}

.best-price-row .dist-name {
    font-weight: 600;
}

.trophy-icon {
    color: #ffc107;
    margin-right: 4px;
}

/* Responsive Hot Buys */
@media (max-width: 768px) {
    .hot-buys-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .hot-buys-header .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hot-buys-header .header-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        border-radius: 10px;
    }

    .hot-buys-header .header-text h1 {
        font-size: 1.25rem;
    }

    .hot-buys-header .results-summary {
        flex-wrap: wrap;
        gap: 6px;
    }

    .category-tabs {
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .hot-buys-filters {
        padding: 12px;
        gap: 10px;
    }

    .hot-buy-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
        top: 8px;
        left: 8px;
    }

    .product-identifiers {
        gap: 8px;
        margin-bottom: 12px;
    }

    .hot-buy-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hot-buy-pricing .savings-display {
        margin-left: 0;
    }
}

/* Responsive Hot Buys - Small phones */
@media (max-width: 480px) {
    .hot-buys-page {
        padding: 0 8px;
    }

    .hot-buys-header {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .hot-buys-header .header-icon {
        display: none;
    }

    .hot-buys-header .header-text h1 {
        font-size: 1.1rem;
    }

    .hot-buys-header .header-text p {
        font-size: 0.8rem;
    }

    .hot-buys-header .results-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hot-buys-header .cache-time {
        border-left: none;
        padding-left: 0;
    }

    .category-tabs {
        margin-bottom: 16px;
        gap: 4px;
    }

    .category-tab {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .category-tab i {
        display: none;
    }

    .hot-buys-filters {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .products-grid {
        gap: 12px;
    }

    .product-card {
        padding: 12px;
        border-radius: 8px;
    }

    .product-image {
        height: 130px;
    }

    .product-image-inner img {
        max-height: 130px;
    }

    .hot-buy-pricing .best-price {
        font-size: 1.25rem;
    }

    .hot-buy-pricing .avg-price {
        font-size: 0.875rem;
    }

    .hot-buy-pricing .savings-amount {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .distributor-badge.best-deal {
        padding: 3px 8px;
        font-size: 0.8rem;
    }

    .pagination {
        gap: 10px;
    }
}

/* ============================================
   Admin Edit Product Modal
   ============================================ */

.edit-product-modal {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.edit-product-upc {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 16px;
    font-family: monospace;
}

.edit-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.edit-tabs .tab-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.edit-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.edit-tabs .tab-btn.active {
    background: var(--green-dim);
    border-color: var(--green);
    color: var(--green);
}

.edit-form-content {
    min-height: 300px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-top: 16px;
    margin-bottom: -8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section-header:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: start;
}

.form-row > .form-group {
    margin-bottom: 0;
}

.form-row > .form-group .form-label {
    min-height: 1.25rem;
    display: flex;
    align-items: center;
}

.form-row > .form-group .form-input,
.form-row > .form-group select {
    height: 46px;
}

.char-count {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
    margin-left: 8px;
}

/* Warning button style for Edit Product */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
}

.btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Edit Modal */
@media (max-width: 600px) {
    .edit-product-modal {
        max-height: 90vh;
        padding: 16px;
    }

    .edit-tabs {
        flex-direction: column;
    }

    .edit-tabs .tab-btn {
        width: 100%;
        text-align: center;
    }

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

/* ============================================================
   Distributor Visibility Controls (Admin)
   ============================================================ */
.visibility-toggles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visibility-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.visibility-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    white-space: nowrap;
}

/* ============================================================
   Restricted Price Display
   ============================================================ */
.restricted-price .dealer-price {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.restricted-price .dealer-price i {
    margin-right: 4px;
}

.restricted-price-icon {
    color: var(--gray-500);
}

.restricted-price-icon i {
    font-size: 0.9rem;
}

.prices-row-compact.pricing-restricted {
    opacity: 0.7;
}

/* ============================================================
   Restriction Badges (MyDistributors)
   ============================================================ */
.restriction-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 600;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.restriction-badge.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.restriction-badge.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ============================================================
   Chat Widget (Support)
   ============================================================ */
.chat-widget-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(19, 239, 149, 0.3);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #000;
    font-size: 1.5rem;
}

.chat-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(19, 239, 149, 0.45);
}

.chat-widget-popup {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    animation: chatSlideUp 0.25s ease-out;
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.chat-widget-header .close-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
}

.chat-widget-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.chat-widget-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-widget-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-widget-footer input,
.chat-widget-footer textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--white);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    resize: none;
    outline: none;
    transition: border-color 0.15s;
}

.chat-widget-footer input:focus,
.chat-widget-footer textarea:focus {
    border-color: var(--green);
}

.chat-widget-footer .send-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.chat-widget-footer .send-btn:hover {
    opacity: 0.9;
}

.chat-widget-footer .send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chat Messages */
.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--green);
    color: #000;
    border-bottom-right-radius: 4px;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-200);
    border-bottom-left-radius: 4px;
}

.chat-msg.admin {
    align-self: flex-start;
    background: rgba(20, 154, 251, 0.15);
    color: var(--gray-200);
    border: 1px solid rgba(20, 154, 251, 0.25);
    border-bottom-left-radius: 4px;
}

.chat-msg .msg-sender {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.7;
}

.chat-msg .msg-time {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 4px;
}

/* Quick Action Buttons */
.chat-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

.chat-quick-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--gray-200);
    font-size: 0.825rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    font-family: var(--font-sans);
}

.chat-quick-btn:hover {
    background: rgba(19, 239, 149, 0.08);
    border-color: rgba(19, 239, 149, 0.25);
    color: var(--white);
}

.chat-quick-btn i {
    margin-right: 8px;
    color: var(--green);
}

/* Typing Indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-500);
    animation: chatTypingDot 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTypingDot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* Connect with Support Button */
.chat-connect-btn {
    background: rgba(20, 154, 251, 0.1);
    border: 1px solid rgba(20, 154, 251, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--cyan);
    font-size: 0.825rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    font-family: var(--font-sans);
    font-weight: 500;
    margin-top: 4px;
}

.chat-connect-btn:hover {
    background: rgba(20, 154, 251, 0.2);
    border-color: rgba(20, 154, 251, 0.5);
}

.chat-guest-cta {
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid rgba(0, 200, 83, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--gray-300);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 8px;
    text-align: center;
}

.chat-guest-cta i {
    color: var(--green);
    margin-right: 4px;
}

.chat-guest-cta a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.chat-guest-cta a:hover {
    text-decoration: underline;
}

.chat-connect-btn i {
    margin-right: 6px;
}

.chat-system-msg {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    padding: 4px 0;
    font-style: italic;
}

.chat-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Welcome message */
.chat-welcome {
    text-align: center;
    padding: 8px 0 12px;
}

.chat-welcome h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 4px;
}

.chat-welcome p {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin: 0;
}

/* Ticket Form */
.chat-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.chat-ticket-form label {
    font-size: 0.8rem;
    color: var(--gray-300);
    font-weight: 500;
}

.chat-ticket-form input,
.chat-ticket-form textarea,
.chat-ticket-form select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--white);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    outline: none;
    width: 100%;
    transition: border-color 0.15s;
}

.chat-ticket-form input:focus,
.chat-ticket-form textarea:focus,
.chat-ticket-form select:focus {
    border-color: var(--green);
}

.chat-ticket-form select option {
    background: var(--bg-card);
    color: var(--white);
}

.chat-ticket-form .submit-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
    transition: opacity 0.15s;
}

.chat-ticket-form .submit-btn:hover { opacity: 0.9; }
.chat-ticket-form .submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-back-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    font-family: var(--font-sans);
}

.chat-back-btn:hover { color: var(--white); }

/* Status badge in chat */
.chat-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.chat-status.online { background: rgba(19, 239, 149, 0.15); color: var(--green); }
.chat-status.offline { background: rgba(255, 255, 255, 0.08); color: var(--gray-400); }
.chat-status.waiting { background: rgba(250, 204, 21, 0.15); color: var(--yellow); }

/* ============================================================
   Admin Support Page
   ============================================================ */
.support-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.support-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-sans);
    position: relative;
}

.support-tab:hover {
    color: var(--gray-200);
}

.support-tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.support-tab .tab-badge {
    background: var(--green);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.unread-badge {
    background: var(--green);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.4;
}

/* Admin chat layout */
.admin-chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    height: calc(100vh - 320px);
    min-height: 400px;
}

.admin-chat-sessions {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
}

.admin-chat-session-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
}

.admin-chat-session-item:hover,
.admin-chat-session-item.active {
    background: rgba(19, 239, 149, 0.05);
}

.admin-chat-session-item .session-user {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
}

.admin-chat-session-item .session-status {
    font-size: 0.7rem;
    margin-top: 2px;
}

.admin-chat-window {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-chat-window .chat-window-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-chat-window .chat-window-input {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 8px;
}

.admin-chat-window .chat-window-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--white);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    outline: none;
}

.admin-chat-window .chat-window-input input:focus {
    border-color: var(--green);
}

.admin-chat-window .chat-window-input .send-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.admin-chat-window .chat-window-input .send-btn:hover {
    opacity: 0.9;
}

.admin-chat-window .chat-window-input .send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-chat-window .chat-window-input .end-chat-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s;
}

.admin-chat-window .chat-window-input .end-chat-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* KB Article Management */
.kb-article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.15s;
}

.kb-article-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.kb-article-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 4px;
}

.kb-article-info .kb-meta {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.kb-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.kb-badge.quick-action {
    background: rgba(19, 239, 149, 0.12);
    color: var(--green);
}

.kb-badge.category {
    background: rgba(20, 154, 251, 0.12);
    color: var(--cyan);
}

.kb-badge.disabled {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-500);
}

.kb-article-actions {
    display: flex;
    gap: 8px;
}

.kb-article-actions button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--gray-300);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.kb-article-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.kb-article-actions button.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Ticket detail in admin */
.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-messages {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    scroll-behavior: smooth;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.ticket-msg {
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.ticket-msg:last-child {
    border-bottom: none;
}

.ticket-msg.from-user {
    border-left-color: rgba(19, 239, 149, 0.4);
    background: rgba(19, 239, 149, 0.05);
}

.ticket-msg.from-admin {
    border-left-color: rgba(20, 154, 251, 0.4);
    background: rgba(20, 154, 251, 0.05);
}

.ticket-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ticket-msg-sender {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-msg-sender i {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.ticket-msg-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-300);
}

.ticket-msg-role {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ticket-msg-role.admin {
    background: rgba(20, 154, 251, 0.15);
    color: rgba(20, 154, 251, 0.9);
}

.ticket-msg-role.customer {
    background: rgba(19, 239, 149, 0.12);
    color: rgba(19, 239, 149, 0.9);
}

.ticket-msg-time {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.ticket-msg-body {
    color: var(--gray-200);
    white-space: pre-wrap;
}

/* Ticket detail info classes */
.ticket-detail-from {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.ticket-detail-from strong {
    color: var(--white);
}

.ticket-detail-desc {
    font-size: 0.85rem;
    color: var(--gray-300);
    margin-top: 8px;
}

.ticket-detail-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ticket-status-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--white);
    font-size: 0.8rem;
}

.ticket-reply-input {
    display: flex;
    gap: 8px;
}

.ticket-reply-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--white);
    font-size: 0.85rem;
}

.ticket-reply-field:focus {
    outline: none;
    border-color: rgba(20, 154, 251, 0.4);
}

/* Mobile responsive chat widget */
@media (max-width: 480px) {
    .chat-widget-popup {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    .chat-widget-header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 1;
        background: var(--bg-card);
    }

    .chat-widget-header .close-btn {
        font-size: 1.5rem;
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chat-widget-body {
        padding: 12px;
    }

    .chat-widget-footer {
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .chat-widget-button {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
        font-size: 1.2rem;
    }

    .chat-msg {
        max-width: 90%;
    }

    .chat-quick-btn {
        padding: 8px 12px;
    }

    .admin-chat-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}
