/* =============================================
   Fabi Clean (FBY) — Stylesheet Principal v1.1
   Zero CDN — 100% Vanilla CSS
   ============================================= */

/* --- Variables: DARK theme (default) --- */
:root {
    /* Brand — fixed across themes */
    --fby-primary: #1e3a5f;
    --fby-primary-light: #2d5a87;
    --fby-accent: #4da6ff;
    --fby-accent-soft: #7ec8e3;
    --fby-green: #88b04b;

    /* Surfaces */
    --fby-bg: #0f172a;
    --fby-bg-alt: #1e293b;
    --fby-card-bg: rgba(30, 58, 95, 0.45);
    --fby-card-bg-solid: #1a2e4a;

    /* Text */
    --fby-text: #e2e8f0;
    --fby-text-muted: #94a3b8;
    --fby-heading: #ffffff;

    /* Borders */
    --fby-border: rgba(255, 255, 255, 0.1);
    --fby-border-subtle: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --fby-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --fby-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.35);

    /* Inputs */
    --fby-input-bg: rgba(255, 255, 255, 0.08);
    --fby-input-border: rgba(255, 255, 255, 0.15);
    --fby-input-text: #fff;

    /* Popup */
    --fby-popup-bg: #1e293b;
    --fby-popup-text: #e2e8f0;

    /* Product placeholder gradient */
    --fby-img-placeholder-from: #1e3a5f;
    --fby-img-placeholder-to: #2d5a87;

    /* Scrollbar */
    --fby-scrollbar: rgba(255, 255, 255, 0.12);
    --fby-scrollbar-hover: rgba(255, 255, 255, 0.22);

    /* Functional — fixed */
    --fby-success: #38a169;
    --fby-error: #e53e3e;
    --fby-radius: 12px;
}

/* --- Variables: LIGHT theme --- */
[data-theme="light"] {
    --fby-bg: #fef7f7;
    --fby-bg-alt: #fff1f2;
    --fby-card-bg: #ffffff;
    --fby-card-bg-solid: #ffffff;

    --fby-text: #1a0505;
    --fby-text-muted: #6b2121;
    --fby-heading: #991b1b;

    --fby-border: #fecaca;
    --fby-border-subtle: #fef2f2;

    --fby-shadow: 0 4px 24px rgba(220, 38, 38, 0.06);
    --fby-shadow-hover: 0 8px 32px rgba(220, 38, 38, 0.1);

    --fby-input-bg: #ffffff;
    --fby-input-border: #fecaca;
    --fby-input-text: #1a0505;

    --fby-popup-bg: #ffffff;
    --fby-popup-text: #1a0505;

    --fby-img-placeholder-from: #fef2f2;
    --fby-img-placeholder-to: #fff1f2;

    --fby-scrollbar: rgba(220, 38, 38, 0.12);
    --fby-scrollbar-hover: rgba(220, 38, 38, 0.22);
}

/* ==================================================================
   LIGHT THEME — Component Overrides (inverted red ↔ white)
   ================================================================== */

/* --- Header: white backgrounds with red accents --- */
[data-theme="light"] .fby-header-glow {
    background: linear-gradient(90deg,
        transparent,
        #dc2626,
        #fbbf24,
        #dc2626,
        transparent
    );
    background-size: 200% 100%;
    animation: fby-headerBorderFlow 4s linear infinite;
}

[data-theme="light"] .fby-topbar {
    background: rgba(220, 38, 38, 0.92);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .fby-topbar-link {
    color: rgba(255, 255, 255, 0.75);
}
[data-theme="light"] .fby-topbar-link:hover {
    color: #fff;
}

[data-theme="light"] .fby-brandbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
[data-theme="light"] .fby-brandbar::before {
    background: radial-gradient(ellipse at left center, rgba(220,38,38,0.05) 0%, transparent 70%);
}
[data-theme="light"] .fby-brandbar::after {
    background: radial-gradient(ellipse at right center, rgba(252,165,165,0.08) 0%, transparent 70%);
}

[data-theme="light"] .fby-logo {
    color: #991b1b;
}

[data-theme="light"] .fby-search-input {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: #1a0505;
}
[data-theme="light"] .fby-search-input::placeholder { color: rgba(100,20,20,0.4); }
[data-theme="light"] .fby-search-input:focus { border-color: #dc2626; background: rgba(220,38,38,0.08); }

[data-theme="light"] .fby-search-icon { color: rgba(220, 38, 38, 0.4); }

[data-theme="light"] .fby-header-icon {
    color: rgba(100, 20, 20, 0.7);
}
[data-theme="light"] .fby-header-icon:hover {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.08);
}

[data-theme="light"] .fby-navbar {
    background: rgba(255, 248, 248, 0.9);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-top: 1px solid rgba(220, 38, 38, 0.1);
}

[data-theme="light"] .fby-nav-link {
    color: rgba(100, 20, 20, 0.7);
}
[data-theme="light"] .fby-nav-link:hover {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.06);
}
[data-theme="light"] .fby-nav-link.active {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.08);
}

/* --- Header: scrolled state --- */
[data-theme="light"] .fby-header.fby-header--scrolled {
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.08), 0 0 15px rgba(220, 38, 38, 0.04);
}

