/* ═══════════════════════════════════════════════
   SUPPORT DASHBOARD STYLES
   ═══════════════════════════════════════════════ */

/* ── Stats Row ── */
.sp-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.sp-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sp-stat-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.sp-stat-open .sp-stat-icon {
    background: #eff6ff;
}

.sp-stat-progress .sp-stat-icon {
    background: #fefce8;
}

.sp-stat-resolved .sp-stat-icon {
    background: #f0fdf4;
}

.sp-stat-total .sp-stat-icon {
    background: #faf5ff;
}

.sp-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.sp-stat-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}


/* ── Filters Bar ── */
.sp-filters-bar {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sp-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-filter-form .form-control {
    font-size: 13px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    max-width: 160px;
}


/* ── Tickets Table ── */
.sp-table-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-table {
    margin: 0;
}

.sp-table thead th {
    background: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 12px 16px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.sp-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.sp-ticket-row {
    cursor: pointer;
    transition: background 0.15s;
}

.sp-ticket-row:hover {
    background: #f8fafc;
}

.sp-ticket-number {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-weight: 700;
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 6px;
}

.sp-ticket-subject {
    font-weight: 600;
    color: #0f172a;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-date {
    font-size: 12px;
    color: #94a3b8;
}


/* ── Ticket Detail Layout ── */
.sp-ticket-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .sp-ticket-layout {
        grid-template-columns: 1fr;
    }
}


/* ── Thread Card ── */
.sp-thread-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.sp-thread-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.sp-thread-header h4 {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
}

.sp-thread-messages {
    padding: 16px 24px;
    max-height: 500px;
    overflow-y: auto;
}

.sp-thread-messages::-webkit-scrollbar {
    width: 5px;
}

.sp-thread-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}


