/* =====================================================================
 *   Vombat Klientský Portál — design system
 *
 *   Apple Light Mode aesthetic:
 *     - bílé pozadí, soft purple/blue gradient akcent
 *     - DM Sans pro vše, font-feature-settings „ss01,cv11"
 *     - 16 px border-radius karet
 *     - frosted-glass nav, jemné stíny, mikro-animace
 *
 *   Bez frameworku — vanilla CSS s CSS proměnnými.
 * ===================================================================== */

:root {
    /* Barvy */
    --ink-900: #0F0E17;
    --ink-700: #374151;
    --ink-500: #6B7280;
    --ink-400: #9CA3AF;
    --ink-200: #E5E7EB;
    --ink-100: #F1F0FB;
    --ink-50:  #F8F7FF;

    --brand-violet:      #7C3AED;
    --brand-blue:        #2563EB;
    --brand-violet-soft: #EDE9FE;
    --brand-blue-soft:   #DBEAFE;

    --success: #10B981;
    --warning: #F59E0B;
    --danger:  #EF4444;
    --info:    #2563EB;

    --bg:      #FFFFFF;
    --bg-soft: #F8F7FF;

    --shadow-card:       0 1px 2px rgba(15, 14, 23, 0.04), 0 1px 3px rgba(15, 14, 23, 0.05);
    --shadow-card-hover: 0 4px 12px rgba(15, 14, 23, 0.06), 0 2px 6px rgba(15, 14, 23, 0.05);
    --shadow-glow:       0 4px 14px rgba(124, 58, 237, 0.18);

    --radius-card: 16px;
    --radius-pill: 999px;

    --gradient-brand: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
    --gradient-brand-soft: linear-gradient(135deg, #EDE9FE 0%, #DBEAFE 100%);
    --gradient-mesh:
        radial-gradient(circle at 12% 16%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
}

/* ==== reset ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-feature-settings: "ss01", "cv11";
    line-height: 1.65;
    color: var(--ink-900);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(124, 58, 237, 0.18); color: var(--ink-900); }

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35);
    border-radius: 8px;
}

/* ==== top nav (frosted) ============================================== */

.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.topnav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.topnav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brandwords {
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--ink-900);
}
.brandwords strong { font-weight: 600; }
.brandwords span { color: var(--ink-500); font-weight: 400; }
.brandmark { display: inline-flex; }

.topnav__links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.topnav__links a {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-500);
    transition: color .15s, background .15s;
}
.topnav__links a:hover { color: var(--ink-900); background: var(--ink-50); }
.topnav__links a.is-active {
    color: var(--ink-900);
    background: var(--ink-50);
}
.topnav__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid var(--ink-200);
}
.topnav__user-info { line-height: 1.2; text-align: right; }
.topnav__user-name { font-size: 13px; font-weight: 500; color: var(--ink-900); }
.topnav__user-company { font-size: 11px; color: var(--ink-500); }
.topnav__logout-form { margin: 0; }

@media (max-width: 700px) {
    .topnav__user-info { display: none; }
    .topnav__links a { padding: 8px 10px; }
}

/* ==== layout container ============================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 24px;
}
@media (min-width: 1024px) {
    .container { padding-top: 56px; }
}
.container--narrow { max-width: 880px; }

.layout-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
@media (max-width: 1023px) {
    .layout-grid { display: block; }
}

.layout-main { flex: 1; min-width: 0; }

/* ==== sidebar ======================================================== */

.sidebar { width: 260px; flex-shrink: 0; }
@media (max-width: 1023px) { .sidebar { display: none; } }

.sidebar__sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }

.sidebar__identity {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}
.sidebar__identity-text { min-width: 0; }
.sidebar__identity-name {
    font-weight: 600;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar__identity-email {
    font-size: 12px;
    color: var(--ink-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__nav { padding: 8px; }
.sidebar__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink-500);
    transition: color .15s, background .15s;
}
.sidebar__nav a:hover { color: var(--ink-900); background: var(--ink-50); }
.sidebar__nav a.is-active {
    background: var(--gradient-brand-soft);
    color: var(--ink-900);
    font-weight: 500;
}

.sidebar__server { padding: 16px; }
.sidebar__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-500);
    font-weight: 500;
    margin-bottom: 8px;
}
.sidebar__server-state { display: flex; align-items: center; gap: 8px; }
.sidebar__server-text { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.sidebar__server-meta { font-size: 12px; color: var(--ink-500); margin-top: 4px; }

/* ==== card primitives ================================================ */

.card {
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--ink-200);
    box-shadow: var(--shadow-card);
    transition: box-shadow .3s, border-color .3s, transform .3s;
}
.card--hover:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.card--padded { padding: 24px; }

