/* Buka - Book anyone. Anywhere. In your language. */
:root {
    --brand-primary: #1a1a2e;
    --brand-secondary: #16213e;
    --brand-accent: #e94560;
    --brand-accent-hover: #c73650;
    --brand-accent-light: rgba(233, 69, 96, 0.08);
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #e1e5eb;
    --border-light: #f0f2f5;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-sm: 6px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --transition: 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--brand-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-xs {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--brand-primary);
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.header-nav a:hover {
    color: white;
    text-decoration: none;
}

.header-nav .btn {
    font-size: 0.85rem;
    padding: 8px 20px;
}

.tagline {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-left: 16px;
}

/* Provider header variant */
.header--provider {
    background: var(--brand-primary);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
    flex: 1;
    padding: 40px 0;
}

.main--flush {
    padding: 0;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
}

.card h2 {
    color: var(--brand-primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.card--hover {
    transition: transform var(--transition), box-shadow var(--transition);
}

.card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--flat {
    box-shadow: none;
    border: 1px solid var(--border);
}

/* ============================================
   HOMEPAGE / HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-search {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.hero-search input::placeholder {
    color: var(--text-muted);
}

.hero-search button {
    background: var(--brand-accent);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.hero-search button:hover {
    background: var(--brand-accent-hover);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.section {
    padding: 60px 0;
}

.section--alt {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--text);
    display: block;
    border: 1px solid var(--border-light);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    text-decoration: none;
    border-color: var(--brand-accent);
}

.category-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================
   PROVIDER CARDS (Marketplace)
   ============================================ */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.provider-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--text);
    display: block;
}

.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.provider-card-banner {
    height: 8px;
    background: var(--brand-accent);
}

.provider-card-body {
    padding: 24px;
}

.provider-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.provider-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.provider-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.provider-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.provider-card-type {
    font-size: 0.8rem;
    color: var(--text-light);
}

.provider-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.provider-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

.provider-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-how {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.step-how {
    padding: 20px;
}

.step-how-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

.step-how h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--brand-primary);
}

.step-how p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 28px;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-header {
    padding: 24px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.search-bar {
    display: flex;
    gap: 12px;
    max-width: 800px;
}

.search-bar input,
.search-bar select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    transition: border-color var(--transition);
    font-family: inherit;
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: var(--brand-accent);
}

.search-bar input {
    flex: 1;
}

.search-count {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 20px 0;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 8px;
}

/* ============================================
   BOOKING PAGE STEP INDICATOR
   ============================================ */
.steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--border);
    color: var(--text-light);
    transition: all var(--transition);
}

.step.active {
    background: var(--brand-accent);
    color: white;
}

.step.done {
    background: var(--success);
    color: white;
}

.step-divider {
    width: 30px;
    height: 2px;
    background: var(--border);
    align-self: center;
}

/* ============================================
   SERVICE CARDS (Booking page)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.service-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--card);
}

.service-card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.service-card.selected {
    border-color: var(--brand-accent);
    background: var(--brand-accent-light);
}

.service-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.service-card-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-card-duration {
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-accent);
}

/* Legacy duration cards (kept for compatibility) */
.duration-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.duration-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--card);
}

.duration-card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.duration-card.selected {
    border-color: var(--brand-accent);
    background: var(--brand-accent-light);
}

.duration-card .time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.duration-card .unit {
    font-size: 0.9rem;
    color: var(--text-light);
}

.duration-card .price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-accent);
    margin-top: 10px;
}

/* ============================================
   DATE PICKER & SLOTS
   ============================================ */
.date-picker-wrap {
    margin: 20px 0;
}

.date-picker-wrap input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    transition: border-color var(--transition);
}

.date-picker-wrap input[type="date"]:focus {
    outline: none;
    border-color: var(--brand-accent);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.slot-btn {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.slot-btn:hover {
    border-color: var(--brand-accent);
    background: var(--brand-accent-light);
}

.slot-btn.selected {
    border-color: var(--brand-accent);
    background: var(--brand-accent);
    color: white;
}

.no-slots {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    transition: border-color var(--transition);
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* ============================================
   PAYMENT METHOD
   ============================================ */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.payment-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.payment-card:hover {
    border-color: var(--brand-accent);
}

.payment-card.selected {
    border-color: var(--brand-accent);
    background: var(--brand-accent-light);
}

.payment-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.payment-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.arrangement-fields {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid var(--warning);
}

.arrangement-fields.visible {
    display: block;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    text-align: center;
    line-height: 1;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-accent-hover);
    color: white;
}

.btn-secondary {
    background: var(--brand-primary);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-accent);
    color: var(--brand-accent);
}

.btn-outline:hover {
    background: var(--brand-accent);
    color: white;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--brand-primary);
}

