:root {
    color-scheme: dark;
    --primary: #0ea5e9;
    --primary-2: #38bdf8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #0f172a;
    --bg-2: #111827;
    --surface: rgba(15, 23, 42, 0.76);
    --surface-strong: rgba(30, 41, 59, 0.88);
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --muted: #94a3b8;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 10px;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-2: #eaf1f7;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --card: rgba(255, 255, 255, 0.72);
    --border: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --muted: #64748b;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.28), transparent 34rem),
        radial-gradient(circle at 82% 18%, rgba(34, 197, 94, 0.14), transparent 26rem),
        radial-gradient(circle at 24% 86%, rgba(239, 68, 68, 0.12), transparent 24rem),
        linear-gradient(135deg, var(--bg), var(--bg-2));
    color: var(--text);
    letter-spacing: 0;
}

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

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

button {
    cursor: pointer;
}

.app-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 80px;
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.brand,
.nav-pills,
.top-actions,
.hero-actions,
.trust-row,
.preview-toolbar,
.price-header,
.card-title,
.panel-hero,
.admin-heading,
.otp-line,
.checkbox-line,
.payment-note,
.inline-upload-form {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    min-width: 190px;
}

.brand-logo {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
}

.footer-brand .brand-logo {
    width: 224px;
    max-height: 62px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #fff;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.muted-copy,
.card-title p,
.price-header p,
.trust-card p,
.auth-dialog p,
.responsive-table small,
.admin-card p,
.secure-note {
    color: var(--muted);
}

.nav-pills {
    gap: 8px;
}

.nav-pills a,
.ghost-button,
.primary-button,
.submit-button,
.icon-button {
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--muted);
}

.nav-pills a.is-active,
.nav-pills a:hover,
.ghost-button:hover {
    color: var(--text);
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(37, 99, 235, 0.12);
}

.top-actions {
    justify-content: flex-end;
    gap: 8px;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.mobile-menu-toggle {
    display: none;
    color: #2563eb;
}

.ghost-button,
.primary-button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}

.ghost-button {
    background: rgba(255, 255, 255, 0.04);
}

.primary-button,
.submit-button {
    border-color: rgba(37, 99, 235, 0.7);
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.28);
}

.primary-button.small {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 12px;
    font-size: 13px;
}

.primary-button.full,
.ghost-button.full,
.submit-button {
    width: 100%;
}

.primary-button:hover,
.submit-button:hover,
.icon-button:hover {
    transform: translateY(-1px) scale(1.01);
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
    gap: 28px;
    align-items: center;
    padding: 78px 0 48px;
}

.hero-copy h1 {
    margin: 16px 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
}

.hero-copy p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions,
.trust-row {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.dashboard-preview,
.glass-card,
.stat-card,
.table-card,
.trust-card,
.admin-card,
.auth-card {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.dashboard-preview,
.glass-card,
.table-card,
.admin-card,
.auth-dialog {
    border-radius: 18px;
}

.dashboard-preview {
    width: min(100%, 640px);
    padding: 14px;
    animation: none;
}

.preview-toolbar {
    gap: 8px;
    margin-bottom: 16px;
}

.preview-toolbar .status-pill {
    margin-left: auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
}

.green,
.dot.green {
    color: var(--success);
}

.orange,
.dot.amber {
    color: var(--warning);
}

.dot.green {
    background: var(--success);
}

.dot.amber {
    background: var(--warning);
}

.dot.red {
    background: var(--danger);
}

.preview-grid,
.stats-grid,
.admin-grid,
.form-grid,
.upload-layout,
.trust-section,
.auth-layout {
    display: grid;
    gap: 16px;
}

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

.metric-card,
.preview-profit > div,
.stat-card,
.trust-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.42);
}

[data-theme="light"] .metric-card,
[data-theme="light"] .preview-profit > div,
[data-theme="light"] .stat-card,
[data-theme="light"] .trust-card {
    background: rgba(255, 255, 255, 0.7);
}

.metric-card {
    padding: 18px;
}

.metric-card small,
.stat-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 32px;
}

.metric-card.success strong {
    color: var(--success);
}

.metric-card.warning strong {
    color: var(--warning);
}

.metric-card.danger strong {
    color: var(--danger);
}

.preview-profit {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.preview-profit > div {
    padding: 16px;
}

.preview-profit small {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.preview-profit strong {
    display: block;
    margin-top: 4px;
    font-size: 25px;
}

.live-upload-feed {
    display: grid;
    gap: 8px;
}

.dashboard-preview.reveal {
    animation: none;
}

.live-upload-feed + .preview-grid,
.live-upload-feed ~ .preview-profit {
    display: none;
}

.live-upload-row {
    position: relative;
    display: grid;
    grid-template-columns: 28px 38px minmax(105px, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 10px 11px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.94);
    color: #0f172a;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] .live-upload-row {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(226, 232, 240, 0.9));
}

.live-upload-row::before {
    display: none;
}

.country-code {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    color: #111827;
}

.file-bubble {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #2563eb;
}

.file-bubble i {
    width: 18px;
    height: 18px;
}

.upload-person {
    min-width: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.upload-person strong {
    display: inline;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.upload-person small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #475569;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-name-chip,
.time-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 9px;
    white-space: nowrap;
}

.service-name-chip {
    min-width: 106px;
    padding: 7px 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: capitalize;
}

.time-chip {
    gap: 5px;
    padding: 6px 8px;
    background: #eef2f7;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.time-chip i {
    width: 13px;
    height: 13px;
}

.upload-section,
.trust-section,
.panel-hero,
.admin-shell {
    padding: 42px 0;
}

.section-heading {
    max-width: 660px;
    margin-bottom: 20px;
}

.section-heading h2,
.panel-hero h1,
.admin-heading h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 48px);
}

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

.upload-card,
.price-card,
.auth-card,
.admin-card,
.table-card {
    padding: 22px;
}

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

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

label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.86);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, 0.82);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

select option {
    background: #ffffff;
    color: #0f172a;
}

.phone-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.phone-field > span {
    display: grid;
    min-height: 46px;
    min-width: 48px;
    place-items: center;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.otp-line {
    grid-column: 1 / -1;
    gap: 12px;
    align-items: end;
}

.otp-line label {
    flex: 1;
}

.drop-zone {
    display: grid;
    place-items: center;
    min-height: 170px;
    margin: 18px 0;
    padding: 22px;
    border: 1px dashed rgba(96, 165, 250, 0.54);
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.08);
    text-align: center;
}

.drop-zone i {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    color: var(--primary-2);
}

.drop-zone strong {
    display: block;
}

.drop-zone span {
    color: var(--muted);
}

.form-message {
    min-height: 22px;
    margin: 10px 0;
    color: var(--muted);
    font-weight: 700;
}

.form-message.visible {
    padding: 10px 12px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

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

.price-card {
    position: sticky;
    top: 104px;
}

.icon-bubble {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.14);
    color: #93c5fd;
}

.price-header {
    gap: 14px;
}

.price-header h3 {
    margin: 0;
}

.price-header p {
    margin: 4px 0 0;
}

.price-list {
    margin: 22px 0;
}

.price-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.price-list dt {
    color: var(--muted);
}

.price-list dd {
    margin: 0;
    font-weight: 800;
}

.price-list .total dd {
    color: #93c5fd;
    font-size: 22px;
}

.secure-note,
.payment-note {
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
}

.payment-choice-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.manual-payment-form {
    display: none;
    margin-top: 14px;
}

.manual-payment-form.is-visible {
    display: grid;
}

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

.manual-instructions {
    display: grid;
    gap: 6px;
}

.auto-estimate-note,
.inline-price-summary {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.08);
}

.auto-estimate-note {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
}

.auto-estimate-note.is-loading {
    color: #38bdf8;
}

.auto-estimate-note.error {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}

.special-note {
    border-color: rgba(245, 158, 11, 0.48);
    background: rgba(245, 158, 11, 0.12);
    color: var(--text);
}

.upload-progress {
    height: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
}

.upload-progress span {
    display: block;
    width: 0;
    min-width: 34px;
    height: 100%;
    padding-right: 8px;
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
    text-align: right;
    transition: width 0.18s ease;
}

.inline-price-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding: 12px;
    color: var(--text);
}

.inline-price-summary span,
.inline-price-summary strong {
    min-width: 0;
}

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

.trust-card {
    padding: 20px;
}

.trust-card i {
    color: #93c5fd;
}

.trust-card h3 {
    margin: 14px 0 8px;
}

.panel-hero,
.admin-heading {
    justify-content: space-between;
    gap: 16px;
}

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

.agent-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(14, 165, 233, 0.32);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(34, 197, 94, 0.1)),
        var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.agent-alert-card h2 {
    margin: 7px 0 5px;
    font-size: 22px;
}

.agent-alert-card p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.agent-alert-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
    min-width: 250px;
}

.agent-alert-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 140;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: min(390px, calc(100vw - 32px));
    padding: 15px;
    border: 1px solid rgba(34, 197, 94, 0.42);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.96), rgba(14, 165, 233, 0.94));
    color: #fff;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.agent-alert-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.agent-alert-toast > i {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
}

.agent-alert-toast strong,
.agent-alert-toast span {
    display: block;
    min-width: 0;
}

.agent-alert-toast strong {
    font-size: 16px;
    font-weight: 900;
}

