/* =========================================================
   ByteForge — style.css
   Dark, sharp, developer-tool aesthetic.
   ========================================================= */

:root {
    --bg: #0a0a0a;
    --bg-elev: #111113;
    --surface: rgba(255, 255, 255, 0.025);
    --surface-2: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f1f1f1;
    --text-muted: rgba(241, 241, 241, 0.62);
    --text-faint: rgba(241, 241, 241, 0.42);
    --accent: #06B6D4;
    --accent-soft: rgba(6, 182, 212, 0.16);
    --accent-glow: rgba(6, 182, 212, 0.35);
    --font-sans: "Sora", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --container: 1120px;
    --radius: 12px;
    --radius-sm: 8px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-soft);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.mono {
    font-family: var(--font-mono);
}

.accent {
    color: var(--accent);
}

.muted {
    color: var(--text-muted);
}

.small {
    font-size: 12px;
}

.hl {
    color: var(--text);
}


/* ===================== NAVBAR ===================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    transition: border-color 0.2s var(--ease);
}

.brand:hover .brand-mark {
    border-color: rgba(6, 182, 212, 0.4);
}

.brand-mark svg {
    width: 16px;
    height: 16px;
}

.brand-mark img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-cta {
    margin-left: 8px;
    padding: 8px 14px !important;
    border: 1px solid rgba(6, 182, 212, 0.4);
    background: var(--accent-soft);
    color: var(--accent) !important;
    font-weight: 500;
}

.nav-cta:hover {
    background: rgba(6, 182, 212, 0.22) !important;
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    padding: 0;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}


/* ===================== HERO ===================== */

.hero {
    position: relative;
    isolate: isolate;
    display: flex;
    align-items: center;
    min-height: 88vh;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 50% at 50% 0%, rgba(6, 182, 212, 0.10), transparent 60%), radial-gradient(40% 35% at 50% 100%, rgba(59, 130, 246, 0.06), transparent 70%);
}

.hero-inner {
    position: relative;
    padding: 96px 24px 120px;
    max-width: var(--container);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px 2px var(--accent-glow);
}

.hero-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text);
}

.hero-underline {
    position: relative;
    display: inline-block;
}

.hero-underline::after {
    content: "";
    position: absolute;
    inset: auto 0 6px 0;
    height: 8px;
    background: var(--accent-soft);
    filter: blur(0.5px);
    z-index: -1;
}

.hero-sub {
    margin: 24px 0 0;
    max-width: 640px;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent);
    color: #001014;
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.5), 0 8px 28px -10px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #08c4e2;
}

.btn-primary svg {
    transition: transform 0.2s var(--ease);
}

.btn-primary:hover svg {
    transform: translateX(2px);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: rgba(241, 241, 241, 0.85);
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text);
}

.hero-shell {
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-faint);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.caret {
    display: inline-block;
    width: 7px;
    height: 12px;
    background: rgba(241, 241, 241, 0.5);
    margin-left: 2px;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.nav-toggle span:nth-child(1) {
    top: 12px;
}

.nav-toggle span:nth-child(2) {
    top: 17px;
}

.nav-toggle span:nth-child(3) {
    top: 22px;
}

.nav-toggle.open span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}


/* ===================== SECTIONS / PRODUCTS ===================== */

.section {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-sub {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--border);
    background: rgba(17, 17, 19, 0.6);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at 50% 0%, rgba(6, 182, 212, 0.10), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(17, 17, 19, 1);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.18), 0 18px 40px -20px rgba(6, 182, 212, 0.35);
}

.card:hover::before {
    opacity: 1;
}

