/* =========================================
   BARBLY - Heritage & Gold (Luxury Theme)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@300;400;500;600;700&display=swap');

/* =========================================
   DaisyUI v4 — Tema DARK "Aureum Noir"
   Charcoal (#0A0A0A) + Gold (#D4AF37)
   ========================================= */
:root[data-theme="barbly-dark"],
[data-theme="barbly-dark"] {
    color-scheme: dark;
    /* --- DaisyUI v4 oklch tokens --- */
    --p: 76.65% 0.1387 91.04;            /* primary: #D4AF37 */
    --pf: 68.12% 0.1309 89.96;           /* primary-focus: darker gold */
    --pc: 15.91% 0 0;                    /* primary-content: near-black */
    --s: 83.03% 0.1322 92.91;            /* secondary: #E5C558 */
    --sf: 74.41% 0.1270 91.86;           /* secondary-focus */
    --sc: 15.91% 0 0;                    /* secondary-content */
    --a: 76.65% 0.1387 91.04;            /* accent: same as primary */
    --af: 68.12% 0.1309 89.96;
    --ac: 15.91% 0 0;
    --n: 29.72% 0 0;                     /* neutral: #2D2D2D */
    --nf: 23.93% 0 0;                    /* neutral-focus: #1F1F1F */
    --nc: 92.43% 0.0407 93.16;           /* neutral-content: light cream */
    --b1: 14.48% 0 0;                    /* base-100: #0A0A0A */
    --b2: 19.13% 0 0;                    /* base-200: #141414 */
    --b3: 23.50% 0 0;                    /* base-300: #1E1E1E */
    --bc: 97.07% 0.0026 287.39;          /* base-content: #F5F5F7 */
    --in: 62.31% 0.1880 259.82;          /* info: #3B82F6 */
    --inc: 100% 0 0;
    --su: 72.27% 0.1920 149.57;          /* success: #22C55E */
    --suc: 100% 0 0;
    --wa: 76.65% 0.1387 91.04;           /* warning: gold */
    --wac: 15.91% 0 0;
    --er: 63.68% 0.2079 25.33;           /* error: #EF4444 */
    --erc: 100% 0 0;
    --rounded-box: 0.5rem;
    --rounded-btn: 0.375rem;
    --rounded-badge: 1rem;
    --animation-btn: 0.25s;
    --animation-input: 0.2s;
    --btn-focus-scale: 0.98;
    --border-btn: 1px;
    --tab-border: 1px;
    --tab-radius: 0.375rem;

    /* --- Barbly semantic tokens (dark) --- */
    --bg-base: #0A0A0A;
    --bg-elevated: #141414;
    --bg-surface: #1E1E1E;
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --text-primary: #F5F5F7;
    --text-secondary: #8C7D70;
    --text-muted: #6b7280;
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: #2D2D2D;
    --primary: #D4AF37;
    --primary-dim: rgba(212, 175, 55, 0.1);
    --accent: #C5A028;
    --border-gold: rgba(212, 175, 55, 0.3);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 15px -3px rgba(212, 175, 55, 0.2);
    --glass-bg: rgba(10, 10, 10, 0.95);
    --skeleton-bg: #1E1E1E;
    --input-color-scheme: dark;

    /* Legacy aliases (para componentes styles.css existentes) */
    --bg-dark: #0A0A0A;
    --bg-card: #141414;
    --bg-panel: #111111;
    --text-main: #F5F5F7;
    --border-subtle: rgba(255, 255, 255, 0.1);
}

/* =========================================
   DaisyUI v4 — Tema LIGHT "Sand & Gold"
   Sand (#F7F5EB) + Gold (#D4AF37)
   ========================================= */