.agent-alert-toast span {
    margin-top: 3px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-grid.admin-stats {
    margin-bottom: 18px;
}

.stat-card {
    position: relative;
    min-height: 128px;
    padding: 20px;
    border-radius: 18px;
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 34px;
}

.stat-card i {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #93c5fd;
    opacity: 0.72;
}

.table-card {
    margin-top: 18px;
}

.card-title {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.card-title h2 {
    margin: 0;
}

.card-title p {
    margin: 6px 0 0;
}

.responsive-table {
    overflow-x: auto;
}

.agent-claimed-table table {
    min-width: 1560px;
    table-layout: fixed;
}

.agent-claimed-table th:nth-child(1),
.agent-claimed-table td:nth-child(1) {
    width: 58px;
}

.agent-claimed-table th:nth-child(2),
.agent-claimed-table td:nth-child(2) {
    width: 96px;
}

.agent-claimed-table th:nth-child(3),
.agent-claimed-table td:nth-child(3) {
    width: 138px;
}

.agent-claimed-table th:nth-child(4),
.agent-claimed-table td:nth-child(4) {
    width: 86px;
}

.agent-claimed-table th:nth-child(5),
.agent-claimed-table td:nth-child(5) {
    width: 116px;
}

.agent-claimed-table th:nth-child(6),
.agent-claimed-table td:nth-child(6),
.agent-claimed-table th:nth-child(7),
.agent-claimed-table td:nth-child(7) {
    width: 170px;
}

.agent-claimed-table th:nth-child(8),
.agent-claimed-table td:nth-child(8),
.agent-claimed-table th:nth-child(9),
.agent-claimed-table td:nth-child(9) {
    width: 184px;
}

.agent-claimed-table th:nth-child(10),
.agent-claimed-table td:nth-child(10) {
    width: 260px;
}

.agent-claimed-table th:nth-child(11),
.agent-claimed-table td:nth-child(11) {
    width: 112px;
}

.agent-claimed-table td,
.agent-claimed-table th {
    vertical-align: top;
}

.agent-claimed-table td strong,
.agent-claimed-table td small,
.agent-claimed-table .mini-upload span {
    max-width: 100%;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.agent-claimed-table .file-download-stack strong,
.agent-claimed-table .file-download-stack small {
    max-width: 100%;
    white-space: normal;
}

table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

td strong,
td small {
    display: block;
}

.empty-cell {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.table-link {
    color: #93c5fd;
    font-weight: 800;
}

.file-download-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.file-download-stack strong,
.file-download-stack small {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.file-download-stack .table-download-icon {
    margin-top: 4px;
    flex-shrink: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill.success {
    border-color: rgba(34, 197, 94, 0.28);
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.status-pill.warning {
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.status-pill.neutral {
    color: var(--muted);
}

.eta-countdown {
    margin-top: 7px;
}

.result-wait-circle {
    --wait-progress: 0%;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--surface-strong) 0 58%, transparent 60%),
        conic-gradient(var(--primary-2) var(--wait-progress), rgba(148, 163, 184, 0.2) 0);
    box-shadow: inset 0 0 0 1px var(--border), 0 14px 30px rgba(14, 165, 233, 0.16);
}

.result-wait-circle > div {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: inherit;
    background: var(--surface);
    text-align: center;
}

.result-wait-circle strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1;
}

.result-wait-circle span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.compact-wait-circle {
    width: 72px;
    height: 72px;
}

.compact-wait-circle > div {
    width: 54px;
    height: 54px;
}

.compact-wait-circle strong {
    font-size: 13px;
}

.compact-wait-circle span {
    font-size: 8px;
}

.order-modal,
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 18px;
}

.order-modal.is-open,
.auth-modal.is-open {
    display: grid;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(10px);
}

.auth-dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.auth-dialog.order-dialog {
    width: min(760px, 100%);
}

.otp-verify-modal {
    z-index: 120;
}

.otp-email-note strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.auth-tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
}

.auth-tabs button.is-active {
    background: rgba(37, 99, 235, 0.16);
    color: var(--text);
}

.auth-panel {
    display: none;
}

.auth-panel.is-active {
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.google-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.google-auth-button:hover {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.google-mark {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #4285f4;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.checkbox-line {
    gap: 9px;
    margin: 14px 0;
    color: var(--muted);
    font-weight: 800;
}

.checkbox-line input {
    width: 18px;
    min-height: 18px;
}

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

.admin-card.wide {
    grid-column: 1 / -1;
}

.admin-card h2 {
    margin-top: 0;
}

.admin-actions,
.compact-form {
    display: grid;
    gap: 12px;
}

.compact-form.inline-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
}

.coupon-list,
.audit-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.coupon-list li,
.audit-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.coupon-list span {
    color: var(--muted);
    font-weight: 800;
}

.inline-upload-form {
    gap: 10px;
    flex-wrap: wrap;
}

.mini-upload {
    max-width: 210px;
    min-height: 40px;
    padding: 8px;
    font-size: 13px;
}

.compact-table table {
    min-width: 980px;
}

.mobile-sticky-action {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 35;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.32);
}

.reveal {
    animation: fadeUp 0.62s ease both;
}

.delay-1 {
    animation-delay: 0.08s;
}

.delay-2 {
    animation-delay: 0.16s;
}

.delay-3 {
    animation-delay: 0.24s;
}

.pulse-soft {
    animation: pulseSoft 2.4s ease-in-out infinite;
}

/* Stronger SaaS controls with bigger touch targets and tighter corners. */
.topbar,
.dashboard-preview,
.glass-card,
.table-card,
.admin-card,
.auth-dialog,
.stat-card,
.trust-card,
.metric-card,
.preview-profit > div {
    border-radius: 12px;
}

.brand-mark,
.icon-bubble {
    border-radius: 10px;
}

.nav-pills a,
.ghost-button,
.primary-button,
.submit-button,
.icon-button,
input,
select,
textarea,
.phone-field > span,
.status-pill,
.auth-tabs,
.auth-tabs button,
.secure-note,
.payment-note,
.coupon-list li,
.audit-list li,
.mini-upload {
    border-radius: 9px;
}

.primary-button,
.ghost-button,
.submit-button {
    min-height: 52px;
    padding: 13px 20px;
    font-size: 15px;
}

.primary-button.small {
    min-height: 40px;
    padding: 9px 14px;
}

.icon-button {
    width: 48px;
    height: 48px;
}

.nav-pills a {
    min-height: 48px;
    padding: 12px 15px;
    font-weight: 800;
}

input,
select,
textarea {
    min-height: 54px;
    padding: 14px 15px;
    font-size: 15px;
}

.phone-field > span {
    min-height: 54px;
    min-width: 54px;
}

.primary-button,
.submit-button,
.mobile-sticky-action {
    background: linear-gradient(135deg, #0284c7, #22c55e);
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.32);
}

.ghost-button {
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(14, 165, 233, 0.09);
}

.ghost-button:hover,
.nav-pills a:hover,
.nav-pills a.is-active {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(14, 165, 233, 0.18);
}

.submit-button:hover,
.primary-button:hover {
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.24), 0 12px 36px rgba(14, 165, 233, 0.28);
}

.status-pill.success,
.metric-card.success strong {
    color: #4ade80;
}

.status-pill.warning,
.metric-card.warning strong {
    color: #fbbf24;
}

.metric-card.danger strong {
    color: #fb7185;
}

.drop-zone {
    min-height: 190px;
    border-radius: 12px;
    border-color: rgba(56, 189, 248, 0.78);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.13), rgba(34, 197, 94, 0.09));
}

.stat-card {
    min-height: 142px;
}

.stat-card strong,
.metric-card strong {
    font-size: 38px;
}

th,
td {
    padding: 17px 14px;
}

.auth-dialog {
    width: min(540px, 100%);
    padding: 30px;
}

.auth-dialog.order-dialog {
    width: min(820px, 100%);
}

.pro-admin {
    display: grid;
    gap: 22px;
}

.admin-command {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(34, 197, 94, 0.1)),
        var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.admin-command-copy h1 {
    margin: 10px 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
}

.admin-command-copy p {
    max-width: 720px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.command-pills,
.filter-pills,
.broadcast-actions,
.payment-metrics,
.management-summary,
.coupon-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.command-pills span,
.filter-pills span,
.filter-pills a,
.broadcast-actions span,
.payment-metrics span,
.management-summary span,
.coupon-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 800;
}

.filter-pills a {
    text-decoration: none;
}

.filter-pills a.is-active {
    border-color: rgba(14, 165, 233, 0.42);
    background: rgba(14, 165, 233, 0.16);
    color: #0284c7;
}

.admin-command-panel {
    display: grid;
    gap: 12px;
}

.generated-link-box {
    display: grid;
    gap: 8px;
}

.generated-link-box input {
    min-height: 44px;
    font-size: 12px;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.ops-mini-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.44);
}

[data-theme="light"] .ops-mini-card {
    background: rgba(255, 255, 255, 0.7);
}

.ops-mini-card small,
.ops-mini-card span,
.stat-foot,
.admin-section-label {
    color: var(--muted);
    font-weight: 800;
}

.ops-mini-card strong {
    display: block;
    margin: 6px 0;
    font-size: 30px;
}

.ops-mini-card.success strong {
    color: #4ade80;
}

.stat-foot {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.admin-status-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.admin-status-grid article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.admin-status-grid strong,
.admin-status-grid small {
    display: block;
}

.admin-status-grid strong {
    font-size: 24px;
}

.status-dot {
    width: 13px;
    height: 42px;
    border-radius: 9px;
    background: var(--muted);
}

.status-dot.completed {
    background: var(--success);
}

.status-dot.processing {
    background: var(--primary-2);
}

.status-dot.pending {
    background: var(--warning);
}

.status-dot.refunded,
.status-dot.cancelled {
    background: var(--danger);
}

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

.admin-card-title {
    align-items: flex-start;
}

.admin-card-title h2 {
    margin: 4px 0 0;
}

.admin-section-label {
    display: inline-flex;
    font-size: 11px;
    text-transform: uppercase;
}

.filter-pills span {
    min-height: 34px;
    color: #bae6fd;
}

.filter-pills a {
    min-height: 34px;
}

.life-table table {
    min-width: 1640px;
    table-layout: fixed;
}

/* Checkbox column */
.life-table th:nth-child(1),
.life-table td:nth-child(1) {
  width: 40px;
}

/* Order column */
.life-table th:nth-child(2),
.life-table td:nth-child(2) {
  width: 90px;
}

/* User column */
.life-table th:nth-child(3),
.life-table td:nth-child(3) {
  width: 100px;
}

/* Agent column */
.life-table th:nth-child(4),
.life-table td:nth-child(4) {
  width: 100px;
}

/* Service column */
.life-table th:nth-child(5),
.life-table td:nth-child(5) {
  width: 150px;
}

/* File column */
.life-table th:nth-child(6),
.life-table td:nth-child(6) {
  width: 180px;
}

/* Status column */
.life-table th:nth-child(7),
.life-table td:nth-child(7) {
  width: 130px;
}

/* SLA column */
.life-table th:nth-child(8),
.life-table td:nth-child(8) {
  width: 85px;
}

/* Payment column */
.life-table th:nth-child(9),
.life-table td:nth-child(9) {
  width: 100px;
}

/* AI Report column */
.life-table th:nth-child(10),
.life-table td:nth-child(10) {
  width: 90px;
}

/* Plagiarism Report column */
.life-table th:nth-child(11),
.life-table td:nth-child(11) {
  width: 110px;
}

/* Humanized column */
.life-table th:nth-child(12),
.life-table td:nth-child(12) {
  width: 130px;
}

/* Cost column */
.life-table th:nth-child(13),
.life-table td:nth-child(13) {
  width: 90px;
}

/* Actions column */
.life-table th:nth-child(14),
.life-table td:nth-child(14) {
  width: 145px;
}

.life-table td,
.life-table th {
    vertical-align: top;
    overflow: hidden;
}

.life-table td strong,
.life-table td small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.progress-track {
    display: block;
    width: 120px;
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.22);
}

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