/* --- Header: pill-mode --- */
[data-theme="light"] .fby-header.fby-pill-mode {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(220, 38, 38, 0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 0 20px rgba(220,38,38,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* --- Hero section light --- */
[data-theme="light"] .fby-hero {
    background: linear-gradient(135deg, #fef7f7 0%, #fff1f2 30%, #fef2f2 60%, #fefce8 100%);
}

[data-theme="light"] .fby-gradient-text,
[data-theme="light"] .fby-hero h1 .fby-gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #000000 !important;
    background-clip: unset !important;
    color: #000000 !important;
    filter: none !important;
}

[data-theme="light"] .fby-hero h1 {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    filter: none !important;
}

[data-theme="light"] .fby-eyebrow {
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.2);
}

[data-theme="light"] .fby-hero-sub {
    color: #6b2121;
}

[data-theme="light"] .fby-hero-typewriter-label {
    color: #6b2121;
}

[data-theme="light"] .fby-hero-typewriter-text {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .fby-hero-proof span {
    color: #6b2121;
}
[data-theme="light"] .fby-hero-proof svg {
    stroke: #dc2626;
}

/* --- Hero CTAs light --- */
[data-theme="light"] .fby-btn-hero {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.25);
}
[data-theme="light"] .fby-btn-hero:hover {
    box-shadow: 0 6px 30px rgba(220, 38, 38, 0.35);
}

[data-theme="light"] .fby-btn-secondary {
    background: rgba(220, 38, 38, 0.06);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.2);
}
[data-theme="light"] .fby-btn-secondary:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

/* --- Satellites light --- */
[data-theme="light"] .fby-satellite-inner {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(220, 38, 38, 0.12);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
}

/* --- Canvas opacity in light mode --- */
[data-theme="light"] .fby-hero-canvas {
    opacity: 0.3;
}

/* --- User dropdown light --- */
[data-theme="light"] .fby-dropdown-menu {
    background: #fff;
    border: 1px solid rgba(220, 38, 38, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
[data-theme="light"] .fby-dropdown-item {
    color: #4a1515;
}
[data-theme="light"] .fby-dropdown-item:hover {
    background: rgba(220, 38, 38, 0.05);
}

/* --- Mobile nav light --- */
[data-theme="light"] .fby-mobile-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(220, 38, 38, 0.1);
}
[data-theme="light"] .fby-mob-item {
    color: #6b2121;
}
[data-theme="light"] .fby-mob-item:hover,
[data-theme="light"] .fby-mob-item.active {
    color: #dc2626;
}
[data-theme="light"] .fby-mob-cart {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--fby-bg);
    color: var(--fby-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}


a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =============================================
   ANIMATED HEADER BORDER (Design #1)
   ============================================= */
@keyframes fby-headerBorderFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.fby-header-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        #dc2626,
        #ffffff,
        #dc2626,
        transparent
    );
    background-size: 200% 100%;
    animation: fby-headerBorderFlow 4s linear infinite;
    z-index: 101;
    pointer-events: none;
}

.fby-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin: 0 auto;
    transition: width 0.4s ease, margin 0.4s ease, background-color 0.4s ease, border-radius 0.4s ease, box-shadow 0.4s ease, top 0.4s ease;
    will-change: width, top, border-radius, background-color;
    transform: translate3d(0, 0, 0);
    overflow-anchor: none;
}

/* === Scroll state: standard shrink === */
.fby-header.fby-header--scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
                0 0 15px rgba(220, 38, 38, 0.08);
}

.fby-header.fby-header--scrolled .fby-topbar {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

/* === Pill-mode: floating centered pill on deeper scroll === */
.fby-header.fby-pill-mode {
    position: sticky;
    top: 12px;
    left: auto;
    width: 92vw;
    margin: 0 auto;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    padding: 0;
    overflow: visible;
}

.fby-header.fby-pill-mode .fby-topbar {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

.fby-header.fby-pill-mode .fby-brandbar {
    padding: 0.35rem 1.5rem;
    background: transparent;
    backdrop-filter: none;
}

.fby-header.fby-pill-mode .fby-navbar {
    display: none;
}

.fby-header.fby-pill-mode .fby-header-glow {
    display: none;
}

.fby-header.fby-pill-mode .fby-search-wrap {
    max-width: 280px;
}

/* Show Produse button in pill-mode (duplicated into brandbar area via JS) */
.fby-pill-produse-btn {
    display: none;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
}
.fby-pill-produse-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.3);
}
.fby-header.fby-pill-mode .fby-pill-produse-btn {
    display: inline-flex;
}

/* Tier 1: Top Bar */
.fby-topbar {
    background: rgba(80, 12, 18, 0.95);
    padding: 0.4rem 2rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 40px;
    opacity: 1;
    overflow: hidden;
}

.fby-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fby-topbar-left,
.fby-topbar-right {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.fby-topbar-link {
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.fby-topbar-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.fby-topbar-link svg {
    flex-shrink: 0;
}

/* Produse button in topbar */
.fby-topbar-produse-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-transform: uppercase;
}
.fby-topbar-produse-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.3);
}

