:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-surface: #1a1a1a;
    --gold: #c5a059;
    --gold-bright: #d4af37;
    --wood: #5d4037;
    --text-white: #f5f5f5;
    --text-muted: #888888;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* HarmonyOS 6 Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;
    --shadow-soft: 0 4px 14px rgba(0,0,0,0.2);
    --shadow-elevated: 0 12px 30px rgba(0,0,0,0.4);
    --shadow-glow-gold: 0 0 20px rgba(197, 160, 89, 0.2);
    --shadow-glow-green: 0 0 20px rgba(37, 211, 102, 0.2);
}

/* --- Progressive Pulse System --- */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4), var(--shadow-glow-gold); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 89, 0), var(--shadow-glow-gold); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0), var(--shadow-glow-gold); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4), var(--shadow-glow-green); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), var(--shadow-glow-green); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), var(--shadow-glow-green); }
}

.text-gold {
    color: var(--gold) !important;
}

.max-width-700 {
    max-width: 700px;
}

.uppercase {
    text-transform: uppercase;
}

.sgi-pulse-gold {
    animation: pulse-gold 2s infinite;
}

.sgi-pulse-green {
    animation: pulse-green 2s infinite;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

html.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Global Spacing --- */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

section h2 {
    margin-bottom: 50px;
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('/images/Demos/barberia/hero.webp') center/cover;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--gold-bright);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Global Category Navigation (Sticky) --- */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    padding: 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-nav-wrapper.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.category-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 16px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 1px;
}

