:root {
    --primary-color: #004e92;
    --secondary-color: #000428;
    --accent-color: #ffffff;
    --text-color: #2d3748;
    --text-muted: #718096;
    --bg-color: #f7fafc;
    --gradient-bg: linear-gradient(135deg, #000428, #004e92);
    --gradient-hover: linear-gradient(135deg, #004e92, #000428);
    --card-shadow: 0 10px 40px rgba(0, 4, 40, 0.08);
    --card-shadow-hover: 0 20px 60px rgba(0, 4, 40, 0.12);
    --input-bg: #fff;
    --input-border: #e2e8f0;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
}

strong, b {
    font-weight: 700;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    border: none;
    transition: var(--transition-smooth);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-bg);
    color: var(--accent-color) !important;
    box-shadow: 0 8px 30px rgba(0, 78, 146, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 78, 146, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
.btn-primary a,
.btn-primary a:visited,
.btn-primary a:hover,
.btn-primary a:active {
    color: #ffffff !important;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 78, 146, 0.25);
}

/* Form Elements */
input,
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-smooth);
    color: var(--text-color);
}

input::placeholder,
textarea::placeholder {
    color: #a0aec0;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #cbd5e0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 78, 146, 0.1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' 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 16px center;
    background-size: 20px;
    padding-right: 50px;
}

/* Premium Fields */
.premium-field {
    border: 2px solid var(--primary-color) !important;
    background: linear-gradient(135deg, #ffffff, #eef2ff) !important;
    box-shadow: 0 4px 20px rgba(0, 78, 146, 0.12);
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
}

.premium-field:hover {
    box-shadow: 0 6px 25px rgba(0, 78, 146, 0.2);
    border-color: var(--secondary-color) !important;
}

/* Premium Date & Time */
input[type="date"].premium-field,
input[type="time"].premium-field {
    padding: 16px 20px !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ffffff, #eef2ff) !important;
    box-shadow: 0 4px 20px rgba(0, 78, 146, 0.12) !important;
    font-size: 1rem;
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"].premium-field:hover,
input[type="time"].premium-field:hover {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 6px 25px rgba(0, 78, 146, 0.2) !important;
}

input[type="date"].premium-field:focus,
input[type="time"].premium-field:focus {
    box-shadow: 0 0 0 4px rgba(0, 78, 146, 0.1), 0 6px 25px rgba(0, 78, 146, 0.2) !important;
    border-color: var(--primary-color) !important;
}

input[type="date"].premium-field::-webkit-calendar-picker-indicator,
input[type="time"].premium-field::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(18%) sepia(90%) saturate(2000%) hue-rotate(195deg) brightness(60%);
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 6px;
    border-radius: 6px;
}

input[type="date"].premium-field::-webkit-calendar-picker-indicator:hover,
input[type="time"].premium-field::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background: rgba(0, 78, 146, 0.1);
}

/* ===== Custom Premium Select ===== */
.custom-select-wrapper {
    position: relative;
    margin-bottom: 20px;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 78, 146, 0.12);
}

.custom-select-trigger:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 25px rgba(0, 78, 146, 0.2);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 78, 146, 0.1), 0 6px 25px rgba(0, 78, 146, 0.2);
    border-radius: 12px 12px 0 0;
}

.custom-select-trigger .arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.custom-select-wrapper.open .arrow {
    transform: rotate(180deg);
}

.custom-select-trigger .placeholder {
    color: #a0aec0;
    font-weight: 500;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 35px rgba(0, 78, 146, 0.15);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.custom-select-wrapper.open .custom-select-options {
    max-height: 280px;
    overflow-y: auto;
    opacity: 1;
}

.custom-select-option {
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 28px;
}

.custom-select-option.selected {
    background: var(--gradient-bg);
    color: #fff;
    font-weight: 700;
}

.custom-select-option.selected:hover {
    background: var(--gradient-hover);
    color: #fff;
}

/* Scrollbar premium */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 0 0 12px 0;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.premium-field:focus {
    box-shadow: 0 0 0 4px rgba(0, 78, 146, 0.15), 0 6px 25px rgba(0, 78, 146, 0.2);
}

/* Layout Util */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.card {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-bg);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.btn.btn-primary {
    background: var(--gradient-bg) !important;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 78, 146, 0.3);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nav-links a.btn.btn-primary::after {
    display: none;
}

.nav-links a.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 78, 146, 0.4);
    color: #ffffff !important;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 32px 0;
    margin-top: auto;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 16px 20px;
    background: var(--bg-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-radius: 10px;
}

