:root {
    --bg: #f7faf9;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-soft: #ccfbf1;
    --accent-amber: #f59e0b;
    --accent-amber-soft: #fef3c7;
    --accent-blue: #0284c7;
    --accent-blue-soft: #e0f2fe;
    --accent-purple: #7c3aed;
    --accent-purple-soft: #f3e8ff;
    --accent-rose: #e11d48;
    --accent-rose-soft: #ffe4e6;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --success: #059669;
    --success-soft: #d1fae5;
    --info: #0284c7;
    --info-soft: #e0f2fe;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

.container-wide {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header & Navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    background: var(--surface-muted);
    color: var(--primary);
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface-muted);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
}

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

.mobile-menu-btn {
    display: none;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 0.9rem 1.25rem;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
    }
    .nav-links.open {
        display: flex;
    }
}

/* Hero Section */
.hero-band {
    background: radial-gradient(circle at top right, #ccfbf1 0%, #f7faf9 48%, #eff6ff 100%);
    padding: 3rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
    }
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-soft);
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-band h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-lead {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 58ch;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 600;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

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

.hero-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
}

.hero-mini-card {
    border-radius: 12px;
    padding: 0.9rem;
    font-size: 0.84rem;
}

.pastel-teal { background: #ecfdf5; color: #065f46; }
.pastel-amber { background: var(--accent-amber-soft); color: #92400e; }
.pastel-blue { background: var(--accent-blue-soft); color: #075985; }
.pastel-purple { background: var(--accent-purple-soft); color: #5b21b6; }
.pastel-rose { background: var(--accent-rose-soft); color: #9f1239; }

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.25rem;
}

.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.section-header h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    letter-spacing: -0.02em;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}

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

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.info-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
}

.info-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-tag {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* Generic Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.65rem;
}

/* 5-Step Booking Wizard */
.booking-section {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, #eff6ff 0%, #f7faf9 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stepper {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.step-pill {
    flex: 1;
    min-width: 110px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.15s;
}

.step-pill.active {
    background: var(--primary-soft);
    color: #0f766e;
    border-color: var(--primary);
}

.step-pill.completed {
    background: var(--success-soft);
    color: #065f46;
    border-color: #a7f3d0;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-pill.active .step-num {
    background: var(--primary);
    color: #fff;
}

.step-pill.completed .step-num {
    background: var(--success);
    color: #fff;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.service-select-card {
    text-align: left;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.service-select-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.service-select-card.selected {
    border-color: var(--primary);
    background: #f0fdfa;
}

.service-select-title {
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.service-select-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.service-select-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Interactive Calendar */
.calendar-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: var(--surface);
    max-width: 440px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.calendar-month-label {
    font-weight: 700;
    font-size: 1rem;
}

.cal-nav-btn {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.cal-nav-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    text-align: center;
}

.calendar-weekdays div {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 0.35rem;
}

.cal-day {
    height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--surface);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.12s;
}

.cal-day:hover:not(:disabled):not(.empty) {
    background: var(--primary-soft);
    color: #0f766e;
}

.cal-day.today {
    border-color: var(--primary);
    color: var(--primary);
}

.cal-day.selected {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary);
}

.cal-day:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: transparent;
}

.cal-day.empty {
    cursor: default;
}

/* Slot Groups */
.slot-group {
    margin-bottom: 1.1rem;
}

.slot-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.55rem;
}

.slot-btn {
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: #f0fdfa;
}

.slot-btn.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.slot-btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: line-through;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.req {
    color: var(--danger);
}

.hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.field-error {
    font-size: 0.8rem;
    color: var(--danger);
    min-height: 1em;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1.25rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.12s, opacity 0.15s;
}

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

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--surface-muted);
}

.btn-sm {
    padding: 0.38rem 0.72rem;
    font-size: 0.82rem;
    border-radius: 8px;
}

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

