/* ================================================================
   Dreamy Systems — Bento / Asymmetric / Light Design
   ================================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --white: #ffffff;
    --surface: #f8fafc;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --indigo: #4f46e5;
    --indigo-light: #6366f1;
    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;

    --emerald: #10b981;
    --emerald-50: #ecfdf5;
    --amber-50: #fffbeb;
    --amber-400: #fbbf24;
    --rose-50: #fff1f2;
    --rose-400: #fb7185;
    --sky-50: #f0f9ff;
    --sky-400: #38bdf8;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 16px;
    --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--slate-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.highlight {
    color: var(--indigo);
    text-shadow: 0 0 20px rgba(79, 70, 229, 0.35), 0 0 40px rgba(79, 70, 229, 0.15);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.2s;
}

.header.scrolled {
    box-shadow: 0 1px 0 var(--slate-200);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--indigo);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--slate-900);
}

/* Nav */
.nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate-500);
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--slate-900);
    background: var(--slate-50);
}

.btn-header {
    margin-left: 8px;
    flex-shrink: 0;
    background: var(--indigo);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease);
    display: inline-flex;
    align-items: center;
}

.btn-header:hover {
    background: var(--indigo-light);
}

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-burger.active span:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-burger.active span:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.nav-overlay-links a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--slate-900);
    transition: color 0.2s;
}

.nav-overlay-links a:hover {
    color: var(--indigo);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.btn-primary {
    background: var(--indigo);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--indigo-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-ghost {
    background: var(--slate-100);
    color: var(--slate-700);
}

.btn-ghost:hover {
    background: var(--slate-200);
}

.btn-white {
    background: var(--white);
    color: var(--indigo);
    font-weight: 600;
}

.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* ---------- Hero — Split ---------- */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: var(--white);
}

.hero-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--indigo-50) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--indigo);
    background: var(--indigo-50);
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--slate-900);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Bento hero visual */
.bento-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
}

.bento-card {
    border-radius: var(--radius);
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    position: relative;
    overflow: hidden;
}

.bento-terminal {
    grid-column: 1 / -1;
    background: var(--slate-900);
    color: var(--slate-400);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.9;
    border: none;
}

