/* Tabs */
/* Tabs */
.ho-menu-tabs-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto; /* Allow scrolling on small screens if needed */
    -webkit-overflow-scrolling: touch;
}

.ho-menu-tabs {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    /* Default base styles (reset by specific styles) */
}

.ho-menu-tab {
    background: none;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--ho-text-body);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
}

/* Style 1: Pills (Default) */
.ho-tabs-style-pills .ho-menu-tabs {
    background: var(--ho-bg-light);
    border-radius: 30px;
}
.ho-tabs-style-pills .ho-menu-tab {
    border-radius: 25px;
}
.ho-tabs-style-pills .ho-menu-tab:hover {
    background: color-mix(in srgb, var(--ho-primary), transparent 90%);
    color: var(--ho-primary);
}
.ho-tabs-style-pills .ho-menu-tab.active {
    background: var(--ho-primary);
    color: var(--ho-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Style 2: Underline */
.ho-tabs-style-underline .ho-menu-tabs {
    background: transparent;
    border-bottom: 1px solid var(--ho-border-color);
    width: 100%; /* Full width */
    justify-content: center; /* Center items */
    gap: 20px;
    padding: 0;
}
.ho-tabs-style-underline .ho-menu-tab {
    border-radius: 0;
    padding: 10px 5px;
    position: relative;
    color: var(--ho-text-muted);
}
.ho-tabs-style-underline .ho-menu-tab.active {
    color: var(--ho-primary);
}
.ho-tabs-style-underline .ho-menu-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Overlap border */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ho-primary);
    border-radius: 3px 3px 0 0;
}

/* Style 3: Minimal */
.ho-tabs-style-minimal .ho-menu-tabs {
    background: transparent;
    gap: 15px;
}
.ho-tabs-style-minimal .ho-menu-tab {
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--ho-text-muted);
}
.ho-tabs-style-minimal .ho-menu-tab:hover {
    color: var(--ho-text-body);
    background: rgba(0,0,0,0.03);
}
.ho-tabs-style-minimal .ho-menu-tab.active {
    color: var(--ho-primary);
    background: color-mix(in srgb, var(--ho-primary), transparent 90%); /* Slight primary tint */
    font-weight: 700;
}

/* Style 4: Boxed (Segmented) */
.ho-tabs-style-boxed .ho-menu-tabs {
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
    border-radius: 8px;
    padding: 0;
    gap: 0;
    overflow: hidden; /* For rounded corners */
}
.ho-tabs-style-boxed .ho-menu-tab {
    border-radius: 0;
    border-right: 1px solid var(--ho-border-color);
    padding: 12px 25px;
    background: var(--ho-bg-light);
    color: var(--ho-text-muted);
}
.ho-tabs-style-boxed .ho-menu-tab:last-child {
    border-right: none;
}
.ho-tabs-style-boxed .ho-menu-tab:hover {
    background: var(--ho-bg-body);
}
.ho-tabs-style-boxed .ho-menu-tab.active {
    background: var(--ho-primary);
    color: var(--ho-on-primary);
    font-weight: bold;
}

/* Sticky Nav */
.ho-sticky-nav {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 20px;
    background: var(--ho-bg-body);
    border-bottom: none;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}