/* ── Message Bubble ── */
.sp-message {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.sp-message-own {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.sp-message-note {
    background: #fefce8;
    border-color: #fde68a;
    border-left: 3px solid #f59e0b;
}

.sp-message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sp-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.sp-message-time {
    font-size: 11px;
    color: #94a3b8;
}

.sp-message-body {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}


/* ── Reply Section ── */
.sp-reply-section {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.sp-reply-textarea {
    border-radius: 10px !important;
    border: 1px solid #d1d5db !important;
    resize: vertical;
    font-size: 14px;
    min-height: 80px;
}

.sp-reply-textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.sp-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.sp-internal-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    margin: 0;
}

.sp-internal-toggle input {
    accent-color: #f59e0b;
}


/* ── Detail Sidebar ── */
.sp-sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-sidebar-card h5 {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin: 0 0 14px;
}

.sp-sidebar-field {
    margin-bottom: 12px;
}

.sp-sidebar-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 4px;
}

.sp-sidebar-field .form-control-sm {
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}


/* ── Sidebar Info ── */
.sp-sidebar-info>div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sp-sidebar-info>div:last-child {
    border-bottom: none;
}

.sp-info-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.sp-info-value {
    font-size: 12px;
    color: #0f172a;
    font-weight: 600;
}


/* ── Modal ── */
.sp-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.sp-modal-header {
    background: linear-gradient(135deg, #0B1437, #162050);
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 24px;
}

.sp-modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.sp-modal-header .close:hover {
    opacity: 1;
}


/* ── Badge Enhancements ── */
.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-primary {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-default {
    background: #f1f5f9;
    color: #475569;
}


/* ═══════════════════════════════════════════════
   KASADESK PUBLIC SUPPORT HUB  (ks-*)
   Acumatica-style marketing hub + portal theme
   Palette matches homepage --hp-* variables
   ═══════════════════════════════════════════════ */

:root {
    --ks-primary: #0C1630;       /* hp-navy */
    --ks-primary-dark: #060c1d;
    --ks-primary-light: #5B7CFA; /* hp-blue */
    --ks-accent: #FF7A59;        /* hp-coral */
    --ks-accent-2: #0FB8A9;      /* hp-teal */
    --ks-gold: #F5BC61;          /* hp-gold */
    --ks-text: #0E1628;          /* hp-ink */
    --ks-muted: #5E6E86;         /* hp-ink-soft */
    --ks-border: #e8ecf3;
    --ks-bg: #FFF8EF;            /* warm cream like homepage */
    --ks-radius: 14px;
    --ks-radius-sm: 8px;
}

.ks-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ks-text);
    background: var(--ks-bg);
    -webkit-font-smoothing: antialiased;
}

.ks-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.ks-header {
    background: #fff;
    border-bottom: 1px solid var(--ks-border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ks-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.ks-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ks-text);
    font-weight: 700;
}

.ks-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ks-primary), var(--ks-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.ks-brand-text {
    font-size: 16px;
    letter-spacing: -0.01em;
}

.ks-brand-text em {
    font-style: normal;
    color: var(--ks-accent);
    font-weight: 600;
}

.ks-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ks-nav-link {
    color: var(--ks-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.ks-nav-link:hover {
    color: var(--ks-primary-light);
}

.ks-nav-link.is-active {
    color: var(--ks-primary);
    border-bottom-color: var(--ks-accent);
}

.ks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--ks-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.ks-btn-primary {
    background: linear-gradient(135deg, var(--ks-accent), #FF9A65);
    color: #0F172A;
    box-shadow: 0 16px 36px rgba(255, 122, 89, .22);
}

.ks-btn-primary:hover {
    background: linear-gradient(135deg, #FF6A45, #FF9157);
    color: #0F172A;
    box-shadow: 0 22px 42px rgba(255, 122, 89, .28);
}

.ks-btn-outline {
    background: rgba(255, 255, 255, .8);
    color: var(--ks-primary);
    border-color: rgba(12, 22, 48, .12);
}

.ks-btn-outline:hover {
    background: #fff;
    border-color: rgba(12, 22, 48, .24);
}

.ks-btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* ── Hero ── */
.ks-hero {
    color: var(--ks-text);
    padding: 96px 0 104px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 52px;
    border-bottom-right-radius: 52px;
}

.ks-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 196, 166, .72), transparent 28%),
        radial-gradient(circle at top right, rgba(160, 197, 255, .52), transparent 26%),
        linear-gradient(140deg, #FFF8EF 0%, #F9F3FF 44%, #ECF9FF 100%);
    pointer-events: none;
}

.ks-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.ks-hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.ks-hero p {
    font-size: 18px;
    color: var(--ks-muted);
    margin: 0 0 32px;
    line-height: 1.6;
}

.ks-hero-search {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.ks-hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 8px;
    color: var(--ks-text);
}

.ks-hero-search button {
    background: linear-gradient(135deg, var(--ks-accent), #FF9A65);
    color: #0F172A;
    border: 0;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Main / Sections ── */
.ks-main {
    padding: 56px 0 80px;
}

.ks-section {
    margin-bottom: 64px;
}

.ks-section-head {
    text-align: center;
    margin-bottom: 36px;
}

.ks-section-head h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.ks-section-head p {
    color: var(--ks-muted);
    font-size: 16px;
    margin: 0;
}

/* ── Tier cards (3-up support paths) ── */
.ks-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ks-tier {
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    padding: 32px 28px;
    text-decoration: none;
    color: var(--ks-text);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.ks-tier:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border-color: var(--ks-primary-light);
    color: var(--ks-text);
}

.ks-tier-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    color: var(--ks-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.ks-tier h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
}

.ks-tier p {
    color: var(--ks-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.ks-tier-link {
    color: var(--ks-primary);
    font-weight: 600;
    font-size: 14px;
}

/* ── Category grid (KB) ── */
.ks-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.ks-cat-card {
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    padding: 24px;
    text-decoration: none;
    color: var(--ks-text);
    transition: all 0.2s;
}

.ks-cat-card:hover {
    border-color: var(--ks-primary-light);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    color: var(--ks-text);
}

.ks-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--ks-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.ks-cat-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.ks-cat-card p {
    color: var(--ks-muted);
    font-size: 13px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.ks-cat-count {
    font-size: 12px;
    color: var(--ks-primary);
    font-weight: 600;
}

/* ── Article list ── */
.ks-article-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

.ks-article-side {
    position: sticky;
    top: 88px;
    align-self: start;
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    padding: 18px;
}

.ks-article-side h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ks-muted);
    margin: 0 0 10px;
}

.ks-article-side a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ks-text);
    text-decoration: none;
    font-size: 13px;
}

.ks-article-side a:hover,
.ks-article-side a.is-active {
    background: #eef2ff;
    color: var(--ks-primary);
}

.ks-article-list {
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    overflow: hidden;
}

.ks-article-row {
    display: block;
    padding: 18px 24px;
    border-bottom: 1px solid var(--ks-border);
    text-decoration: none;
    color: var(--ks-text);
    transition: background 0.15s;
}

.ks-article-row:last-child {
    border-bottom: 0;
}

.ks-article-row:hover {
    background: #f8fafc;
    color: var(--ks-text);
}

.ks-article-row h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.ks-article-row p {
    color: var(--ks-muted);
    font-size: 13px;
    margin: 0;
}

/* ── Article detail ── */
.ks-article {
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    padding: 40px 48px;
}

.ks-article h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.ks-article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--ks-muted);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ks-border);
}

.ks-article-body {
    font-size: 15px;
    line-height: 1.75;
    color: #1f2937;
}

.ks-article-body h2 {
    font-size: 22px;
    margin: 32px 0 12px;
}

.ks-article-body h3 {
    font-size: 18px;
    margin: 24px 0 10px;
}

.ks-article-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.ks-article-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 10px;
    overflow-x: auto;
}

