/* TrustProfile.in — public design system */
:root {
    --tp-ink: #0c1f1a;
    --tp-forest: #1a3d32;
    --tp-leaf: #2d6a55;
    --tp-mint: #3d8b6e;
    --tp-brass: #b8860b;
    --tp-brass-soft: #d4a84b;
    --tp-paper: #f3efe6;
    --tp-paper-deep: #e8e2d4;
    --tp-cream: #faf8f3;
    --tp-muted: #5c6b64;
    --tp-line: rgba(12, 31, 26, 0.12);
    --tp-danger: #8b3a2f;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Figtree", system-ui, sans-serif;
    --nav-h: 4.25rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.tp-office {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tp-ink);
    background: var(--tp-cream);
    min-height: 100vh;
}

body.tp-public {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--tp-ink);
    background: var(--tp-cream);
    background-image:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 139, 110, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 134, 11, 0.08), transparent 50%),
        linear-gradient(180deg, var(--tp-cream) 0%, var(--tp-paper) 40%, var(--tp-cream) 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, .tp-display {
    font-family: var(--font-display);
    font-weight: 550;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--tp-ink);
}

a {
    color: var(--tp-leaf);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--tp-forest);
}

/* —— Nav —— */
.tp-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--nav-h);
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tp-line);
}

.tp-nav .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--tp-ink) !important;
    letter-spacing: -0.03em;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.tp-nav .navbar-brand small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.tp-nav .brand-dot {
    color: var(--tp-brass);
}

.tp-nav .nav-link {
    color: var(--tp-muted) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.7rem !important;
    transition: color 0.2s var(--ease);
    white-space: nowrap;
}

.tp-nav .nav-link:hover,
.tp-nav .nav-link.active {
    color: var(--tp-ink) !important;
}

/* Office: one clean row — brand | links | user + logout */
.tp-nav-office {
    height: auto;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.tp-nav-office .navbar-toggler {
    border-color: var(--tp-line);
    padding: 0.35rem 0.55rem;
}

.tp-nav-office .navbar-toggler-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.tp-nav-office .tp-btn.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    transform: none;
}

.tp-nav-office .tp-btn.btn-sm:hover {
    transform: none;
}

@media (min-width: 992px) {
    .tp-nav-office .border-lg-0 {
        border: 0 !important;
    }
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.35rem;
    border-radius: 0.35rem;
    border: 2px solid transparent;
    text-decoration: none !important;
    transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.tp-btn:hover {
    transform: translateY(-2px);
}

.tp-btn-primary {
    background: var(--tp-forest);
    color: #fff !important;
    border-color: var(--tp-forest);
}

.tp-btn-primary:hover {
    background: var(--tp-ink);
    border-color: var(--tp-ink);
    color: #fff !important;
}

.tp-btn-ghost {
    background: transparent;
    color: var(--tp-ink) !important;
    border-color: var(--tp-line);
}

.tp-btn-ghost:hover {
    border-color: var(--tp-forest);
    color: var(--tp-forest) !important;
}

.tp-btn-brass {
    background: var(--tp-brass);
    color: #fff !important;
    border-color: var(--tp-brass);
}

.tp-btn-brass:hover {
    background: #9a7009;
    border-color: #9a7009;
    color: #fff !important;
}

/* —— Hero —— */
.tp-hero {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}

.tp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(26, 61, 50, 0.04) 0%, transparent 45%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 48px,
            rgba(12, 31, 26, 0.015) 48px,
            rgba(12, 31, 26, 0.015) 49px
        );
    pointer-events: none;
}

.tp-hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 4.75rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
    color: var(--tp-ink);
    animation: tp-rise 0.9s var(--ease) both;
}

.tp-hero-brand .dot {
    color: var(--tp-brass);
}

.tp-hero-lead {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    color: var(--tp-muted);
    max-width: 34rem;
    margin: 0 0 1.75rem;
    animation: tp-rise 0.9s var(--ease) 0.12s both;
}

.tp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: tp-rise 0.9s var(--ease) 0.22s both;
}

.tp-hero-note {
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--tp-muted);
    max-width: 32rem;
    animation: tp-rise 0.9s var(--ease) 0.32s both;
}

.tp-hero-visual {
    position: relative;
    min-height: 280px;
    animation: tp-rise 1s var(--ease) 0.18s both;
}