.card>* {
    position: relative;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    transition: border-color 0.3s var(--ease);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card:hover .card-icon {
    border-color: rgba(6, 182, 212, 0.45);
}

.card h3 {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
}

.card>p {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-foot {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card-cta svg {
    width: 14px;
    height: 14px;
}

.card:hover .card-cta {
    color: var(--accent);
    border-color: rgba(6, 182, 212, 0.4);
}


/* ===================== ABOUT ===================== */

.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
}

.about-card {
    padding: 32px;
    border: 1px solid var(--border);
    background: rgba(17, 17, 19, 0.6);
    border-radius: var(--radius);
}

.about-lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(241, 241, 241, 0.78);
}

.about-body {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.about-stats {
    margin: 32px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-stats dt {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-stats dd {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}


/* ===================== FOOTER ===================== */

.footer {
    padding: 56px 0 32px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-tagline {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--text-faint);
    max-width: 320px;
}

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

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.socials a svg {
    width: 16px;
    height: 16px;
}

.socials a:hover {
    color: var(--accent);
    border-color: rgba(6, 182, 212, 0.4);
    background: var(--surface-2);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}


/* ===================== BACK TO TOP ===================== */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(17, 17, 19, 0.85);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(17, 17, 19, 1);
}


/* ===================== REVEAL ANIMATIONS ===================== */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.cards .reveal:nth-child(1) {
    --d: 0ms;
}

.cards .reveal:nth-child(2) {
    --d: 80ms;
}

.cards .reveal:nth-child(3) {
    --d: 160ms;
}


/* ===================== RESPONSIVE ===================== */

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-block;
    }
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 24px 20px;
        background: rgba(10, 10, 10, 0.95);
        border-bottom: 1px solid var(--border);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    }
    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-links a {
        padding: 12px 12px;
    }
    .nav-cta {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 72px 0;
    }
    .hero-inner {
        padding: 72px 24px 96px;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .caret {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}


/* ===================== FOOTER LINKS ===================== */

.footer-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-links a:hover {
    background: var(--surface-2);
    color: var(--text);
}


/* ===================== PAGE / FORM ===================== */

.page {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.page-narrow {
    max-width: 560px;
    margin: 0 auto;
}

.form-card {
    padding: 32px;
    border: 1px solid var(--border);
    background: rgba(17, 17, 19, 0.6);
    border-radius: var(--radius);
}

.form-card h1 {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.form-card .form-sub {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.5);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-msg {
    margin: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
}

.form-msg.success {
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--accent);
    background: var(--accent-soft);
}

.form-msg.error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

.form-foot {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-faint);
    text-align: center;
}

.form-foot a {
    color: var(--accent);
}

.form-foot a:hover {
    text-decoration: underline;
}


/* ===================== DASHBOARD ===================== */

.dashboard-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.dashboard-head h1 {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    color: var(--text);
}

.dashboard-head .form-sub {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 1.4fr;
    gap: 20px;
    align-items: start;
}

.panel {
    border: 1px solid var(--border);
    background: rgba(17, 17, 19, 0.6);
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-head h2 {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.panel-body {
    padding: 8px;
    max-height: 70vh;
    overflow-y: auto;
}

.empty {
    padding: 24px;
    text-align: center;
    color: var(--text-faint);
    font-size: 14px;
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ticket-row:hover {
    background: var(--surface-2);
    border-color: var(--border);
}

.ticket-row.active {
    background: var(--surface-2);
    border-color: rgba(6, 182, 212, 0.4);
}

.ticket-row .ticket-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.ticket-row .ticket-email {
    font-size: 12px;
    color: var(--text-faint);
    grid-column: 1 / -1;
    font-family: var(--font-mono);
}

.ticket-row .ticket-snippet {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
}

.status-pill.open {
    color: var(--accent);
    border-color: rgba(6, 182, 212, 0.4);
    background: var(--accent-soft);
}

.status-pill.closed {
    color: var(--text-faint);
}

.ticket-detail {
    padding: 20px;
    display: grid;
    gap: 20px;
}

.ticket-meta {
    display: grid;
    gap: 4px;
}

.ticket-meta .ticket-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.ticket-meta .ticket-email {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
}

.ticket-message {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: rgba(241, 241, 241, 0.85);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.reply {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(241, 241, 241, 0.88);
    white-space: pre-wrap;
    word-break: break-word;
}

.reply .reply-time {
    display: block;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
}

.reply-form {
    display: grid;
    gap: 10px;
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .panel-body {
        max-height: none;
    }
}