table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--input-border);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: rgba(0, 78, 146, 0.02);
}

/* Hamburger menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Responsive adjustments ===== */

/* Tablet breakpoint */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.15rem; }

    .container { padding: 0 16px; }

    /* Mobile nav - hamburger + fullscreen overlay */
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }

    .nav-links.nav-open { display: flex; }

    .nav-close-btn {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-links a {
        font-size: 1.15rem;
        font-weight: 600;
        padding: 6px 0;
    }

    .nav-links a::after { display: none; }

    .nav-links .btn.btn-primary {
        margin-top: 10px;
        width: 80%;
        text-align: center;
        overflow: visible;
        flex-shrink: 0;
    }

    /* Cards */
    .card {
        padding: 20px;
        border-radius: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Tables - horizontal scroll */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    table th, table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    /* Hero section */
    [style*="padding: 120px 20px 80px"] {
        padding: 70px 16px 50px !important;
    }

    [style*="font-size: 3.5rem"] {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    [style*="font-size: 2.5rem"][style*="font-weight: 800"] {
        font-size: 1.7rem !important;
    }

    [style*="font-size: 2.2rem"] {
        font-size: 1.5rem !important;
    }

    [style*="font-size: 1.2rem"][style*="margin-bottom: 15px"] {
        font-size: 1rem !important;
    }

    /* Reduce large section paddings */
    [style*="padding: 80px 20px"] {
        padding: 40px 16px !important;
    }

    [style*="padding: 60px 20px"] {
        padding: 35px 16px !important;
    }

    /* Plans grid + feature grids - single column */
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(280px"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(260px"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(350px"] {
        grid-template-columns: 1fr !important;
    }

    /* Admin stats grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(180px"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Highlighted plan scale fix */
    [style*="transform: scale(1.05)"],
    [style*="transform:scale(1.03)"] {
        transform: none !important;
    }

    /* Dashboard header stack */
    [style*="justify-content: space-between"][style*="align-items: center"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    /* Dashboard link section flex wrap */
    [style*="display: flex"][style*="flex-wrap: wrap"] {
        flex-direction: column;
    }

    /* Chart container */
    [style*="height: 500px"] {
        height: 250px !important;
    }
    [style*="height: 400px"] {
        height: 220px !important;
    }
    canvas {
        max-height: 220px !important;
    }

    /* Form inputs */
    input, select, textarea {
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* Service list items */
    li[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    /* Setup Step 0 - business type cards grid */
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Stat numbers in hero */
    [style*="font-size: 2.5rem"][style*="font-weight: 800"] {
        font-size: 1.6rem !important;
    }

    /* Time grids (setup page) */
    .time-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .time-grid.small {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Duration grid (services page) */
    .duration-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Dashboard container padding */
    [style*="padding: 40px 20px"] {
        padding: 24px 16px !important;
    }

    [style*="padding: 50px 20px"] {
        padding: 30px 16px !important;
    }

    [style*="padding:40px 20px"] {
        padding: 24px 16px !important;
    }

    /* Card internal padding reductions */
    [style*="padding: 35px 25px"] {
        padding: 20px 16px !important;
    }

    [style*="padding: 40px 30px"] {
        padding: 24px 16px !important;
    }

    [style*="padding:36px 24px"] {
        padding: 24px 16px !important;
    }

    /* Booking link section - full width button */
    [style*="display: flex"][style*="gap: 10px"][style*="margin-top: 15px"][style*="flex-wrap: wrap"] input,
    [style*="display: flex"][style*="gap: 10px"][style*="flex-wrap: wrap"] input {
        width: 100%;
        min-width: 0;
    }

    /* Fix stats row in hero */
    [style*="display: flex"][style*="gap: 30px"][style*="justify-content: center"][style*="margin-top: 40px"] {
        gap: 15px !important;
    }

    /* Steps number circles */
    [style*="width: 60px"][style*="height: 60px"][style*="border-radius: 50%"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    /* Progress bar in setup */
    [style*="width: 80px"][style*="height: 3px"] {
        width: 40px !important;
    }

    /* Notification phone input section */
    [style*="display: flex"][style*="gap: 12px"][style*="flex-wrap: wrap"] {
        flex-direction: column;
        align-items: stretch !important;
    }

    [style*="min-width: 220px"][style*="max-width: 320px"] {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Integrations grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* "Para quem" grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* CTA buttons flex */
    [style*="display: flex"][style*="gap: 15px"][style*="justify-content: center"][style*="flex-wrap: wrap"] {
        flex-direction: column;
        align-items: center;
    }

    [style*="display: flex"][style*="gap: 15px"][style*="justify-content: center"][style*="flex-wrap: wrap"] a {
        width: 85%;
        text-align: center;
    }

    /* Interval toggle buttons stack */
    #interval-toggle {
        flex-direction: column;
    }

    /* WhatsApp page columns / admin page */
    [style*="display:grid"][style*="gap:20px"] {
        grid-template-columns: 1fr !important;
    }
}

/* Small phone breakpoint */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.05rem; }

    body { font-size: 0.92rem; }

    .logo { font-size: 1.3rem; }

    .container { padding: 0 12px; }

    .card {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .btn {
        padding: 11px 16px;
        font-size: 0.85rem;
    }

    /* Even smaller hero */
    [style*="font-size: 3.5rem"] {
        font-size: 1.6rem !important;
    }

    [style*="padding: 120px 20px 80px"] {
        padding: 50px 12px 35px !important;
    }

    /* Plans / feature grids */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Date cards grid - fewer columns */
    [style*="grid-template-columns: repeat(auto-fill, minmax(100px, 1fr))"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Time slots - fewer columns */
    [style*="grid-template-columns: repeat(auto-fill, minmax(90px, 1fr))"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Time grid even tighter */
    .time-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .tg-card {
        padding: 10px 6px;
        font-size: 0.85rem;
    }

    /* Social proof numbers */
    [style*="font-size: 2.5rem"][style*="font-weight: 800"] {
        font-size: 1.3rem !important;
    }

    /* Dashboard card grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(180px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Chart height */
    [style*="height: 500px"] {
        height: 200px !important;
    }
    canvas {
        max-height: 180px !important;
    }

    /* Confirmation data items */
    [style*="display: flex"][style*="justify-content: space-between"] > span,
    [style*="display: flex"][style*="justify-content: space-between"] > strong {
        font-size: 0.88rem;
    }

    /* Nav links on very small screen */
    .nav-links a {
        font-size: 1rem;
    }

    .nav-links {
        gap: 14px;
    }

    /* Form labels */
    label {
        font-size: 0.88rem;
    }

    /* Service card button on list */
    .btn.btn-secondary[style*="padding: 8px 16px"] {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }

    /* Setup day checkboxes tighter */
    [style*="grid-template-columns: repeat(auto-fit, minmax(140px, 1fr))"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Setup business type icon smaller */
    [style*="width:70px"][style*="height:70px"][style*="border-radius:50%"] {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.5rem !important;
    }

    /* Fix overflow on booking confirmation card */
    [style*="background: linear-gradient(135deg, #f8fafc, #eef2ff)"] {
        padding: 14px !important;
    }

    /* Admin / larger text in sections */
    [style*="font-size: 1.4rem"] {
        font-size: 1.15rem !important;
    }

    /* Padding fixes for sections */
    [style*="padding: 30px"] {
        padding: 16px !important;
    }

    /* Table additional tightening */
    table th, table td {
        padding: 10px 10px;
        font-size: 0.8rem;
    }
}

/* Nav close button - hidden by default */
.nav-close-btn {
    display: none;
}

/* Dashboard link row */
.dashboard-link-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: stretch;
}
.dashboard-link-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 768px) {
    .dashboard-link-row {
        flex-direction: column;
    }
    .dashboard-link-row input {
        width: 100%;
    }
    .dashboard-link-btn {
        width: 100%;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   APP-SPECIFIC STYLES - Agendarify App (Client-Facing)
   ═══════════════════════════════════════════════════════════════ */

/* ── Bottom Navigation Bar ── */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8ecf0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.app-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    min-width: 56px;
}

.app-bottom-nav a svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: all 0.2s ease;
}

.app-bottom-nav a.active {
    color: var(--primary-color);
}

.app-bottom-nav a.active svg {
    stroke: var(--primary-color);
    stroke-width: 2.2;
}

.app-bottom-nav a:hover {
    color: var(--primary-color);
}

.app-bottom-nav .nav-badge {
    position: absolute;
    top: -2px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.4;
}

/* Bottom nav spacer (add padding to main content) */
body.has-bottom-nav main {
    padding-bottom: 72px;
}

body.has-bottom-nav footer {
    padding-bottom: 72px;
}

/* Hide top nav menu items on mobile when bottom nav exists */
@media (max-width: 768px) {
    body.has-bottom-nav .nav-links {
        display: none !important;
    }
    body.has-bottom-nav .menu-toggle {
        display: none !important;
    }
}

/* ── Page Headers ── */
.app-page-header {
    background: var(--gradient-bg);
    padding: 28px 20px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.app-page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.app-page-header h1,
.app-page-header h2 {
    color: #fff;
    margin: 0;
}

.app-page-header .subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 4px;
}

.app-page-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.app-page-header .back-link:hover {
    color: #fff;
}

/* ── App Container ── */
.app-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ── Business Card (Feed) ── */
.biz-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 0;
    text-decoration: none;
    cursor: pointer;
    border-left: 4px solid var(--accent-cat-color, var(--primary-color));
    transition: all 0.25s ease;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.biz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.biz-card .biz-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.biz-card .biz-info {
    flex: 1;
    min-width: 0;
}

.biz-card .biz-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.biz-card .biz-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.biz-card .biz-location {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.biz-card .biz-arrow {
    flex-shrink: 0;
    color: #cbd5e0;
}

/* ── Category Pills (Horizontal Scroll) ── */
.cat-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 24px;
}

.cat-pills::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
    padding: 10px 8px;
    min-width: 72px;
    border-radius: 14px;
    transition: all 0.25s ease;
    background: #f8fafc;
    border: 2px solid transparent;
}

.cat-pill:hover {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

.cat-pill.active {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cat-pill .cat-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    display: block;
}

.cat-pill .cat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
}

.cat-pill.active .cat-label {
    color: #fff;
}

/* ── Product Card (Menu Item) ── */
.product-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    margin-bottom: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    border-left: 3px solid var(--accent-cat-color, #f59e0b);
    transition: all 0.25s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.product-card .product-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f8fafc center/cover no-repeat;
    flex-shrink: 0;
}

.product-card .product-info {
    flex: 1;
    min-width: 0;
}

.product-card .product-name {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.product-card .product-desc {
    font-size: 0.78rem;
    color: #a0aec0;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card .product-price {
    font-weight: 800;
    font-size: 1rem;
}

.product-card .product-meta {
    font-size: 0.68rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.product-card .add-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid;
    background: transparent;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.product-card .add-btn:hover {
    transform: scale(1.1);
}

/* ── Product Detail Bottom Sheet ── */
.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.app-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.app-detail-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -10px 50px rgba(0,0,0,0.2);
}

.app-detail-sheet.active {
    transform: translateY(0);
}

.app-detail-sheet .sheet-handle {
    width: 40px;
    height: 5px;
    background: #d1d5db;
    border-radius: 10px;
    margin: 12px auto 0;
}

.app-detail-sheet .sheet-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
}

.app-detail-sheet .sheet-body {
    padding: 24px 20px 30px;
}

.app-detail-sheet .sheet-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.app-detail-sheet .sheet-close:hover {
    background: rgba(0,0,0,0.6);
}

.app-detail-sheet .info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.app-detail-sheet .info-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
}

.app-detail-sheet .info-item span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.app-detail-sheet .info-item strong {
    font-size: 0.92rem;
    color: var(--secondary-color);
}

.app-detail-sheet .ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.app-detail-sheet .ingredient-tag {
    padding: 6px 14px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 0.78rem;
    color: #555;
    font-weight: 500;
    border: 1px solid #e8ecf0;
}

.app-detail-sheet .qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e8ecf0;
}

.app-detail-sheet .qty-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--bg-color);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--secondary-color);
    transition: background 0.15s;
}

.app-detail-sheet .qty-btn:hover {
    background: #dde4ed;
}

.app-detail-sheet .qty-value {
    width: 56px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.app-detail-sheet .add-to-cart-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.app-detail-sheet .add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ── Status Badges ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Tab Navigation ── */
.app-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
}

.app-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    color: #718096;
}

.app-tab.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Empty State ── */
.app-empty {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.app-empty .empty-icon {
    margin-bottom: 16px;
    color: #a0aec0;
}

.app-empty h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.app-empty p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

/* ── Fixed Bottom CTA ── */
.app-fixed-cta {
    position: fixed;
    bottom: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.app-fixed-cta .cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

/* When no bottom nav, cta sits at bottom: 0 */
body:not(.has-bottom-nav) .app-fixed-cta {
    bottom: 0;
}

/* Page header for individual pages */
.app-mini-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.app-mini-header .back-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    border: 1px solid #e8ecf0;
}

.app-mini-header .back-btn:hover {
    background: #e2e8f0;
}

.app-mini-header .back-btn svg {
    width: 18px;
    height: 18px;
}

.app-mini-header h1 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

/* ── Stat Cards Row ── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    text-align: center;
    padding: 18px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* ── Section Header ── */
.section-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.section-title svg {
    flex-shrink: 0;
}

/* ── Category Section Divider ── */
.menu-category {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.menu-category:first-of-type {
    margin-top: 0;
}

/* ── Review Stars ── */
.stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.stars .filled { color: #f59e0b; }
.stars .empty { color: #e2e8f0; }

/* ── Working Hours List ── */
.hours-list .hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hours-list .hour-row:last-child {
    border-bottom: none;
}

.hours-list .hour-row.today {
    font-weight: 700;
}

.hours-list .today-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 6px;
}

/* ── Order Summary Card ── */
.order-summary {
    padding: 20px;
    background: #fafbfc;
    border-radius: 14px;
}

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.order-summary .summary-row .label {
    color: var(--text-muted);
}

.order-summary .summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #e2e8f0;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 800;
    font-size: 1.05rem;
}

/* ── Timeline (Order Tracking) ── */
.app-timeline {
    position: relative;
    padding-left: 32px;
}

.app-timeline .timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.app-timeline .timeline-item:last-child {
    padding-bottom: 0;
}

.app-timeline .timeline-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #fff;
    z-index: 1;
}

.app-timeline .timeline-dot.current {
    width: 24px;
    height: 24px;
    left: -35px;
}

.app-timeline .timeline-line {
    position: absolute;
    left: -24px;
    top: 22px;
    width: 2px;
    height: calc(100% - 4px);
    background: #e2e8f0;
}

.app-timeline .timeline-item:last-child .timeline-line {
    display: none;
}

/* ── Search Bar ── */
.app-search {
    position: relative;
    margin-bottom: 5px;
}

.app-search input {
    width: 100%;
    padding: 14px 20px 14px 44px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.app-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.app-search input:focus {
    border-color: rgba(255,255,255,0.4);
    outline: none;
    background: rgba(255,255,255,0.15);
}

.app-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
}

/* ── App Form Styles ── */
.app-form .form-group {
    margin-bottom: 16px;
}

.app-form label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.app-form input,
.app-form select,
.app-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: all 0.2s;
    background: #fff;
    color: var(--text-color);
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,78,146,0.08);
    outline: none;
}