.tp-profile-card {
    background: linear-gradient(160deg, var(--tp-forest) 0%, var(--tp-ink) 100%);
    color: #e8f0ec;
    border-radius: 0.5rem;
    padding: 1.75rem;
    box-shadow: 0 24px 48px rgba(12, 31, 26, 0.22);
    position: relative;
    overflow: hidden;
}

.tp-profile-card::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.25), transparent 70%);
    pointer-events: none;
}

.tp-profile-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tp-brass-soft);
    margin-bottom: 0.5rem;
}

.tp-profile-card .name {
    font-family: var(--font-display);
    font-size: 1.65rem;
    margin: 0 0 0.35rem;
    color: #fff;
}

.tp-profile-card .meta {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 1.25rem;
}

.tp-status {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 0.25rem;
    background: rgba(212, 168, 75, 0.2);
    color: var(--tp-brass-soft);
    border: 1px solid rgba(212, 168, 75, 0.35);
}

.tp-case-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
}

.tp-case-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* —— Search strip —— */
.tp-search {
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}

.tp-search-box {
    background: #fff;
    border: 1px solid var(--tp-line);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 32px rgba(12, 31, 26, 0.08);
}

.tp-search-box label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tp-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.tp-search-box .form-control {
    border: 1px solid var(--tp-line);
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--tp-cream);
}

.tp-search-box .form-control:focus {
    border-color: var(--tp-mint);
    box-shadow: 0 0 0 3px rgba(61, 139, 110, 0.2);
    background: #fff;
}

/* —— Sections —— */
.tp-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.tp-section-alt {
    background: var(--tp-paper);
    border-top: 1px solid var(--tp-line);
    border-bottom: 1px solid var(--tp-line);
}

.tp-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tp-brass);
    margin-bottom: 0.65rem;
}

.tp-section h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    margin-bottom: 0.85rem;
}

.tp-section-lead {
    color: var(--tp-muted);
    max-width: 36rem;
    margin-bottom: 2.5rem;
}

/* Principles */
.tp-principle {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--tp-line);
}

.tp-principle:last-child {
    border-bottom: none;
}

.tp-principle-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--tp-brass);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tp-principle h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.tp-principle p {
    color: var(--tp-muted);
    margin: 0;
    font-size: 0.98rem;
}

/* How it works timeline */
.tp-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.tp-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--tp-line);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.tp-step.is-visible {
    opacity: 1;
    transform: none;
}

.tp-step:last-child {
    border-bottom: none;
}

.tp-step-marker {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--tp-forest);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-step h3 {
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}

.tp-step .timing {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tp-brass);
    margin-bottom: 0.4rem;
}

.tp-step p {
    margin: 0;
    color: var(--tp-muted);
    font-size: 0.98rem;
}

/* Fees */
.tp-fee-panel {
    background: #fff;
    border: 1px solid var(--tp-line);
    border-radius: 0.5rem;
    padding: 2rem;
}

/* Equal-height cards only when a card is alone in its column; stacked cards size to content
   (height: 100% on every card made stacked cards overflow and overlap). */
.row > [class*="col"] > .tp-fee-panel:only-child {
    height: 100%;
}

.tp-fee-panel .amount {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--tp-forest);
    margin: 0.5rem 0;
}

.tp-fee-panel .amount small {
    font-size: 1rem;
    color: var(--tp-muted);
    font-family: var(--font-body);
    font-weight: 500;
}

.tp-fee-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.tp-fee-list li {
    padding: 0.65rem 0;
    border-top: 1px solid var(--tp-line);
    font-size: 0.95rem;
    color: var(--tp-muted);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tp-fee-list strong {
    color: var(--tp-ink);
    font-weight: 600;
    white-space: nowrap;
}

/* FAQ */
.tp-faq .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--tp-line);
}

.tp-faq .accordion-button {
    background: transparent;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 550;
    color: var(--tp-ink);
    box-shadow: none !important;
    padding: 1.15rem 0;
}

.tp-faq .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--tp-forest);
}

.tp-faq .accordion-button::after {
    filter: none;
}

.tp-faq .accordion-body {
    padding: 0 0 1.25rem;
    color: var(--tp-muted);
}

/* CTA band */
.tp-cta {
    background: linear-gradient(135deg, var(--tp-forest) 0%, var(--tp-ink) 100%);
    color: #e8f0ec;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
}

.tp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(212, 168, 75, 0.2), transparent 50%);
    pointer-events: none;
}