/* ==== buttons ======================================================== */

.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { filter: brightness(1.07); transform: scale(1.005); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.5; pointer-events: none; }

.btn-secondary {
    background: #fff;
    color: var(--ink-900);
    border: 1px solid var(--ink-200);
}
.btn-secondary:hover { background: var(--ink-50); transform: translateY(-1px); }

.btn-ghost {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ink-500);
    background: transparent;
}
.btn-ghost:hover { color: var(--ink-900); background: var(--ink-50); }

.btn--full { width: 100%; }

/* ==== pills / badges ================================================= */

.pill, .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.pill--neutral { background: var(--ink-50); color: var(--ink-900); border: 1px solid var(--ink-200); }
.pill--violet  { background: var(--brand-violet-soft); color: var(--brand-violet); }
.pill--blue    { background: var(--brand-blue-soft);   color: var(--brand-blue); }
.pill--success { background: rgba(16, 185, 129, .1);   color: var(--success); }
.pill--warning { background: rgba(245, 158, 11, .1);   color: var(--warning); }
.pill--danger  { background: rgba(239, 68, 68, .1);    color: var(--danger); }

.badge--success { background: rgba(16, 185, 129, .1); color: var(--success); }
.badge--warning { background: rgba(245, 158, 11, .1); color: var(--warning); }
.badge--danger  { background: rgba(239, 68, 68, .1);  color: var(--danger); }
.badge--info    { background: var(--brand-blue-soft); color: var(--brand-blue); }
.badge--neutral { background: var(--ink-100); color: var(--ink-500); }

.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot--success { background: var(--success); }
.status-dot--warning { background: var(--warning); }
.status-dot--danger  { background: var(--danger); }
.status-dot--info    { background: var(--brand-blue); }
.status-dot--neutral { background: var(--ink-400); }
.status-dot--online  { background: var(--success); }

.status-dot.is-pulsing {
    box-shadow: 0 0 0 0 currentColor;
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ==== gradient text =================================================== */

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==== greeting ======================================================= */

.greeting {
    margin-bottom: 32px;
}
.greeting__date {
    font-size: 14px;
    color: var(--ink-500);
    text-transform: capitalize;
    margin: 0 0 4px;
}
.greeting h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    line-height: 1.15;
}
.greeting p {
    color: var(--ink-500);
    margin: 0;
    max-width: 560px;
}
@media (max-width: 640px) {
    .greeting h1 { font-size: 28px; }
}

/* ==== metric tiles =================================================== */

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

.metric {
    position: relative;
    padding: 20px;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--ink-200);
    box-shadow: var(--shadow-card);
}
.metric__halo {
    position: absolute;
    inset: -40px -40px auto auto;
    width: 140px; height: 140px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .35;
    pointer-events: none;
}
.metric--violet  .metric__halo { background: rgba(124, 58, 237, .35); }
.metric--blue    .metric__halo { background: rgba(37, 99, 235, .35); }
.metric--success .metric__halo { background: rgba(16, 185, 129, .35); }
.metric--warning .metric__halo { background: rgba(245, 158, 11, .35); }
.metric--neutral .metric__halo { display: none; }

.metric__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-500);
    font-weight: 500;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.metric__value {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    margin: 0;
    line-height: 1.1;
}
.metric__hint {
    font-size: 12px;
    color: var(--ink-500);
    margin: 4px 0 0;
}

/* ==== section heading ================================================ */

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 48px 0 20px;
}
.section-head h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}
.section-head__hint {
    font-size: 13px;
    color: var(--ink-500);
    margin-top: 2px;
}

/* ==== web cards (dashboard) ========================================== */

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