/* Tier 2: Brand Bar */
.fby-brandbar {
    position: relative;
    z-index: 2;
    background: rgba(55, 8, 14, 0.88);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    padding: 0.65rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left glow accent */
.fby-brandbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 18rem;
    height: 100%;
    background: radial-gradient(ellipse at left center, rgba(220,38,38,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Right glow accent */
.fby-brandbar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 18rem;
    height: 100%;
    background: radial-gradient(ellipse at right center, rgba(252,165,165,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.fby-brandbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.fby-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.fby-search-wrap {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.fby-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.fby-search-input {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.fby-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.fby-search-input:focus {
    border-color: var(--fby-accent);
    background: rgba(255, 255, 255, 0.12);
}

.fby-header-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fby-header-icon {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.4rem;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
}

.fby-header-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.fby-cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--fby-error);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Tier 3: Navbar */
.fby-navbar {
    background: rgba(45, 6, 12, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fby-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.fby-nav-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border-bottom: none;
    transition: all 0.2s;
    position: relative;
}

.fby-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.fby-nav-link.active {
    color: #fff;
    background: rgba(220, 38, 38, 0.1);
}

.fby-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #dc2626;
    border-radius: 2px;
}

/* =============================================
   HERO SECTION (CRSS-dev style, red/rose palette)
   ============================================= */
.fby-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(at 0% 0%, hsla(0, 80%, 12%, 1) 0, transparent 50%),
        radial-gradient(at 50% 100%, hsla(350, 80%, 8%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(10, 60%, 12%, 1) 0, transparent 50%);
    background-color: #0a0205;
    background-size: 200% 200%;
    animation: fby-meshFlow 10s ease infinite alternate;
    border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}

@keyframes fby-meshFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Canvas particles layer */
.fby-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Glow blobs — red/rose palette */
.fby-hero::before {
    content: '';
    position: absolute;
    left: 15%;
    top: 30%;
    width: 500px;
    height: 500px;
    background: rgba(220, 38, 38, 0.06);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    animation: fby-blobFloat0 18s ease-in-out infinite alternate;
}
.fby-hero::after {
    content: '';
    position: absolute;
    right: 10%;
    bottom: 20%;
    width: 400px;
    height: 400px;
    background: rgba(244, 63, 94, 0.05);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
    animation: fby-blobFloat1 15s ease-in-out 2s infinite alternate;
}

@keyframes fby-blobFloat0 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.05); }
}
@keyframes fby-blobFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-25px, 15px) scale(0.95); }
}

.fby-hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.fby-hero-text {
    flex: 1;
}

.fby-hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    perspective: 1000px;
}

/* Eyebrow — animated border glow */
.fby-eyebrow {
    display: inline-block;
    position: relative;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    background: transparent;
    color: #f87171;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    z-index: 1;
}
.fby-eyebrow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 1.5px;
    background: conic-gradient(from var(--fby-eyebrow-angle, 0deg), transparent 25%, #dc2626 50%, transparent 75%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: fby-eyebrowSpin 3s linear infinite;
    z-index: -1;
}
@keyframes fby-eyebrowSpin {
    to { --fby-eyebrow-angle: 360deg; }
}
@property --fby-eyebrow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Headline — gradient text */
.fby-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #fff;
}
.fby-hero h1 .fby-gradient-text {
    background: linear-gradient(135deg, #fca5a5, #ffffff 40%, #fecaca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fby-hero-sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.fby-hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CTA primary — red gradient + magnetic */
.fby-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35);
    transition: transform 0.2s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.fby-btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s;
}
.fby-btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}
.fby-btn-hero:hover::before {
    background: transparent;
}
.fby-btn-hero svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}
.fby-btn-hero:hover svg {
    transform: translateX(3px);
}
.fby-btn-hero span,
.fby-btn-hero {
    position: relative;
    z-index: 1;
}