.tp-cta h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.tp-cta p {
    color: rgba(232, 240, 236, 0.8);
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

/* Disclaimer */
.tp-disclaimer {
    background: var(--tp-paper-deep);
    border-top: 1px solid var(--tp-line);
    padding: 1.25rem 0;
    font-size: 0.88rem;
    color: var(--tp-muted);
    text-align: center;
}

/* Footer */
.tp-footer {
    background: var(--tp-ink);
    color: rgba(232, 240, 236, 0.7);
    padding: 3.5rem 0 2rem;
    font-size: 0.92rem;
}

.tp-footer .brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.tp-footer a {
    color: rgba(232, 240, 236, 0.75);
    text-decoration: none;
}

.tp-footer a:hover {
    color: var(--tp-brass-soft);
}

.tp-footer h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tp-brass-soft);
    margin-bottom: 1rem;
}

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

.tp-footer li {
    margin-bottom: 0.45rem;
}

.tp-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

@keyframes tp-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .tp-hero-visual {
        margin-top: 2.5rem;
    }

    .tp-nav .tp-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
}

/* —— Portal & office: documents, threads, case workspace —— */
.tp-invoice {
    background: #fff;
    border: 1px solid var(--tp-line);
    border-radius: 0.75rem;
    padding: 2rem;
}

.tp-invoice table td,
.tp-invoice table th {
    padding: 0.4rem 0.5rem;
}

@media print {
    .tp-nav, footer, .no-print, .alert { display: none !important; }
    body { background: #fff !important; }
    .tp-invoice { border: 0 !important; padding: 0 !important; }
}

.tp-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 32rem;
    overflow-y: auto;
    padding: 0.25rem;
}

.tp-msg {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: 0.9rem;
    background: var(--tp-paper);
    border: 1px solid var(--tp-line);
}

.tp-msg-own {
    align-self: flex-end;
    background: #e8f5ef;
    border-color: #cfe8dc;
}

.tp-msg-system {
    align-self: center;
    max-width: 100%;
    background: transparent;
    border-style: dashed;
    font-size: 0.9rem;
    color: var(--tp-muted);
}

.tp-msg-meta {
    font-size: 0.75rem;
    color: var(--tp-muted);
    margin-bottom: 0.15rem;
}

.tp-task-overdue {
    border-left: 3px solid var(--tp-danger);
    padding-left: 0.5rem;
}

.tp-case-tabs .nav-link {
    color: var(--tp-muted);
}

.tp-case-tabs .nav-link.active {
    color: var(--tp-ink);
    font-weight: 600;
}

/* —— Admin Workflow Guide —— */
.tp-aw-nav {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    max-height: calc(100vh - var(--nav-h) - 2rem);
    overflow-y: auto;
    font-size: 0.9rem;
}

.tp-aw-nav a {
    display: block;
    padding: 0.2rem 0.4rem;
    border-radius: 0.35rem;
    color: var(--tp-ink);
    text-decoration: none;
}

.tp-aw-nav a:hover {
    background: var(--tp-paper);
}

.tp-aw-nav-pill {
    font-size: 0.6rem;
    align-self: center;
}

.tp-aw-section {
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.tp-aw-section-head {
    margin-bottom: 0.85rem;
}

.tp-aw-lead {
    color: var(--tp-muted);
    font-size: 0.92rem;
    max-width: 62rem;
}

.tp-aw-card {
    background: #fff;
    border: 1px solid var(--tp-line);
    border-radius: 0.6rem;
    padding: 1.1rem 1.25rem;
    min-width: 0; /* let long content wrap inside flex/grid columns */
}

.tp-aw-card-danger {
    border-left: 3px solid var(--tp-danger);
}

.tp-aw-card-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: 0;
}