.ks-feedback {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--ks-border);
    text-align: center;
}

.ks-feedback h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
}

.ks-feedback-buttons {
    display: inline-flex;
    gap: 12px;
}

/* ── Status page ── */
.ks-status-banner {
    border-radius: var(--ks-radius);
    padding: 24px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ks-status-banner.ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.ks-status-banner.warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.ks-status-banner.bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ks-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ks-component-list {
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    overflow: hidden;
}

.ks-component-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ks-border);
}

.ks-component-row:last-child {
    border-bottom: 0;
}

.ks-component-name {
    font-weight: 600;
    font-size: 14px;
}

.ks-component-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ks-muted);
}

/* ── Forms ── */
.ks-form-card {
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    padding: 36px 40px;
    max-width: 560px;
    margin: 0 auto;
}

.ks-form-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
}

.ks-form-card p.lead {
    color: var(--ks-muted);
    margin: 0 0 24px;
}

.ks-field {
    margin-bottom: 16px;
}

.ks-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ks-text);
    margin-bottom: 6px;
}

.ks-field input,
.ks-field select,
.ks-field textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius-sm);
    background: #fff;
    color: var(--ks-text);
    font-family: inherit;
}

.ks-field input:focus,
.ks-field select:focus,
.ks-field textarea:focus {
    outline: none;
    border-color: var(--ks-primary);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

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

/* ── Portal dashboard ── */
.ks-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ks-stat-card {
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    padding: 22px;
}

.ks-stat-card .lbl {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ks-muted);
}

.ks-stat-card .val {
    font-size: 30px;
    font-weight: 800;
    margin-top: 6px;
    color: var(--ks-text);
}

/* ── Ticket table ── */
.ks-ticket-table {
    width: 100%;
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: var(--ks-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.ks-ticket-table thead th {
    background: #f8fafc;
    text-align: left;
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ks-muted);
    border-bottom: 1px solid var(--ks-border);
}

.ks-ticket-table tbody td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--ks-border);
}

.ks-ticket-table tbody tr:last-child td {
    border-bottom: 0;
}

.ks-ticket-table tbody tr:hover {
    background: #f8fafc;
}

.ks-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ks-pill.open {
    background: #dbeafe;
    color: #1d4ed8;
}

.ks-pill.pending {
    background: #fef3c7;
    color: #92400e;
}

.ks-pill.resolved {
    background: #dcfce7;
    color: #166534;
}

.ks-pill.closed {
    background: #f1f5f9;
    color: #475569;
}

/* ── Flash messages ── */
.ks-flash {
    padding: 14px 20px;
    border-radius: var(--ks-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.ks-flash-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.ks-flash-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ── Footer ── */
.ks-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 0;
    margin-top: 80px;
}

.ks-footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.ks-footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 14px;
}

.ks-footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.15s;
}

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

.ks-footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    font-size: 13px;
    color: #64748b;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ks-tier-grid {
        grid-template-columns: 1fr;
    }

    .ks-article-wrap {
        grid-template-columns: 1fr;
    }

    .ks-article-side {
        position: static;
    }

    .ks-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ks-hero h1 {
        font-size: 32px;
    }

    .ks-nav {
        gap: 16px;
    }

    .ks-nav-link {
        display: none;
    }

    .ks-nav .ks-btn {
        display: inline-flex;
    }

    .ks-article {
        padding: 28px 24px;
    }
}