:root[data-theme="barbly-light"],
[data-theme="barbly-light"] {
    color-scheme: light;
    /* --- DaisyUI v4 oklch tokens --- */
    --p: 76.65% 0.1387 91.04;            /* primary: #D4AF37 */
    --pf: 68.12% 0.1309 89.96;
    --pc: 100% 0 0;                      /* primary-content: white on gold */
    --s: 83.03% 0.1322 92.91;            /* secondary: #E5C558 */
    --sf: 74.41% 0.1270 91.86;
    --sc: 100% 0 0;
    --a: 76.65% 0.1387 91.04;
    --af: 68.12% 0.1309 89.96;
    --ac: 100% 0 0;
    --n: 92.25% 0.0170 87.86;            /* neutral: #EAE5D9 */
    --nf: 85.91% 0.0176 84.47;           /* neutral-focus: #D6D0C4 */
    --nc: 21.78% 0 0;                    /* neutral-content: #1A1A1A */
    --b1: 96.90% 0.0134 97.24;           /* base-100: #F7F5EB */
    --b2: 100% 0 0;                      /* base-200: #FFFFFF */
    --b3: 92.25% 0.0170 87.86;           /* base-300: #EAE5D9 */
    --bc: 21.78% 0 0;                    /* base-content: #1A1A1A */
    --in: 62.31% 0.1880 259.82;
    --inc: 100% 0 0;
    --su: 72.27% 0.1920 149.57;
    --suc: 100% 0 0;
    --wa: 76.65% 0.1387 91.04;
    --wac: 15.91% 0 0;
    --er: 63.68% 0.2079 25.33;
    --erc: 100% 0 0;
    --rounded-box: 0.5rem;
    --rounded-btn: 0.375rem;
    --rounded-badge: 1rem;
    --animation-btn: 0.25s;
    --animation-input: 0.2s;
    --btn-focus-scale: 0.98;
    --border-btn: 1px;
    --tab-border: 1px;
    --tab-radius: 0.375rem;

    /* --- Barbly semantic tokens (light) --- */
    --bg-base: #F7F5EB;
    --bg-elevated: #FFFFFF;
    --bg-surface: #EAE5D9;
    --bg-input: #FFFFFF;
    --bg-hover: #EAE5D9;
    --text-primary: #1A1A1A;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-default: #EAE5D9;
    --border-strong: #d4d0c8;
    --primary: #D4AF37;
    --primary-dim: rgba(212, 175, 55, 0.1);
    --accent: #C5A028;
    --border-gold: rgba(212, 175, 55, 0.3);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 0 15px -3px rgba(212, 175, 55, 0.15);
    --glass-bg: rgba(247, 245, 235, 0.95);
    --skeleton-bg: #E5E7EB;
    --input-color-scheme: light;

    /* Legacy aliases (para componentes styles.css existentes) */
    --bg-dark: #F7F5EB;
    --bg-card: #FFFFFF;
    --bg-panel: #F0EDE3;
    --text-main: #1A1A1A;
    --border-subtle: #EAE5D9;
}

/* =========================================
   DaisyUI Overrides — Prioridade para estilos Barbly existentes
   Classes do Barbly (.btn, .card, .modal, .badge, .toast)
   já existem em styles.css. Estes overrides garantem que
   o CSS do Barbly prevalece sobre o DaisyUI.
   ========================================= */

:root {
    /* --- Typography (theme-independent) --- */
    --font-display: 'Cinzel', serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'DM Sans', sans-serif;
    --font-numeric: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('./noise.svg');
    background-blend-mode: overlay;
    background-attachment: fixed;
    color-scheme: var(--input-color-scheme, dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 400;
}

h1.display,
h2.display {
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =========================================
   LAYOUT & STRUCTURE
   ========================================= */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
    opacity: 1;
    /* Reset for visibility */
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    z-index: 20;
    transition: transform 0.3s ease;
}

.brand-name {
    /* For compatibility with existing HTML classes if needed, though we style .brand mostly */
    font-family: var(--font-display) !important;
    color: var(--primary) !important;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    box-shadow: var(--shadow-gold);
}

.sidebar-brand h1 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.15em;
    line-height: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.nav-item:hover {
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.nav-item.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: linear-gradient(90deg, var(--primary-dim) 0%, transparent 100%);
}

.nav-divider {
    height: 1px;
    background-color: var(--border-subtle);
    margin: 1rem 0;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.2;
}

.user-role {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.btn-logout:hover {
    color: var(--primary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-base);
}

.top-bar {
    height: 80px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    background-color: var(--bg-base);
    z-index: 10;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    /* Mobile only */
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-main);
    margin: 0;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--status-success, #2ecc71);
    box-shadow: 0 0 5px var(--status-success, #2ecc71);
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    padding-bottom: 4rem;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--bg-dark);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-gold);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-dim);
    color: #fff;
}