.ho-sticky-nav.is-sticky {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Main Layout */
.ho-menu-wrapper {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    display: flex; /* Flex Layout */
    align-items: flex-start;
    gap: 20px;
}

.ho-main-content {
    flex: 1;
    min-width: 0; /* Fix flex overflow */
}

.ho-nav-link {
    text-decoration: none;
    color: var(--ho-text-body);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Style 1: Pills (Default) */
/* Style 1: Pills (Default) */
.ho-nav-style-pills {
    display: flex;
    gap: 8px;
    background: var(--ho-bg-light);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    flex-wrap: nowrap; /* Allow horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ho-nav-style-pills::-webkit-scrollbar {
    display: none;
}

/* Override sticky nav specific styles */
.ho-nav-style-pills.ho-sticky-nav {
    background: var(--ho-bg-body);
    border-bottom: none;
}

.ho-nav-style-pills .ho-nav-link {
    text-decoration: none;
    color: var(--ho-text-body);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: transparent;
}

.ho-nav-style-pills .ho-nav-link:hover {
    background: color-mix(in srgb, var(--ho-primary), transparent 90%);
    color: var(--ho-primary);
}

.ho-nav-style-pills .ho-nav-link.active {
    background: var(--ho-light);
    color: var(--ho-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 600;
}

/* Style 2: Underline */
.ho-nav-style-underline {
    gap: 20px;
}
.ho-nav-style-underline .ho-nav-link {
    border-radius: 0;
    padding: 10px 5px;
    background: none !important; /* No background on active */
    position: relative;
    color: var(--ho-text-muted);
}
.ho-nav-style-underline .ho-nav-link:hover {
    color: var(--ho-text-body);
}
.ho-nav-style-underline .ho-nav-link.active {
    color: var(--ho-primary);
    font-weight: 600;
}
.ho-nav-style-underline .ho-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Align with container bottom padding if possible, or usually container has padding-bottom */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ho-primary);
    border-radius: 3px 3px 0 0;
}
/* Adjust sticky nav padding for underline style to align border at bottom */
.ho-nav-style-underline.ho-sticky-nav {
    padding-bottom: 0;
    align-items: flex-end; /* Align items to bottom for border */
    height: 60px; /* Fixed height can help */
}

/* Style 3: Minimal */
.ho-nav-style-minimal .ho-nav-link {
    padding: 5px 10px;
    border-radius: 5px;
    color: var(--ho-text-muted);
}
.ho-nav-style-minimal .ho-nav-link:hover {
    color: var(--ho-text-body);
}
.ho-nav-style-minimal .ho-nav-link.active {
    color: var(--ho-primary);
    font-weight: 700;
    transform: scale(1.05); /* Slight pop */
}

/* Style 4: Boxed */
.ho-nav-style-boxed {
    gap: 0;
    padding: 10px;
    background: var(--ho-bg-light); /* Different bg for boxed track */
    border-radius: 8px; /* Rounded track */
}
.ho-nav-style-boxed .ho-nav-link {
    border-radius: 6px;
    padding: 8px 20px;
    color: var(--ho-text-muted);
    margin-right: 5px; /* Slight gap between boxes */
    background: var(--ho-bg-card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid transparent;
}
.ho-nav-style-boxed .ho-nav-link:hover {
    border-color: #ddd;
}
.ho-nav-style-boxed .ho-nav-link.active {
    background: var(--ho-primary);
    color: var(--ho-on-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-color: var(--ho-primary);
}

/* Full Width Navigation */
.ho-nav-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0;
    padding-left: max(20px, calc(50vw - 50% + 20px));
    padding-right: max(20px, calc(50vw - 50% + 20px));
    box-sizing: border-box;
}

/* Tabs */
.ho-auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--ho-border-color);
}
.ho-auth-tab {
    padding: 10px 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ho-text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: none;
    border: none;
}
.ho-auth-tab.active {
    color: var(--ho-text-body);
}
.ho-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ho-primary);
}
.ho-auth-tab-content {
    display: none;
    flex: 1;
}
.ho-auth-tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Forms */
.ho-auth-form-container h3 {
    margin: 0 0 20px;
    font-size: 1.5rem;
}
.ho-form-group {
    margin-bottom: 20px;
}
.ho-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ho-text-muted);
}
.ho-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--ho-border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.ho-form-group input:focus {
    border-color: var(--ho-primary);
    outline: none;
}
.ho-form-actions {
    margin-top: 10px;
}
.ho-btn-primary {
    width: 100%;
    padding: var(--ho-btn-padding-y) var(--ho-btn-padding-x);
    background: var(--ho-btn-bg);
    color: var(--ho-btn-text);
    border: none;
    border-radius: var(--ho-btn-radius);
    font-size: 1rem;
    font-weight: var(--ho-btn-font-weight);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ho-btn-primary:hover {
    background: color-mix(in srgb, var(--ho-btn-bg), black 10%);
}
.ho-btn-primary.loading {
    opacity: 0.8;
    pointer-events: none;
}
.ho-btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--ho-light);
    animation: spin 1s linear infinite;
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.ho-form-row {
    display: flex;
    gap: 15px;
}
.ho-form-row.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.ho-form-group {
    display: flex;
    flex-direction: column;
}
.ho-form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ho-text-muted);
    margin-bottom: 8px;
}
/* Unified Input Styling */
.ho-form-group input,
.ho-full-width-input,
.ho-textarea,
.ho-phone-input-wrap input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ho-border-color);
    border-radius: var(--ho-radius-lg, 6px);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    background: var(--ho-input-bg);
    color: var(--ho-input-text);
    font-family: inherit;
}