.bento-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.bento-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bento-dots span:nth-child(1) { background: #ef4444; }
.bento-dots span:nth-child(2) { background: #fbbf24; }
.bento-dots span:nth-child(3) { background: #22c55e; }

.bento-terminal code {
    display: block;
}

.code-green { color: #22c55e; }
.code-blue { color: #60a5fa; }
.code-muted { color: var(--slate-500); }

.bento-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.bento-big {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1;
}

.bento-big small {
    font-size: 0.6em;
    color: var(--indigo);
}

.bento-stack .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--indigo);
    background: var(--indigo-50);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ---------- Services — Bento Grid ---------- */
.section-services {
    padding: 100px 0;
    background: var(--surface);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
}

.bento-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.svc {
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.svc:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.svc i {
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: block;
}

.svc h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.svc p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.svc-large {
    grid-column: 1 / 3;
    grid-row: 1;
}

.svc-large p {
    max-width: 460px;
}

/* Service card colors */
.svc-indigo { background: var(--indigo-50); }
.svc-indigo i { color: var(--indigo); }

.svc-emerald { background: var(--emerald-50); }
.svc-emerald i { color: var(--emerald); }

.svc-amber { background: var(--amber-50); }
.svc-amber i { color: var(--amber-400); }

.svc-rose { background: var(--rose-50); }
.svc-rose i { color: var(--rose-400); }

.svc-sky { background: var(--sky-50); }
.svc-sky i { color: var(--sky-400); }

/* ---------- Process — Timeline ---------- */
.section-process {
    padding: 100px 0;
    background: var(--white);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    padding-top: 40px;
}

.timeline-line {
    position: absolute;
    top: 55px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--slate-200);
}

.timeline-step {
    text-align: center;
    position: relative;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--indigo);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.timeline-step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--slate-900);
}

.timeline-step p {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.6;
    max-width: 200px;
    margin: 0 auto;
}

/* ---------- CTA — Floating Card ---------- */
.section-cta {
    padding: 80px 0 120px;
    background: var(--white);
}

.cta-card {
    background: linear-gradient(135deg, var(--indigo) 0%, #7c3aed 100%);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-card p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--slate-800);
    color: var(--slate-400);
}

.footer-top {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand .logo-icon {
    background: var(--indigo);
    color: var(--white);
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.footer-brand p {
    width: 100%;
    font-size: 0.85rem;
    margin-top: -4px;
    padding-left: 42px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--slate-400);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-email a {
    font-size: 0.85rem;
    color: var(--slate-400);
    transition: color 0.2s;
}

.footer-email a:hover {
    color: var(--indigo-light);
}

.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--slate-500);
}

/* ---------- Animations ---------- */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up { transform: translateY(30px); }

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
    opacity: 1;
    transform: translate(0);
}

/* Stagger for timeline steps */
.timeline-step.reveal-up:nth-child(2) { transition-delay: 0s; }
.timeline-step.reveal-up:nth-child(3) { transition-delay: 0.1s; }
.timeline-step.reveal-up:nth-child(4) { transition-delay: 0.2s; }
.timeline-step.reveal-up:nth-child(5) { transition-delay: 0.3s; }

/* Stagger for service cards */
.bento-services .svc:nth-child(1) { transition-delay: 0s; }
.bento-services .svc:nth-child(2) { transition-delay: 0.08s; }
.bento-services .svc:nth-child(3) { transition-delay: 0.16s; }
.bento-services .svc:nth-child(4) { transition-delay: 0.24s; }
.bento-services .svc:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .bento-services {
        grid-template-columns: 1fr 1fr;
    }

    .svc-large {
        grid-column: 1 / -1;
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .timeline-line {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav, .btn-header {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .header-inner {
        height: 56px;
    }

    .hero {
        padding: 100px 0 64px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .bento-hero {
        grid-template-columns: 1fr;
    }

    .bento-services {
        grid-template-columns: 1fr;
    }

    .svc-large {
        grid-column: 1;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 0;
    }

    .section-services,
    .section-process {
        padding: 72px 0;
    }

    .cta-card {
        padding: 48px 28px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .bento-card {
        padding: 16px;
    }

    .bento-terminal {
        font-size: 0.7rem;
    }
}

/* ---------- Header Actions ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    flex-shrink: 0;
}

.header-actions .btn-header {
    margin-left: 0;
}

.btn-login {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--indigo);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--indigo);
    background: transparent;
    transition: all 0.25s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--indigo);
    color: var(--white);
}

/* ---------- Auth Pages ---------- */
.auth-section {
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--surface);
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 48px 40px;
}

.auth-card h1 {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--slate-900);
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--slate-500);
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-700);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--slate-900);
    background: var(--white);
}

.form-group input:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder {
    color: var(--slate-400);
}

.form-check {
    flex-direction: row;
    align-items: center;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--slate-500);
    cursor: pointer;
}

.check-label input[type="checkbox"] {
    accent-color: var(--indigo);
    width: 16px;
    height: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.auth-link {
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-top: 24px;
}

.auth-link a {
    color: var(--indigo);
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link a:hover {
    color: var(--indigo-light);
}

/* Microsoft 365 login button */
.btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.btn-microsoft:hover {
    border-color: var(--slate-400);
    background: var(--slate-50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-microsoft svg {
    flex-shrink: 0;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

.auth-divider span {
    font-size: 0.8rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-actions .btn-ghost {
    text-align: center;
    justify-content: center;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.alert p {
    margin: 0;
    line-height: 1.5;
}

.alert p + p {
    margin-top: 4px;
}

.alert-error {
    background: var(--rose-50);
    color: #be123c;
    border: 1px solid rgba(251, 113, 133, 0.3);
}

.alert-success {
    background: var(--emerald-50);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Dashboard ---------- */
.dashboard-section {
    padding: 140px 0 100px;
    min-height: 100vh;
    background: var(--surface);
}

.dashboard-header {
    margin-bottom: 28px;
}

.dashboard-header h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: var(--slate-500);
}

/* Stat cards row */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.dash-card-full {
    margin-bottom: 20px;
}

.dash-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-card-link-bottom {
    text-align: center;
    padding-top: 4px;
}

.dash-ticket-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.dash-ticket-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.dash-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 28px 0;
}

.dash-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--indigo);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dash-card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 2px;
}

.text-muted {
    font-size: 0.85rem;
    color: var(--slate-500);
}

.dash-card-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--slate-700);
}

.dash-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-500);
    font-size: 0.85rem;
}