.btn-success {
    /* Used in register */
    background-color: var(--primary);
    /* Use gold for success too in this theme, or accent */
    color: var(--bg-dark);
}

.btn-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 2px;
    min-width: 32px;
}

/* Inputs */
.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="date"],
input[type="time"] {
    color-scheme: var(--input-color-scheme, dark);
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
}

input[type="date"]:focus {
    background-color: rgba(212, 175, 55, 0.03) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-dim);
}

input[type="date"]:active {
    background-color: var(--bg-input);
    border-color: var(--primary);
}

/* Select Global - Seta Customizada Dourada */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    cursor: pointer;
    color-scheme: var(--input-color-scheme, dark);
}

select option {
    background-color: var(--bg-base);
    color: var(--text-primary);
    padding: 10px;
    border: none;
}

.form-control:focus,
input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 1px var(--primary-dim);
    filter: none;
}

input:active,
select:active {
    filter: none;
    background-color: var(--bg-hover);
    border-color: var(--primary);
}

/* Inputs em fundo claro (modais, formulários) — texto escuro para contraste e legibilidade */
.bg-white input[type="text"],
.bg-white input[type="email"],
.bg-white input[type="tel"],
.bg-white input[type="number"],
.bg-white input[type="password"],
.bg-white input[type="date"],
.bg-white input[type="datetime-local"],
.bg-white input[type="search"],
.bg-white input[type="url"],
.bg-white textarea,
.bg-white select,
.bg-barbly-sand input[type="text"],
.bg-barbly-sand input[type="email"],
.bg-barbly-sand input[type="tel"],
.bg-barbly-sand input[type="number"],
.bg-barbly-sand input[type="password"],
.bg-barbly-sand input[type="date"],
.bg-barbly-sand input[type="datetime-local"],
.bg-barbly-sand input[type="search"],
.bg-barbly-sand input[type="url"],
.bg-barbly-sand textarea,
.bg-barbly-sand select,
input.bg-white,
input.bg-barbly-sand,
select.bg-white,
select.bg-barbly-sand,
textarea.bg-white,
textarea.bg-barbly-sand,
input.text-barbly-text-dark,
select.text-barbly-text-dark,
textarea.text-barbly-text-dark {
    color: #1A1A1A !important;
    -webkit-text-fill-color: #1A1A1A;
}

.bg-white input:focus,
.bg-white textarea:focus,
.bg-white select:focus,
.bg-barbly-sand input:focus,
.bg-barbly-sand textarea:focus,
.bg-barbly-sand select:focus,
input.bg-white:focus,
input.bg-barbly-sand:focus,
select.bg-white:focus,
select.bg-barbly-sand:focus,
textarea.bg-white:focus,
textarea.bg-barbly-sand:focus {
    color: #1A1A1A !important;
    -webkit-text-fill-color: #1A1A1A;
}

.bg-white input.bg-white:focus,
.bg-white input.bg-barbly-sand:focus,
input.bg-white:focus,
input.bg-barbly-sand:focus {
    background-color: #ffffff !important;
}

.bg-barbly-sand input:focus,
.bg-barbly-sand textarea:focus,
.bg-barbly-sand select:focus {
    background-color: #F7F5EB !important;
}

/* Select em tema claro: fundo branco e opções legíveis */
.bg-white select,
.bg-barbly-sand select,
select.bg-white,
select.bg-barbly-sand {
    background-color: #ffffff !important;
    color-scheme: light;
}

.bg-white select:focus,
.bg-barbly-sand select:focus,
select.bg-white:focus,
select.bg-barbly-sand:focus {
    background-color: #ffffff !important;
}

.bg-white select option,
.bg-barbly-sand select option,
select.bg-white option,
select.bg-barbly-sand option {
    background-color: #ffffff;
    color: #1A1A1A;
}