/* CTA secondary — glassmorphism */
.fby-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 15, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    padding: 0.9rem 1.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}
.fby-btn-secondary:hover {
    background: rgba(60, 25, 25, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Micro-proof */
.fby-hero-proof {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}
.fby-hero-proof span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.fby-hero-proof svg {
    color: #f87171;
    flex-shrink: 0;
}

/* ---- HERO VISUAL: SVG Monitor + Satellites ---- */
.fby-hero-monitor {
    position: relative;
    z-index: 20;
    width: 85%;
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.15));
    animation: fby-heroFloat 6s ease-in-out infinite;
}
@keyframes fby-heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Floating satellites */
.fby-satellite {
    position: absolute;
    z-index: 30;
    transition: top 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                left 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                right 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                bottom 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.9s ease 0.5s,
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fby-satellite-inner {
    background: rgba(30, 15, 15, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fby-sat-1  { top: -5%;  left: 5%;   animation: fby-satFloat 5s ease-in-out 0s infinite; }
.fby-sat-2  { top: -8%;  left: 35%;  animation: fby-satFloat 6s ease-in-out 0.4s infinite; }
.fby-sat-3  { top: -5%;  right: 20%; animation: fby-satFloat 5.5s ease-in-out 0.8s infinite; }
.fby-sat-4  { top: 8%;   right: -5%; animation: fby-satFloat 7s ease-in-out 1.2s infinite; }
.fby-sat-5  { top: 28%;  right: -8%; animation: fby-satFloat 6.2s ease-in-out 0.2s infinite; }
.fby-sat-6  { top: 50%;  right: -6%; animation: fby-satFloat 5.8s ease-in-out 1.5s infinite; }
.fby-sat-7  { top: 72%;  right: -4%; animation: fby-satFloat 6.5s ease-in-out 0.6s infinite; }
.fby-sat-8  { bottom: -5%; right: 10%; animation: fby-satFloat 5.3s ease-in-out 1.8s infinite; }
.fby-sat-9  { bottom: -8%; left: 40%; animation: fby-satFloat 6.8s ease-in-out 1s infinite; }
.fby-sat-10 { bottom: -3%; left: 10%; animation: fby-satFloat 5.6s ease-in-out 0.3s infinite; }
.fby-sat-11 { top: 70%;  left: -6%;  animation: fby-satFloat 6.3s ease-in-out 1.4s infinite; }
.fby-sat-12 { top: 48%;  left: -8%;  animation: fby-satFloat 5.4s ease-in-out 0.7s infinite; }
.fby-sat-13 { top: 25%;  left: -5%;  animation: fby-satFloat 6.6s ease-in-out 1.1s infinite; }
.fby-sat-14 { top: 5%;   left: -3%;  animation: fby-satFloat 5.7s ease-in-out 1.6s infinite; }
.fby-sat-15 { bottom: -6%; right: 35%; animation: fby-satFloat 6.1s ease-in-out 0.5s infinite; }

/* Hover: satellites fly into the cart */
.fby-hero-visual:hover .fby-satellite {
    top: 45% !important;
    left: 45% !important;
    right: auto !important;
    bottom: auto !important;
    opacity: 0;
    transform: scale(0.3) !important;
    animation: none !important;
}

@keyframes fby-satFloat {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}

/* Staggered entrance */
.fby-hero-fade {
    opacity: 0;
    transform: translateY(30px);
}
.fby-hero-fade.fby-entered {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating cards in hero (legacy, keep for compatibility) */
.fby-float-card {
    position: absolute;
    background: rgba(30, 15, 15, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    color: #fff;
    min-width: 160px;
}
.fby-float-card-emoji { font-size: 1.75rem; margin-bottom: 0.3rem; }
.fby-float-card-name { font-size: 0.85rem; font-weight: 600; }
.fby-float-card-price { font-size: 0.95rem; font-weight: 700; color: #f87171; margin-top: 0.15rem; }

.fby-fc-1 { top: 10%; left: 5%; animation: fby-satFloat 6s ease-in-out infinite; transform: rotate(-4deg); }
.fby-fc-2 { top: 15%; right: 5%; animation: fby-satFloat 7s ease-in-out infinite 1s; transform: rotate(3deg); }
.fby-fc-3 { bottom: 12%; left: 25%; animation: fby-satFloat 5s ease-in-out infinite 2s; transform: rotate(-2deg); }

/* Magnetic button utility (reusable) */
.fby-magnetic-btn {
    transition: transform 0.15s ease;
}

/* =============================================
   USP BADGES
   ============================================= */
.fby-usp {
    background: #1a2e4a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
}

.fby-usp-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.fby-usp-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.fby-usp-emoji {
    font-size: 1.5rem;
}

.fby-usp-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.fby-usp-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   SECTION TITLES
   ============================================= */
.fby-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.fby-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fby-heading);
    margin-bottom: 0.5rem;
}

.fby-section-header p {
    font-size: 1rem;
    color: var(--fby-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* =============================================
   CATEGORIES GRID — 12 Cards (3 rows × 4 cols)
   ============================================= */
.fby-categories-section {
    padding: 5rem 2rem;
    background: #fff;
    position: relative;
}

/* Dark mode override — dark bg */
:root .fby-categories-section {
    background: var(--fby-bg-alt);
}

.fby-categories-section .fby-section-header h2 {
    color: #1a0505;
}
.fby-categories-section .fby-section-header p {
    color: #6b2121;
}
:root .fby-categories-section .fby-section-header h2 {
    color: var(--fby-heading);
}
:root .fby-categories-section .fby-section-header p {
    color: var(--fby-text-muted);
}

/* Grid — 4 columns */
.fby-cat-grid-12 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.fby-cat-card-new {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transform-style: preserve-3d;
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Radial light at top-right */
.fby-cat-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s;
}

/* Sweeping glint/shine effect */
.fby-cat-card-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: none;
    pointer-events: none;
    z-index: 5;
}
.fby-cat-card-new:hover::after {
    animation: fby-cardGlint 0.6s ease forwards;
}
@keyframes fby-cardGlint {
    0%   { left: -60%; }
    100% { left: 120%; }
}

/* 3D tilt + glow on hover */
.fby-cat-card-new:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-3deg) translateZ(12px) translateY(-8px);
    box-shadow:
        0 25px 60px rgba(220, 38, 38, 0.35),
        0 0 40px rgba(220, 38, 38, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background-position: 100% 50%;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Icon container */
.fby-cat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Pulsing ring around icon */
.fby-cat-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: fby-catIconPulse 3s ease-in-out infinite;
}
@keyframes fby-catIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.15); opacity: 0; }
}

/* Icon bounce on hover */
.fby-cat-card-new:hover .fby-cat-icon {
    background: rgba(255, 255, 255, 0.28);
    animation: fby-catIconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}
@keyframes fby-catIconBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25) rotate(-5deg); }
    70%  { transform: scale(0.95) rotate(3deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

.fby-cat-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}
.fby-cat-card-new:hover .fby-cat-icon svg {
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.4));
}

/* Card text — stagger on hover */
.fby-cat-card-new h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.fby-cat-card-new:hover h3 {
    transform: translateY(-2px);
}

.fby-cat-card-new p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.3;
    transition: all 0.3s 0.05s;
}
.fby-cat-card-new:hover p {
    color: rgba(255, 255, 255, 0.85);
}

/* CTA */
.fby-cat-cta {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.5rem;
    margin-top: auto;
    width: 100%;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.fby-cat-card-new:hover .fby-cat-cta {
    color: #fff;
    letter-spacing: 1px;
}

/* Light theme */
[data-theme="light"] .fby-categories-section {
    background: #fff;
}
[data-theme="light"] .fby-categories-section .fby-section-header h2 {
    color: #1a0505;
}
[data-theme="light"] .fby-categories-section .fby-section-header p {
    color: #6b2121;
}

/* Responsive */
@media (max-width: 1024px) {
    .fby-cat-grid-12 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .fby-cat-grid-12 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .fby-categories-section { padding: 3rem 1rem; }
}
@media (max-width: 480px) {
    .fby-cat-grid-12 { grid-template-columns: 1fr; }
}

/* =============================================
   PRODUCTS CAROUSEL
   ============================================= */
.fby-products-section {
    padding: 5rem 2rem;
    background: var(--fby-bg);
}

/* Carousel wrapper */
.fby-carousel-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Track — horizontal scroll + snap */
.fby-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.25rem 1.5rem;
    flex: 1;
}
.fby-carousel-track::-webkit-scrollbar { height: 6px; }
.fby-carousel-track::-webkit-scrollbar-track { background: transparent; }
.fby-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.25);
    border-radius: 3px;
}
.fby-carousel-track::-webkit-scrollbar-thumb:hover { background: rgba(220, 38, 38, 0.45); }