.dash-label i {
    width: 16px;
    text-align: center;
    color: var(--slate-400);
}

.dash-card-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

.btn-ghost-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: #dc2626;
    background: transparent;
    border: 1.5px solid #fecaca;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* ---------- Mobile nav auth ---------- */
.nav-overlay-form {
    display: block;
}

.nav-overlay-logout {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    transition: opacity 0.2s;
}

.nav-overlay-logout:hover {
    opacity: 0.7;
}

/* ---------- Auth Responsive ---------- */
@media (max-width: 768px) {
    .header-actions {
        display: none;
    }

    .auth-card {
        padding: 36px 24px;
        margin: 0 8px;
    }

    .auth-section {
        padding: 100px 0 64px;
    }

    .dashboard-section {
        padding: 100px 0 64px;
    }

    .dash-card-header {
        padding: 20px 20px 0;
    }

    .dash-card-body {
        padding: 20px;
    }

    .dash-card-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .dash-card-footer .btn,
    .dash-card-footer .btn-ghost-danger {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dash-services-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   Admin Panel
   ================================================================ */

.admin-body {
    background: var(--surface);
    display: flex;
    min-height: 100vh;
}

/* ---------- Admin Sidebar ---------- */
.admin-sidebar {
    width: 240px;
    background: var(--slate-900);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s var(--ease);
}

.admin-sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.admin-logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
}

.admin-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--slate-400);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}

/* Admin nav */
.admin-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate-400);
    transition: all 0.2s;
}

.admin-nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav-link.active {
    color: var(--white);
    background: var(--indigo);
}

.admin-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.admin-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-body);
    text-align: left;
}

/* ---------- Admin Main ---------- */
.admin-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--slate-700);
    cursor: pointer;
    padding: 4px;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--slate-500);
}

.admin-breadcrumb a {
    color: var(--slate-500);
    transition: color 0.2s;
}

.admin-breadcrumb a:hover {
    color: var(--indigo);
}

.admin-breadcrumb span:last-child {
    color: var(--slate-900);
    font-weight: 500;
}

.admin-breadcrumb i {
    font-size: 0.6rem;
    color: var(--slate-400);
}

.admin-header-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--indigo);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
}

.admin-header-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-700);
}

.admin-content {
    flex: 1;
    padding: 28px;
}

/* ---------- Stats Cards ---------- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-icon-indigo {
    background: var(--indigo-50);
    color: var(--indigo);
}

.stat-icon-emerald {
    background: var(--emerald-50);
    color: var(--emerald);
}

.stat-icon-amber {
    background: var(--amber-50);
    color: var(--amber-400);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--slate-500);
    display: block;
    margin-top: 4px;
}

/* ---------- Admin Panels ---------- */
.admin-panel {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-900);
}

.panel-body {
    padding: 0;
}

.panel-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: center;
}

/* ---------- Admin Tables ---------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table thead {
    background: var(--slate-50);
}

.admin-table th {
    padding: 12px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 20px;
    border-top: 1px solid var(--slate-100);
    color: var(--slate-700);
}

.admin-table tbody tr:hover {
    background: var(--slate-50);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--slate-900);
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--indigo);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.table-empty {
    text-align: center;
    color: var(--slate-400);
    padding: 40px 20px !important;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-indigo {
    background: var(--indigo-50);
    color: var(--indigo);
}

.badge-slate {
    background: var(--slate-100);
    color: var(--slate-500);
}

.badge-emerald {
    background: var(--emerald-50);
    color: var(--emerald);
}

.badge-amber {
    background: var(--amber-50);
    color: #d97706;
}

.badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.badge-rose {
    background: var(--rose-50);
    color: var(--rose-400);
}

/* ---------- Icon buttons ---------- */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: var(--slate-500);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: var(--indigo);
    color: var(--indigo);
    background: var(--indigo-50);
}

.btn-icon-danger {
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: var(--slate-500);
}

.btn-icon-danger:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

.btn-sm {
    font-size: 0.82rem;
    padding: 7px 14px;
}