.bg-white input::placeholder,
.bg-white textarea::placeholder,
.bg-barbly-sand input::placeholder,
.bg-barbly-sand textarea::placeholder,
input.bg-white::placeholder,
input.bg-barbly-sand::placeholder,
textarea.bg-white::placeholder,
textarea.bg-barbly-sand::placeholder {
    color: #6b7280;
}

.password-wrapper {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 2rem;
    border-radius: 2px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.stat-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.stat-icon {
    color: var(--primary);
    opacity: 0.8;
    font-size: 1.5rem;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

/* Generic Card */
.card,
.glass {
    /* .glass used in app.js for generic containers */
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    box-shadow: var(--shadow-heavy);
}

.card:hover {
    border-color: var(--border-gold);
}

/* Leader Dots (Services) */
.service-item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.service-item:hover .service-name {
    color: var(--primary);
}

.service-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-main);
    background-color: var(--bg-card);
    padding-right: 0.5rem;
    z-index: 1;
}

.service-dots {
    flex: 1;
    border-bottom: 1px dotted var(--text-muted);
    margin-bottom: 6px;
    opacity: 0.3;
}

.service-price {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--primary);
    background-color: var(--bg-card);
    padding-left: 0.5rem;
    z-index: 1;
    font-size: 1.1rem;
}

/* Guild Cards (Barbers) */
.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.guild-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guild-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.guild-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary);
}

.guild-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.guild-role {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gold);
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-sans);
    color: var(--text-main);
}

/* Dados numéricos com fonte Outfit */
.data-table td:nth-child(2),
.data-table td:nth-child(3),
.data-table td:nth-child(4),
.data-table td:nth-child(5) {
    font-family: var(--font-numeric);
    font-weight: 500;
}

/* Badge */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Reusing success/warning/info colors but subdued */
.badge-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.badge-warning {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.badge-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.badge-info {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid #3498db;
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 90%;
    max-width: 500px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal.modal-lg {
    max-width: 1000px;
    height: 80vh;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-subtle);
    min-width: 300px;
    animation: slideIn 0.4s ease;
}

/* Login Screen */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, #000 70%);
}

/* --- PDV (Point of Sale) Layout - Heritage & Gold --- */
.pdv-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    /* 70% Operação / 30% Resumo */
    gap: 0;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    margin: -2rem;
}

/* Coluna Principal: Operação */
.pdv-main {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--bg-card);
    overflow-y: auto;
    gap: 1.5rem;
}

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

.pdv-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.pdv-cart-container {
    flex: 1;
    overflow-y: auto;
    min-height: 300px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg-panel);
    position: relative;
}

.pdv-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-gold);
    color: var(--primary);
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* Product Grid */
.pdv-product-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 60px;
    /* Product | Qty | Button */
    gap: 1rem;
    align-items: flex-end;
}

.pdv-col-product {
    display: flex;
    flex-direction: column;
}

.pdv-col-qty {
    display: flex;
    flex-direction: column;
}

.pdv-col-btn {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pdv-col-btn .btn {
    height: 48px;
    /* Match input height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

/* Form Sections with visual separation */
.form-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtle separator line/glow for sections */
.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-dim), transparent);
    opacity: 0.3;
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-subtle);
    width: 100%;
}

.pdv-sidebar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-panel) 0%, #050505 100%);
    border-left: 1px solid var(--border-gold);
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.pdv-sidebar-content {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.pdv-sidebar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.pdv-sidebar-actions {
    padding: 2rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.3);
}

.pdv-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.pdv-total-block {
    background: linear-gradient(135deg, var(--bg-panel) 0%, #1a1a1a 100%);
    border: 1px solid var(--border-gold);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: right;
    margin: 1.5rem 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.pdv-total-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
    font-family: var(--font-display);
}

.pdv-total-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.05em;
}

/* Select Customizado PDV */
.pdv-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Form Section */
.form-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1.5rem;
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
}


.login-card {
    max-width: 400px;
    width: 100%;
    padding: 3rem;
    border: 1px solid var(--border-gold);
    text-align: center;
    background-color: var(--bg-card);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.login-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    margin: 1rem 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.login-header p {
    font-family: var(--font-serif);
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary);
    border-bottom: 1px dotted var(--primary);
}