/* Unified Focus State */
.ho-form-group input:focus,
.ho-full-width-input:focus,
.ho-textarea:focus,
.ho-phone-input-wrap input:focus {
    border-color: var(--ho-primary);
    background: var(--ho-input-bg) !important;
    box-shadow: 0 0 0 1px var(--ho-primary);
}

/* Phone Input Override */
.ho-form-group .ho-phone-input-wrap input {
    padding-left: 100px !important;
}
.ho-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Phone Input Structure */
.ho-phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ho-phone-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 2;
}

.ho-flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ho-prefix-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ho-text-body);
}

.ho-input.ho-has-prefix {
    padding-left: 75px !important;
}


/* Fulfillment Info Box */
.ho-fulfillment-info {
    margin-bottom: 30px;
}
.ho-info-heading {
    font-size: 1rem;
    color: var(--ho-text-body);
    margin-bottom: 15px;
    font-weight: 500;
}
.ho-branch-box {
    background: var(--ho-bg-light);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.ho-branch-text {
    font-size: 0.95rem;
    color: var(--ho-text-muted);
    line-height: 1.5;
}
.ho-branch-text .label {
    font-weight: 600;
    color: var(--ho-text-body);
}
.ho-branch-map-icon {
    width: 40px;
    height: 40px;
    background: var(--ho-dark);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Delivery Address Section */
.ho-delivery-address-section {
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
    border-radius: 8px;
    padding: 20px;
}
.ho-delivery-address-section .ho-section-label {
    margin-bottom: 15px;
    font-weight: 700;
}

/* Messages */
.ho-form-message {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}
.ho-form-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.ho-form-message.success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Helper Links */
.ho-forgot-password-link, .ho-resend-otp-link, .ho-back-to-login {
    color: var(--ho-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
}
.ho-forgot-password-link:hover, .ho-resend-otp-link:hover, .ho-back-to-login:hover {
    text-decoration: underline;
}

/* Add Button on Image */
.ho-upsell-add-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
    color: var(--ho-primary);
    color: var(--ho-primary);
    font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    line-height: 1;
    padding: 0;
}
.ho-upsell-add-btn:hover { transform: scale(1.1); background: var(--ho-bg-card); color: var(--ho-primary); }

.ho-upsell-details {
    width: 100%;
}
.ho-upsell-price {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--ho-text-body);
    margin-bottom: 2px;
}
.ho-upsell-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ho-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Remove old leftover selectors */
.ho-upsell-info, .ho-upsell-sub, .ho-upsell-price-row {
    display: none;
}


/* Search Inner & Input */
.ho-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ho-menu-search-input {
    width: 100%;
    padding: 12px 15px 12px 60px; /* Left padding for icon */
    font-size: 1rem;
    border: 1px solid var(--ho-border-color);
    outline: none;
    line-height: 1.5;
    transition: all 0.3s ease;
    color: var(--ho-text-body);
}

.ho-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex; /* For SVG */
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}
.ho-search-icon svg {
    width: 100%;
    height: 100%;
}