/* ---------- Search form ---------- */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap i {
    position: absolute;
    left: 12px;
    color: var(--slate-400);
    font-size: 0.82rem;
}

.search-input-wrap input {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 8px 12px 8px 34px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    outline: none;
    width: 260px;
    transition: border-color 0.2s;
    color: var(--slate-900);
}

.search-input-wrap input:focus {
    border-color: var(--indigo);
}

/* ---------- Admin form ---------- */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

.admin-form .form-group input[type="text"],
.admin-form .form-group input[type="email"] {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--slate-900);
    background: var(--white);
    width: 100%;
}

.admin-form .form-group input:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Settings ---------- */
.settings-grid {
    display: flex;
    flex-direction: column;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--slate-100);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--slate-500);
}

.setting-label i {
    width: 18px;
    text-align: center;
    color: var(--slate-400);
}

.setting-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate-900);
}

/* ---------- Admin header button in main nav ---------- */
.btn-admin {
    border-color: var(--emerald);
    color: var(--emerald);
}

.btn-admin:hover {
    background: var(--emerald);
    color: var(--white);
}

/* ---------- Pagination ---------- */
.panel-footer nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.panel-footer nav span,
.panel-footer nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
}

.panel-footer nav a {
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
}

.panel-footer nav a:hover {
    border-color: var(--indigo);
    color: var(--indigo);
}

.panel-footer nav span[aria-current="page"] span,
.panel-footer nav .active span {
    background: var(--indigo);
    color: var(--white);
    border-radius: 8px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-footer nav span[aria-disabled="true"] span {
    color: var(--slate-400);
}

/* ---------- Approve / Reject buttons ---------- */
.btn-approve {
    background: var(--emerald);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-approve:hover {
    background: #059669;
}

.btn-reject {
    background: transparent;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-reject:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* ---------- Nav badge (pending count) ---------- */
.nav-badge {
    margin-left: auto;
    background: #dc2626;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* ---------- Stat card link ---------- */
.stat-card-link {
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stat-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.stat-icon-rose {
    background: var(--rose-50);
    color: var(--rose-400);
}

/* ---------- Pending page icon ---------- */
.pending-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--amber-50);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* ---------- Admin stats 5 columns ---------- */
.admin-stats {
    grid-template-columns: repeat(5, 1fr);
}

/* ---------- Admin Responsive ---------- */
@media (max-width: 900px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-sidebar-close {
        display: block;
    }

    .admin-burger {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px 16px;
    }

    .admin-header {
        padding: 0 16px;
    }

    .admin-header-name {
        display: none;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
    }

    .search-form {
        flex-wrap: wrap;
    }

    .search-input-wrap input {
        width: 100%;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SERVICES & TICKETS
   ========================================= */

/* ---------- Badge sky ---------- */
.badge-sky {
    background: var(--sky-50);
    color: var(--sky-400);
}

/* ---------- Stat icon sky ---------- */
.stat-icon-sky {
    background: var(--sky-50);
    color: var(--sky-400);
}

/* ---------- Service icon ---------- */
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-icon-sm {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.service-icon-indigo { background: rgba(79, 70, 229, 0.1); color: var(--indigo); }
.service-icon-emerald { background: rgba(16, 185, 129, 0.1); color: var(--emerald); }
.service-icon-amber { background: rgba(251, 191, 36, 0.15); color: #d97706; }
.service-icon-rose { background: var(--rose-50); color: var(--rose-400); }
.service-icon-sky { background: var(--sky-50); color: var(--sky-400); }

.service-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Service preview (form) ---------- */
.service-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    font-weight: 600;
    color: var(--slate-700);
}

/* ---------- Form row (2 cols) ---------- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--slate-400);
}

/* ---------- Admin form textarea/select ---------- */
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--slate-700);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.admin-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* ---------- Table link ---------- */
.table-link {
    color: var(--indigo);
    text-decoration: none;
    font-weight: 500;
}

.table-link:hover {
    text-decoration: underline;
}

/* ---------- User show grid ---------- */
.user-show-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.user-show-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
}

.dash-avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    border-radius: 16px;
}

.user-show-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.user-show-badges {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* ---------- Assigned services list ---------- */
.assigned-services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.assigned-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--slate-100);
}

.assigned-service-item:last-child {
    border-bottom: none;
}

.assigned-service-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.assigned-service-info strong {
    font-size: 0.9rem;
    color: var(--slate-700);
    margin-right: 8px;
}

.assigned-service-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 8px;
}

/* ---------- Dashboard services ---------- */
.dash-services {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
}

.dash-service-item:last-child {
    border-bottom: none;
}

.dash-service-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-service-info strong {
    font-size: 0.9rem;
    color: var(--slate-700);
}

/* ---------- Dashboard tickets ---------- */
.dash-tickets {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--slate-100);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.dash-ticket-item:last-child {
    border-bottom: none;
}

.dash-ticket-item:hover {
    background: var(--surface);
    margin: 0 -28px;
    padding: 14px 28px;
    border-radius: 8px;
}

.dash-ticket-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-ticket-info strong {
    font-size: 0.9rem;
    color: var(--slate-700);
}

.ticket-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--slate-400);
}