/* =========================================
   SEARCH INPUT WITH LEADING ICON
   Fix: Material Symbols ícone prefixo não
   sobrepõe o placeholder — regra global.
   ========================================= */
.relative > .material-symbols-outlined.absolute {
    font-size: 20px !important;
    width: 20px;
    line-height: 20px;
}

.relative > .material-symbols-outlined.absolute ~ input,
.relative > .material-symbols-outlined.absolute ~ textarea {
    padding-left: 2.75rem !important;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.p-3 {
    padding: 1rem;
}

.text-primary {
    color: var(--primary) !important;
}

.text-gold {
    color: var(--primary) !important;
}

/* =========================================
   THEME UTILITY CLASSES
   Funcionam com data-theme (dark/light)
   ========================================= */

/* Text */
.t-text-muted { color: var(--text-muted); }
.t-text-secondary { color: var(--text-secondary); }
.t-text-primary { color: var(--text-primary); }

/* Backgrounds */
.t-bg-base { background-color: var(--bg-base); }
.t-bg-elevated { background-color: var(--bg-elevated); }
.t-bg-surface { background-color: var(--bg-surface); }
.t-bg-input { background-color: var(--bg-input); }
.t-bg-hover { background-color: var(--bg-hover); }
.t-bg-skeleton { background-color: var(--skeleton-bg); }

/* Borders */
.t-border { border-color: var(--border-default); }
.t-border-strong { border-color: var(--border-strong); }

/* Shadows */
.t-shadow-card { box-shadow: var(--shadow-card); }

/* Color scheme for native inputs (date, select dropdowns) */
.t-color-scheme { color-scheme: var(--input-color-scheme); }

/* Theme transition (applied temporarily during toggle) */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
    transition: background-color 300ms ease,
                color 300ms ease,
                border-color 300ms ease,
                box-shadow 300ms ease !important;
}

/* =========================================
   DARK THEME — Shadow adjustments
   ========================================= */
[data-theme="barbly-dark"] .shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important; }
[data-theme="barbly-dark"] .shadow-md { box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important; }

/* =========================================
   LOGIN SCREEN — Premium Dark Glassmorphism
   ========================================= */

/* Background com gradiente radial dourado */
.login-bg {
    background: #080808;
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    color: #F5F5F7 !important;
    overflow: hidden;
}

/* Orb decorativo - glow dourado suave atrás do card */
.login-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: login-orb-pulse 6s ease-in-out infinite;
}

@keyframes login-orb-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Card glassmorphism */
.login-card {
    position: relative;
    z-index: 1;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(212, 175, 55, 0.04);
}

@media (min-width: 640px) {
    .login-card {
        padding: 2.5rem;
    }
}

/* Logo ring - anel dourado ao redor do ícone */
.login-logo-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.06);
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.08);
}

/* Input group com ícone */
.login-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 12px;
    color: #8C7D70;
    font-size: 20px !important;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.login-input-group:focus-within .login-input-icon {
    color: #D4AF37;
}

#login-screen .login-input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 0.75rem 0.75rem 0.75rem 2.75rem !important;
    color: #F5F5F7 !important;
    font-size: 0.9rem !important;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s ease;
    outline: none !important;
    box-shadow: none !important;
}

#login-screen .login-input::placeholder {
    color: #6b6358 !important;
}

#login-screen .login-input:focus {
    background: rgba(212, 175, 55, 0.04) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08) !important;
}

/* Botão principal do login */
.login-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #D4AF37 0%, #c29e2e 100%);
    color: #0A0A0A;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.08em;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    box-shadow:
        0 4px 14px rgba(212, 175, 55, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.1) inset;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #E5C558 0%, #D4AF37 100%);
    box-shadow:
        0 6px 24px rgba(212, 175, 55, 0.35),
        0 0 0 1px rgba(212, 175, 55, 0.2) inset;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Links do footer */
.login-link {
    color: #8C7D70;
    transition: color 0.2s ease;
    cursor: pointer;
}