.ho-search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ho-bg-light);
    color: var(--ho-text-muted);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.ho-search-clear:hover {
    background: #cbd5e1;
    color: #334155;
}

/* Style 1: Default (Boxed) */
.ho-search-style-default .ho-menu-search-input {
    border-radius: 8px;
    background: var(--ho-bg-light);
    border-color: var(--ho-border-color);
}
.ho-search-style-default .ho-menu-search-input:focus {
    background: var(--ho-bg-card);
    border-color: var(--ho-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ho-primary), transparent 85%);
}

/* Style 2: Round (Pill) */
.ho-search-style-round .ho-menu-search-input {
    border-radius: 50px;
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding-left: 60px; /* Extra padding for round style */
}
.ho-search-style-round .ho-menu-search-input:focus {
    border-color: var(--ho-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Style 3: Minimal (Underline) */
.ho-search-style-minimal .ho-menu-search-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 0;
    padding-left: 40px;
    padding-bottom: 8px;
    padding-top: 8px;
}
.ho-search-style-minimal .ho-search-icon {
    left: 0;
}
.ho-search-style-minimal .ho-menu-search-input:focus {
    border-bottom-color: var(--ho-primary);
    box-shadow: none;
}

/* ==========================================
   CUSTOM CONFIRM MODEAL
   ========================================== */
.ho-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent base */
    backdrop-filter: blur(4px); /* Blur effect */
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}
.ho-confirm-modal.active {
    display: flex;
}
.ho-confirm-content {
    background: var(--ho-bg-card);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: hoFadeIn 0.2s ease;
}
@keyframes hoFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.ho-confirm-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ho-text-body);
}
.ho-confirm-text {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}
.ho-confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.ho-confirm-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    flex: 1;
}
.ho-confirm-cancel {
    background: var(--ho-bg-light);
    color: var(--ho-text-body);
}
.ho-confirm-cancel:hover { background: #e0e0e0; }
.ho-confirm-yes {
    background: var(--ho-primary);
    color: var(--ho-on-primary);
}
.ho-confirm-yes:hover { opacity: 0.9; }


/* ==========================================
   INTENT MODAL (Delivery/Pickup)
   ========================================== */
.ho-modal-overlay-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8); /* Dark background */
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ho-intent-card {
    background: var(--ho-bg-card);
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.ho-intent-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ccc; /* Fallback */
    background: var(--ho-bg-light);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: var(--ho-text-muted);
    z-index: 10;
}


.ho-intent-header {
    text-align: center;
    padding: 30px 20px 10px;
}

.ho-intent-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.ho-intent-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.ho-intent-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
}