.app-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Payment Method Selection ── */
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #cbd5e0;
}

.payment-option.selected {
    background: rgba(249,115,22,0.04);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .pay-icon {
    font-size: 1.3rem;
}

.payment-option .pay-label {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.payment-option .pay-check {
    font-weight: 800;
    margin-left: auto;
}

/* ── Login/Register Page ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-color);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0,4,40,0.08);
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card .auth-logo h2 {
    font-size: 1.6rem;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card .auth-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

.auth-card .auth-form .form-group {
    margin-bottom: 18px;
}

.auth-card .auth-form label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    display: block;
}

.auth-card .auth-form input,
.auth-card .auth-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.2s;
    background: #fafbfc;
}

.auth-card .auth-form input:focus,
.auth-card .auth-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,78,146,0.08);
    outline: none;
    background: #fff;
}

.auth-card .auth-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--gradient-bg);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,78,146,0.3);
    transition: all 0.3s;
    margin-top: 8px;
}

.auth-card .auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,78,146,0.4);
}

.auth-card .auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.auth-card .auth-links a {
    color: var(--primary-color);
    font-weight: 700;
}

/* ── Floating Cart Button ── */
.floating-cart {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    animation: floatUp 0.4s ease-out;
}

@keyframes floatUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.floating-cart a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.floating-cart a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ── Toast Notification ── */
.app-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Appointment Wizard ── */
.wizard-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.wizard-progress .prog-bar {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

.wizard-progress .prog-bar.active {
    background: var(--accent-color, var(--primary-color));
}

/* ── Upcoming Appointment Mini-Card ── */
.upcoming-card {
    background: linear-gradient(135deg, var(--primary-color), #0369a1);
    color: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.upcoming-card .upcoming-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upcoming-card .upcoming-info {
    flex: 1;
    min-width: 0;
}

.upcoming-card .upcoming-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.upcoming-card .upcoming-service {
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-card .upcoming-meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
}

.upcoming-card .upcoming-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Profile Page ── */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.profile-info {
    text-align: center;
    margin-bottom: 28px;
}

.profile-info h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.profile-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.profile-menu .menu-item:last-child {
    border-bottom: none;
}

.profile-menu .menu-item:hover {
    background: #f8fafc;
}

.profile-menu .menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-menu .menu-label {
    flex: 1;
    font-weight: 600;
    font-size: 0.92rem;
}

.profile-menu .menu-arrow {
    color: #cbd5e0;
}

/* ── Location Filter ── */
.location-filter-btn {
    background: none;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    transition: all 0.2s;
}

.location-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.location-filter-btn .location-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    margin-left: auto;
}

/* ── Animations ── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out both;
}

.animate-slide-up:nth-child(1) { animation-delay: 0.05s; }
.animate-slide-up:nth-child(2) { animation-delay: 0.1s; }
.animate-slide-up:nth-child(3) { animation-delay: 0.15s; }
.animate-slide-up:nth-child(4) { animation-delay: 0.2s; }
.animate-slide-up:nth-child(5) { animation-delay: 0.25s; }
.animate-slide-up:nth-child(6) { animation-delay: 0.3s; }

/* ── Cards with no hover transform (for clickable list items) ── */
.card-flat {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 18px;
    transition: all 0.25s ease;
}

.card-flat:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Disable card hover transforms in app (for mobile tap targets) */
@media (max-width: 768px) {
    .biz-card:hover,
    .product-card:hover {
        transform: none;
    }
}

/* ── Skeleton Loader ── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════
   STORE EXPERIENCE (ported from main store/index.php)
   Product detail, cart drawer, checkout overlay, FAB, toast
   ══════════════════════════════════════════════════════════ */

@keyframes toastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* Overlay */
.st-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:999;opacity:0;pointer-events:none;transition:opacity .3s}
.st-overlay.active{opacity:1;pointer-events:all}

/* Product Detail Bottom Sheet */
.st-detail{position:fixed;bottom:0;left:0;right:0;z-index:1000;background:#fff;border-radius:20px 20px 0 0;max-height:92vh;overflow-y:auto;transform:translateY(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);box-shadow:0 -10px 40px rgba(0,0,0,0.15)}
.st-detail.active{transform:translateY(0)}
.st-detail-img{width:100%;height:280px;object-fit:cover;border-radius:20px 20px 0 0}
.st-detail-close{position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,0.5);color:#fff;border:none;font-size:1.3rem;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;backdrop-filter:blur(4px)}
.st-detail-body{padding:24px 20px 30px}
.st-badge{display:inline-block;padding:4px 12px;border-radius:6px;font-size:0.72rem;font-weight:700;background:#e8f0fe;color:var(--primary-color)}
.st-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
.st-info-item{background:var(--bg-color);border-radius:10px;padding:12px 10px;text-align:center}
.st-info-item span{display:block;font-size:0.72rem;color:var(--text-muted);margin-bottom:3px}
.st-info-item strong{font-size:0.9rem;color:var(--secondary-color)}
.st-ingredients{margin:18px 0 24px}
.st-ingredients h4{font-size:0.88rem;margin-bottom:10px;color:var(--secondary-color)}
.st-ing-list{display:flex;flex-wrap:wrap;gap:8px}
.st-ing-tag{padding:6px 14px;background:var(--bg-color);border-radius:20px;font-size:0.78rem;color:#555;font-weight:500;border:1px solid #e8ecf0}
.st-qty{display:flex;align-items:center;gap:0;border-radius:10px;overflow:hidden;border:2px solid #e8ecf0}
.st-qty button{width:44px;height:44px;border:none;background:var(--bg-color);font-size:1.2rem;font-weight:700;cursor:pointer;color:var(--secondary-color);transition:background .15s}
.st-qty button:hover{background:#dde4ed}
.st-qty span{width:50px;text-align:center;font-size:1.1rem;font-weight:700;color:var(--secondary-color)}
.st-add-bar{display:flex;align-items:center;gap:14px;margin-top:20px}
.st-add-btn{flex:1;padding:15px;background:var(--primary-color);color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s;text-align:center}
.st-add-btn:hover{background:var(--secondary-color)}

/* Cart Drawer */
.st-cart-drawer{position:fixed;top:0;right:0;bottom:0;width:380px;max-width:92vw;z-index:1001;background:#fff;transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;box-shadow:-5px 0 30px rgba(0,0,0,0.1)}
.st-cart-drawer.active{transform:translateX(0)}
.st-cart-header{padding:20px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between}
.st-cart-header h3{font-size:1.1rem;margin:0}
.st-cart-close{width:36px;height:36px;border-radius:50%;border:1px solid #e8ecf0;background:#fff;cursor:pointer;font-size:1.1rem;display:flex;align-items:center;justify-content:center}
.st-cart-items{flex:1;overflow-y:auto;padding:15px 20px}
.st-cart-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #f5f5f5;align-items:center}
.st-cart-item img{width:60px;height:60px;border-radius:10px;object-fit:cover;flex-shrink:0}
.st-cart-item-info{flex:1;min-width:0}
.st-cart-item-info h4{font-size:0.88rem;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-cart-item-info p{font-size:0.78rem;color:var(--text-muted)}
.st-cart-item-right{text-align:right;flex-shrink:0}
.st-cart-item-right strong{display:block;font-size:0.95rem;color:var(--primary-color);margin-bottom:6px}
.st-cart-mini-qty{display:flex;align-items:center;gap:0;border-radius:8px;overflow:hidden;border:1px solid #e8ecf0}
.st-cart-mini-qty button{width:28px;height:28px;border:none;background:var(--bg-color);font-size:0.9rem;font-weight:700;cursor:pointer;color:var(--secondary-color)}
.st-cart-mini-qty span{width:28px;text-align:center;font-size:0.82rem;font-weight:700}
.st-cart-footer{padding:20px;border-top:1px solid #f0f0f0;background:#fff}
.st-cart-total{display:flex;justify-content:space-between;margin-bottom:14px;font-size:1.05rem}
.st-cart-total strong{color:var(--primary-color);font-size:1.2rem}
.st-checkout-btn{width:100%;padding:16px;background:var(--primary-color);color:#fff;border:none;border-radius:12px;font-size:1.05rem;font-weight:700;cursor:pointer;transition:all .2s}
.st-checkout-btn:hover{background:var(--secondary-color)}
.st-cart-empty{text-align:center;padding:50px 20px;color:var(--text-muted)}
.st-cart-empty p{font-size:0.9rem;margin-top:10px}

/* FAB Cart Button */
.st-fab{position:fixed;bottom:88px;right:20px;z-index:998;width:58px;height:58px;border-radius:50%;background:var(--primary-color);color:#fff;border:none;cursor:pointer;box-shadow:0 6px 20px rgba(0,78,146,0.35);display:flex;align-items:center;justify-content:center;font-size:1.4rem;transition:transform .2s}
.st-fab:hover{transform:scale(1.08)}
.st-fab-badge{position:absolute;top:-2px;right:-2px;width:22px;height:22px;border-radius:50%;background:#e53e3e;color:#fff;font-size:0.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff}

/* Checkout Fullscreen */
.st-checkout{position:fixed;inset:0;z-index:1002;background:#fff;overflow-y:auto;transform:translateY(100%);transition:transform .35s cubic-bezier(.4,0,.2,1)}
.st-checkout.active{transform:translateY(0)}
.st-checkout-header{padding:20px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;gap:14px}
.st-checkout-header button{width:36px;height:36px;border-radius:50%;border:1px solid #e8ecf0;background:#fff;cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center}
.st-checkout-body{max-width:600px;margin:0 auto;padding:30px 20px 30px}
.st-form-group{margin-bottom:18px}
.st-form-group label{display:block;font-size:0.82rem;font-weight:600;color:var(--secondary-color);margin-bottom:6px}
.st-form-group input,.st-form-group textarea,.st-form-group select{width:100%;padding:12px 14px;border:2px solid #e8ecf0;border-radius:10px;font-size:0.9rem;font-family:Inter,sans-serif;transition:border-color .2s}
.st-form-group input:focus,.st-form-group textarea:focus{border-color:var(--primary-color);outline:none}
.st-summary-item{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f5f5f5;font-size:0.88rem}
.st-summary-item:last-child{border:none}
.st-confirm-bar{background:#fff;padding:20px 24px;border:2px solid #e8ecf0;display:flex;gap:12px;align-items:center;margin-top:30px;border-radius:16px;box-shadow:0 2px 12px rgba(0,0,0,0.06)}
.st-confirm-total{flex:1}
.st-confirm-total span{font-size:0.78rem;color:var(--text-muted);display:block}
.st-confirm-total strong{font-size:1.2rem;color:var(--primary-color)}
.st-confirm-btn{padding:16px 30px;background:var(--primary-color);color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s;white-space:nowrap}
.st-confirm-btn:hover{background:var(--secondary-color)}

/* Checkout Options */
.ck-options{display:flex;gap:10px;flex-wrap:wrap}
.ck-option{flex:1;min-width:120px;padding:14px 16px;border:2px solid #e8ecf0;border-radius:12px;background:#fff;cursor:pointer;text-align:center;transition:all .2s;position:relative}
.ck-option:hover{border-color:var(--primary-color);background:#f0f7ff}
.ck-option.selected{border-color:var(--primary-color);background:linear-gradient(135deg,#f0f7ff,#e8f4fd);box-shadow:0 2px 8px rgba(0,78,146,0.12)}
.ck-option.selected::after{content:'';position:absolute;top:8px;right:8px;width:18px;height:18px;border-radius:50%;background:var(--primary-color);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center}
.ck-option-icon{font-size:1.4rem;margin-bottom:6px;display:block}
.ck-option-label{font-weight:700;font-size:0.85rem;color:var(--secondary-color);display:block}
.ck-option-desc{font-size:0.72rem;color:var(--text-muted);margin-top:2px;display:block}
.ck-pay-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.ck-pay-option{padding:12px 10px;border:2px solid #e8ecf0;border-radius:10px;background:#fff;cursor:pointer;text-align:center;transition:all .2s}
.ck-pay-option:hover{border-color:var(--primary-color);background:#f0f7ff}
.ck-pay-option.selected{border-color:var(--primary-color);background:linear-gradient(135deg,#f0f7ff,#e8f4fd)}
.ck-pay-option-icon{font-size:1.2rem;display:block;margin-bottom:4px}
.ck-pay-option-label{font-weight:600;font-size:0.8rem;color:var(--secondary-color)}

/* Success Overlay */
.st-success{position:fixed;inset:0;z-index:1004;background:var(--gradient-bg);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:40px;transform:scale(0);opacity:0;transition:all .4s cubic-bezier(.4,0,.2,1)}
.st-success.active{transform:scale(1);opacity:1}
.st-success h2{font-size:1.8rem;margin:20px 0 10px;color:#fff}
.st-success p{color:rgba(255,255,255,0.8);max-width:350px}

/* Product Grid */
.st-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.st-product-card{background:#fff;border-radius:14px;box-shadow:0 2px 12px rgba(0,0,0,0.06);overflow:hidden;cursor:pointer;transition:transform .2s,box-shadow .2s}
.st-product-card:hover{transform:translateY(-4px);box-shadow:0 12px 35px rgba(0,0,0,0.1)}
.st-product-card-img{height:180px;overflow:hidden;position:relative;background:#f0f4f8}
.st-product-card-img img{width:100%;height:100%;object-fit:cover}
.st-product-card-body{padding:18px}
.st-product-card-body h3{font-size:1.05rem;margin-bottom:5px}
.st-product-card-body p{color:var(--text-muted);font-size:0.82rem;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.st-product-card-footer{display:flex;justify-content:space-between;align-items:center}
.st-product-card-price{font-size:1.3rem;font-weight:800;color:var(--primary-color)}
.st-product-card-add{padding:8px 18px;background:var(--primary-color);color:#fff;border:none;border-radius:8px;font-weight:700;font-size:0.82rem;cursor:pointer}

/* Category filter buttons */
.st-cat-filters{display:flex;gap:10px;overflow-x:auto;padding-bottom:10px;margin-bottom:30px;-webkit-overflow-scrolling:touch}
.st-cat-btn{padding:10px 22px;border-radius:25px;border:2px solid #ddd;background:#fff;color:#555;font-weight:600;font-size:0.85rem;cursor:pointer;white-space:nowrap;transition:all .2s}
.st-cat-btn.active{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}

/* Store responsive */
@media(max-width:768px){
    .st-detail-img{height:200px}
    .st-info-grid{grid-template-columns:repeat(2,1fr)}
    .st-cart-drawer{width:100%;max-width:100%}
    .st-detail-body{padding:20px 16px}
    .st-checkout-body{padding:20px 16px}
    .st-confirm-btn{padding:14px 20px;font-size:0.92rem}
    .ck-option{min-width:0;padding:12px 10px}
    .ck-option-label{font-size:0.8rem}
    .ck-pay-options{grid-template-columns:repeat(2,1fr)}
    .st-product-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
    .st-detail-img{height:180px}
    .st-info-grid{grid-template-columns:1fr 1fr}
    .st-detail-body h2{font-size:1.2rem !important}
    .st-success h2{font-size:1.3rem}
    .st-confirm-total strong{font-size:1rem}
    .st-confirm-bar{padding:12px 16px}
    .st-product-grid{grid-template-columns:1fr}
}