.admin-update-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.management-summary,
.payment-metrics,
.coupon-chips,
.agent-list {
    margin: 14px 0;
}

.agent-list {
    display: grid;
    gap: 10px;
}

.agent-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(34, 197, 94, 0.08);
}

.agent-list span,
.payment-metrics span,
.management-summary span {
    color: var(--muted);
}

.payment-metrics strong,
.management-summary strong {
    color: var(--text);
}

.payment-table {
    margin-top: 16px;
}

.payment-table table {
    min-width: 1080px;
}

.order-ops-grid,
.payment-detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

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

.order-ops-grid article,
.payment-detail-metrics article {
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(148, 163, 184, 0.08));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

[data-theme="light"] .order-ops-grid article,
[data-theme="light"] .payment-detail-metrics article {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.82));
}

.order-ops-grid small,
.payment-detail-metrics small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-ops-grid strong,
.payment-detail-metrics strong {
    display: block;
    margin: 8px 0;
    color: var(--text);
    font-size: 26px;
    line-height: 1;
}

.order-ops-grid span,
.payment-detail-metrics span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.payment-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
}

.payment-filter-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    text-decoration: none;
}

.table-download-icon {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    place-content: center;
    align-items: center;
    justify-items: center;
    gap: 2px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 8px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
}

.table-download-icon i,
.table-download-icon svg {
    display: block;
    width: 15px;
    height: 15px;
    margin: 0;
    stroke-width: 2.5;
}

.numbered-download {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    gap: 3px !important;
}

.numbered-download span {
    color: currentColor;
    font-size: 11px;
    font-weight: 900;
}

.result-artifact-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.result-upload-grid {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.result-upload-row {
    display: grid;
    gap: 6px;
}

.result-upload-row > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.humanized-upload-list {
    display: grid;
    gap: 8px;
}

.add-humanized-file {
    width: fit-content;
}

.agent-completion-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

.whatsapp-action {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.email-action {
    border-color: rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.call-action {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

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

.download-option-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--text);
    font-weight: 800;
}

.broadcast-progress-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    margin: 14px 0;
    overflow: auto;
}

.broadcast-progress-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    font-size: 13px;
}

.broadcast-progress-list .success span {
    color: var(--success);
}

.broadcast-progress-list .error span {
    color: var(--danger);
}

.broadcast-progress-bar {
    display: block;
}

.settings-form h3 {
    margin: 18px 0 4px;
    color: var(--text);
    font-size: 15px;
}

.coupon-chips span {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.09);
}

.coupon-chips b {
    color: #fbbf24;
}