.empty-state-sm {
    text-align: center;
    padding: 20px 0;
}

/* ---------- Tickets list (client) ---------- */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

.ticket-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ticket-card:hover {
    border-color: var(--indigo);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}

.ticket-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ticket-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-card-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
}

.ticket-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Ticket form card (client) ---------- */
.ticket-form-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 700px;
}

.ticket-form .form-group {
    margin-bottom: 16px;
}

.ticket-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-600);
    margin-bottom: 6px;
}

.ticket-form input[type="text"],
.ticket-form textarea,
.ticket-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--slate-700);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ticket-form input:focus,
.ticket-form textarea:focus,
.ticket-form select:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ticket-form textarea {
    resize: vertical;
}

.ticket-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.ticket-form .form-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

/* ---------- Ticket detail (client) ---------- */
/* ---------- Ticket layout (client) ---------- */
.ticket-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.ticket-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-info-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.ticket-info-card h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-100);
}

.ticket-info-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-body .ticket-info-rows {
    padding: 20px 24px;
}

.panel-body .ticket-original-description {
    padding: 20px 24px;
}

.ticket-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ticket-info-label {
    font-size: 0.82rem;
    color: var(--slate-500);
    font-weight: 500;
    white-space: nowrap;
}

.ticket-info-value {
    font-size: 0.85rem;
    color: var(--slate-700);
    text-align: right;
}

.ticket-conversation-main {
    min-width: 0;
}

.ticket-conv-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 16px;
}

.ticket-original-description {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--slate-600);
}

.ticket-description-block {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.ticket-description-block h3 {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-100);
}

.ticket-empty-conv {
    text-align: center;
    padding: 32px 20px;
    color: var(--slate-400);
}

.ticket-empty-conv i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.ticket-empty-conv p {
    font-size: 0.88rem;
}

.ticket-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-description {
    padding: 24px 28px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--slate-500);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--indigo);
}

/* ---------- Ticket replies ---------- */
.ticket-replies-section {
    padding: 24px 28px;
}

.ticket-replies-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 16px;
}

.ticket-replies {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.ticket-reply {
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--slate-100);
}

.ticket-reply-client {
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.15);
    border-left: 3px solid var(--emerald);
}

.ticket-reply-admin {
    background: rgba(79, 70, 229, 0.04);
    border-color: rgba(79, 70, 229, 0.1);
    border-left: 3px solid var(--indigo);
}

.avatar-admin {
    background: var(--indigo) !important;
    color: var(--white) !important;
}

.avatar-client {
    background: var(--emerald) !important;
    color: var(--white) !important;
}

.ticket-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ticket-reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-reply-author strong {
    font-size: 0.88rem;
    color: var(--slate-700);
}

.table-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    border-radius: 7px;
}

.ticket-reply-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--slate-700);
}

.ticket-reply-form {
    padding-top: 16px;
    border-top: 1px solid var(--slate-100);
}

.ticket-reply-form-top {
    border-top: none;
    padding-top: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--slate-100);
}

.ticket-reply-form .form-group {
    margin-bottom: 12px;
}

.ticket-reply-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-600);
    margin-bottom: 6px;
}