/* Arrow buttons */
.fby-carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--fby-border);
    background: var(--fby-card-bg);
    color: var(--fby-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fby-carousel-arrow:hover {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    transform: scale(1.1);
}

/* === PRODUCT CARD V2 === */
.fby-prod-card-v2 {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--fby-card-bg);
    border-radius: var(--fby-radius);
    border: 1px solid var(--fby-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
}

/* Sweeping glint */
.fby-prod-card-v2::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
    z-index: 5;
}
.fby-prod-card-v2:hover::after {
    animation: fby-cardGlint 0.6s ease forwards;
}

/* 3D tilt on hover */
.fby-prod-card-v2:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-3deg) translateZ(10px) translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Image area */
.fby-prod-img-v2 {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--fby-img-placeholder-from), var(--fby-img-placeholder-to));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.fby-prod-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.fby-prod-card-v2:hover .fby-prod-img-v2 img {
    transform: scale(1.08);
}
.fby-prod-emoji {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fby-prod-card-v2:hover .fby-prod-emoji {
    transform: scale(1.2) rotate(-5deg);
}

/* Badge */
.fby-prod-badge-v2 {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* Body — flex column, button pinned to bottom */
.fby-prod-body-v2 {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fby-prod-name-v2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fby-text);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    transition: color 0.2s;
}
.fby-prod-card-v2:hover .fby-prod-name-v2 {
    color: var(--fby-accent);
}

.fby-prod-pricing-v2 {
    margin-bottom: 0.75rem;
}
.fby-prod-price-v2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fby-accent);
    display: block;
}
.fby-prod-vat-v2 {
    font-size: 0.7rem;
    color: var(--fby-text-muted);
    display: block;
    margin-top: 0.1rem;
}

/* Add to cart button — pinned to bottom */
.fby-prod-btn-v2 {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    padding: 0.65rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.fby-prod-btn-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s;
}
.fby-prod-btn-v2:hover::before {
    transform: translateX(100%);
}
.fby-prod-btn-v2:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
    transform: scale(1.03);
}
.fby-prod-btn-v2 svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}
.fby-prod-btn-v2:hover svg {
    transform: rotate(-12deg) scale(1.15);
}

/* More products link */
.fby-products-more {
    text-align: center;
    margin-top: 2.5rem;
}

.fby-btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.fby-btn-primary-outline:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

/* Light theme */
[data-theme="light"] .fby-products-section {
    background: #f9fafb;
}
[data-theme="light"] .fby-prod-card-v2 {
    background: #fff;
    border-color: #e5e7eb;
}
[data-theme="light"] .fby-carousel-arrow {
    background: #fff;
    border-color: #e5e7eb;
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .fby-products-section { padding: 3rem 1rem; }
    .fby-prod-card-v2 { flex: 0 0 220px; }
    .fby-carousel-arrow { display: none; }
}

/* =============================================
   WHY SECTION
   ============================================= */
.fby-why {
    padding: 4rem 2rem;
}

.fby-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.fby-why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--fby-card-bg);
    border: 1px solid var(--fby-border);
    border-radius: var(--fby-radius);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fby-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fby-shadow-hover);
}

.fby-why-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fby-why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fby-heading);
    margin-bottom: 0.5rem;
}

.fby-why-card p {
    font-size: 0.85rem;
    color: var(--fby-text-muted);
    line-height: 1.6;
}

/* =============================================
   TIPS SECTION
   ============================================= */
.fby-tips {
    padding: 4rem 2rem;
    background: var(--fby-bg);
}

.fby-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.fby-tip-card {
    background: var(--fby-card-bg);
    border-radius: var(--fby-radius);
    border: 1px solid var(--fby-border);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.fby-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fby-shadow-hover);
}

.fby-tip-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--fby-img-placeholder-from), var(--fby-img-placeholder-to));
}

.fby-tip-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fby-tip-date {
    font-size: 0.75rem;
    color: var(--fby-text-muted);
    margin-bottom: 0.5rem;
}

.fby-tip-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.fby-tip-preview {
    font-size: 0.85rem;
    color: var(--fby-text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.fby-tip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--fby-accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* =============================================
   FOOTER
   ============================================= */
.fby-footer {
    background: var(--fby-primary);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.fby-footer::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--fby-bg-alt), var(--fby-primary));
    pointer-events: none;
}

.fby-footer-glow {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 166, 255, 0.5), transparent);
}

.fby-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.fby-footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.fby-footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.fby-footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.fby-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fby-success);
    animation: fby-ping 1.5s infinite;
}

@keyframes fby-ping {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(56, 161, 105, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 161, 105, 0);
    }
}

.fby-footer-email {
    font-size: 0.85rem;
    color: var(--fby-accent-soft);
}

.fby-footer-email:hover {
    color: #fff;
}

.fby-footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fby-footer-links li {
    margin-bottom: 0.5rem;
}

.fby-footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.fby-footer-links a:hover {
    color: #fff;
}