.ho-intent-tab {
    background: transparent;
    border: none;
    color: var(--ho-text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.ho-intent-tab.active {
    background: var(--ho-text-body);
    color: var(--ho-bg-card);
}

.ho-intent-body {
    padding: 0 30px 40px;
}

.ho-intent-view {
    display: none;
}

.ho-intent-view.active {
    display: block;
}

.ho-intent-label {
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.ho-locate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 20px;
    background: var(--ho-bg-light);
    color: var(--ho-text-body);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    gap: 5px;
    font-weight: 500;
}

.ho-locate-btn:hover {
    background: var(--ho-border-color);
}

.ho-intent-form-group {
    margin-bottom: 15px;
}

.ho-intent-select {
    width: 100%;
    padding: 12px 40px 12px 12px; /* Extra right padding for dropdown arrow */
    border: 1px solid var(--ho-border-color);
    border-radius: 6px;
    font-size: 0.95rem; /* Slightly smaller font to fit more text */
    background-color: var(--ho-input-bg);
    color: var(--ho-input-text);
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
    min-height: 45px; /* Allow field to expand if needed */
    height: auto;
}

.ho-intent-select option {
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 8px;
    line-height: 1.4;
}

.ho-intent-submit {
    width: 100%;
    padding: 12px;
    background: var(--ho-bg-light); /* Disabled look initially */
    color: var(--ho-text-muted);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: not-allowed;
    margin-top: 10px;
    transition: all 0.3s;
}

.ho-intent-submit:not([disabled]) {
    background: var(--ho-primary);
    color: var(--ho-on-primary);
    cursor: pointer;
}

.ho-intent-submit:not([disabled]):hover {
    opacity: 0.9;
}

/* ==========================================
   AUTH MODAL STYLES (Migrated)
   ========================================== */
.ho-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ho-auth-modal.active {
    display: flex;
}

.ho-auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.ho-auth-modal-content {
    position: relative;
    background: var(--ho-bg-card);
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--ho-shadow);
    animation: hoModalSlideIn 0.3s ease-out;
    color: var(--ho-text-body);
}

@keyframes hoModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ho-auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ho-text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ho-auth-modal-close:hover {
    background: var(--ho-bg-light);
    color: var(--ho-text-body);
}

.ho-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--ho-border-color);
}

.ho-auth-step {
    display: none;
    animation: hoFadeIn 0.3s ease-out;
}

.ho-auth-step.active {
    display: block;
}

@keyframes hoFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.ho-auth-tab-content h2,
.ho-auth-step h2 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: var(--ho-text-body);
    text-align: center;
}

.ho-form-description {
    text-align: center;
    color: var(--ho-text-muted);
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.5;
}

/* User Identifier Display */
.ho-user-identifier-display {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--ho-primary);
    background: var(--ho-bg-light);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.ho-change-identifier {
    margin-left: 8px;
    font-size: 12px;
    color: var(--ho-text-muted);
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .ho-auth-modal-content {
        padding: 32px 24px;
        width: 95%;
        border-radius: 12px;
    }
    

    .ho-auth-tab-content h2 {
        font-size: 24px;
    }
}

/* Login Method Tabs */
.ho-login-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.ho-login-method-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--ho-bg-light);
    border: 2px solid var(--ho-border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--ho-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.ho-login-method-tab:hover {
    border-color: var(--ho-border-color);
    background: var(--ho-bg-light);
    opacity: 0.9;
}

.ho-login-method-tab.active {
    background: var(--ho-bg-light); 
    border-color: var(--ho-primary);
    color: var(--ho-primary);
}

.ho-login-method-content {
    display: none;
}

.ho-login-method-content.active {
    display: block;
}

.ho-auth-form {
    margin-top: 24px;
}

.ho-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ho-text-muted);
}

.ho-form-footer {
    margin: 16px 0;
    text-align: center;
}

.ho-forgot-password-link,
.ho-back-to-login,
.ho-resend-otp-link {
    background: none;
    border: none;
    color: var(--ho-primary);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 0;
}

.ho-forgot-password-link:hover,
.ho-back-to-login:hover,
.ho-resend-otp-link:hover {
    color: var(--ho-primary-hover);
}

/* Messages */
.ho-form-message {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}
.ho-form-message.success {
    background: #dcfce7; /* Keep light green for success? Or use semantic? We don't have semantic success yet. */
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.ho-form-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* OTP Sent Message */
.ho-otp-sent-message {
    text-align: center;
    margin-bottom: 24px;
}

.ho-otp-sent-message svg {
    margin-bottom: 12px;
}

.ho-otp-sent-message p {
    margin: 0;
    color: #22c55e;
    font-weight: 600;
}

/* Generic Alerts */
.ho-alert-success {
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
}

.ho-alert-error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
}

/* Toast Notifications */
.ho-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.ho-toast.ho-toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.ho-toast-success { background: #16a34a; }
.ho-toast-error { background: #dc2626; border: 1px solid #b91c1c; }
.ho-toast-warning { background: #f59e0b; color: #fff;}