.btn-white {
    background: white;
    color: var(--brand-primary);
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
    color: var(--brand-primary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   CONFIRMATION
   ============================================ */
.confirmation-card {
    text-align: center;
    padding: 40px 30px;
}

.confirmation-card .check-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.confirmation-details {
    background: var(--bg);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.confirmation-details table {
    width: 100%;
}

.confirmation-details td {
    padding: 8px 0;
}

.confirmation-details td:first-child {
    color: var(--text-light);
    width: 40%;
}

.confirmation-details td:last-child {
    font-weight: 600;
}

/* ============================================
   TIMER
   ============================================ */
.timer-container {
    text-align: center;
    padding: 40px 20px;
}

.timer-display {
    font-size: 5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--brand-primary);
    margin: 30px 0;
    letter-spacing: 2px;
}

.timer-display.warning {
    color: var(--warning);
}

.timer-display.critical {
    color: var(--danger);
    animation: pulse 1s infinite;
}

.timer-progress {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.timer-progress-bar {
    height: 100%;
    background: var(--brand-accent);
    border-radius: 4px;
    transition: width 1s linear;
}

.timer-progress-bar.warning {
    background: var(--warning);
}

.timer-progress-bar.critical {
    background: var(--danger);
}

.timer-status {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   PROVIDER DASHBOARD
   ============================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 130px);
}

.dashboard-sidebar {
    background: var(--brand-primary);
    color: white;
    padding: 24px 0;
}

.sidebar-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.sidebar-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding: 0 16px;
    margin-bottom: 8px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    margin: 0 8px;
    transition: all var(--transition);
}

.sidebar-nav li a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.sidebar-nav li a.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.sidebar-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.dashboard-content {
    padding: 32px;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.dashboard-header h1 {
    font-size: 1.6rem;
    color: var(--brand-primary);
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-accent);
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Legacy alias */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* ============================================
   TIER BADGES
   ============================================ */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-simahla {
    background: #e9ecef;
    color: #6c757d;
}

.tier-qala {
    background: #d1ecf1;
    color: #0c5460;
}

.tier-pro {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #856404;
}

/* Creative Level Badges */
.tier-umfundi {
    background: #e9ecef;
    color: #6c757d;
}

.tier-osakhulayo {
    background: #d1ecf1;
    color: #0c5460;
}

.tier-osimamisile {
    background: #d4edda;
    color: #155724;
}

.tier-ingcweti {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #856404;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Creative Card */
.creative-card {
    transition: var(--transition);
    border: 2px solid transparent;
}

.creative-card:hover {
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* Status badges for creative request statuses */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-open { background: #d1ecf1; color: #0c5460; }
.status-matched { background: #e2e3f1; color: #383d6e; }
.status-accepted { background: #d4edda; color: #155724; }
.status-in_progress { background: #fff3cd; color: #856404; }
.status-delivered { background: #cce5ff; color: #004085; }
.status-revision_requested { background: #fff3cd; color: #856404; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-disputed { background: #f8d7da; color: #721c24; }
.status-submitted { background: #d1ecf1; color: #0c5460; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-pending_review { background: #fff3cd; color: #856404; }
.status-active { background: #d4edda; color: #155724; }
.status-suspended { background: #f8d7da; color: #721c24; }

.trial-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.trial-banner strong {
    font-weight: 700;
}

/* ============================================
   APPOINTMENTS LIST
   ============================================ */
.appointment-list {
    list-style: none;
}

.appointment-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.appointment-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-confirmed { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-completed { background: #d1ecf1; color: #0c5460; }
.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #e9ecef; color: #6c757d; }

/* ============================================
   SERVICES MANAGEMENT TABLE
   ============================================ */
.services-table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th,
.services-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.services-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    background: var(--bg);
}

.services-table td {
    font-size: 0.9rem;
}

.services-table tr:hover td {
    background: var(--brand-accent-light);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
    background: var(--success);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ============================================
   SETTINGS - COLOR PICKERS
   ============================================ */
.color-picker-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.color-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-item input[type="color"] {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}

.color-picker-item label {
    font-size: 0.85rem;
    font-weight: 600;
}

.brand-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0;
}

.brand-preview-header {
    padding: 16px 20px;
    color: white;
    font-weight: 600;
}

.brand-preview-body {
    padding: 20px;
    background: white;
}

.brand-preview-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================
   WORK HOURS CONFIG
   ============================================ */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.hours-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-item label {
    font-size: 0.85rem;
    min-width: 70px;
}

.hours-item input[type="time"] {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ============================================
   ADMIN PLATFORM DASHBOARD
   ============================================ */
.admin-providers-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-providers-table th,
.admin-providers-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-providers-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    background: var(--bg);
}

.admin-providers-table td {
    font-size: 0.9rem;
}

.admin-providers-table tr:hover td {
    background: var(--brand-accent-light);
}

/* ============================================
   AUTH FORMS
   ============================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 130px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.auth-card h2 {
    text-align: center;
    color: var(--brand-primary);
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-trial-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ============================================
   EXPLORE PAGE
   ============================================ */
.explore-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    padding: 48px 0 36px;
    text-align: center;
}

.explore-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.explore-header p {
    opacity: 0.8;
    font-size: 1rem;
}

/* ============================================
   LOADING / HTMX
   ============================================ */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--brand-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--brand-primary);
    color: rgba(255,255,255,0.6);
    padding: 15px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
}

.footer--powered {
    background: var(--bg);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    font-size: 0.8rem;
}

.footer--powered a {
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.text-accent { color: var(--brand-accent); }
.text-primary { color: var(--brand-primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .hero-search button {
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-how {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-content {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .header .container {
        flex-direction: column;
        gap: 8px;
    }

    .header-nav {
        gap: 16px;
    }

    .tagline {
        display: none;
    }
}

@media (max-width: 600px) {
    .duration-options,
    .payment-options {
        grid-template-columns: 1fr;
    }

    .admin-stats,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timer-display {
        font-size: 3.5rem;
    }

    .appointment-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .search-bar {
        flex-direction: column;
    }

    .auth-card {
        padding: 24px;
    }

    .color-picker-group {
        flex-direction: column;
    }
}