.btn-danger:hover:not(:disabled) {
    background: #fecaca;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-pending { background: var(--warning-soft); color: #92400e; }
.badge-confirmed, .badge-delivered, .badge-read { background: var(--success-soft); color: #065f46; }
.badge-sent { background: var(--info-soft); color: #075985; }
.badge-rescheduled { background: #ede9fe; color: #5b21b6; }
.badge-cancelled, .badge-failed { background: var(--danger-soft); color: #991b1b; }
.badge-test { background: #fef3c7; color: #92400e; }
.badge-production { background: var(--success-soft); color: #065f46; }

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-error { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: var(--success-soft); color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: var(--info-soft); color: #075985; border: 1px solid #bae6fd; }

/* Success Screen */
.success-box {
    text-align: center;
    padding: 0.75rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    display: inline-grid;
    place-items: center;
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

.ref-pill {
    display: inline-block;
    background: var(--surface-muted);
    border: 1.5px dashed var(--primary);
    color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 10px;
    margin: 0.5rem 0 1rem;
}

.summary-list {
    text-align: left;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 1rem 0 1.25rem;
    display: grid;
    gap: 0.65rem;
    font-size: 0.92rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.45rem;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2.75rem 0 1.75rem;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer h4 {
    color: #fff;
    margin: 0 0 0.75rem;
    font-size: 0.96rem;
}

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Admin Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

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

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.search-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.search-controls input { max-width: 260px; }
.search-controls select { max-width: 160px; }

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

th, td {
    text-align: left;
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--surface-muted);
}

.actions-cell {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 50;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none !important;
}

/* Redesigned Floating Chatbot Widget */
.kt-chat-launcher {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s, background 0.15s;
}

.kt-chat-launcher:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.kt-chat-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5eead4;
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
    animation: ktPulse 2s infinite;
}

@keyframes ktPulse {
    0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.kt-chat-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 5rem;
    width: min(400px, calc(100vw - 1.5rem));
    height: min(580px, calc(100vh - 6.5rem));
    z-index: 65;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ktSlideUp 0.18s ease-out;
}

@keyframes ktSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 639px) {
    .kt-chat-panel {
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }
}

.kt-chat-header {
    background: var(--primary);
    color: #fff;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.kt-chat-identity {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.kt-chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.kt-chat-header-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.kt-chat-header-sub {
    font-size: 0.74rem;
    opacity: 0.9;
}

.kt-chat-header-actions {
    display: flex;
    gap: 0.35rem;
}

.kt-chat-icon-btn {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.kt-chat-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.kt-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--surface-muted);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kt-msg {
    max-width: 86%;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.kt-msg-user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.kt-msg-bot {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.kt-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.1rem;
}

.kt-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: ktBounce 1.2s infinite ease-in-out;
}

.kt-typing span:nth-child(2) { animation-delay: 0.15s; }
.kt-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes ktBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.kt-msg-sources {
    margin-top: 0.5rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border);
    font-size: 0.74rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.kt-msg-sources a {
    color: var(--primary);
    text-decoration: none;
    background: var(--primary-soft);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.kt-msg-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.kt-action-btn {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 7px;
    padding: 0.3rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

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

.kt-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.kt-chip {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.kt-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.kt-chat-persistent-bar {
    padding: 0.45rem 0.75rem;
    background: #f0fdfa;
    border-top: 1px solid #ccfbf1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.kt-chat-form {
    display: flex;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.kt-chat-form input {
    flex: 1;
    padding: 0.52rem 0.75rem;
    font-size: 0.88rem;
}

/* Admin Dashboard Polish */
.admin-main {
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
}

.admin-login-card {
    max-width: 440px;
    margin: 3rem auto;
}

.admin-nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.admin-nav-btn.active {
    background: var(--primary-soft);
    color: #0f766e;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.empty-state {
    text-align: center;
    padding: 2.25rem 1rem !important;
    color: var(--text-muted);
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.wa-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
}

.wa-meta-item {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.88rem;
}

.wa-meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.wa-test-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.readonly-pill {
    padding: 0.68rem 0.85rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.demo-steps-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    display: grid;
    gap: 0.35rem;
}
