:root {
    --bg: #08152d;
    --bg-2: #0d2145;
    --bg-3: #132f61;
    --card: #ffffff;
    --card-soft: #f6f9ff;
    --text: #11213d;
    --muted: #5d7193;
    --line: rgba(15, 40, 84, 0.1);
    --line-strong: rgba(15, 40, 84, 0.18);
    --primary: #2b6ff3;
    --primary-2: #53c4f2;
    --accent: #17b47f;
    --warning: #ffb443;
    --danger: #f05555;
    --radius: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --shadow: 0 20px 60px rgba(10, 23, 51, 0.12);
    --shadow-lg: 0 28px 80px rgba(10, 23, 51, 0.18);
    --container: min(1220px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(83, 196, 242, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(43, 111, 243, 0.14), transparent 28%),
        linear-gradient(180deg, #eef4ff 0%, #f7faff 48%, #eef3fb 100%);
}

body.admin-body {
    background: linear-gradient(180deg, #edf3ff 0%, #f4f7fd 100%);
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 252, 255, 0.8);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 40, 84, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 36px rgba(43, 111, 243, 0.26);
}

.brand strong {
    display: block;
    font-size: 1rem;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

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

.main-nav a {
    padding: 12px 16px;
    border-radius: 999px;
    color: #37537f;
    font-weight: 700;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: #e1ecff;
    color: #15315e;
}

.main-nav .nav-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 16px 32px rgba(43, 111, 243, 0.22);
}

.main-nav .nav-button:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}

.mobile-nav-toggle {
    display: none;
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e4edff;
    color: #15315e;
    font-size: 1.2rem;
}

.flash {
    color: #fff;
}

.flash-inner {
    padding: 14px 0;
    font-weight: 700;
}

.flash-success {
    background: linear-gradient(135deg, #10a36f, #18c788);
}

.flash-error {
    background: linear-gradient(135deg, #cc4343, #f05555);
}

.flash-info {
    background: linear-gradient(135deg, #2b6ff3, #53c4f2);
}

.section {
    padding: 72px 0;
}

.section-tight {
    padding: 56px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.section-head h2,
.section-head h1,
.page-header h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}

.section-head p,
.page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    max-width: 740px;
}

.kicker,
.footer-badge,
.admin-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kicker,
.footer-badge,
.admin-kicker {
    background: rgba(43, 111, 243, 0.08);
    color: #1c4fbb;
    border: 1px solid rgba(43, 111, 243, 0.14);
}

.eyebrow {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e3ecff;
}

.hero {
    padding: 48px 0 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    align-items: stretch;
}

.hero-panel,
.panel-dark {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 40px;
    color: #fff;
    background:
        radial-gradient(circle at right top, rgba(83, 196, 242, 0.18), transparent 30%),
        radial-gradient(circle at left bottom, rgba(255, 180, 67, 0.14), transparent 30%),
        linear-gradient(135deg, #071226 0%, #0b1732 40%, #113160 100%);
    box-shadow: var(--shadow-lg);
}

.hero-panel::before,
.panel-dark::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(83, 196, 242, 0.1);
    filter: blur(4px);
}

.hero-panel h1,
.panel-dark h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    line-height: 1.04;
}

.hero-panel p,
.panel-dark p {
    margin: 0;
    color: #d0def8;
    line-height: 1.75;
    font-size: 1.03rem;
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
button.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 36px rgba(43, 111, 243, 0.24);
}

.btn-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-outline {
    background: #fff;
    border: 1px solid rgba(15, 40, 84, 0.12);
    color: #17335f;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(15, 40, 84, 0.12);
    color: #17335f;
}

.hero-stats,
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.stat-pill,
.stat-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px;
}

.stat-pill strong,
.stat-card strong,
.metric-card strong,
.kpi-card strong,
.status-mini strong,
.empty-state strong {
    display: block;
    font-size: clamp(1.4rem, 3vw, 2.3rem);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-pill span,
.stat-card span {
    color: #d7e4fc;
    font-size: 0.94rem;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.glass-card,
.card,
.info-card,
.form-card,
.table-card,
.status-card,
.metric-card,
.callout-card,
.timeline-card,
.empty-state,
.setup-card,
.login-card,
.aside-card,
.mini-panel,
.surface-card,
.ticket-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 40, 84, 0.08);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.visual-board {
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.visual-board img {
    border-radius: 22px;
    width: 100%;
    object-fit: cover;
}

.badge-float {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 2;
    background: rgba(10, 23, 51, 0.82);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.quick-cards,
.channel-grid,
.flow-grid,
.feature-grid,
.metrics-grid,
.admin-grid,
.form-layout,
.support-grid,
.info-grid,
.footer-grid,
.status-grid,
.aside-stack,
.summary-grid {
    display: grid;
    gap: 18px;
}

.quick-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-card,
.feature-card,
.channel-card,
.support-card,
.status-mini,
.summary-card {
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.quick-card strong,
.feature-card strong,
.channel-card strong,
.support-card strong,
.summary-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.quick-card p,
.feature-card p,
.channel-card p,
.support-card p,
.summary-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.flow-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-card {
    position: relative;
    padding: 26px 22px 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.94) 100%);
    border: 1px solid rgba(15, 40, 84, 0.08);
    box-shadow: var(--shadow);
}

.flow-card::after {
    content: '';
    position: absolute;
    top: 38px;
    right: -14px;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, rgba(43, 111, 243, 0.28), rgba(83, 196, 242, 0.1));
}

.flow-card:last-child::after {
    display: none;
}

.flow-step {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(43, 111, 243, 0.12), rgba(83, 196, 242, 0.18));
    color: #18409a;
    font-weight: 900;
    margin-bottom: 18px;
}

.flow-card h3,
.card-title,
.form-card h2,
.status-card h2,
.table-card h2,
.login-card h2,
.aside-card h3,
.surface-card h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
}