.category-nav a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.category-nav a.active {
    background: var(--gold);
    color: black;
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

/* Desktop: center the nav */
@media (min-width: 769px) {
    .category-nav {
        justify-content: center;
    }
    .category-nav a {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero {
        height: 75vh;
        align-items: flex-start;
        padding-top: 12vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* --- Mobile App Components --- */
    .mobile-only {
        display: block !important;
    }

    /* DiDi Food Service Card Experience REFINED */
    .service-card {
        flex-direction: column !important;
        text-align: left !important;
        padding: 16px !important;
        gap: 0px !important;
        border-radius: var(--radius-md) !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: var(--bg-card);
        margin-bottom: 15px;
        box-shadow: var(--shadow-soft);
    }

    .service-content {
        display: flex;
        flex-direction: row;
        gap: 15px;
        width: 100%;
        margin-bottom: 15px;
    }

    .service-card:hover {
        transform: none !important;
        background: #1a1a1a;
    }

    .service-info {
        flex: 1;
    }

    .service-info h3 {
        font-size: 1.05rem;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .service-info p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-meta {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .service-meta .price {
        font-size: 1.1rem;
        color: var(--text-white);
    }

    .service-meta .duration {
        font-size: 0.75rem;
        font-weight: 500;
        opacity: 0.7;
    }

    .service-image-wrapper {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .service-image {
        width: 100%;
        height: 100%;
        border-radius: 0;
        background-size: cover;
        background-position: center;
    }

    /* Reverting to button style */
    .btn-add-service {
        width: 100%;
        margin-top: 5px;
        padding: 12px !important;
        font-size: 0.85rem !important;
        border-radius: var(--radius-md) !important;
    }

    /* Success Flash Override */
    .btn-success-flash {
        background: var(--gold) !important;
        color: black !important;
        border-color: var(--gold) !important;
    }


    .appointment-sidebar {
        padding: 24px;
    }

    /* Additional Designer Refinements */
    .section-padding h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .lookbook-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .lookbook-item {
        height: 200px !important;
        border-radius: 8px;
    }

    .team-grid {
        gap: 25px !important;
    }

    .team-member img {
        height: 280px !important;
        border-radius: 12px;
    }

    .intro-section p {
        font-size: 0.95rem;
    }
}

/* --- Base Utilities for Service Card (All screens) --- */
.service-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.service-image-wrapper {
    flex-shrink: 0;
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.mobile-only {
    display: none;
}

/* --- Desktop Service Card Layout --- */
@media (min-width: 769px) {
    .service-card {
        flex-direction: row;
        align-items: center;
        gap: 25px;
        padding: 20px 30px;
    }

    .service-content {
        flex: 1;
        flex-direction: row;
        align-items: center;
        gap: 25px;
        margin-bottom: 0;
    }

    .service-info {
        flex: 1;
    }

    .service-image-wrapper {
        width: 100px;
        height: 100px;
        border-radius: 6px;
        overflow: hidden;
    }

    .btn-add-service {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.hero-content p {
    font-size: 1.4rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 50px;
    font-weight: 300;
}

/* --- Introduction Section --- */
.intro-section {
    background: #000;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.intro-item h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.intro-item p {
    color: var(--text-muted);
}

/* --- Lookbook Gallery Carousel --- */
.lookbook-carousel-wrapper {
    position: relative;
    padding: 0 40px;
}

.lookbook-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scroll-behavior: smooth;
}

.lookbook-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.lookbook-item {
    flex: 0 0 calc(33.333% - 14px); /* Desktop: 3 items */
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-snap-align: start;
    border-radius: 4px;
    transition: var(--transition);
}

.lookbook-item:hover {
    transform: scale(1.02);
    border-color: var(--gold);
}

/* Nav Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--gold);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: var(--gold);
    color: black;
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

@media (max-width: 992px) {
    .lookbook-item {
        flex: 0 0 calc(50% - 10px); /* Tablet: 2 items */
    }
}

@media (max-width: 768px) {
    .lookbook-carousel-wrapper {
        padding: 0;
    }
    .lookbook-grid {
        gap: 15px;
        padding-right: 40px; /* Peek at next item */
    }
    .lookbook-item {
        flex: 0 0 85%; /* Mobile: 1.15 items visible */
        height: 320px;
    }
    .carousel-nav {
        display: none; /* Hide arrows on mobile for native feel */
    }
}

/* --- Service Catalog (Core SGI) --- */
.catalog-section {
    background: #0a0a0a;
}

.category-title {
    color: var(--gold);
    border-bottom: 2px solid var(--wood);
    padding-bottom: 10px;
    margin: 60px 0 30px;
    font-size: 1.8rem;
}

.service-card {
    background: var(--bg-card);
    padding: 25px 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-left-color: var(--gold);
    background: #1a1a1a;
    transform: translateX(10px);
}

.service-info h3 {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.service-info .duration {
    font-size: 0.8rem;
    color: var(--wood);
    font-weight: 700;
}

.service-action {
    display: flex;
    align-items: center;
    gap: 25px;
}

.price {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-white);
}

/* --- Smart SGI FAB System (Optimized) --- */
.sgi-fab-container {
    position: fixed;
    bottom: 105px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4600; /* Higher than sgi-bottom-bar (4500) */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sgi-fab-container.footer-hide {
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
}

.sgi-fab-label {
    background: white;
    color: black;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    white-space: nowrap;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    margin: 0; /* Ensure no inherited margins */
    display: flex;
    align-items: center;
}

.sgi-fab-label.hidden {
    opacity: 0;
    transform: translateX(15px);
}

.smart-sgi-btn {
    width: 56px;
    height: 56px;
    background: var(--gold);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.smart-sgi-btn i {
    font-size: 1.5rem;
}

.smart-sgi-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 10;
}

.smart-sgi-btn:hover {
    transform: scale(1.05);
}

.smart-sgi-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .sgi-fab-container {
        bottom: calc(100px + env(safe-area-inset-bottom, 0px));
        right: 15px;
        gap: 8px;
    }
    
    .sgi-fab-label {
        font-size: 0.65rem;
        padding: 8px 14px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .smart-sgi-btn {
        width: 50px;
        height: 50px;
    }

    .smart-sgi-btn i {
        font-size: 1.3rem;
    }
}

/* --- Appointment Sidebar --- */
.appointment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: none;
}

.appointment-overlay.active {
    display: block;
}

.appointment-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg-card);
    z-index: 5001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    overscroll-behavior: contain;
}

.appointment-overlay.active .appointment-sidebar {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.modal-close-x {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: var(--transition);
}

.modal-close-x:hover {
    opacity: 1;
    color: var(--gold);
}

.drag-handle {
    display: none;
}

.appointment-items {
    flex-grow: 1;
    overflow-y: auto;
}

.appointment-item {
    padding: 20px 0;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item-main h4 {
    font-size: 1rem;
    color: var(--gold);
}

.item-main p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-remove {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    color: #d9534f;
}

.sidebar-footer {
    padding-top: 30px;
    border-top: 1px solid #333;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.duration-row {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.btn-whatsapp-booking {
    background: #25d366;
    color: white;
    width: 100%;
    padding: 20px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-pill);
}

    .btn-whatsapp-booking:hover {
        background: #20b858;
        filter: brightness(1.1);
        transform: translateY(-2px);
    }

.btn-delete {
    background: #d9534f;
    color: white;
    width: 100%;
    padding: 20px;
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-pill);
}

    .btn-delete:hover {
        background: #c34a47;
        filter: brightness(1.1);
        transform: translateY(-2px);
    }

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(1);
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.team-member:hover img {
    filter: grayscale(0);
}

.btn-secondary-flat {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border-radius: var(--radius-md);
}

/* Action/Guide Button Modifier */
.btn-pill {
    border-radius: 50px !important;
}

.btn-secondary-flat:active {
    transform: scale(0.96);
}

.btn-secondary-flat:hover {
    color: var(--gold);
}

.btn-secondary-flat.selected {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

.btn-secondary-flat.selected::after {
    content: "✓";
    font-weight: 900;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .appointment-sidebar {
        max-width: 100%;
        height: 85vh;
        top: auto;
        bottom: -100%;
        right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 16px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    }
    
    .appointment-overlay.active .appointment-sidebar {
        right: 0;
        bottom: 0;
    }

    .drag-handle {
        display: block;
        width: 40px;
        height: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-pill);
        margin: 0 auto 20px auto;
    }
}

/* --- SGI Smart Bridge Modal (Desktop) --- */
.bridge-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.bridge-modal.active {
    display: flex;
    opacity: 1;
}

.bridge-content {
    background: var(--bg-card);
    padding: 50px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 160, 89, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.modal-close-x.bridge-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 768px) {
    .bridge-modal {
        align-items: flex-end;
        padding: 0;
    }
    
    .bridge-content {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
        border-bottom: none;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    
    .bridge-modal.active .bridge-content {
        transform: translateY(0);
    }
}

.badge-sgi {
    background: var(--gold);
    color: black;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.qr-container {
    background: white;
    padding: 15px;
    width: 220px;
    height: 220px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-wa-web {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border-radius: var(--radius-pill);
}

.btn-wa-web:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    color: var(--gold);
}

/* --- Main Footer --- */
.footer {
    background-color: #000;
    color: var(--text-white);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    margin-top: 100px;
    padding: 100px 0 80px;
}

.footer-logo {
    font-size: 2.2rem;
    color: var(--gold);
    letter-spacing: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.border-top-dark {
    border-top: 1px solid #1a1a1a;
}

/* --- SGI Sidebar Adjustments --- */
.btn-clear-sgi {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-clear-sgi:hover {
    background: rgba(217, 83, 79, 0.1);
    border-color: #d9534f;
    color: #d9534f;
}

/* --- Progressive Disclosure --- */
.sgi-step-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

/* Ensure revealed state overrides HIDDEN state */
.sgi-step-hidden.sgi-step-revealed {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    max-height: 2000px;
    margin-top: initial !important;
    margin-bottom: initial !important;
}

/* Specific for chips and buttons to ensure they show up correctly */
.btn-select-barber.sgi-step-hidden {
    display: none;
    /* Initially gone */
}

.btn-select-barber.sgi-step-revealed {
    display: inline-block !important;
    /* Forces visibility */
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* --- Interaction Feedback --- */
.btn-success-flash {
    background: var(--gold) !important;
    color: black !important;
    border-color: var(--gold) !important;
    animation: successPulse 0.4s ease forwards;
    z-index: 10;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 25px var(--gold);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Hero Specific Guidance --- */
.hero-cta-wrapper {
    position: relative;
    display: inline-block;
}

.hero-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: black;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    animation: tooltipBob 2s ease-in-out infinite;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.hero-tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--gold);
}

.hero-tooltip.active {
    opacity: 1;
    top: -60px;
}

@keyframes tooltipBob {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.margin-0 {
    margin: 0px !important;
}

/* --- SGI Bottom Bar (Floating Pill Style) --- */
.sgi-bottom-bar {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    height: 70px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 4500;
    padding: 0 15px;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(197, 160, 89, 0.1);
}

.sgi-bottom-bar.footer-hide {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.sgi-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 40px;
    margin: 4px;
    padding: 8px 0;
}

.sgi-step i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.sgi-step.sgi-pulse-gold {
    animation: pulse-gold 2s infinite;
}

.sgi-step.active {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.sgi-step.completed {
    color: #25d366;
}

.sgi-step.completed i::after {
    content: "✓";
    font-size: 0.7rem;
    position: absolute;
    margin-left: 2px;
    margin-top: -5px;
}

@media (max-width: 768px) {
    .sgi-bottom-bar {
        height: 70px;
    }
}
