/**
 * HOSPILLO SaaS UI — new surfaces only (Batch 1+).
 * Scoped with .hs-* prefix to avoid clashes with legacy theme CSS.
 */

:root {
    --hs-primary: #0f766e;
    --hs-primary-dark: #0d5f58;
    --hs-primary-soft: #ecfdf5;
    --hs-surface: #ffffff;
    --hs-surface-muted: #f8fafc;
    --hs-border: #e2e8f0;
    --hs-text: #0f172a;
    --hs-text-muted: #64748b;
    --hs-success: #059669;
    --hs-warning: #d97706;
    --hs-danger: #dc2626;
    --hs-info: #0284c7;
    --hs-radius: 12px;
    --hs-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hs-page {
    color: var(--hs-text);
}

.hs-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hs-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.hs-page-subtitle {
    margin: 0;
    color: var(--hs-text-muted);
    font-size: 0.95rem;
    max-width: 52rem;
    line-height: 1.5;
}

.hs-breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--hs-text-muted);
}

.hs-breadcrumb a {
    color: var(--hs-primary);
    text-decoration: none;
}

.hs-card {
    background: var(--hs-surface);
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow);
}

.hs-card-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--hs-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hs-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.hs-card-body {
    padding: 1.25rem;
}

.hs-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hs-stat-card {
    background: var(--hs-surface);
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--hs-shadow);
}

.hs-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hs-text-muted);
    margin-bottom: 0.35rem;
}

.hs-stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--hs-text);
}

.hs-stat-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--hs-text-muted);
}

.hs-alert {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.hs-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.hs-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.hs-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.hs-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.hs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hs-badge-success { background: #d1fae5; color: #065f46; }
.hs-badge-warning { background: #fef3c7; color: #92400e; }
.hs-badge-danger { background: #fee2e2; color: #991b1b; }
.hs-badge-info { background: #dbeafe; color: #1d4ed8; }
.hs-badge-muted { background: #f1f5f9; color: #475569; }

.hs-form-section {
    margin-bottom: 1.25rem;
}

.hs-form-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--hs-text);
}

.hs-field {
    margin-bottom: 1rem;
}

.hs-field label,
.hs-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--hs-text);
}

.hs-field .hs-help,
.hs-help {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--hs-text-muted);
    line-height: 1.4;
}

.hs-input,
.hs-select,
.hs-textarea {
    width: 100%;
    border: 1px solid var(--hs-border);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
    background: #fff;
    color: var(--hs-text);
}

.hs-input:focus,
.hs-select:focus,
.hs-textarea:focus {
    outline: none;
    border-color: var(--hs-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.hs-table-wrap {
    overflow-x: auto;
}

.hs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.hs-table th,
.hs-table td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--hs-border);
    text-align: left;
    vertical-align: middle;
}

.hs-table th {
    background: var(--hs-surface-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hs-text-muted);
}

.hs-table tbody tr:hover {
    background: #fafafa;
}

.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 10px;
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.hs-btn-primary {
    background: var(--hs-primary);
    color: #fff;
}

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

.hs-btn-secondary {
    background: #fff;
    border-color: var(--hs-border);
    color: var(--hs-text);
}

.hs-btn-danger {
    background: #fff;
    border-color: #fecaca;
    color: var(--hs-danger);
}

.hs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hs-tab {
    border: 1px solid var(--hs-border);
    background: #fff;
    color: var(--hs-text-muted);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.hs-tab.active {
    background: var(--hs-primary-soft);
    border-color: #99f6e4;
    color: var(--hs-primary-dark);
}

/* Admin hub chrome (grouped sidebar pages) */
.admin-hub-chrome {
    padding-top: 0.25rem;
}

.admin-hub-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hs-primary, #0f766e);
    margin-bottom: 0.35rem;
}

.admin-hub-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hs-text, #1e293b);
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.admin-hub-description {
    margin: 0 0 1rem;
    color: var(--hs-text-muted, #64748b);
    font-size: 0.9rem;
    max-width: 52rem;
}

.admin-hub-tab-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.admin-hub-tab-bar::-webkit-scrollbar {
    height: 6px;
}

.admin-hub-tab-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.admin-hub-tab {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--hs-border, #e2e8f0);
    background: #fff;
    color: var(--hs-text-muted, #64748b);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-hub-tab:hover {
    border-color: var(--hs-primary, #0f766e);
    color: var(--hs-primary, #0f766e);
}

.admin-hub-tab.is-active {
    background: var(--hs-primary, #0f766e);
    border-color: var(--hs-primary, #0f766e);
    color: #fff;
}

.hs-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--hs-text-muted);
}

.hs-wallet-banner {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    color: #fff;
    border-radius: var(--hs-radius);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
}

.hs-wallet-banner h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.hs-wallet-banner p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.hs-modal-note {
    background: var(--hs-surface-muted);
    border: 1px dashed var(--hs-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.hs-modal-note strong {
    color: var(--hs-text);
}

.hs-video-frame {
    min-height: 420px;
    background: #0f172a;
    border-radius: 0 0 var(--hs-radius) var(--hs-radius);
    overflow: hidden;
}

.hs-video-iframe {
    width: 100%;
    min-height: 70vh;
    border: none;
    display: block;
}

.hs-page .is-invalid {
    border-color: var(--hs-danger) !important;
}

.hs-modal-content .modal-header {
    border-bottom: 1px solid var(--hs-border);
    padding: 1.1rem 1.25rem;
}

.hs-modal-content .modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hs-text);
}

.hs-modal-content .modal-body {
    padding: 1.25rem;
}

.hs-modal-content .modal-footer {
    border-top: 1px solid var(--hs-border);
    padding: 1rem 1.25rem;
    justify-content: flex-end;
    gap: 0.5rem;
}

.hs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .hs-form-grid {
        grid-template-columns: 1fr;
    }
}

.hs-readonly-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hs-text);
}

.hs-timing-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--hs-border);
}

.hs-timing-row:last-child {
    border-bottom: none;
}

.hs-timing-day {
    min-width: 120px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hs-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hs-assist-steps .hs-stat-card {
    padding: 0.75rem 0.9rem;
}

.hs-assist-step-active {
    border-color: var(--hs-primary);
    background: var(--hs-primary-soft);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.hs-textarea {
    min-height: 100px;
    resize: vertical;
}

.hs-mock-video {
    min-height: 420px;
    background: linear-gradient(160deg, #0f172a 0%, #134e4a 100%);
}

.hs-video-frame {
    position: relative;
}

.hs-video-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hs-video-blur-label {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.position-relative {
    position: relative;
}