.fby-legal-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fby-legal-badge-img {
    display: block;
}

.fby-legal-badge-img img {
    height: 2.5rem;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.fby-legal-badge-img:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.fby-subfooter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.fby-watermark {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.15em;
}

/* =============================================
   COOKIES POPUP
   ============================================= */
.fby-cookies-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 200;
    background: var(--fby-popup-bg);
    color: var(--fby-popup-text);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--fby-shadow);
    max-width: 340px;
    border: 1px solid var(--fby-border);
    animation: fby-flicker 3s ease-in-out infinite;
}

.fby-cookies-popup:hover {
    animation: none;
    transform: translateY(-3px);
}

@keyframes fby-flicker {

    0%,
    100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    50% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
        transform: translateY(-2px);
    }
}

.fby-cookies-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--fby-text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.fby-cookies-close:hover {
    color: var(--fby-popup-text);
}

.fby-cookies-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fby-cookies-text {
    font-size: 0.8rem;
    color: var(--fby-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.fby-cookies-btns {
    display: flex;
    gap: 0.5rem;
}

.fby-cookies-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.fby-cookies-accept {
    background: var(--fby-accent);
    color: #fff;
}

.fby-cookies-decline {
    background: var(--fby-border);
    color: var(--fby-text-muted);
}

.fby-cookies-btn:hover {
    opacity: 0.85;
}

/* =============================================
   MOBILE BOTTOM NAV
   ============================================= */
.fby-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: rgba(30, 58, 95, 0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0 0.6rem;
    /* safe-area bottom handled below */
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    align-items: flex-end;
    justify-content: space-around;
}

.fby-mob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    transition: color 0.2s;
}

.fby-mob-item:hover,
.fby-mob-item.active {
    color: #fff;
}

.fby-mob-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fby-accent), var(--fby-primary-light));
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-top: -16px;
    box-shadow: 0 4px 16px rgba(77, 166, 255, 0.35);
    transition: transform 0.2s;
}

.fby-mob-cart:hover {
    transform: scale(1.08);
}

/* =============================================
   CALL FLOATING BUTTON
   ============================================= */
.fby-email-btn {
    position: fixed;
    bottom: 9.5rem;
    right: 1.5rem;
    z-index: 190;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #DC2626; /* Fabi Red */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fby-email-pulse 2s ease-in-out infinite;
}

.fby-email-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(220, 38, 38, 0.55);
    animation: none;
}

@keyframes fby-email-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 4px 28px rgba(220, 38, 38, 0.65); }
}

.fby-call-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 190;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #34C759;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fby-call-pulse 2s ease-in-out infinite;
}

.fby-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(52, 199, 89, 0.55);
    animation: none;
}

@keyframes fby-call-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(52, 199, 89, 0.4); }
    50% { box-shadow: 0 4px 28px rgba(52, 199, 89, 0.65); }
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.fby-whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 190;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fby-wa-pulse 2s ease-in-out infinite;
}

.fby-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
    animation: none;
}

@keyframes fby-wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65); }
}

/* =============================================
   THEME TOGGLE
   ============================================= */

/* =============================================
   ANNOUNCEMENT BANNER
   ============================================= */
.fby-announcement-bar {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 48px 10px 20px;
    background: linear-gradient(135deg, #b91c1c, #dc2626, #ef4444);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    animation: fby-banner-slide 0.4s ease-out;
}

@keyframes fby-banner-slide {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fby-announcement-link {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.fby-announcement-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.fby-announcement-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.fby-announcement-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* =============================================
   FEATURES FLOATING BUTTON
   ============================================= */
.fby-features-float-btn {
    position: fixed;
    bottom: calc(1.5rem + 56px + 14px + 56px + 14px);
    right: 1.5rem;
    z-index: 190;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(185, 28, 28, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.fby-features-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(185, 28, 28, 0.5);
}

/* =============================================
   THEME TOGGLE
   ============================================= */
#fby-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

#fby-theme-toggle svg {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

[data-theme="light"] .fby-icon-moon { display: none !important; }
[data-theme="light"] .fby-icon-sun { display: block !important; }

/* =============================================
   HERO TYPEWRITER (red/orange gradient)
   ============================================= */
.fby-hero-typewriter-wrap {
    margin-bottom: 2rem;
}

.fby-hero-typewriter-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fby-hero-typewriter-text {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    min-height: 50px;
    filter: drop-shadow(0 0 15px rgba(248, 113, 113, 0.4));
}

.fby-cursor {
    -webkit-text-fill-color: #f87171;
    animation: fby-cursor-blink 1s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes fby-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.fby-typewriter-highlight {
    background: #dc2626 !important;
    -webkit-text-fill-color: #fff !important;
    padding: 0 0.35rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

/* =============================================
   HERO SVG ANIMATION (kept for compatibility)
   ============================================= */
.fby-hero-video {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    filter: drop-shadow(0 0 40px rgba(220, 38, 38, 0.1));
}

/* Wipe arm oscillation */
.fby-wipe-arm {
    transform-origin: 462px 225px;
    animation: fby-wipe 1.5s ease-in-out infinite;
}

@keyframes fby-wipe {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(-12deg) translateX(-20px); }
    50% { transform: rotate(0deg) translateX(0); }
    75% { transform: rotate(8deg) translateX(14px); }
}

/* Lens cleaning glow pulse */
.fby-lens-clean {
    animation: fby-lens-pulse 1.5s ease-in-out infinite;
}

@keyframes fby-lens-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Lens shine sweep */
.fby-lens-shine {
    animation: fby-shine-sweep 3s ease-in-out infinite 0.8s;
}

@keyframes fby-shine-sweep {
    0%, 100% { opacity: 0; transform: rotate(0deg); }
    40% { opacity: 0.5; }
    50% { opacity: 0.7; transform: rotate(180deg); }
    60% { opacity: 0.5; }
    70% { opacity: 0; transform: rotate(360deg); }
}



/* =============================================
   SCROLL REVEAL
   ============================================= */
.fby-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fby-reveal.fby-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LOGIN PAGE (existing, preserved)
   ============================================= */
.fby-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.fby-login-card {
    background: var(--fby-card-bg);
    border-radius: var(--fby-radius);
    box-shadow: var(--fby-shadow);
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.fby-login-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.fby-login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fby-heading);
    margin-bottom: 0.5rem;
}

.fby-login-subtitle {
    color: var(--fby-text-muted);
    margin-bottom: 2rem;
}

.fby-login-form {
    text-align: left;
}

.fby-form-group {
    margin-bottom: 1.25rem;
}

.fby-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.fby-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--fby-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fby-form-group input:focus {
    border-color: var(--fby-accent);
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.15);
}

.fby-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.fby-btn-primary-full,
.fby-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--fby-accent), var(--fby-primary-light));
    color: #fff;
}