.flow-card p,
.form-card p,
.status-card p,
.table-card p,
.aside-card p,
.surface-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.channel-grid,
.metrics-grid,
.feature-grid,
.support-grid,
.info-grid,
.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-card,
.feature-card,
.metric-card,
.support-card,
.summary-card {
    padding: 24px;
}

.channel-icon,
.feature-icon,
.metric-icon,
.support-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 16px;
    font-weight: 900;
    font-size: 1.1rem;
    color: #17335f;
    background: linear-gradient(135deg, rgba(43, 111, 243, 0.12), rgba(83, 196, 242, 0.18));
}

.metric-card {
    display: flex;
    gap: 16px;
    align-items: start;
}

.metric-card strong {
    margin-bottom: 8px;
}

.metric-card span,
.helper-text,
.small-muted,
.muted {
    color: var(--muted);
}

.helper-text,
.small-muted {
    font-size: 0.94rem;
    line-height: 1.6;
}

.inline-note,
.notice-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(43, 111, 243, 0.06);
    border: 1px solid rgba(43, 111, 243, 0.12);
    color: #20437d;
}

.notice-card.warning {
    background: rgba(255, 180, 67, 0.12);
    border-color: rgba(255, 180, 67, 0.24);
    color: #7b5300;
}

.form-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
}