.webcard {
    position: relative;
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--ink-200);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow .3s, border-color .3s, transform .3s;
    display: block;
    color: inherit;
}
.webcard:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.webcard__hero {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: var(--ink-50);
}
.webcard__hero-art {
    position: absolute;
    inset: 0;
}
.webcard__hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 14, 23, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 14, 23, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
    opacity: 0.5;
}
.webcard__hero-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.025em;
    color: rgba(15, 14, 23, 0.3);
}
.webcard__hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}
.webcard__corner-tl {
    position: absolute;
    top: 12px;
    left: 12px;
}
.webcard__corner-tr {
    position: absolute;
    top: 12px;
    right: 12px;
}
.webcard__plan {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink-900);
    border: 1px solid var(--ink-200);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
}
.webcard__body { padding: 20px; }
.webcard__title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 4px;
    color: var(--ink-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.webcard__meta {
    font-size: 12px;
    color: var(--ink-500);
    margin: 0;
}
.webcard__meta--warning { color: var(--warning); margin-left: 8px; }
.webcard__pills {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tech-pill {
    background: var(--ink-50);
    border: 1px solid rgba(229, 231, 235, 0.7);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tech-pill__label { color: var(--ink-500); }
.tech-pill__value {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    color: var(--ink-900);
}
.webcard__cta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.webcard__cta-meta { color: var(--ink-500); font-size: 12px; }
.webcard__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: transform .15s;
}
.webcard:hover .webcard__cta-link { transform: translateX(2px); }

/* ==== dashboard SSL warning =========================================== */

.warning-banner {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
    border-radius: var(--radius-card);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.warning-banner__icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.warning-banner__title { font-weight: 500; color: var(--ink-900); }
.warning-banner__sub { font-size: 13px; color: var(--ink-500); margin-top: 2px; }

/* ==== bottom dashboard cards ========================================= */

.dash-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 32px;
}
@media (max-width: 900px) {
    .dash-bottom { grid-template-columns: 1fr; }
}

.recent-tickets-list { list-style: none; margin: 0; padding: 0; }
.recent-tickets-list li { padding: 12px 0; border-bottom: 1px solid rgba(229, 231, 235, 0.6); }
.recent-tickets-list li:first-child { padding-top: 0; }
.recent-tickets-list li:last-child { padding-bottom: 0; border-bottom: none; }
.recent-tickets-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 -8px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background .15s;
}
.recent-tickets-list a:hover { background: rgba(248, 247, 255, 0.6); }
.recent-tickets-list__num {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--ink-400);
    font-variant-numeric: tabular-nums;
}
.recent-tickets-list__main { flex: 1; min-width: 0; }
.recent-tickets-list__title {
    font-weight: 500;
    color: var(--ink-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recent-tickets-list__meta { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

.subscription-card { padding: 24px; position: relative; overflow: hidden; }
.subscription-card__halo {
    position: absolute;
    top: -40px; right: -40px;
    width: 128px; height: 128px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    filter: blur(48px);
}
.subscription-card__inner { position: relative; }
.progress-bar {
    height: 6px;
    background: var(--ink-100);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 999px;
    transition: width 700ms cubic-bezier(.22, 1, .36, 1);
}

/* ==== auth page ====================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--gradient-mesh);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    text-align: center;
}
.auth-card__logo {
    margin: 0 auto 24px;
    width: 56px; height: 56px;
}
.auth-card h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
}
.auth-card p { color: var(--ink-500); margin: 0 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-error {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    color: var(--danger);
    font-size: 13px;
    border-radius: 12px;
}
.auth-success {
    margin: 24px 0;
}
.auth-success__icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--gradient-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-glow);
}

/* ==== forms ========================================================== */

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.form-field__hint { font-size: 11px; color: var(--ink-400); font-weight: 400; }
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: var(--ink-900);
    transition: border-color .15s, box-shadow .15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.pill-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pill-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pill-radio label {
    cursor: pointer;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--ink-200);
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: var(--ink-500);
    transition: all .15s;
}
.pill-radio label:hover { color: var(--ink-900); border-color: var(--ink-400); }
.pill-radio input:checked + label {
    background: var(--ink-900);
    color: #fff;
    border-color: var(--ink-900);
}
.pill-radio--success input:checked + label { background: var(--success); border-color: var(--success); }
.pill-radio--warning input:checked + label { background: var(--warning); border-color: var(--warning); }
.pill-radio--danger  input:checked + label { background: var(--danger);  border-color: var(--danger); }

.success-banner {
    padding: 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--ink-900);
    font-size: 14px;
}

/* ==== detail webu — card grid ======================================= */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.detail-grid__wide { grid-column: span 2; }
@media (max-width: 900px) {
    .detail-grid__wide { grid-column: auto; }
}

.detail-header { margin-bottom: 24px; }
.detail-header__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-500);
    margin-bottom: 16px;
    transition: color .15s;
}
.detail-header__back:hover { color: var(--ink-900); }
.detail-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.detail-header__pills { display: flex; gap: 8px; margin-bottom: 8px; }
.detail-header h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0;
}
.detail-header__sub { color: var(--ink-500); font-size: 14px; margin: 4px 0 0; }
.detail-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cardpane {
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--ink-200);
    box-shadow: var(--shadow-card);
    padding: 24px;
}
.cardpane__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cardpane__head h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
}
.cardpane__hint { font-size: 12px; color: var(--ink-500); }