.fby-btn-primary-full:hover,
.fby-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(77, 166, 255, 0.3);
}

.fby-error {
    background: #fed7d7;
    color: var(--fby-error);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .fby-prod-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fby-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fby-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fby-topbar {
        display: none;
    }

    .fby-navbar {
        display: none;
    }

    .fby-mobile-nav {
        display: flex;
    }

    body {
        padding-bottom: 72px;
    }

    .fby-hero {
        min-height: 60vh;
    }

    .fby-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .fby-hero-visual {
        min-height: 200px;
        width: 100%;
    }

    .fby-hero h1 {
        font-size: 1.8rem;
    }

    .fby-hero-sub {
        font-size: 1rem;
    }

    .fby-hero-btns {
        justify-content: center;
    }

    .fby-hero-proof {
        justify-content: center;
        flex-wrap: wrap;
    }

    .fby-whatsapp-btn {
        bottom: 85px;
    }

    .fby-call-btn {
        bottom: 155px;
    }

    .fby-email-btn {
        bottom: 225px;
    }

    .fby-hero-typewriter-label {
        text-align: center;
    }

    .fby-eyebrow {
        display: block;
        text-align: center;
    }

    .fby-satellite {
        display: none;
    }

    .fby-hero-monitor {
        width: 95%;
    }

    .fby-hero-video {
        max-width: 420px;
    }

    .fby-usp-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .fby-prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .fby-tips-grid {
        grid-template-columns: 1fr;
    }

    .fby-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fby-search-wrap {
        max-width: none;
    }

    .fby-brandbar {
        padding: 0.5rem 1rem;
    }

    .fby-brandbar-inner {
        gap: 0.75rem;
    }

    .fby-logo {
        font-size: 1.15rem;
    }

    .fby-fc-1,
    .fby-fc-2,
    .fby-fc-3 {
        min-width: 130px;
    }

    .fby-fc-1 {
        top: 5%;
        left: 2%;
    }

    .fby-fc-2 {
        top: 10%;
        right: 2%;
    }

    .fby-fc-3 {
        bottom: 5%;
        left: 15%;
    }
}

@media (max-width: 480px) {
    .fby-prod-grid {
        grid-template-columns: 1fr;
    }

    .fby-usp-inner {
        grid-template-columns: 1fr;
    }

    .fby-why-grid {
        grid-template-columns: 1fr;
    }

    .fby-footer-grid {
        grid-template-columns: 1fr;
    }

    .fby-hero h1 {
        font-size: 1.75rem;
    }

    .fby-hero-visual {
        min-height: 200px;
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --fby-border: #333;
        --fby-text-muted: #555;
    }
}

:focus-visible {
    outline: 2px solid var(--fby-accent);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--fby-scrollbar);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fby-scrollbar-hover);
}

/* =============================================
   AUTH SYSTEM — Pages, Forms, Dropdown
   ============================================= */

/* Auth page layout */
.fby-auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.fby-auth-card {
    background: var(--fby-card-bg);
    border: 1px solid var(--fby-border);
    border-radius: 1.25rem;
    padding: 2.5rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.fby-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.fby-auth-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.fby-auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fby-text);
    margin: 0 0 0.5rem;
}