.link-actions {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.admin-hidden-form {
    display: none !important;
}

.admin-crud-dialog h2 {
    margin: 8px 0 18px;
}

.admin-crud-dialog .compact-form {
    gap: 14px;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 13px 20px;
    border: 1px solid rgba(239, 68, 68, 0.72);
    border-radius: 9px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(239, 68, 68, 0.22);
}

.danger-button.full {
    width: 100%;
}

.broadcast-form {
    display: grid;
    gap: 14px;
}

.broadcast-actions {
    align-items: center;
}

.broadcast-actions .form-message {
    flex: 1;
    min-width: 220px;
    margin: 0;
}

.audit-timeline {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.audit-timeline li {
    display: grid;
    grid-template-columns: 90px 100px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
}

.audit-timeline time {
    color: #93c5fd;
    font-weight: 800;
}

.audit-timeline strong {
    color: var(--success);
}

.primary-button,
.submit-button,
.mobile-sticky-action {
    min-height: 56px;
    padding: 14px 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-button i,
.submit-button i,
.mobile-sticky-action i,
.ghost-button i,
.danger-button i {
    width: 21px;
    height: 21px;
    stroke-width: 2.7;
}

.primary-button.small {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.primary-button:hover,
.submit-button:hover,
.mobile-sticky-action:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #14c78f 0%, #047857 100%);
    box-shadow: 0 16px 30px rgba(5, 150, 105, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.whatsapp-sticky-action {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 16px 9px 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.34);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-sticky-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.42);
}

.whatsapp-float-icon {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #16a34a;
}

.whatsapp-float-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ghost-button {
    min-height: 52px;
    padding: 13px 20px;
    border: 1px solid rgba(239, 68, 68, 0.42);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    font-size: 15px;
    font-weight: 900;
}

[data-theme="light"] .ghost-button {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
}

.ghost-button:hover {
    border-color: rgba(239, 68, 68, 0.72);
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.danger-button {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.status-pill.warning,
.status-pill.neutral {
    border-color: rgba(239, 68, 68, 0.34);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

.ghost-button {
    border: 0;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .ghost-button {
    color: #fff;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.ghost-button:hover {
    background: linear-gradient(180deg, #f87171 0%, #b91c1c 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.admin-workspace {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-menu {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.admin-menu button {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-weight: 900;
    text-align: left;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-menu button i {
    width: 21px;
    height: 21px;
}

.admin-menu button:hover {
    transform: translateX(2px);
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.admin-menu button.is-active {
    border-color: transparent;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.26);
}

.admin-panels {
    min-width: 0;
}

.admin-panel {
    display: none;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.admin-panel.is-active {
    display: grid;
    gap: 18px;
    animation: fadeUp 0.28s ease both;
}

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

.panel-head h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 3vw, 38px);
}

.panel-head p {
    margin: 7px 0 0;
    color: var(--muted);
}

.admin-form-card {
    max-width: 680px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

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

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.row-actions form {
    margin: 0;
}

.ghost-button.small,
.danger-button.small {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 12px;
}

.admin-panel .compact-table table {
    min-width: 980px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatPanel {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseSoft {
    0%,
    100% {
        box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.08);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3), 0 0 30px rgba(37, 99, 235, 0.16);
    }
}

@media (max-width: 920px) {
    .app-shell {
        width: min(100% - 22px, 760px);
    }

    .agent-completion-filter {
        grid-template-columns: 1fr;
    }

    .topbar,
    .panel-hero,
    .admin-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .nav-pills,
    .top-actions {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .hero-section,
    .upload-layout,
    .auth-layout,
    .admin-grid,
    .admin-command,
    .professional-grid,
    .admin-workspace,
    .admin-split-forms {
        grid-template-columns: 1fr;
    }

    .admin-menu {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-card {
        position: static;
    }

    .stats-grid,
    .trust-section,
    .admin-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-timeline li {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .payment-choice-actions {
        grid-template-columns: 1fr;
    }

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

    .app-shell {
        padding-bottom: 92px;
    }

    .brand {
        min-width: 0;
    }

    .form-grid,
    .preview-grid,
    .stats-grid,
    .trust-section,
    .admin-status-grid,
    .compact-form.inline-form {
        grid-template-columns: 1fr;
    }

    .admin-command {
        padding: 18px;
    }

    .admin-command-copy h1 {
        font-size: 38px;
    }

    .broadcast-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-menu {
        grid-template-columns: 1fr;
    }

    .panel-head {
        flex-direction: column;
    }

    .otp-line {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-section {
        padding-top: 44px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .mobile-sticky-action {
        display: inline-flex;
        left: 16px;
    }
}

/* Responsive hardening for shared hosting devices and narrow admin workflows. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-preview,
.glass-card,
.table-card,
.admin-card,
.auth-card,
.admin-panel,
.admin-panels,
.admin-command,
.admin-command-copy,
.admin-command-panel,
.admin-actions,
.command-pills,
.filter-pills,
.coupon-chips,
.payment-metrics,
.payment-detail-metrics,
.payment-filter-form,
.order-ops-grid,
.download-option-grid,
.management-summary,
.price-card,
.upload-card,
.stat-card,
.trust-card,
.ops-mini-card,
.payment-note,
.secure-note {
    min-width: 0;
}

.responsive-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.responsive-table::-webkit-scrollbar {
    height: 9px;
}

.responsive-table::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(56, 189, 248, 0.42);
}

td,
th,
.card-title,
.panel-head,
.coupon-list li,
.audit-list li,
.agent-list div,
.payment-metrics span,
.management-summary span,
.coupon-chips span,
.command-pills span,
.filter-pills span {
    min-width: 0;
}

td small,
.card-title p,
.panel-head p,
.admin-command-copy p,
.trust-card p {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .app-shell {
        width: min(100% - 24px, 1020px);
    }

    .hero-section,
    .upload-layout {
        gap: 22px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 54px 0 36px;
    }

    .dashboard-preview {
        justify-self: center;
        width: min(100%, 620px);
    }

    .admin-workspace {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .admin-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .payment-detail-metrics,
    .order-ops-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .app-shell {
        width: min(100% - 20px, 820px);
    }

    .topbar {
        top: 8px;
        gap: 10px;
        padding: 10px;
    }

    .brand,
    .nav-pills,
    .top-actions {
        width: 100%;
    }

    .nav-pills,
    .top-actions,
    .filter-pills,
    .command-pills,
    .coupon-chips,
    .payment-metrics,
    .management-summary {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .nav-pills a,
    .top-actions > *,
    .filter-pills span,
    .command-pills span,
    .coupon-chips span,
    .payment-metrics span,
    .management-summary span {
        flex: 0 0 auto;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 50px 0 34px;
    }

    .dashboard-preview {
        animation: none;
        width: min(100%, 580px);
    }

    .live-upload-row {
        grid-template-columns: 28px 38px minmax(0, 1fr) auto auto;
    }

    .upload-layout,
    .professional-grid,
    .admin-command,
    .admin-workspace,
    .admin-split-forms,
    .payment-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-menu {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 10px;
    }

    .admin-menu button {
        flex: 0 0 210px;
        min-height: 50px;
    }

    .admin-menu button:hover {
        transform: translateY(-1px);
    }

    .admin-panel,
    .table-card,
    .upload-card,
    .price-card {
        padding: 18px;
    }
}

@media (max-width: 760px) {
    .panel-hero,
    .admin-heading,
    .card-title,
    .panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .panel-hero .primary-button,
    .panel-head .primary-button,
    .card-title .primary-button {
        width: 100%;
    }

    .hero-copy h1 {
        font-size: 40px;
        line-height: 1.04;
    }

    .hero-copy p,
    .admin-command-copy p {
        font-size: 15px;
        line-height: 1.55;
    }

    .stats-grid,
    .trust-section,
    .admin-status-grid,
    .payment-detail-metrics,
    .order-ops-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card {
        min-height: 124px;
        padding: 16px;
    }

    .stat-card strong,
    .metric-card strong {
        font-size: clamp(26px, 9vw, 34px);
    }

    .auth-dialog,
    .auth-dialog.order-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 22px;
    }

    .live-upload-row {
        grid-template-columns: 24px 34px minmax(72px, 1fr) 88px 62px;
        gap: 6px;
    }

    .order-modal,
    .auth-modal {
        padding: 12px;
    }
}

@media (max-width: 620px) {
    .app-shell {
        width: calc(100% - 16px);
        padding-top: 8px;
    }

    body.portal-page .app-shell,
    body.admin-page .app-shell {
        padding-bottom: 28px;
    }

    .topbar {
        border-radius: 10px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand small {
        display: none;
    }

    .icon-button {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-actions .primary-button,
    .hero-actions .ghost-button,
    .submit-button,
    .danger-button.full,
    .primary-button.full,
    .ghost-button.full {
        width: 100%;
    }

    .admin-shell,
    .panel-hero,
    .upload-section,
    .trust-section {
        padding: 28px 0;
    }

    .admin-command {
        padding: 16px;
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-command-copy h1,
    .panel-hero h1,
    .admin-heading h1 {
        font-size: 34px;
        line-height: 1.05;
    }

    .admin-menu {
        display: grid;
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
    }

    .agent-alert-card {
        align-items: stretch;
        flex-direction: column;
    }

    .agent-alert-actions {
        justify-items: stretch;
        min-width: 0;
    }

    .admin-menu button {
        flex-basis: auto;
        width: 100%;
    }

    .live-upload-feed {
        gap: 8px;
    }

    .live-upload-row {
        padding: 8px;
        border-radius: 10px;
    }

    .country-code {
        font-size: 11px;
    }

    .file-bubble {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .file-bubble i {
        width: 16px;
        height: 16px;
    }

    .service-name-chip {
        min-width: 0;
        min-height: 30px;
        padding: 5px 6px;
        font-size: 10px;
    }

    .time-chip {
        min-height: 30px;
        padding: 5px 6px;
        font-size: 9px;
        gap: 3px;
    }

    .time-chip i {
        width: 12px;
        height: 12px;
    }

    .upload-person,
    .upload-person strong {
        font-size: 11px;
        line-height: 1.15;
    }

    .upload-person small {
        font-size: 9px;
    }

    .admin-panel,
    .table-card,
    .upload-card,
    .price-card,
    .auth-dialog,
    .auth-dialog.order-dialog {
        padding: 16px;
        border-radius: 10px;
    }

    .row-actions,
    .inline-upload-form,
    .broadcast-actions,
    .admin-actions,
    .panel-actions {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        width: 100%;
    }

    .row-actions .small,
    .row-actions button,
    .row-actions a,
    .inline-upload-form button,
    .inline-upload-form .mini-upload,
    .admin-actions a,
    .admin-actions button,
    .panel-actions a,
    .panel-actions button,
    .broadcast-actions button {
        width: 100%;
    }

    .mini-upload {
        max-width: none;
    }

    .coupon-list li,
    .audit-list li,
    .agent-list div {
        align-items: flex-start;
        flex-direction: column;
    }

    .audit-timeline li {
        grid-template-columns: 1fr;
    }

    body.portal-page .mobile-sticky-action,
    body.admin-page .mobile-sticky-action {
        display: none;
    }
}

@media (max-width: 430px) {
    .stats-grid,
    .trust-section,
    .admin-status-grid,
    .payment-detail-metrics,
    .order-ops-grid,
    .download-option-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .admin-command-copy h1,
    .panel-hero h1,
    .admin-heading h1 {
        font-size: 30px;
    }

    .primary-button,
    .ghost-button,
    .submit-button,
    .danger-button {
        min-height: 50px;
        padding-inline: 14px;
        font-size: 14px;
    }

    input,
    select,
    textarea {
        min-height: 50px;
        font-size: 14px;
    }

    .responsive-table {
        margin-inline: -6px;
        width: calc(100% + 12px);
        padding-inline: 6px;
    }

    table {
        min-width: 760px;
    }

    .compact-table table,
    .admin-panel .compact-table table {
        min-width: 880px;
    }

    .life-table table {
        min-width: 1040px;
    }
}

/* Phone app-style header: only brand + menu button remain visible. */
@media (max-width: 620px) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        top: 8px;
        padding: 8px;
        border-radius: 14px;
    }

    .mobile-menu-toggle {
        display: inline-grid;
        grid-column: 2;
        grid-row: 1;
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
        color: #2563eb;
        box-shadow: 0 12px 28px rgba(14, 165, 233, 0.22);
    }

    .topbar .brand {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        min-width: 0;
    }

    .topbar .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .topbar .brand strong {
        font-size: 15px;
        line-height: 1.1;
    }

    .topbar .brand small {
        display: block;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
    }

    .topbar .nav-pills,
    .topbar .top-actions {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        overflow: visible;
        padding: 0;
    }

    .topbar.is-menu-open .nav-pills,
    .topbar.is-menu-open .top-actions {
        display: grid;
        gap: 8px;
    }

    .topbar.is-menu-open .nav-pills {
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    .topbar .nav-pills a,
    .topbar .top-actions > * {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .topbar .top-actions {
        grid-template-columns: 1fr;
    }

    .topbar .top-actions .icon-button {
        display: inline-flex;
        gap: 8px;
    }

    .topbar .top-actions .icon-button::after {
        content: "Theme";
        font-weight: 800;
    }
}

/* Turnitin-style landing sections */
body.landing-page {
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 48%, #eef4ff 100%);
}

.landing-page .app-shell {
    width: min(1220px, calc(100% - 32px));
}

.landing-page .hero-section {
    grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.78fr);
    gap: 24px;
    padding: 52px 0 34px;
}

.landing-page .hero-copy h1 {
    max-width: 680px;
    font-size: clamp(34px, 4.8vw, 54px);
    line-height: 1.08;
}

.landing-page .hero-copy p {
    max-width: 590px;
    font-size: 16px;
    line-height: 1.58;
}

.landing-page .section-heading h2,
.landing-section-head h2 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.12;
}

.landing-section {
    padding: 68px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.landing-section-head {
    width: min(760px, 100%);
    margin: 0 auto 34px;
    text-align: center;
}

.landing-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 16px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.06);
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-samples-section {
    padding-top: 54px;
}

.report-sample-grid,
.process-cards,
.pricing-card-grid {
    display: grid;
    gap: 18px;
}

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

.report-sample-card,
.process-card,
.feature-card,
.pricing-plan {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.report-sample-card {
    overflow: hidden;
}

.report-sample-card img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.report-sample-copy {
    padding: 20px 22px 22px;
}

.report-sample-copy h3,
.process-card h3,
.feature-card h3,
.pricing-plan h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.25;
}

.report-sample-copy p,
.process-card p,
.feature-card p,
.pricing-plan p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.report-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.report-label.ai {
    background: linear-gradient(135deg, #d946ef, #7c3aed);
}

.report-label.similarity {
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
}

.report-proof-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.report-proof-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: #2563eb;
    font-weight: 800;
}

.report-proof-row span:first-child {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.report-proof-row span:last-child {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.slot-reports-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(248, 251, 255, 0.95));
}

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

.slot-report-card {
    min-height: 326px;
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 2px solid rgba(37, 99, 235, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.slot-report-card.similarity {
    border-top-color: rgba(248, 113, 113, 0.5);
}

.slot-report-card.ai {
    border-top-color: rgba(59, 130, 246, 0.5);
}

.slot-report-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.slot-report-head h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
}

.slot-report-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.slot-report-icon {
    position: relative;
    display: grid;
    width: 48px;
    height: 62px;
    place-items: center;
    padding: 8px 5px;
    border: 4px solid #ef4444;
    border-radius: 6px;
    color: #ef4444;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.16);
}

.slot-report-icon::after {
    content: "";
    position: absolute;
    right: -11px;
    bottom: -6px;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #ef4444;
}

.slot-report-icon.ai {
    border-color: #0284c7;
    color: #0284c7;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.slot-report-icon.ai::after {
    background: #2563eb;
}

.slot-report-icon b {
    font-size: 14px;
}

.slot-report-icon small {
    max-width: 100%;
    overflow: hidden;
    font-size: 6px;
    font-weight: 900;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
}

.slot-report-list {
    display: grid;
    gap: 18px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.slot-report-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: #526887;
    font-size: 16px;
    line-height: 1.4;
}

.slot-report-list i {
    width: 18px;
    height: 18px;
    color: #0faaa3;
    filter: drop-shadow(0 5px 10px rgba(15, 170, 163, 0.18));
}

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

.process-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 116px;
    padding: 20px;
}

.process-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -18px;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    background: #fff;
    color: #94a3b8;
    transform: translateY(-50%);
}

.process-icon {
    position: relative;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.process-icon.teal {
    background: rgba(20, 184, 166, 0.11);
    color: #0f766e;
}

.process-icon.blue {
    background: rgba(14, 165, 233, 0.11);
    color: #0369a1;
}

.process-icon b {
    position: absolute;
    right: -7px;
    top: -7px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.client-review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.client-review-card {
    display: grid;
    gap: 16px;
    min-height: 220px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.review-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
}

.review-stars i {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.client-review-card p {
    margin: 0;
    color: #526887;
    font-size: 14px;
    line-height: 1.58;
}

.review-author {
    align-self: end;
    display: grid;
    gap: 3px;
}

.review-author strong {
    color: #0f172a;
    font-size: 14px;
}

.review-author span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.youtube-frame {
    position: relative;
    display: block;
    width: min(920px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
    aspect-ratio: 16 / 9;
}

.youtube-preview-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.youtube-preview-card:hover img {
    transform: scale(1.03);
}

.youtube-preview-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.7));
}

.youtube-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    box-shadow: 0 18px 42px rgba(239, 68, 68, 0.28);
    transform: translate(-50%, -50%);
}

.youtube-play-button svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
    fill: currentColor;
}

.youtube-open-copy {
    position: absolute;
    left: 22px;
    bottom: 20px;
    display: grid;
    gap: 4px;
    color: #fff;
}

.youtube-open-copy strong {
    font-size: 19px;
}

.youtube-open-copy small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.feature-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    align-content: start;
    min-height: 116px;
    padding: 18px;
}

.feature-card > i {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.08);
    color: #2563eb;
}

.feature-card h3,
.feature-card p {
    grid-column: 2;
}

.feature-card p {
    max-width: 36rem;
}

.landing-page .topbar {
    position: relative;
    top: auto;
}

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

.pricing-plan {
    padding: 22px;
}

.pricing-plan strong {
    display: block;
    margin: 12px 0 4px;
    color: #2563eb;
    font-size: 30px;
    line-height: 1.05;
}

.pricing-plan span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}

.pricing-plan.removal strong {
    font-size: 25px;
}

.landing-page .upload-section {
    padding-top: 64px;
}

.site-footer {
    margin-top: 74px;
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.88));
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, 0.7fr));
    gap: 28px;
    align-items: start;
}

.footer-brand .brand {
    min-width: 0;
}

.footer-brand p {
    max-width: 350px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-column {
    display: grid;
    gap: 10px;
}

.footer-column h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.footer-column a,
.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-cta {
    width: fit-content;
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 920px) {
    .landing-page .hero-section,
    .report-sample-grid,
    .slot-report-grid,
    .process-cards,
    .feature-grid,
    .client-review-grid,
    .pricing-card-grid {
        grid-template-columns: 1fr;
    }

    .process-card:not(:last-child)::after {
        display: none;
    }

    .report-sample-card img {
        height: 280px;
    }

    .slot-report-card {
        min-height: auto;
    }

    .site-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .landing-page .app-shell {
        width: calc(100% - 18px);
    }

    .landing-section {
        padding: 46px 0;
    }

    .landing-page .hero-copy h1 {
        font-size: 32px;
    }

    .landing-section-head h2 {
        font-size: 28px;
    }

    .landing-section-head p {
        font-size: 14px;
    }

    .report-sample-card img {
        height: 220px;
    }

    .slot-report-card {
        padding: 22px;
    }

    .slot-report-list {
        gap: 14px;
        margin-top: 24px;
    }

    .slot-report-list li {
        font-size: 14px;
    }

    .site-footer {
        margin-top: 48px;
        padding: 22px;
        border-radius: 14px;
    }

    .site-footer-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer-bottom {
        display: grid;
    }
}

.landing-page .turnitin-hero-section {
    display: flex;
    justify-content: center;
    min-height: 520px;
    padding: 58px 0 72px;
    text-align: center;
}

.turnitin-hero-section .dashboard-preview {
    display: none;
}

.turnitin-hero {
    display: grid;
    justify-items: center;
    width: min(1040px, 100%);
}

.hero-score-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 26px;
}

.score-pill {
    display: grid;
    grid-template-columns: 42px auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    min-width: 190px;
    min-height: 72px;
    padding: 12px 22px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.score-pill.similarity {
    border-color: rgba(248, 113, 113, 0.34);
}

.score-document {
    grid-row: 1 / 3;
    display: grid;
    width: 38px;
    height: 50px;
    place-items: center;
    padding: 5px 4px;
    border: 3px solid #ef4444;
    border-radius: 5px;
    color: #ef4444;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.score-document b,
.score-document small {
    max-width: 100%;
    overflow: hidden;
    font-size: 8px;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
}

.score-document small {
    font-size: 6px;
}

.score-pill.ai .score-document {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.score-pill strong {
    color: #2563eb;
    font-size: 32px;
    line-height: 1;
}

.score-pill.similarity strong {
    color: #ef4444;
}

.score-pill em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.landing-page .turnitin-hero h1 {
    margin: 0;
    max-width: none;
    color: #0f172a;
    font-size: 92px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.turnitin-hero h1 span {
    background: linear-gradient(90deg, #2563eb 0%, #2563eb 44%, #14b8a6 100%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-page .turnitin-hero p {
    max-width: 920px;
    margin: 28px auto 0;
    color: #526887;
    font-size: 22px;
    line-height: 1.5;
}

.turnitin-hero p strong {
    position: relative;
    display: inline-block;
    color: #0f172a;
    font-weight: 900;
}

.turnitin-hero p strong::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    z-index: -1;
    height: 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.45);
}

.hero-start-button {
    min-height: 62px;
    margin-top: 36px;
    padding: 16px 32px;
    border-radius: 10px;
    background: #2563eb !important;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
    font-size: 18px;
}

@media (max-width: 920px) {
    .landing-page .turnitin-hero-section {
        min-height: 470px;
        padding: 48px 0 58px;
    }

    .landing-page .turnitin-hero h1 {
        font-size: 62px;
    }

    .landing-page .turnitin-hero p {
        font-size: 19px;
    }
}

@media (max-width: 620px) {
    .landing-page .turnitin-hero-section {
        min-height: auto;
        padding: 34px 0 46px;
    }

    .hero-score-row {
        gap: 10px;
        margin-bottom: 22px;
    }

    .score-pill {
        min-width: 156px;
        min-height: 62px;
        padding: 10px 12px;
        border-radius: 18px;
    }

    .score-pill strong {
        font-size: 24px;
    }

    .score-pill em {
        font-size: 10px;
    }

    .landing-page .turnitin-hero h1 {
        font-size: 43px;
        line-height: 1.08;
    }

    .landing-page .turnitin-hero p {
        margin-top: 20px;
        font-size: 16px;
    }

    .hero-start-button {
        min-height: 54px;
        margin-top: 28px;
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Professional full-width landing chrome */
.landing-page {
    background: #f7fbff;
}

.landing-page .app-shell {
    width: 100%;
    padding: 0 0 80px;
}

.landing-page .topbar {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 76px;
    padding: 12px max(20px, calc((100vw - 1220px) / 2));
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.landing-page .brand {
    min-width: 220px;
}

.landing-page .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.landing-page .brand strong {
    font-size: 16px;
    letter-spacing: 0;
}

.landing-page .brand small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.landing-page .nav-pills {
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.78);
}

.landing-page .nav-pills a {
    min-height: 38px;
    padding: 8px 12px;
    border-color: transparent;
    border-radius: 10px;
    background: transparent;
    color: #526887;
    font-size: 13px;
    font-weight: 800;
}

.landing-page .nav-pills a.is-active,
.landing-page .nav-pills a:hover {
    border-color: rgba(37, 99, 235, 0.1);
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.landing-page .top-actions {
    min-width: 190px;
}

.landing-page .top-actions .ghost-button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.landing-page .top-actions .icon-button {
    width: 42px;
    height: 42px;
    border-color: rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #f8fafc;
}

.landing-page main > section {
    padding-right: max(20px, calc((100vw - 1220px) / 2));
    padding-left: max(20px, calc((100vw - 1220px) / 2));
}

.landing-page .turnitin-hero-section {
    margin: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 78%),
        #fff;
}

.landing-page .landing-section {
    border-top: 0;
}

.landing-page .report-samples-section,
.landing-page .features-section {
    background: #fff;
}

.landing-page .slot-reports-section,
.landing-page .pricing-section {
    background: #f8fbff;
}

.landing-page .process-section,
.landing-page .upload-section {
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.landing-section-head {
    margin-bottom: 42px;
}

.landing-page .section-badge {
    border-color: rgba(37, 99, 235, 0.18);
    background: #eef6ff;
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.landing-page .report-sample-card,
.landing-page .slot-report-card,
.landing-page .process-card,
.landing-page .feature-card,
.landing-page .pricing-plan,
.landing-page .upload-card,
.landing-page .price-card {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.landing-page .feature-card,
.landing-page .process-card,
.landing-page .pricing-plan {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-page .feature-card:hover,
.landing-page .process-card:hover,
.landing-page .pricing-plan:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.landing-page .site-footer {
    width: 100%;
    margin: 0;
    margin-bottom: 0;
    padding: 36px max(20px, calc((100vw - 1220px) / 2)) 30px;
    border-width: 1px 0 0;
    border-radius: 0;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: none;
}

.landing-page .app-shell {
    padding-bottom: 0;
}

.landing-page .site-footer .brand strong,
.landing-page .site-footer .footer-column h3 {
    color: #f8fafc;
}

.landing-page .site-footer .brand small,
.landing-page .footer-brand p,
.landing-page .footer-column a,
.landing-page .footer-contact span,
.landing-page .site-footer-bottom {
    color: #aebcd0;
}

.landing-page .footer-column a:hover {
    color: #fff;
}

.landing-page .footer-cta {
    background: #2563eb;
}

@media (max-width: 1180px) {
    .landing-page .topbar {
        gap: 12px;
    }

    .landing-page .brand,
    .landing-page .top-actions {
        min-width: auto;
    }
}

@media (max-width: 920px) {
    .landing-page .topbar {
        align-items: center;
        min-height: 68px;
        padding: 10px 14px;
        border-radius: 0;
    }

    .landing-page .nav-pills {
        border-radius: 12px;
    }

    .landing-page main > section {
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (max-width: 620px) {
    .landing-page .app-shell {
        width: 100%;
    }

    .landing-page .brand-mark {
        width: 42px;
        height: 42px;
    }

    .landing-page .top-actions .icon-button::after {
        content: "";
    }

    .landing-page .site-footer {
        padding: 28px 18px 96px;
    }
}

.landing-page .turnitin-hero-section {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    min-height: auto;
}

.landing-page .turnitin-hero-section .dashboard-preview {
    display: block;
    width: min(760px, 100%);
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.landing-page .turnitin-hero-section .preview-toolbar {
    padding: 0 2px;
    color: #0f172a;
}

.landing-page .turnitin-hero-section .preview-toolbar strong {
    font-size: 14px;
    font-weight: 900;
}

.landing-page .turnitin-hero-section .status-pill.success {
    border: 1px solid rgba(16, 185, 129, 0.16);
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.landing-page .turnitin-hero-section .live-upload-row {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.landing-page .live-queue-section {
    padding-top: 58px;
    padding-bottom: 74px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.landing-page .live-queue-section .landing-section-head {
    margin-bottom: 24px;
}

.landing-page .live-queue-section .dashboard-preview {
    display: block;
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.landing-page .live-queue-section .preview-toolbar {
    padding: 0 2px;
    color: #0f172a;
}

.landing-page .live-queue-section .preview-toolbar strong {
    font-size: 14px;
    font-weight: 900;
}

.landing-page .live-queue-section .status-pill.success {
    border: 1px solid rgba(16, 185, 129, 0.16);
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.landing-page .live-queue-section .live-upload-row {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

@media (max-width: 620px) {
    .landing-page .turnitin-hero-section {
        gap: 24px;
        padding-bottom: 40px;
    }

    .landing-page .turnitin-hero-section .dashboard-preview {
        padding: 10px;
        border-radius: 14px;
    }

    .landing-page .live-queue-section {
        padding-top: 44px;
        padding-bottom: 52px;
    }

    .landing-page .live-queue-section .dashboard-preview {
        padding: 10px;
        border-radius: 14px;
    }
}

[data-theme="dark"] body.landing-page,
[data-theme="dark"] .landing-page {
    background: #08111f;
    color: #e5edf8;
}

[data-theme="dark"] .landing-page .topbar {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(8, 17, 31, 0.94);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .landing-page .brand small {
    color: #8fa4bf;
}

[data-theme="dark"] .landing-page .nav-pills {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.8);
}

[data-theme="dark"] .landing-page .nav-pills a {
    color: #aab8cc;
}

[data-theme="dark"] .landing-page .nav-pills a.is-active,
[data-theme="dark"] .landing-page .nav-pills a:hover {
    border-color: rgba(56, 189, 248, 0.18);
    background: rgba(30, 41, 59, 0.95);
    color: #f8fafc;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .landing-page .top-actions .icon-button {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.9);
    color: #e5edf8;
}

[data-theme="dark"] .landing-page .turnitin-hero-section {
    border-bottom-color: rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.22), transparent 34rem),
        linear-gradient(180deg, #0b1526 0%, #08111f 84%);
}

[data-theme="dark"] .landing-page .report-samples-section,
[data-theme="dark"] .landing-page .features-section,
[data-theme="dark"] .landing-page .client-reviews-section {
    background: #08111f;
}

[data-theme="dark"] .landing-page .slot-reports-section,
[data-theme="dark"] .landing-page .pricing-section,
[data-theme="dark"] .landing-page .youtube-section,
[data-theme="dark"] .landing-page .live-queue-section {
    background: #0b1526;
}

[data-theme="dark"] .landing-page .process-section,
[data-theme="dark"] .landing-page .upload-section {
    background: linear-gradient(180deg, #08111f 0%, #0b1526 100%);
}

[data-theme="dark"] .landing-page .turnitin-hero h1,
[data-theme="dark"] .landing-section-head h2,
[data-theme="dark"] .landing-page .section-heading h2,
[data-theme="dark"] .landing-page .report-sample-copy h3,
[data-theme="dark"] .landing-page .slot-report-head h3,
[data-theme="dark"] .landing-page .process-card h3,
[data-theme="dark"] .landing-page .feature-card h3,
[data-theme="dark"] .landing-page .pricing-plan h3,
[data-theme="dark"] .landing-page .review-author strong,
[data-theme="dark"] .landing-page .price-header h3,
[data-theme="dark"] .landing-page .turnitin-hero p strong {
    color: #f8fafc;
}

[data-theme="dark"] .landing-page .turnitin-hero p,
[data-theme="dark"] .landing-section-head p,
[data-theme="dark"] .landing-page .report-sample-copy p,
[data-theme="dark"] .landing-page .slot-report-head p,
[data-theme="dark"] .landing-page .slot-report-list li,
[data-theme="dark"] .landing-page .process-card p,
[data-theme="dark"] .landing-page .feature-card p,
[data-theme="dark"] .landing-page .pricing-plan p,
[data-theme="dark"] .landing-page .client-review-card p,
[data-theme="dark"] .landing-page .review-author span,
[data-theme="dark"] .landing-page .price-header p {
    color: #aab8cc;
}

[data-theme="dark"] .landing-page .section-badge {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(37, 99, 235, 0.14);
    color: #93c5fd;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.08);
}

[data-theme="dark"] .landing-page .score-pill,
[data-theme="dark"] .landing-page .report-sample-card,
[data-theme="dark"] .landing-page .slot-report-card,
[data-theme="dark"] .landing-page .process-card,
[data-theme="dark"] .landing-page .feature-card,
[data-theme="dark"] .landing-page .client-review-card,
[data-theme="dark"] .landing-page .pricing-plan,
[data-theme="dark"] .landing-page .upload-card,
[data-theme="dark"] .landing-page .price-card,
[data-theme="dark"] .landing-page .live-queue-section .dashboard-preview {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .landing-page .report-sample-card img {
    border-bottom-color: rgba(148, 163, 184, 0.14);
    background: #fff;
}

[data-theme="dark"] .landing-page .report-proof-row span,
[data-theme="dark"] .landing-page .report-proof-row span:first-child,
[data-theme="dark"] .landing-page .report-proof-row span:last-child {
    background: rgba(30, 41, 59, 0.86);
    color: #c7d2fe;
}

[data-theme="dark"] .landing-page .live-queue-section .preview-toolbar,
[data-theme="dark"] .landing-page .live-queue-section .preview-toolbar strong {
    color: #f8fafc;
}

[data-theme="dark"] .landing-page .live-queue-section .live-upload-row {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.92);
    color: #e5edf8;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .landing-page .country-code,
[data-theme="dark"] .landing-page .upload-person strong {
    color: #f8fafc;
}

[data-theme="dark"] .landing-page .upload-person,
[data-theme="dark"] .landing-page .upload-person small,
[data-theme="dark"] .landing-page .time-chip {
    color: #aab8cc;
}

[data-theme="dark"] .landing-page .file-bubble,
[data-theme="dark"] .landing-page .service-name-chip,
[data-theme="dark"] .landing-page .time-chip {
    background: rgba(30, 41, 59, 0.96);
}

[data-theme="dark"] .landing-page input,
[data-theme="dark"] .landing-page select,
[data-theme="dark"] .landing-page textarea,
[data-theme="dark"] .landing-page .phone-field > span {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(8, 17, 31, 0.86);
    color: #f8fafc;
}

[data-theme="dark"] .landing-page .drop-zone,
[data-theme="dark"] .landing-page .secure-note,
[data-theme="dark"] .landing-page .price-list div {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(8, 17, 31, 0.72);
}

[data-theme="dark"] .landing-page .site-footer {
    border-color: rgba(148, 163, 184, 0.12);
    background: #050b14;
}

/* ============================================================
   FIX 4: Download icon - clean square button
   ============================================================ */
.table-download-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}

.table-download-icon i {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
}

/* Fix numbered download buttons */
.numbered-download {
    width: auto !important;
    min-width: 36px !important;
    padding: 0 6px !important;
    gap: 3px;
    font-size: 11px;
    font-weight: 800;
}

/* ============================================================
   FIX 5: Delete button - smaller
   ============================================================ */
.danger-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.danger-button:hover {
    background: rgba(239, 68, 68, 0.22);
}

.danger-button.small,
td .danger-button {
    padding: 5px 9px;
    font-size: 11px;
    border-radius: 8px;
}

.danger-button i,
.danger-button.small i {
    width: 13px !important;
    height: 13px !important;
}

/* ============================================================
   FIX 7: Reduce text sizes for better responsiveness
   ============================================================ */
th {
    font-size: 11px;
}

td {
    font-size: 12px;
}

td strong {
    font-size: 12px;
}

td small {
    font-size: 10px;
    color: var(--muted);
}

.status-pill {
    font-size: 11px;
    padding: 5px 8px;
}

/* ============================================================
   FIX 9: Upload Modal (agent panel)
   ============================================================ */
#upload-files-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
}

#upload-files-modal.is-open {
    display: flex;
}

.full {
    width: 100%;
}

/* ============================================================
   FIX 3: Agent mobile cards (shown on small screens)
   ============================================================ */
.agent-mobile-cards {
    display: none;
}

.agent-desktop-table {
    display: block;
}

.agent-task-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    margin-bottom: 14px;
    overflow: hidden;
}

.agent-task-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}

.task-sr {
    font-size: 13px;
    font-weight: 900;
    color: var(--text);
    margin-right: 8px;
}

.agent-task-card-body {
    padding: 12px 14px;
    display: grid;
    gap: 8px;
}

.agent-task-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
    align-items: start;
    font-size: 12px;
}

.agent-task-row > span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
}

.agent-task-row > strong {
    font-weight: 700;
    word-break: break-word;
}

.agent-task-card-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

.mobile-empty-card {
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

/* User Dashboard mobile cards */
.user-mobile-cards {
    display: none;
}

.user-order-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.user-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.user-card-header div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-card-body {
    padding: 12px 14px;
    display: grid;
    gap: 8px;
}

.user-card-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}

.order-id-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

/* Admin Mobile cards */
.admin-orders-mobile-cards,
.admin-users-mobile-cards,
.admin-agents-mobile-cards,
.admin-coupons-mobile-cards {
    display: none;
}

.admin-order-card,
.admin-user-card,
.admin-agent-card,
.admin-coupon-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.admin-card-header div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-body {
    padding: 12px 14px;
    display: grid;
    gap: 8px;
}

.admin-card-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}

.card-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px;
    align-items: start;
    font-size: 12px;
}

.card-row > span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
}

.card-row > strong {
    font-weight: 700;
    word-break: break-word;
}

/* ============================================================
   FIX 3: Mobile responsive - switch tables to cards
   ============================================================ */
@media (max-width: 768px) {
    /* Agent panel: show cards, hide desktop table */
    .agent-mobile-cards {
        display: block;
    }

    .agent-desktop-table {
        display: none;
    }

    /* Show other dashboard/admin mobile cards, hide desktop tables */
    .user-mobile-cards,
    .admin-orders-mobile-cards,
    .admin-users-mobile-cards,
    .admin-agents-mobile-cards,
    .admin-coupons-mobile-cards {
        display: block !important;
    }

    .user-desktop-table,
    .admin-orders-desktop-table,
    .admin-users-desktop-table,
    .admin-agents-desktop-table,
    .admin-coupons-desktop-table {
        display: none !important;
    }

    /* User/Admin dashboard tables → responsive scrollable, smaller text */
    .responsive-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
        font-size: 11px;
    }

    th {
        font-size: 10px;
        padding: 10px 8px;
    }

    td {
        padding: 10px 8px;
        font-size: 11px;
    }

    td strong {
        font-size: 11px;
    }

    td small {
        font-size: 10px;
    }

    .status-pill {
        font-size: 10px;
        padding: 4px 6px;
    }

    .table-download-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
    }

    .numbered-download {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        gap: 2px !important;
    }

    .danger-button,
    .danger-button.small {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Stats grid: 2 columns on mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        min-height: 90px;
        padding: 14px;
    }

    .stat-card strong {
        font-size: 28px;
    }

    .stat-card small {
        font-size: 10px;
    }

    /* Completion filter form */
    .agent-completion-filter {
        flex-direction: column;
        gap: 10px;
    }

    .agent-completion-filter label {
        flex-direction: column;
        gap: 4px;
    }

    /* Panel hero */
    .panel-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }

    .panel-hero h1 {
        font-size: 22px;
    }

    /* Upload modal fullscreen on mobile */
    #upload-files-modal .auth-dialog {
        width: 95vw;
        max-width: 95vw !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* file-download-stack horizontal on mobile */
    .file-download-stack {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .file-download-stack strong {
        max-width: 120px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .agent-task-row {
        grid-template-columns: 70px 1fr;
        font-size: 11px;
    }

    .panel-hero h1 {
        font-size: 20px;
    }

    .card-title h2 {
        font-size: 16px;
    }
}

/* ============================================================
   BULK ACTION BAR (Multi-select delete)
   ============================================================ */
.bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.07);
    animation: fadeIn 0.18s ease;
}

.bulk-count {
    font-size: 13px;
    font-weight: 700;
    color: #f87171;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Select-all checkbox in table header */
th input[type="checkbox"],
td input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary-2, #3b82f6);
    cursor: pointer;
    border-radius: 4px;
}

/* ================================================================
   PREMIUM MOBILE RESPONSIVE — ALL PANELS
   Applies to: admin.php | dashboard.php | agent.php
   ================================================================ */

/* ---- Shared card shell for mobile row cards ---- */
.m-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    transition: transform .18s ease, box-shadow .18s ease;
    margin-bottom: 12px;
}
.m-card:active {
    transform: scale(.99);
}
.m-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg,rgba(37,99,235,.07),rgba(14,165,233,.04));
}
.m-card-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.m-card-id {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-2);
    background: rgba(56,189,248,.12);
    border: 1px solid rgba(56,189,248,.22);
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .02em;
}
.m-card-date {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}
.m-card-body {
    padding: 12px 14px;
    display: grid;
    gap: 7px;
}
.m-card-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 6px;
    align-items: start;
    font-size: 12px;
    line-height: 1.4;
}
.m-card-row > .m-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    padding-top: 2px;
}
.m-card-row > .m-val {
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
    min-width: 0;
}
.m-card-row > .m-val small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
}
.m-card-foot {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(255,255,255,.02);
}
.m-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* ================================================================
   MOBILE BREAKPOINT — ≤ 820px  (tablets & phones)
   ================================================================ */
@media (max-width: 820px) {

    /* ---- App shell padding ---- */
    .app-shell {
        width: calc(100% - 24px);
        padding: 12px 0 60px;
    }

    /* ---- Topbar ---- */
    .topbar {
        top: 8px;
        padding: 8px 10px;
        border-radius: 14px;
    }
    .nav-pills { display: none; }
    .mobile-menu-toggle { display: flex; }

    /* ---- Panel hero ---- */
    .panel-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 0 4px;
    }
    .panel-hero h1 { font-size: 20px; margin: 0; }
    .panel-hero .eyebrow { font-size: 10px; }

    /* ---- Stats grid — 2×2 ---- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        min-height: 80px;
        padding: 12px;
        border-radius: 14px;
    }
    .stat-card small { font-size: 10px; }
    .stat-card strong { font-size: 26px; }
    .stat-card i { width: 22px; height: 22px; }

    /* ---- Table-card section ---- */
    .table-card {
        padding: 14px;
        border-radius: 16px;
    }
    .card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .card-title h2 { font-size: 15px; margin: 0; }
    .card-title p { font-size: 11px; margin: 0; }

    /* ---- Responsive tables — scroll on mobile ---- */
    .responsive-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    table { min-width: 560px; font-size: 11px; }
    th    { font-size: 10px; padding: 9px 8px; }
    td    { padding: 9px 8px; font-size: 11px; }

    /* ---- Bulk bar wraps nicely on mobile ---- */
    .bulk-action-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 10px;
    }

    /* ==============================================================
       AGENT PANEL MOBILE CARDS
       ============================================================== */
    .agent-mobile-cards   { display: block; }
    .agent-desktop-table  { display: none !important; }

    /* Available tasks table: keep as small scrollable table */
    .agent-avail-table { min-width: 460px; }

    /* Agent task card — improved premium design */
    .agent-task-card {
        border-radius: 16px;
        box-shadow: 0 2px 14px rgba(0,0,0,.2);
    }
    .agent-task-card-header {
        padding: 10px 12px;
        background: linear-gradient(135deg,rgba(37,99,235,.08),rgba(14,165,233,.05));
    }
    .agent-task-card-header small { font-size: 10px; color: var(--muted); }
    .task-sr {
        font-size: 12px;
        font-weight: 900;
        color: var(--primary-2);
        background: rgba(56,189,248,.12);
        border: 1px solid rgba(56,189,248,.2);
        padding: 2px 8px;
        border-radius: 20px;
    }
    .agent-task-card-body { padding: 10px 12px; gap: 6px; }
    .agent-task-row {
        grid-template-columns: 80px 1fr;
        font-size: 11px;
    }
    .agent-task-row > span {
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--muted);
        padding-top: 2px;
    }
    .agent-task-row > strong { font-weight: 600; word-break: break-word; }
    .agent-task-card-footer { padding: 10px 12px; }

    /* Download icon sizing inside cards */
    .agent-task-card .table-download-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
    .agent-task-card .primary-button.full {
        font-size: 12px;
        min-height: 36px;
        border-radius: 12px;
    }

    /* Date filter form */
    .agent-completion-filter {
        flex-direction: column;
        gap: 8px;
    }
    .agent-completion-filter label {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }
    .agent-completion-filter input[type="date"] {
        width: 100%;
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
        font-size: 13px;
    }
    .agent-completion-filter .primary-button,
    .agent-completion-filter .ghost-button {
        min-height: 36px;
        font-size: 12px;
    }

    /* Agent alert card */
    .agent-alert-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }
    .agent-alert-actions {
        min-width: unset;
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
        justify-items: unset;
    }
    .agent-alert-card h2 { font-size: 16px; margin: 4px 0; }
    .agent-alert-card p  { font-size: 12px; }

    /* ==============================================================
       USER DASHBOARD MOBILE
       ============================================================== */

    /* User order table: keep scrollable, no card conversion */
    /* (cards would need PHP refactor, table scrolls fine) */
    .panel-hero .primary-button {
        width: 100%;
        justify-content: center;
    }

    /* Download stacks in table cells */
    .file-download-stack {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    .file-download-stack strong { max-width: 100px; font-size: 10px; }

    /* Result wait circle — compact */
    .result-wait-circle {
        width: 44px;
        height: 44px;
    }
    .result-wait-circle div strong { font-size: 8px; }
    .result-wait-circle div span   { font-size: 7px; }

    /* ==============================================================
       ADMIN PANEL MOBILE
       ============================================================== */

    /* Admin shell — stack sidebar on top */
    .admin-shell {
        display: flex;
        flex-direction: column;
    }
    .admin-command {
        padding: 14px;
        border-radius: 14px;
    }
    .admin-command h1 { font-size: 18px; margin: 6px 0; }
    .admin-command p  { font-size: 12px; display: none; }
    .command-pills {
        flex-wrap: wrap;
        gap: 6px;
    }
    .command-pills span { font-size: 10px; padding: 4px 8px; }
    .admin-command-panel {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
    }

    /* Admin workspace — sidebar becomes horizontal scrollable tabs */
    .admin-workspace {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }
    .admin-menu {
        display: flex !important;
        flex-direction: row !important;
        position: relative !important;
        top: auto !important;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 8px;
        scrollbar-width: none;
        min-width: 0;
        width: 100%;
        border-right: none !important;
    }
    .admin-menu::-webkit-scrollbar { display: none; }
    .admin-menu button {
        flex-shrink: 0;
        flex-direction: column;
        min-width: 64px;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 10px;
        gap: 4px;
        border: 1px solid var(--border);
        background: var(--card);
    }
    .admin-menu button span { display: block; }
    .admin-menu button i { width: 18px; height: 18px; }
    .admin-menu button.is-active {
        background: linear-gradient(135deg, #2563eb, #38bdf8);
        border-color: transparent;
        color: #fff;
    }
    .admin-panels { min-width: 0; }

    /* Admin panel-head */
    .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .panel-head h2 { font-size: 16px; margin: 2px 0; }
    .panel-head p  { font-size: 11px; }
    .panel-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .panel-actions .primary-button,
    .panel-actions .ghost-button,
    .panel-actions .danger-button { font-size: 12px; min-height: 36px; }

    /* Order ops grid */
    .order-ops-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .order-ops-grid article {
        padding: 10px 12px;
        border-radius: 12px;
    }
    .order-ops-grid strong { font-size: 18px; }
    .order-ops-grid small  { font-size: 10px; }

    /* Payment metrics */
    .payment-detail-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Admin forms */
    .admin-update-form,
    .compact-form {
        flex-direction: column;
        gap: 8px;
    }
    .admin-split-forms { flex-direction: column; }
    .admin-form-card { border-radius: 12px; padding: 12px; }

    /* Row actions */
    .row-actions {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    /* Filter pills */
    .filter-pills {
        gap: 6px;
        flex-wrap: wrap;
    }
    .filter-pills a {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 20px;
    }

    /* Audit timeline */
    .audit-timeline li { font-size: 11px; }
    .audit-timeline time { font-size: 10px; }

    /* Settings form */
    .settings-form h3 { font-size: 14px; margin: 12px 0 6px; }

    /* Payment filter form */
    .payment-filter-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    .payment-filter-form select,
    .payment-filter-form input { width: 100%; }

    /* Modals fullscreen on mobile */
    .auth-dialog,
    .order-dialog {
        width: 96vw !important;
        max-width: 96vw !important;
        max-height: 92vh;
        overflow-y: auto;
        border-radius: 18px;
        padding: 18px 16px;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Admin overview status grid */
    .admin-status-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .admin-status-grid article {
        border-radius: 12px;
        padding: 10px;
    }

    /* Agent list cards */
    .agent-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    .agent-list > div {
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--card);
        font-size: 12px;
    }
    .agent-list > div strong { font-size: 13px; display: block; margin-bottom: 2px; }
    .agent-list > div span  { color: var(--muted); font-size: 11px; }

    /* Management summary */
    .management-summary { font-size: 11px; gap: 12px; }
}

/* ================================================================
   SMALL PHONE — ≤ 480px
   ================================================================ */
@media (max-width: 480px) {
    .app-shell { width: calc(100% - 16px); }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { min-height: 70px; padding: 10px; }
    .stat-card strong { font-size: 22px; }

    .panel-hero h1 { font-size: 18px; }

    .admin-menu button { min-width: 56px; font-size: 9px; padding: 6px 8px; }
    .admin-menu button i { width: 16px; height: 16px; }

    .order-ops-grid { grid-template-columns: 1fr 1fr; }
    .payment-detail-metrics { grid-template-columns: 1fr 1fr; }
    .admin-status-grid { grid-template-columns: 1fr 1fr; }

    .agent-task-row { grid-template-columns: 70px 1fr; font-size: 10px; }
    .m-card-row     { grid-template-columns: 72px 1fr; font-size: 11px; }

    .card-title h2  { font-size: 14px; }
    .table-card     { padding: 10px; }

    /* Table min-width slightly smaller */
    table { min-width: 480px; }

    .auth-dialog, .order-dialog { padding: 14px 12px; }

    .danger-button, .primary-button.small { font-size: 10px; padding: 4px 8px; }
}

/* ================================================================
   ADMIN SIDEBAR — Desktop keeps existing layout intact
   ================================================================ */
@media (min-width: 821px) {
    .admin-workspace {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
    .admin-menu {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* format download button overrides */
.format-download-btn {
  width: auto !important;
  min-width: 58px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: none !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #10b981 !important;
  transition: all 0.2s ease !important;
}

.format-download-btn:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
  .format-download-btn {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 6px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 480px) {
  .format-download-btn {
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 5px !important;
    font-size: 8px !important;
  }
}

/* ========================================================
   PAGINATION STYLES
   ======================================================== */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 12px 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pagination-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

.pagination-btn.is-disabled,
.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 34px;
    color: var(--muted);
    font-size: 14px;
    user-select: none;
}

.pagination-info {
    font-size: 12px;
    color: var(--muted);
    margin-left: 8px;
}

/* ========================================================
   ICON-ONLY BUTTON
   ======================================================== */
.icon-only-btn {
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.icon-only-btn svg,
.icon-only-btn i {
    width: 15px !important;
    height: 15px !important;
}

/* ========================================================
   RESPONSIVE: NO HORIZONTAL SCROLL
   ======================================================== */

.app-shell {
    max-width: 100%;
    overflow-x: hidden;
}

.table-card,
.agent-task-card,
.user-order-card,
.admin-order-card,
.admin-user-card {
    min-width: 0;
    word-break: break-word;
}

.responsive-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.responsive-table table {
    min-width: 600px;
    width: 100%;
    table-layout: auto;
}

.responsive-table td strong[title],
.responsive-table td small[title] {
    display: inline-block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.compact-table table {
    min-width: 700px;
}

.admin-shell,
.admin-panels,
.admin-workspace {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 900px) {
    .admin-workspace {
        flex-direction: column !important;
    }

    .admin-menu {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 4px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 8px !important;
    }

    .admin-menu button {
        flex: 1 1 auto !important;
        min-width: 100px !important;
        justify-content: center !important;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 640px) {
    .admin-menu button span {
        display: none !important;
    }

    .admin-menu button {
        min-width: 44px !important;
        flex: 0 0 auto !important;
    }
}

@media (max-width: 600px) {
    .stats-grid,
    .admin-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .admin-status-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .order-ops-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 520px) {
    .panel-hero {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .admin-command {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .admin-command-panel {
        width: 100% !important;
    }
}

.row-actions {
    flex-wrap: wrap !important;
    gap: 4px !important;
}

@media (max-width: 480px) {
    .file-download-stack strong,
    .file-download-stack small {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }

    .topbar {
        padding: 8px !important;
        gap: 8px !important;
    }

    .brand-logo {
        height: 24px !important;
    }
}

.agent-completion-filter {
    flex-wrap: wrap !important;
    gap: 8px !important;
}

@media (max-width: 600px) {
    .agent-alert-card {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .agent-alert-actions {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 560px) {
    .card-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

.bulk-action-bar {
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.filter-pills,
.order-filter-pills {
    flex-wrap: wrap !important;
    gap: 6px !important;
}

@media (max-width: 680px) {
    .panel-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .panel-actions {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
}

.command-pills {
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.result-artifact-stack {
    flex-wrap: wrap !important;
    gap: 4px !important;
}

@media (max-width: 600px) {
    .admin-split-forms {
        grid-template-columns: 1fr !important;
    }

    .inline-form,
    .admin-update-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* ========================================================
   DESKTOP COMPACT & ZERO HORIZONTAL SCROLL OVERRIDES (>= 821px)
   ======================================================== */
@media (min-width: 821px) {
    /* Base font size and container breathing room */
    body.portal-page,
    body.admin-page {
        font-size: 13.5px !important;
    }

    body.portal-page .app-shell,
    body.admin-page .app-shell {
        width: min(1280px, calc(100% - 24px)) !important;
        max-width: 100% !important;
    }

    /* Smaller headers/headings */
    .panel-hero h1,
    .panel-head h2 {
        font-size: clamp(20px, 2.2vw, 26px) !important;
    }

    /* Compacting main action and form buttons */
    body.portal-page .primary-button:not(.small),
    body.admin-page .primary-button:not(.small),
    body.portal-page .submit-button,
    body.admin-page .submit-button,
    body.portal-page .ghost-button:not(.small),
    body.admin-page .ghost-button:not(.small),
    body.portal-page .danger-button:not(.small),
    body.admin-page .danger-button:not(.small) {
        min-height: 42px !important;
        padding: 9px 18px !important;
        font-size: 13.5px !important;
    }

    body.portal-page .primary-button.small,
    body.admin-page .primary-button.small,
    body.portal-page .ghost-button.small,
    body.admin-page .ghost-button.small,
    body.portal-page .danger-button.small,
    body.admin-page .danger-button.small {
        min-height: 28px !important;
        padding: 4px 8px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }
    /* Topbar compaction */
    body.portal-page .topbar,
    body.admin-page .topbar {
        padding: 8px 12px !important;
    }
    body.portal-page .brand-logo,
    body.admin-page .brand-logo {
        height: 28px !important;
    }

    /* Stats grid compaction */
    body.portal-page .stats-grid,
    body.admin-page .stats-grid,
    body.admin-page .admin-stats {
        gap: 12px !important;
    }
    body.portal-page .stat-card,
    body.admin-page .stat-card {
        padding: 12px 14px !important;
        min-height: 76px !important;
    }
    body.portal-page .stat-card strong,
    body.admin-page .stat-card strong {
        font-size: 22px !important;
    }

    /* Admin Sidebar Layout Compaction */
    .admin-workspace {
        grid-template-columns: 200px minmax(0, 1fr) !important;
        gap: 16px !important;
    }
    .admin-menu button {
        min-height: 42px !important;
        padding: 8px 10px !important;
        font-size: 12.5px !important;
    }
    .admin-menu button i {
        width: 18px !important;
        height: 18px !important;
    }

    /* Card titles */
    body.portal-page .card-title,
    body.admin-page .card-title {
        margin-bottom: 12px !important;
    }
    body.portal-page .card-title h2,
    body.admin-page .card-title h2 {
        font-size: 16px !important;
    }

    /* Tables zero horizontal scroll and compactness */
    body.portal-page table,
    body.admin-page table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: auto !important;
    }

    body.portal-page .admin-panel .compact-table table,
    body.admin-page .admin-panel .compact-table table,
    body.portal-page .compact-table table,
    body.admin-page .compact-table table,
    body.portal-page .life-table table,
    body.admin-page .life-table table {
        min-width: 100% !important;
    }

    body.portal-page th,
    body.admin-page th {
        font-size: 10.5px !important;
        padding: 9px 6px !important;
        letter-spacing: 0.2px;
    }

    body.portal-page td,
    body.admin-page td {
        font-size: 11.5px !important;
        padding: 9px 6px !important;
        word-break: break-word !important;
    }

    /* Compacting status pills in table cells */
    body.portal-page .status-pill,
    body.admin-page .status-pill {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
        min-height: unset !important;
    }

    /* Compacting cell file download stacks */
    body.portal-page .file-download-stack,
    body.admin-page .file-download-stack {
        gap: 4px !important;
    }
    body.portal-page .file-download-stack strong,
    body.admin-page .file-download-stack strong {
        font-size: 11.5px !important;
        max-width: 76px !important;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    body.portal-page .file-download-stack small,
    body.admin-page .file-download-stack small {
        font-size: 9.5px !important;
        max-width: 76px !important;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    body.portal-page td strong,
    body.admin-page td strong {
        font-size: 11.5px !important;
    }
    body.portal-page td small,
    body.admin-page td small {
        font-size: 9.5px !important;
    }

    /* Compact download buttons */
    body.portal-page .format-download-btn,
    body.admin-page .format-download-btn {
        min-width: 44px !important;
        height: 22px !important;
        min-height: 22px !important;
        font-size: 8.5px !important;
        padding: 0 4px !important;
        border-radius: 4px !important;
    }
    body.portal-page .format-download-btn i,
    body.admin-page .format-download-btn i {
        width: 11px !important;
        height: 11px !important;
    }

    /* Compact Actions column */
    body.portal-page .row-actions,
    body.admin-page .row-actions {
        gap: 3px !important;
    }
    body.portal-page .row-actions .icon-action,
    body.admin-page .row-actions .icon-action,
    body.portal-page .row-actions .icon-only-btn,
    body.admin-page .row-actions .icon-only-btn {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        border-radius: 6px !important;
    }
    body.portal-page .row-actions .icon-action i,
    body.admin-page .row-actions .icon-action i,
    body.portal-page .row-actions .icon-only-btn i,
    body.admin-page .row-actions .icon-only-btn i {
        width: 12px !important;
        height: 12px !important;
    }

    /* Result wait circle inside tables */
    body.portal-page .result-wait-circle,
    body.admin-page .result-wait-circle {
        width: 48px !important;
        height: 48px !important;
        box-shadow: none !important;
    }
    body.portal-page .result-wait-circle > div,
    body.admin-page .result-wait-circle > div {
        width: 36px !important;
        height: 36px !important;
        border: 1px solid var(--border) !important;
    }
    body.portal-page .result-wait-circle div strong,
    body.admin-page .result-wait-circle div strong {
        font-size: 8.5px !important;
        font-weight: 800 !important;
    }
    body.portal-page .result-wait-circle div span,
    body.admin-page .result-wait-circle div span {
        font-size: 6.5px !important;
        font-weight: 800 !important;
    }
}