.tp-aw-meta {
    display: grid;
    grid-template-columns: minmax(6.5rem, max-content) 1fr;
    gap: 0.35rem 0.85rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.tp-aw-meta dt {
    color: var(--tp-muted);
    font-weight: 600;
}

.tp-aw-meta dd {
    margin: 0;
    min-width: 0;
}

.tp-aw-list {
    font-size: 0.85rem;
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.tp-aw-list li + li {
    margin-top: 0.3rem;
}

/* Long class names, paths and route names must wrap instead of overlapping. */
.tp-aw-wrap,
.tp-aw-section code,
.tp-aw-section td {
    overflow-wrap: anywhere;
    word-break: normal;
}

.tp-aw-code {
    display: block;
    font-size: 0.8rem;
    color: var(--tp-forest);
}

.tp-aw-route {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--tp-line);
    font-size: 0.85rem;
}

.tp-aw-route:last-child {
    border-bottom: 0;
}

.tp-aw-route-body {
    min-width: 0;
    flex: 1;
}

.tp-aw-method {
    flex: 0 0 3.6rem;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 0.3rem;
    padding: 0.15rem 0;
    background: var(--tp-paper);
    color: var(--tp-ink);
}

.tp-aw-method-get { background: #e8f5ef; color: var(--tp-forest); }
.tp-aw-method-post { background: #fff4dc; color: #7a5a00; }
.tp-aw-method-patch, .tp-aw-method-put { background: #e7eefc; color: #1d4597; }
.tp-aw-method-delete { background: #fbe9e7; color: var(--tp-danger); }

.tp-aw-check .form-select,
.tp-aw-check .form-control {
    font-size: 0.8rem;
}

.tp-aw-toggle .when-closed { display: none; }
.tp-aw-toggle.collapsed .when-open { display: none; }
.tp-aw-toggle.collapsed .when-closed { display: inline; }

.tp-aw-nav a.active {
    background: var(--tp-ink);
    color: #fff;
}

.tp-aw-nav a.active .badge {
    border-color: transparent !important;
}

.tp-aw-toolbar {
    position: sticky;
    top: var(--nav-h);
    z-index: 5;
    background: var(--tp-cream);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--tp-line);
}

.tp-aw-scroll {
    max-height: 32rem;
    overflow-y: auto;
}

.tp-aw-dot {
    flex: 0 0 auto;
    width: 0.65rem;
    height: 0.65rem;
    margin-top: 0.35rem;
    border-radius: 50%;
}

.tp-aw-dot.ok { background: var(--tp-mint); }
.tp-aw-dot.bad { background: var(--tp-danger); }

.tp-aw-flow li {
    margin-bottom: 0.35rem;
}

.tp-aw-matrix th {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .tp-aw-nav {
        position: static;
        max-height: none;
    }
}

/* �� Admin panel shell �� */
body.tp-admin {
    background: #e9ebe6;
}

.tp-admin-shell {
    display: flex;
    min-height: 100vh;
}

.tp-admin-sidebar {
    width: 16.5rem;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f2a22 0%, #1a3d32 55%, #16352c 100%);
    color: #e8efe9;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1040;
}

.tp-admin-brand {
    padding: 1.25rem 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tp-admin-brand a {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
}

.tp-admin-brand .brand-dot { color: var(--tp-brass-soft); }

.tp-admin-brand-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(232,239,233,0.55);
}

.tp-admin-nav {
    padding: 0.75rem 0.65rem 1rem;
    flex: 1;
}

.tp-admin-section {
    margin: 1rem 0.55rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212,168,75,0.85);
}

.tp-admin-link {
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: 0.4rem;
    color: rgba(232,239,233,0.82);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 0.1rem;
}

.tp-admin-link:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.tp-admin-link.is-active {
    background: rgba(184,134,11,0.22);
    color: #fff;
    font-weight: 600;
}

.tp-admin-sidebar-foot {
    padding: 1rem 1.1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.tp-admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tp-admin-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(250,248,243,0.92);
    border-bottom: 1px solid var(--tp-line);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.tp-admin-menu-btn {
    border: 1px solid var(--tp-line);
    background: #fff;
    border-radius: 0.4rem;
    width: 2.25rem;
    height: 2.25rem;
    line-height: 1;
}

.tp-admin-content {
    padding: 1.25rem 1.5rem 2.5rem;
}

.tp-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.85rem;
}

.tp-stat-card {
    background: #fff;
    border: 1px solid var(--tp-line);
    border-radius: 0.65rem;
    padding: 1rem 1.05rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

a.tp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12,31,26,0.08);
    color: inherit;
}

.tp-stat-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tp-muted);
}

.tp-stat-card .value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.2;
    margin-top: 0.2rem;
}

.tp-stat-card .hint {
    font-size: 0.78rem;
    color: var(--tp-muted);
    margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
    .tp-admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.25s var(--ease);
    }
    .tp-admin-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 12px 0 32px rgba(0,0,0,0.25);
    }
}