.ticket-reply-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--slate-700);
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ticket-reply-form textarea:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ticket-closed-notice {
    text-align: center;
    padding: 16px;
    background: var(--slate-50);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--slate-500);
}

.ticket-closed-notice i {
    margin-right: 6px;
}

/* ---------- Ticket attachments ---------- */
.ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ticket-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--slate-600);
    text-decoration: none;
    transition: all 0.15s;
}

.ticket-attachment:hover {
    background: var(--indigo-50);
    border-color: rgba(79, 70, 229, 0.2);
    color: var(--indigo);
}

.ticket-attachment i {
    font-size: 0.85rem;
}

.ticket-attachment .fa-image {
    color: var(--emerald);
}

.ticket-attachment .fa-file-pdf {
    color: #ef4444;
}

.ticket-attachment-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-attachment-size {
    color: var(--slate-400);
    font-size: 0.72rem;
}

.ticket-reply-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-attach {
    cursor: pointer;
}

.file-input-hidden {
    display: none;
}

.file-list-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.file-list-preview:empty {
    display: none;
}

.file-list-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--indigo-50);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--indigo);
}

.panel-body .ticket-attachments {
    padding: 0 24px 20px;
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

.empty-state i {
    font-size: 2.2rem;
    color: var(--slate-300);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--slate-500);
    margin-bottom: 16px;
}

.pagination-wrap {
    margin-top: 20px;
}

/* ---------- Ticket admin show grid ---------- */
.ticket-show-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.ticket-admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-main {
    grid-column: 1;
    grid-row: 1;
}

.ticket-sidebar {
    grid-column: 2;
    grid-row: 1;
}

.ticket-conversation {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-conv-body {
    padding: 24px;
}

/* ---------- Filters form (admin tickets) ---------- */
.panel-header-filters {
    flex-wrap: wrap;
    gap: 10px;
}

.filters-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filters-form select {
    padding: 7px 12px;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--slate-700);
    background: var(--white);
    cursor: pointer;
}

.filters-form select:focus {
    outline: none;
    border-color: var(--indigo);
}

/* ---------- Assigned service cards (admin) ---------- */
.assigned-service-card {
    border-bottom: 1px solid var(--slate-100);
    padding: 16px 20px;
}

.assigned-service-card:last-child {
    border-bottom: none;
}

.assigned-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.assigned-service-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 48px;
}

.assigned-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--slate-600);
}

.assigned-detail-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--slate-400);
    min-width: 90px;
    font-size: 0.8rem;
}

.assigned-detail-label i {
    width: 14px;
    text-align: center;
}

/* ---------- File input ---------- */
.file-input {
    display: block;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--slate-700);
    padding: 8px 0;
}

.file-input::file-selector-button {
    padding: 8px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    background: var(--surface);
    color: var(--slate-700);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s;
}

.file-input::file-selector-button:hover {
    border-color: var(--indigo);
    color: var(--indigo);
    background: var(--indigo-50);
}

.text-required {
    color: #dc2626;
}

/* ---------- Admin form URL input ---------- */
.admin-form .form-group input[type="url"],
.admin-form .form-group input[type="date"] {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--slate-900);
    background: var(--white);
    width: 100%;
}

.admin-form .form-group input[type="url"]:focus,
.admin-form .form-group input[type="date"]:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ---------- Dashboard service cards (client) ---------- */
.dash-card-wide {
    grid-column: 1 / -1;
}

.dash-services-detailed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-service-card {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.dash-service-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
}

.dash-service-card-title {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-service-card-title strong {
    font-size: 0.95rem;
    color: var(--slate-800);
}

.dash-service-type {
    font-size: 0.78rem;
    color: var(--slate-400);
    margin-top: 2px;
}

.dash-service-card-body {
    padding: 16px 20px;
}

.dash-service-details {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--slate-600);
    margin-bottom: 12px;
}