.login-link:hover {
    color: #D4AF37;
}

/* Títulos de seção (Register form) */
.login-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Animação de entrada */
@keyframes login-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-login-in {
    animation: login-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar customizada para o form de registro */
#login-screen .custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

#login-screen .custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

#login-screen .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

#login-screen .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.4);
}

/* =========================================
   BARBLY PREMIUM DESIGN SYSTEM v2
   Glassmorphism + Gold + Micro-interactions
   ========================================= */

/* --- Glass Card (Frosted Glass) --- */
.b-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

[data-theme="barbly-light"] .b-glass {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(234, 229, 217, 0.6);
}

/* --- Glass Card with Gold Accent --- */
.b-glass-gold {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

[data-theme="barbly-light"] .b-glass-gold {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(212, 175, 55, 0.08) inset;
}

/* --- KPI Card (Premium Stat Display) --- */
.b-kpi {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-kpi:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 175, 55, 0.08);
}

[data-theme="barbly-light"] .b-kpi:hover {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(212, 175, 55, 0.06);
}

/* KPI Value Typography */
.b-kpi-value {
    font-family: var(--font-numeric);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.b-kpi-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

/* --- Section Header (Cinzel Display) --- */
.b-section-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
}

/* --- Page Header --- */
.b-page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-main);
}

.b-page-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* --- Gold Glow Shadow (for key elements) --- */
.b-glow-gold {
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.b-glow-gold:hover {
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="barbly-light"] .b-glow-gold {
    box-shadow:
        0 0 16px rgba(212, 175, 55, 0.08),
        0 2px 12px rgba(0, 0, 0, 0.06);
}

/* --- Icon Badge (circular icon container) --- */
.b-icon-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b-icon-badge-sm {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b-icon-badge-lg {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- List Item (Premium Row) --- */
.b-list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.b-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.1);
}

[data-theme="barbly-light"] .b-list-item:hover {
    background: rgba(234, 229, 217, 0.5);
    border-color: rgba(212, 175, 55, 0.15);
}

/* --- Ambient Background Orb (decorative) --- */
.b-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.b-orb-gold {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.b-orb-pulse {
    animation: b-orb-breathe 8s ease-in-out infinite;
}

@keyframes b-orb-breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

/* --- Gold Gradient Divider --- */
.b-divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    border: none;
    margin: 0;
}

/* --- Premium Input --- */
.b-input {
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
}

.b-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
    background: rgba(212, 175, 55, 0.03);
}

.b-input::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Premium Button (Gold CTA) --- */
.b-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #D4AF37 0%, #c29e2e 100%);
    color: #0A0A0A;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 14px rgba(212, 175, 55, 0.25),
        0 0 0 1px rgba(212, 175, 55, 0.1) inset;
}

.b-btn-gold:hover {
    background: linear-gradient(135deg, #E5C558 0%, #D4AF37 100%);
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.35),
        0 0 0 1px rgba(212, 175, 55, 0.15) inset;
    transform: translateY(-1px);
}

.b-btn-gold:active {
    transform: translateY(0) scale(0.98);
}

/* --- Ghost Button --- */
.b-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border: 1px solid var(--border-default);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.b-btn-ghost:hover {
    color: var(--primary);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}

/* --- Tab Navigation (Premium Underline) --- */
.b-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-default);
    overflow-x: auto;
    scrollbar-width: none;
}

.b-tabs::-webkit-scrollbar { display: none; }

.b-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.b-tab:hover {
    color: var(--text-main);
}

.b-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* --- Badge (Status Pill) --- */
.b-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.b-badge-gold {
    background: transparent;
    color: #D4AF37;
    border: none;
}

.b-badge-success {
    background: transparent;
    color: #22C55E;
    border: none;
}

.b-badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.b-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- Premium Modal/Overlay --- */
.b-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.b-modal-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(212, 175, 55, 0.04);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: b-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="barbly-light"] .b-modal-card {
    border: 1px solid rgba(234, 229, 217, 0.8);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 40px rgba(212, 175, 55, 0.03);
}

@keyframes b-modal-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Empty State (Premium) --- */
.b-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    gap: 0.75rem;
}