.fby-auth-subtitle {
    color: var(--fby-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Toggle PF / PJ */
.fby-auth-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    background: var(--fby-bg);
    padding: 4px;
    border-radius: 0.75rem;
}

.fby-toggle-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.625rem;
    background: transparent;
    color: var(--fby-muted);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fby-toggle-btn.active {
    background: var(--fby-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(77,166,255,0.3);
}

/* Floating labels */
.fby-float-label {
    position: relative;
}

.fby-float-label input,
.fby-float-label textarea {
    width: 100%;
    padding: 1rem 0.875rem 0.5rem;
    border: 1.5px solid var(--fby-border);
    border-radius: 0.625rem;
    background: var(--fby-bg);
    color: var(--fby-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    box-sizing: border-box;
}

.fby-float-label input:focus,
.fby-float-label textarea:focus {
    border-color: var(--fby-accent);
    box-shadow: 0 0 0 3px rgba(77,166,255,0.15);
}

.fby-float-label label {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fby-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.2s ease;
}

.fby-float-label textarea ~ label {
    top: 1rem;
    transform: none;
}

.fby-float-label input:focus ~ label,
.fby-float-label input:not(:placeholder-shown) ~ label,
.fby-float-label textarea:focus ~ label,
.fby-float-label textarea:not(:placeholder-shown) ~ label {
    top: 0.35rem;
    transform: none;
    font-size: 0.72rem;
    color: var(--fby-accent);
    font-weight: 600;
}

/* Error state */
.fby-float-label.fby-error-state input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

/* Form groups */
.fby-auth-form .fby-form-group {
    margin-bottom: 1.25rem;
}

.fby-form-row {
    display: flex;
    gap: 1rem;
}

.fby-form-row .fby-form-group {
    flex: 1;
}

.fby-field-error {
    display: block;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    padding-left: 0.25rem;
}

/* Password field */
.fby-password-wrap {
    position: relative;
}

.fby-pw-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--fby-muted);
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.fby-pw-toggle:hover {
    opacity: 1;
}

/* Password strength */
.fby-pw-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fby-pw-bar {
    flex: 1;
    height: 4px;
    background: var(--fby-border);
    border-radius: 2px;
    overflow: hidden;
}

.fby-pw-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.fby-pw-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 70px;
}

/* Form options row */
.fby-form-options {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.fby-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fby-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.fby-checkbox-label input[type="checkbox"] {
    accent-color: var(--fby-accent);
    width: 16px;
    height: 16px;
}

.fby-forgot-link {
    font-size: 0.875rem;
    color: var(--fby-accent);
    text-decoration: none;
}

.fby-forgot-link:hover {
    text-decoration: underline;
}

/* Block button */
.fby-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Button spinner */
.fby-btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fby-spin 0.6s linear infinite;
}

@keyframes fby-spin {
    to { transform: rotate(360deg); }
}

/* Auth footer (links) */
.fby-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--fby-border);
}

.fby-auth-footer p {
    margin: 0.5rem 0;
    color: var(--fby-muted);
    font-size: 0.9rem;
}

.fby-auth-link {
    color: var(--fby-accent);
    text-decoration: none;
    font-weight: 600;
}

.fby-auth-link:hover {
    text-decoration: underline;
}

/* Alerts  */
.fby-alert {
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fby-alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
}

.fby-alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

.fby-alert-info {
    background: rgba(77,166,255,0.1);
    border: 1px solid rgba(77,166,255,0.3);
    color: var(--fby-accent);
}

/* Shake animation */
@keyframes fby-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.fby-shake {
    animation: fby-shake 0.5s ease-in-out;
}

/* =============================================
   USER DROPDOWN (Header)
   ============================================= */

.fby-user-dropdown {
    position: relative;
}

.fby-user-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
}

.fby-user-name {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--fby-text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fby-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--fby-card-bg);
    border: 1px solid var(--fby-border);
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.fby-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fby-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    color: var(--fby-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.fby-dropdown-item:hover {
    background: rgba(77,166,255,0.08);
}

.fby-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.fby-dropdown-divider {
    height: 1px;
    background: var(--fby-border);
    margin: 0.375rem 0;
}

.fby-dropdown-logout {
    color: #ef4444;
}

.fby-dropdown-logout svg {
    stroke: #ef4444;
}

/* Login link styling */
.fby-login-link {
    position: relative;
}

/* =============================================
   RESPONSIVE: Auth pages
   ============================================= */

@media (max-width: 600px) {
    .fby-auth-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .fby-form-row {
        flex-direction: column;
        gap: 0;
    }

    .fby-user-name {
        display: none;
    }
}

/* Print */
@media print {

    .fby-header,
    .fby-footer,
    .fby-mobile-nav,
    .fby-cookies-popup {
        display: none !important;
    }

    body {
        padding: 0;
        background: #fff;
    }
}

/* =============================================
   AUTH REQUIRED POPUP
   ============================================= */
.fby-auth-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.fby-auth-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.fby-auth-popup {
    position: relative;
    background: var(--fby-card-bg-solid, #1a2e4a);
    border: 1px solid var(--fby-border, rgba(255,255,255,0.1));
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 40px rgba(220, 38, 38, 0.08);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.fby-auth-popup-overlay.active .fby-auth-popup {
    transform: scale(1) translateY(0);
}

.fby-auth-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--fby-text-muted, #94a3b8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}
.fby-auth-popup-close:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--fby-text, #e2e8f0);
}

.fby-auth-popup-icon {
    margin-bottom: 1rem;
    color: #dc2626;
}
.fby-auth-popup-icon svg {
    filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.3));
}

.fby-auth-popup-msg {
    color: var(--fby-text, #e2e8f0);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
}

.fby-auth-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fby-auth-popup-btn {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.fby-auth-btn-primary {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}
.fby-auth-btn-primary:hover {
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.45);
    transform: translateY(-1px);
}

.fby-auth-btn-secondary {
    background: transparent;
    color: var(--fby-text, #e2e8f0);
    border: 1px solid var(--fby-border, rgba(255,255,255,0.15));
}
.fby-auth-btn-secondary:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Light theme overrides */
[data-theme="light"] .fby-auth-popup-overlay {
    background: rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .fby-auth-popup {
    background: #fff;
    border-color: rgba(220, 38, 38, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), 0 0 40px rgba(220, 38, 38, 0.06);
}
[data-theme="light"] .fby-auth-popup-msg {
    color: #1a0505;
}
[data-theme="light"] .fby-auth-btn-secondary {
    color: #4a1515;
    border-color: rgba(220, 38, 38, 0.2);
}
[data-theme="light"] .fby-auth-btn-secondary:hover {
    background: rgba(220, 38, 38, 0.06);
}