.tech-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tech-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.tech-list dt { color: var(--ink-500); margin: 0; }
.tech-list dd { margin: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-900); text-align: right; }

.uptime-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 16px;
}
.uptime-head__big {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0;
}
.uptime-head__small { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.uptime-head__incident-title { font-size: 14px; font-weight: 500; color: var(--ink-900); text-align: right; }
.uptime-svg { width: 100%; height: 160px; display: block; }

.backup-list { list-style: none; padding: 0; margin: 0; }
.backup-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}
.backup-list li:last-child { border-bottom: none; }
.backup-list__date { color: var(--ink-900); font-weight: 500; }
.backup-list__type { font-size: 12px; color: var(--ink-500); text-transform: capitalize; }
.backup-list__size { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-500); }

.ring-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ring-row__big { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ring-row__small { font-size: 12px; color: var(--ink-500); }

.ssl-row { display: flex; align-items: center; gap: 16px; }
.ssl-icon-box {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--gradient-brand-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ssl-icon-box--online  { color: var(--success); }
.ssl-icon-box--warning { color: var(--warning); }
.ssl-icon-box--offline { color: var(--danger); }
.ssl-days {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.ssl-days small { font-size: 14px; color: var(--ink-400); font-weight: 400; }

.plugin-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.plugin-list li {
    padding: 10px;
    margin: 0 -10px;
    border-radius: 8px;
    transition: background .15s;
}
.plugin-list li:hover { background: rgba(248, 247, 255, 0.6); }
.plugin-list__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    gap: 8px;
}
.plugin-list__versions {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--ink-500);
    margin-top: 2px;
}
.plugin-empty {
    padding: 24px 0;
    text-align: center;
}
.plugin-empty__check {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.plugin-empty__title { font-weight: 500; color: var(--ink-900); }
.plugin-empty__sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

.action-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.action-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin: 0 -12px;
    border-radius: 10px;
    transition: background .15s;
}
.action-list a:hover { background: rgba(248, 247, 255, 0.6); }
.action-list__icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--gradient-brand-soft);
    color: var(--brand-violet);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s;
}
.action-list a:hover .action-list__icon { transform: scale(1.05); }
.action-list__main { display: flex; align-items: center; gap: 12px; }
.action-list__label { font-size: 14px; font-weight: 500; color: var(--ink-900); }

/* ==== invoices page ================================================== */

.subscription-hero {
    position: relative;
    padding: 32px;
    overflow: hidden;
    margin-bottom: 32px;
}
.subscription-hero__halo-1 {
    position: absolute;
    top: -96px; right: -96px;
    width: 288px; height: 288px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    filter: blur(64px);
    pointer-events: none;
}
.subscription-hero__halo-2 {
    position: absolute;
    bottom: -96px; left: -48px;
    width: 288px; height: 288px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    filter: blur(64px);
    pointer-events: none;
}
.subscription-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}
@media (max-width: 900px) {
    .subscription-hero__grid { grid-template-columns: 1fr; gap: 24px; }
}
.subscription-hero h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 16px 0 4px;
}