.form-card {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    color: #19335f;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
input[type='password'],
input[type='search'],
select,
textarea {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(15, 40, 84, 0.14);
    background: #fff;
    padding: 14px 16px;
    color: var(--text);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
    min-height: 164px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: rgba(43, 111, 243, 0.5);
    box-shadow: 0 0 0 4px rgba(43, 111, 243, 0.1);
}

input[readonly] {
    background: #f6f9ff;
}

.checkbox-row {
    display: flex;
    align-items: start;
    gap: 12px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.form-errors {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.error-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(240, 85, 85, 0.08);
    color: #8c2727;
    border: 1px solid rgba(240, 85, 85, 0.16);
}

.page-header {
    padding: 46px 0 12px;
}

.page-hero {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.page-breadcrumb {
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--muted);
}

.aside-card {
    padding: 24px;
}

.aside-card ul,
.steps-list,
.timeline-list,
.clean-list,
.detail-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.steps-list li,
.timeline-list li,
.clean-list li,
.detail-list li {
    margin-bottom: 8px;
}

.status-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.status-chip,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.badge.open,
.status-chip.open {
    background: rgba(43, 111, 243, 0.1);
    color: #1949aa;
}

.badge.assigned,
.status-chip.assigned {
    background: rgba(83, 196, 242, 0.14);
    color: #0e6592;
}

.badge.on-progress,
.status-chip.on-progress {
    background: rgba(23, 180, 127, 0.13);
    color: #0b7551;
}

.badge.referred,
.status-chip.referred {
    background: rgba(255, 180, 67, 0.16);
    color: #8f5c00;
}

.badge.closed,
.status-chip.closed {
    background: rgba(24, 163, 116, 0.16);
    color: #0e7f59;
}

.badge.urgency-low,
.badge.urgency-medium,
.badge.urgency-high,
.badge.urgency-critical {
    border: 1px solid transparent;
}

.badge.urgency-low {
    background: rgba(23, 180, 127, 0.12);
    color: #0f7753;
}

.badge.urgency-medium {
    background: rgba(43, 111, 243, 0.1);
    color: #1949aa;
}

.badge.urgency-high {
    background: rgba(255, 180, 67, 0.16);
    color: #8f5c00;
}

.badge.urgency-critical {
    background: rgba(240, 85, 85, 0.12);
    color: #982b2b;
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card strong {
    font-size: 1rem;
}

.timeline-wrap {
    display: grid;
    gap: 16px;
}

.timeline-card {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: start;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #1949aa;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(43, 111, 243, 0.12), rgba(83, 196, 242, 0.18));
    flex: 0 0 auto;
}

.ticket-highlight,
.ticket-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px solid rgba(15, 40, 84, 0.08);
}

.ticket-highlight code,
.ticket-panel code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    background: #0a1733;
    color: #fff;
    font-weight: 800;
}

.progress-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.progress-step {
    position: relative;
    padding: 16px 14px;
    border-radius: 18px;
    background: #eef4ff;
    border: 1px solid rgba(15, 40, 84, 0.08);
    min-height: 96px;
}

.progress-step.current {
    background: linear-gradient(135deg, rgba(43, 111, 243, 0.14), rgba(83, 196, 242, 0.16));
    border-color: rgba(43, 111, 243, 0.24);
}

.progress-step.complete {
    background: rgba(23, 180, 127, 0.12);
    border-color: rgba(23, 180, 127, 0.2);
}

.progress-step .step-index {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(10, 23, 51, 0.08);
    font-size: 0.88rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.progress-step strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 6px;
}

.progress-step span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.admin-topbar {
    padding: 26px 0 0;
}

.admin-topbar-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(135deg, #071226 0%, #0c1d3d 42%, #133263 100%);
    box-shadow: var(--shadow-lg);
}

.admin-topbar-inner h1 {
    margin: 12px 0 10px;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.admin-topbar-inner p {
    margin: 0;
    color: #d2def6;
    max-width: 680px;
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

.pill-link.danger {
    background: rgba(240, 85, 85, 0.16);
}

.admin-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
}

.table-card,
.status-card,
.callout-card,
.setup-card,
.login-card,
.surface-card,
.metric-card,
.empty-state {
    padding: 26px;
}

.table-toolbar,
.toolbar-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-responsive {
    overflow: auto;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 40, 84, 0.08);
    vertical-align: top;
}

th {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #62779b;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: #edf3ff;
    color: #17335f;
    font-weight: 700;
}

.table-action:hover {
    background: #dfeaff;
}

.login-shell {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
    padding: 24px 0 64px;
}

.login-wrap {
    width: var(--container);
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 420px;
}

.login-panel {
    padding: 34px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(135deg, #071226 0%, #0b1733 40%, #11305f 100%);
    box-shadow: var(--shadow-lg);
}

.login-panel h1 {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.login-panel p,
.login-panel li {
    color: #d5e0f8;
    line-height: 1.75;
}

.empty-state {
    display: grid;
    gap: 10px;
    place-items: center;
    text-align: center;
    min-height: 240px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    padding: 20px;
    border-radius: 22px;
    background: #f7faff;
    border: 1px solid rgba(15, 40, 84, 0.08);
}

.kpi-card span,
.kpi-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.chart-card {
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(15, 40, 84, 0.08);
    box-shadow: var(--shadow);
}

.progress-bars {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.progress-bar-row {
    display: grid;
    gap: 8px;
}

.progress-bar-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.progress-track {
    height: 12px;
    border-radius: 999px;
    background: #edf3ff;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    padding: 32px 0;
}

.site-footer {
    margin-top: 40px;
    color: #d4dff7;
    background: linear-gradient(180deg, #09152b 0%, #0b1732 100%);
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-top: 0;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #cedbf4;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding-left: 18px;
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #c3d2ef;
}

.hide {
    display: none !important;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.w-100 { width: 100%; }
.center { text-align: center; }

@media (max-width: 1180px) {
    .flow-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .flow-card:nth-child(3)::after {
        display: none;
    }

    .hero-grid,
    .page-hero,
    .form-layout,
    .admin-grid,
    .login-wrap {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .channel-grid,
    .metrics-grid,
    .feature-grid,
    .support-grid,
    .summary-grid,
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mobile-nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(15, 40, 84, 0.08);
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-shell {
        position: relative;
    }

    .hero-panel,
    .panel-dark,
    .admin-topbar-inner,
    .login-panel {
        padding: 28px;
        border-radius: 28px;
    }

    .hero-stats,
    .stat-strip,
    .quick-cards,
    .flow-grid,
    .channel-grid,
    .metrics-grid,
    .feature-grid,
    .support-grid,
    .status-grid,
    .summary-grid,
    .footer-grid,
    .kpi-grid,
    .progress-rail {
        grid-template-columns: 1fr;
    }

    .flow-card::after {
        display: none;
    }

    .form-grid,
    .table-toolbar,
    .toolbar-row,
    .admin-topbar-inner,
    .ticket-highlight,
    .ticket-panel,
    .timeline-card,
    .section-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .table-actions,
    .hero-actions,
    .inline-actions,
    .admin-topbar-actions {
        width: 100%;
    }

    .table-actions a,
    .inline-actions a,
    .hero-actions a,
    .hero-actions button,
    .inline-actions button {
        flex: 1 1 auto;
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100% - 24px, 100%);
    }

    .section,
    .section-tight {
        padding: 56px 0;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-panel h1,
    .panel-dark h1 {
        font-size: 2rem;
    }

    .page-header h1,
    .section-head h2 {
        font-size: 1.7rem;
    }

    .table-responsive table {
        min-width: 620px;
    }
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(15, 40, 84, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border: 0;
    background: transparent;
    color: #16325f;
    font-weight: 800;
    text-align: left;
}

.faq-trigger strong {
    font-size: 1.25rem;
}

.faq-content {
    display: none;
    padding: 0 24px 24px;
    color: var(--muted);
    line-height: 1.8;
}

.faq-item.open .faq-content {
    display: block;
}