.dash-service-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-service-link,
.dash-service-date,
.dash-service-contract {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.dash-service-link {
    color: var(--indigo);
    font-weight: 500;
    text-decoration: none;
}

.dash-service-link:hover {
    text-decoration: underline;
}

.dash-service-date {
    color: var(--slate-400);
}

.dash-service-contract {
    color: #dc2626;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 10px;
    background: var(--rose-50);
    border-radius: 6px;
    transition: all 0.15s;
}

.dash-service-contract:hover {
    background: #fecdd3;
}

/* ---------- Responsive: Services & Tickets ---------- */
@media (max-width: 900px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-show-grid {
        grid-template-columns: 1fr;
    }

    .ticket-show-grid {
        grid-template-columns: 1fr;
    }

    .ticket-admin-sidebar {
        order: 2;
    }

    .ticket-conversation {
        order: 1;
    }

    .ticket-sidebar {
        grid-column: 1;
        grid-row: auto;
    }

    .ticket-layout {
        grid-template-columns: 1fr;
    }

    .ticket-info-sidebar {
        order: 2;
    }

    .ticket-conversation-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .ticket-form-card {
        padding: 20px;
    }

    .ticket-detail-header {
        padding: 16px 20px;
    }

    .ticket-description {
        padding: 16px 20px;
    }

    .ticket-replies-section {
        padding: 16px 20px;
    }

    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .assigned-service-details {
        padding-left: 0;
    }

    .dash-service-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .emergency-contact-row {
        flex-direction: column;
        align-items: stretch;
    }

    .emergency-contact-row .btn-icon {
        align-self: flex-end;
    }
}

/* ---------- Emergency Contacts ---------- */
.emergency-contact-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--slate-50, #f8fafc);
}

.emergency-contact-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.emergency-contact-row .btn-icon {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== Quotes / Devis ===== */
.quote-item-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--slate-50, #f8fafc);
}

.quote-item-row .form-group {
    margin-bottom: 0;
}

.quote-item-desc {
    flex: 3;
}

.quote-item-qty {
    flex: 1;
    min-width: 80px;
}

.quote-item-price {
    flex: 1.2;
    min-width: 100px;
}

.quote-item-tva {
    flex: 0.8;
    min-width: 70px;
}

.quote-item-row .btn-icon {
    flex-shrink: 0;
    margin-bottom: 2px;
}

.quote-totals {
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    max-width: 320px;
    margin-left: auto;
}

.quote-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--slate-600);
}

.quote-total-row + .quote-total-row {
    border-top: 1px solid var(--border);
}

.quote-total-main {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    padding-top: 10px;
    margin-top: 4px;
    border-top: 2px solid var(--indigo-500) !important;
}

.quote-total-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* Quote show (admin) */
.quote-show-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px;
}

.quote-detail-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-100);
    font-size: 0.9rem;
}

.quote-detail-row:last-child {
    border-bottom: none;
}

.quote-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-500);
    flex-shrink: 0;
}

.quote-detail-label i {
    width: 16px;
    text-align: center;
    color: var(--slate-400);
}

.quote-show-totals {
    display: flex;
    justify-content: flex-end;
    padding: 20px 20px 20px 20px;
    border-top: 1px solid var(--slate-100);
}

.quote-show-totals-inner {
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 24px;
    min-width: 300px;
}

.quote-show-actions {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.quote-create-service-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.quote-service-created {
    color: var(--emerald-600, #059669);
    font-size: 0.9rem;
    font-weight: 500;
}

.quote-service-created i {
    margin-right: 4px;
}

.quote-rejected-info {
    color: var(--slate-500);
    font-size: 0.9rem;
}

.quote-rejected-info i {
    margin-right: 4px;
    color: var(--slate-400);
}

.quote-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.quote-client-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.quote-client-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.quote-client-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.quote-client-table tbody tr:last-child td {
    border-bottom: none;
}

.quote-table-wrap {
    overflow-x: auto;
}

.quote-total-row-table td {
    border-bottom: none !important;
    padding-top: 8px;
    padding-bottom: 4px;
}

.quote-grand-total td {
    padding-top: 12px !important;
    border-top: 2px solid var(--indigo-500) !important;
}

.text-emerald { color: var(--emerald-500); }
.text-rose { color: var(--rose-500); }

@media (max-width: 768px) {
    .quote-item-row {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-item-row .btn-icon {
        align-self: flex-end;
    }

    .quote-totals {
        max-width: 100%;
    }

    .quote-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .quote-detail-label {
        min-width: unset;
    }

    .quote-show-totals-inner {
        min-width: unset;
        width: 100%;
    }

    .quote-show-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .quote-create-service-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
}