.b-empty-state .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

.b-empty-state p {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 240px;
    line-height: 1.5;
}

/* --- Skeleton Loading (Gold Shimmer) --- */
.b-skeleton {
    background: linear-gradient(
        90deg,
        var(--skeleton-bg) 25%,
        rgba(212, 175, 55, 0.06) 50%,
        var(--skeleton-bg) 75%
    );
    background-size: 200% 100%;
    animation: b-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

/* --- Table Premium --- */
.b-table-header {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-default);
}

.b-table-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.15s ease;
}

.b-table-row:hover {
    background: rgba(212, 175, 55, 0.03);
}

[data-theme="barbly-light"] .b-table-row {
    border-bottom: 1px solid rgba(234, 229, 217, 0.5);
}

[data-theme="barbly-light"] .b-table-row:hover {
    background: rgba(212, 175, 55, 0.04);
}

/* --- Drawer (Slide Panel) --- */
.b-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--bg-elevated);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    z-index: 40;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

[data-theme="barbly-light"] .b-drawer {
    border-left: 1px solid rgba(234, 229, 217, 0.8);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
}

/* --- Bottom Navigation — 4 itens com pill indicator (redesign mobile-first) --- */
.b-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 64px;
    flex-shrink: 0;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(10, 10, 10, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="barbly-light"] .b-bottom-nav {
    background: rgba(247, 245, 235, 0.92);
    border-top: 1px solid rgba(234, 229, 217, 0.6);
}

.b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 6px 0 2px;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border: none;
    background: none;
}

.b-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}

/* Pill indicator — fundo arredondado atrás do ícone ativo */
.b-nav-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 28px;
    border-radius: 14px;
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.15s ease;
}

.b-nav-item.active {
    color: var(--primary);
}

.b-nav-item.active .b-nav-pill {
    background: rgba(212, 175, 55, 0.15);
}

[data-theme="barbly-light"] .b-nav-item.active .b-nav-pill {
    background: rgba(212, 175, 55, 0.12);
}

.b-nav-item:active .b-nav-pill {
    transform: scale(0.92);
}

/* --- Bottom Sheet Menu (redesign mobile-first) --- */
.b-bottom-sheet {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(18, 18, 24, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="barbly-light"] .b-bottom-sheet {
    background: rgba(247, 245, 235, 0.96);
    border-top: 1px solid rgba(234, 229, 217, 0.8);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.08);
}

.b-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 16px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.b-sheet-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
}

.b-sheet-item.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

.b-sheet-item.active .material-symbols-outlined,
.b-sheet-item.active .b-sheet-label {
    color: var(--primary) !important;
}

[data-theme="barbly-light"] .b-sheet-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="barbly-light"] .b-sheet-item:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.15);
}

.b-sheet-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.b-sheet-item:hover .b-sheet-label {
    color: var(--primary);
}