.support-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--ink-200);
}
.support-box__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}
.support-box__label { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.support-box__sub { font-size: 13px; color: var(--ink-500); }
.support-box__big { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); }
.support-box__big small { font-size: 13px; color: var(--ink-500); font-weight: 400; }

.inclusions { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.inclusions li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.inclusions__check {
    margin-top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.invoice-table thead th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-500);
    font-weight: 600;
    padding: 12px 24px;
    background: rgba(248, 247, 255, 0.5);
    border-bottom: 1px solid var(--ink-200);
}
.invoice-table tbody td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}
.invoice-table tbody tr:last-child td { border-bottom: none; }
.invoice-table tbody tr:hover { background: rgba(248, 247, 255, 0.4); }
.invoice-table__num {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color: var(--ink-900);
}
.invoice-table__amount {
    font-weight: 500;
    color: var(--ink-900);
    text-align: right;
}
.invoice-table__pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-500);
    transition: color .15s;
}
.invoice-table__pdf-link:hover { color: var(--ink-900); }

.text-right { text-align: right; }

/* ==== tickets page =================================================== */

.tickets-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 24px;
    align-items: flex-start;
    margin-top: 24px;
}
@media (max-width: 1100px) {
    .tickets-grid { grid-template-columns: 1fr; }
}

.ticket-form-card { padding: 24px; position: sticky; top: 96px; }
.ticket-form-card h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.form-fields { display: flex; flex-direction: column; gap: 16px; }

.tickets-filters {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    background: var(--ink-50);
    border-radius: 12px;
    width: fit-content;
}
.tickets-filters button {
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-500);
    transition: all .15s;
}
.tickets-filters button:hover { color: var(--ink-900); }
.tickets-filters button.is-active {
    background: #fff;
    color: var(--ink-900);
    box-shadow: var(--shadow-card);
}

.ticket-row {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.ticket-row:hover { box-shadow: var(--shadow-card); }
.ticket-row__head {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.ticket-row__num {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--ink-400);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    margin-top: 3px;
}
.ticket-row__main { flex: 1; min-width: 0; }
.ticket-row__subject {
    font-weight: 500;
    color: var(--ink-900);
    font-size: 15px;
}
.ticket-row__meta {
    font-size: 12px;
    color: var(--ink-500);
    margin-top: 4px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ticket-row__meta-item { display: inline-flex; align-items: center; gap: 4px; }

.ticket-row__body {
    border-top: 1px solid var(--ink-200);
    padding: 20px;
    background: rgba(248, 247, 255, 0.4);
    display: none;
}
.ticket-row.is-open .ticket-row__body { display: block; }

.ticket-thread { display: flex; flex-direction: column; gap: 12px; }
.ticket-msg {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
}
.ticket-msg--client {
    background: var(--ink-50);
    color: var(--ink-900);
    margin-right: 24px;
}
.ticket-msg--vombat {
    background: var(--gradient-brand-soft);
    color: var(--ink-900);
    margin-left: 24px;
}
.ticket-msg__author {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ink-500);
}
.ticket-msg__time { font-size: 11px; color: var(--ink-400); margin-top: 6px; }

/* ==== footer ========================================================= */

.sitefoot {
    border-top: 1px solid rgba(229, 231, 235, 0.6);
    margin-top: 64px;
    padding: 24px;
    font-size: 12px;
    color: var(--ink-500);
}
.sitefoot__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.sitefoot__links { display: flex; gap: 16px; }
.sitefoot__links a:hover { color: var(--ink-900); }

/* ==== animations ===================================================== */

.fade-up {
    opacity: 0;
    animation: fadeUp 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stagger > * {
    opacity: 0;
    animation: fadeUp 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 30ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 130ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 230ms; }
.stagger > *:nth-child(6) { animation-delay: 280ms; }
.stagger > *:nth-child(7) { animation-delay: 330ms; }
.stagger > *:nth-child(8) { animation-delay: 380ms; }
.stagger > *:nth-child(9) { animation-delay: 430ms; }
.stagger > *:nth-child(10) { animation-delay: 480ms; }

@keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .stagger > *, .fade-up { opacity: 1; animation: none; }
    *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}

/* ==== utilities ====================================================== */

.h-stack { display: flex; align-items: center; gap: 12px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.muted { color: var(--ink-500); }
.tiny { font-size: 12px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.is-hidden { display: none !important; }