/* --- Micro-interactions --- */
.b-hover-lift {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-hover-lift:hover {
    transform: translateY(-2px);
}

.b-hover-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.b-press {
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.b-press:active {
    transform: scale(0.97);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* --- Fade-in animation for view transitions --- */
.b-fade-in {
    animation: b-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes b-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered children fade-in */
.b-stagger > * {
    opacity: 0;
    animation: b-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.b-stagger > *:nth-child(1) { animation-delay: 0s; }
.b-stagger > *:nth-child(2) { animation-delay: 0.05s; }
.b-stagger > *:nth-child(3) { animation-delay: 0.1s; }
.b-stagger > *:nth-child(4) { animation-delay: 0.15s; }
.b-stagger > *:nth-child(5) { animation-delay: 0.2s; }
.b-stagger > *:nth-child(6) { animation-delay: 0.25s; }

/* --- Count-up value (animated from JS) --- */
.b-count-up {
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

/* --- Celebration pulse (task completion feedback) --- */
.b-celebrate {
    animation: b-celebrate 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes b-celebrate {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.08) rotate(1deg); }
    60%  { transform: scale(0.98) rotate(-0.5deg); }
    100% { transform: scale(1) rotate(0); }
}

/* --- Success flash (green border glow) --- */
.b-success-flash {
    animation: b-success-flash 0.6s ease forwards;
}

@keyframes b-success-flash {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- Scale-in (for elements appearing) --- */
.b-scale-in {
    animation: b-scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes b-scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Prefers Reduced Motion — disable ALL animations --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .b-stagger > * {
        opacity: 1 !important;
        animation: none !important;
    }

    .b-press:active {
        transform: none;
    }

    .b-celebrate,
    .b-success-flash,
    .b-scale-in,
    .b-fade-in {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* --- Pull-to-Refresh indicator --- */
.b-pull-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    z-index: 40;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.b-pull-spinner {
    font-size: 28px;
    color: var(--primary);
    transition: transform 0.1s linear;
}

.b-pull-indicator.active .b-pull-spinner {
    animation: b-pull-spin 0.8s linear infinite;
}

@keyframes b-pull-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Sparkline SVG --- */
.b-sparkline {
    display: block;
    flex-shrink: 0;
}

/* --- Overscroll containment (prevent pull-to-refresh on non-PTR views) --- */
#app-content {
    overscroll-behavior-y: contain;
}

/* --- Scrollbar premium para conteudo de views --- */
.b-scroll::-webkit-scrollbar {
    width: 4px;
}

.b-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.b-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.15);
    border-radius: 4px;
}

.b-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.3);
}

/* Scrollbar hidden (day picker, horizontal strips) */
.b-scroll-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.b-scroll-hidden::-webkit-scrollbar {
    display: none;
}

/* --- Pill Tabs (Vendas tab switcher) --- */
.b-pill-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.b-pill-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.b-pill-tab.active,
.b-pill-tab-active {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: #0A0A0A;
    background: var(--primary);
    border: 1px solid var(--primary);
}

[data-theme="barbly-light"] .b-pill-tab {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="barbly-light"] .b-pill-tab:hover {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="barbly-light"] .b-pill-tab.active,
[data-theme="barbly-light"] .b-pill-tab-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

/* --- Venda Card (list item style) --- */
.b-venda-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s ease;
}

.b-venda-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.2);
}

.b-venda-card--done {
    opacity: 0.8;
}

.b-venda-card--done:hover {
    opacity: 1;
}

[data-theme="barbly-light"] .b-venda-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(234, 229, 217, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="barbly-light"] .b-venda-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.3);
}

/* --- Venda Value Circle --- */
.b-venda-value-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 44px;
    border-radius: 22px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0 12px;
}

[data-theme="barbly-light"] .b-venda-value-circle {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
}

/* --- Small gold button (inline action) --- */
.b-btn-sm-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0A0A0A;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.b-btn-sm-gold:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.b-btn-sm-gold:active {
    transform: scale(0.98);
}

/* --- Timer text --- */
.b-timer-text {
    font-family: var(--font-numeric);
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* --- Venda Sheet (bottom sheet mobile / sidebar desktop) --- */
.b-venda-sheet {
    position: fixed;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Mobile: bottom sheet */
    bottom: 0;
    left: 0;
    right: 0;
    top: 10%;
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
}

.b-venda-sheet.open {
    transform: translateY(0);
}

[data-theme="barbly-light"] .b-venda-sheet {
    border-top-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

/* Desktop: sidebar instead of bottom sheet */
@media (min-width: 1024px) {
    .b-venda-sheet {
        top: 0;
        left: auto;
        right: 0;
        bottom: 0;
        width: 420px;
        border-radius: 0;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
        transform: translateX(100%);
    }

    .b-venda-sheet.open {
        transform: translateX(0);
    }

    [data-theme="barbly-light"] .b-venda-sheet {
        border-left: 1px solid rgba(234, 229, 217, 0.8);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
    }
}

/* --- FAB (Floating Action Button) --- */
.b-fab {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--primary);
    color: #0A0A0A;
    font-family: var(--font-sans);
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.b-fab:active {
    transform: scale(0.96);
}

@media (min-width: 1024px) {
    .b-fab {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 24px);
        right: 24px;
    }
}

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

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

    .menu-toggle {
        display: block;
    }
}