:root {
    --navy: #14283b;
    --navy-2: #1d354a;
    --navy-3: #28455e;

    --ivory: #f4f0e7;
    --ivory-2: #faf8f3;
    --paper: #fffdf9;

    --gold: #b59058;
    --gold-dark: #94713f;
    --gold-soft: #e7dac4;

    --ink: #172331;
    --muted: #73777c;
    --line: #e5dfd5;

    --green: #456556;
    --green-bg: #e8f0ea;

    --shadow:
        0 18px 50px rgba(20,40,59,.08);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background: var(--ivory-2);
    color: var(--ink);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;
}

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

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

button {
    border: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-weight: 400;
    color: var(--navy);
}

h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.03;
    margin-bottom: 10px;
}

h2 {
    font-size: 27px;
    margin-bottom: 0;
}

.gold-kicker {
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .2em;
    margin-bottom: 9px;
}

.monogram {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;
}

.monogram-light {
    color: var(--ivory);
    border-color: var(--gold);
}

.monogram.small {
    width: 43px;
    height: 43px;
    font-size: 15px;
}


/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(400px, .95fr)
        minmax(500px, 1.05fr);
}

.login-identity {
    position: relative;
    overflow: hidden;

    color: white;

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(181,144,88,.19),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            #1a354c 0%,
            #14283b 55%,
            #0e1d2a 100%
        );
}

.login-identity::after {
    content: "LS";

    position: absolute;
    right: -40px;
    bottom: -80px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 360px;
    color: rgba(255,255,255,.025);
}

.identity-inner {
    min-height: 100vh;
    position: relative;
    z-index: 1;

    padding: clamp(40px, 7vw, 90px);

    display: flex;
    flex-direction: column;
}

.identity-copy {
    margin-top: auto;
    margin-bottom: auto;
}

.identity-copy .gold-kicker {
    color: var(--gold);
}

.identity-copy h1 {
    color: var(--ivory);
    font-size: clamp(60px, 7vw, 100px);
    line-height: .9;
    letter-spacing: -.035em;
}

.gold-line {
    width: 72px;
    height: 1px;
    background: var(--gold);
    margin: 30px 0 22px;
}

.signature {
    color: #d9d6cf;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .16em;
}

.signature span {
    color: var(--gold);
    margin: 0 8px;
}

.identity-footer {
    color: rgba(255,255,255,.58);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-style: italic;
}

.justice-symbol {
    position: absolute;
    right: 6%;
    top: 18%;

    opacity: .23;
}

.justice-circle {
    width: 270px;
    height: 270px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    display: grid;
    place-items: center;
}

.scales {
    width: 160px;
    height: 150px;
    position: relative;
}

.scale-top {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    left: 74px;
    top: 5px;
}

.scale-stem {
    position: absolute;
    left: 79px;
    top: 18px;
    width: 2px;
    height: 120px;
    background: var(--gold);
}

.scale-bar {
    position: absolute;
    left: 20px;
    top: 48px;
    width: 120px;
    height: 1px;
    background: var(--gold);
}

.scale-pan {
    position: absolute;
    top: 49px;
    width: 48px;
    height: 48px;

    border-bottom: 1px solid var(--gold);
    border-radius: 0 0 50% 50%;
}

.scale-pan::before,
.scale-pan::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 44px;
    background: var(--gold);
    top: -6px;
}

.scale-pan::before {
    left: 6px;
    transform: rotate(17deg);
}

.scale-pan::after {
    right: 6px;
    transform: rotate(-17deg);
}

.scale-pan.left {
    left: 0;
}

.scale-pan.right {
    right: 0;
}

.login-panel {
    display: grid;
    place-items: center;

    padding: 40px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(181,144,88,.08),
            transparent 32%
        ),
        var(--ivory);
}

.login-box {
    width: min(100%, 440px);
}

.login-box h2 {
    font-size: 48px;
    margin-bottom: 12px;
}

.login-intro {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.mobile-brand {
    display: none;
}

.form-stack {
    display: grid;
    gap: 19px;
}

label {
    display: grid;
    gap: 8px;

    color: var(--navy);
    font-size: 13px;
    font-weight: 650;
}

label em {
    font-weight: 400;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #d9d3c9;
    border-radius: 7px;

    background: rgba(255,255,255,.7);
    color: var(--ink);

    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(181,144,88,.12);
}

.button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 19px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform .15s ease,
        background .15s ease;
}

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

.button-full {
    width: 100%;
}

.button-navy {
    background: var(--navy);
    color: white;
}

.button-navy:hover {
    background: var(--navy-2);
}

.button-gold {
    background: var(--gold);
    color: white;
}

.button-gold:hover {
    background: var(--gold-dark);
}

.button-outline {
    background: transparent;
    color: var(--navy);
    border: 1px solid #c9c4bb;
}

.button-arrow {
    margin-left: auto;
}

.secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;

    margin-top: 20px;

    color: #888;
    font-size: 11px;
}

.secure-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.powered {
    margin-top: 42px;

    color: #aaa;
    text-align: center;
    text-transform: uppercase;

    font-size: 9px;
    letter-spacing: .2em;
}


/* PORTAL */

.portal {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;

    padding: 30px 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        linear-gradient(
            180deg,
            var(--navy-2),
            var(--navy)
        );

    color: white;
}

.side-brand,
.compact-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-brand strong,
.side-brand span,
.compact-brand strong,
.compact-brand span {
    display: block;
}

.side-brand strong {
    color: var(--ivory);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 17px;
    font-weight: 400;
}

.side-brand span {
    color: rgba(255,255,255,.5);
    font-size: 10px;
    margin-top: 3px;
}

.side-divider {
    height: 1px;
    background: rgba(255,255,255,.09);
    margin: 28px 0;
}

.side-nav {
    display: grid;
    gap: 6px;
}

.side-link {
    min-height: 44px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 13px;

    border-radius: 6px;

    color: rgba(255,255,255,.67);
    font-size: 13px;
}

.side-link:hover,
.side-link.active {
    background: rgba(255,255,255,.075);
    color: white;
}

.side-link.active {
    border-left: 2px solid var(--gold);
}

.nav-icon {
    width: 20px;
    color: var(--gold);
    font-size: 18px;
    text-align: center;
}

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

.side-avocatime {
    padding: 14px;

    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);

    color: rgba(255,255,255,.45);
    font-size: 10px;
    line-height: 1.6;
}

.side-avocatime span {
    display: block;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: .18em;
}

.portal-main {
    width: 100%;
    max-width: 1350px;
    padding: 45px clamp(25px, 5vw, 70px);
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.portal-header h1 {
    font-size: 40px;
    margin-bottom: 7px;
}

.portal-header p {
    color: var(--muted);
    margin-bottom: 0;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

    margin: 36px 0 28px;
}

.metric {
    padding: 22px 24px;

    background: var(--paper);

    border: 1px solid var(--line);
    border-radius: 9px;

    box-shadow: 0 8px 25px rgba(20,40,59,.035);
}

.metric-gold {
    border-top: 2px solid var(--gold);
}

.metric-top {
    display: flex;
    justify-content: space-between;

    color: var(--muted);
    font-size: 12px;
}

.metric-icon {
    color: var(--gold);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

.metric > strong {
    display: block;

    margin: 13px 0 3px;

    color: var(--navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 34px;
    font-weight: 400;
}

.metric small {
    color: #999;
}

.content-card,
.form-card {
    background: var(--paper);

    border: 1px solid var(--line);
    border-radius: 10px;

    box-shadow: var(--shadow);
}

.content-card {
    padding: 28px;
}

.content-card-head,
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.text-link {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 650;
}

.dossier-list {
    margin-top: 21px;
    border-top: 1px solid var(--line);
}

.dossier {
    min-height: 76px;

    display: grid;
    grid-template-columns:
        46px
        minmax(160px, 1fr)
        110px
        95px
        20px;

    align-items: center;
    gap: 15px;

    border-bottom: 1px solid var(--line);

    transition: background .15s ease;
}

.dossier:hover {
    background: #faf7f1;
}

.dossier-symbol {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid var(--gold-soft);
    border-radius: 50%;

    color: var(--gold-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 11px;
}

.dossier-info strong,
.dossier-info span {
    display: block;
}

.dossier-info strong {
    color: var(--navy);
    font-size: 14px;
}

.dossier-info span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.dossier-date {
    color: #999;
    font-size: 11px;
}

.status {
    display: inline-flex;
    justify-content: center;

    width: fit-content;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.status-open {
    color: var(--green);
    background: var(--green-bg);
}

.status-closed {
    color: #776d61;
    background: #eee9e1;
}

.chevron {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 25px;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state.compact {
    padding: 30px 20px;
}

.empty-monogram {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    margin: 0 auto 18px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--gold);

    font-family: Georgia, serif;
}

.empty-state p {
    color: var(--muted);
}

.mobile-nav {
    display: none;
}


/* FORMS */

.simple-page {
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            var(--ivory) 0,
            var(--ivory-2) 280px
        );
}

.simple-top {
    min-height: 82px;

    padding: 18px clamp(22px, 6vw, 75px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);

    background: rgba(255,253,249,.8);
}

.compact-brand strong,
.compact-brand span {
    display: block;
}

.compact-brand strong {
    color: var(--navy);
    font-family: Georgia, serif;
    font-weight: 400;
}

.compact-brand span {
    margin-top: 2px;
    color: var(--gold-dark);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.back-link {
    color: var(--muted);
    font-size: 12px;
}

.form-container {
    padding: 60px 20px;
    display: grid;
    place-items: start center;
}

.form-card {
    width: min(100%, 600px);
    padding: clamp(28px, 5vw, 48px);
}

.form-card h1 {
    font-size: 42px;
}

.form-intro {
    margin-bottom: 32px;
    color: var(--muted);
    line-height: 1.6;
}


/* CASE */

.case-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 70px;
}

.case-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;

    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.case-hero p {
    margin-bottom: 0;
    color: var(--muted);
}

.quick-section {
    padding: 35px 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;

    margin-top: 20px;
}

.quick-card {
    min-height: 130px;

    padding: 18px;

    display: flex;
    flex-direction: column;

    background: var(--paper);

    border: 1px solid var(--line);
    border-radius: 9px;

    transition:
        transform .15s ease,
        border .15s ease,
        box-shadow .15s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-soft);
    box-shadow: 0 12px 25px rgba(20,40,59,.06);
}

.quick-icon {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 23px;
}

.quick-card strong {
    margin-top: auto;
    color: var(--navy);
    font-family: Georgia, serif;
    font-weight: 400;
}

.quick-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.case-totals {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;

    margin-bottom: 30px;
}

.total-card {
    padding: 15px;

    background: rgba(255,253,249,.65);

    border: 1px solid var(--line);
    border-radius: 7px;
}

.total-card span {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.total-card strong {
    display: block;
    margin-top: 6px;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
}

.history-card {
    box-shadow: none;
}

.entries-list {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.entry {
    min-height: 75px;

    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 18px;
    align-items: center;

    border-bottom: 1px solid var(--line);
}

.entry-date {
    text-align: center;
}

.entry-date strong,
.entry-date span {
    display: block;
}

.entry-date strong {
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
}

.entry-date span {
    color: #999;
    font-size: 9px;
}

.entry-info strong,
.entry-info span {
    display: block;
}

.entry-info strong {
    color: var(--navy);
    font-size: 13px;
}

.entry-info span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.entry-value {
    color: var(--gold-dark);
    font-family: Georgia, serif;
    font-size: 17px;
}

.case-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    padding-top: 25px;
}

.case-footer-actions form {
    margin: 0;
}

.flash {
    margin-bottom: 20px;
    padding: 12px 14px;

    border-radius: 6px;

    font-size: 12px;
}

.flash-error {
    color: #833c3c;
    background: #f5e5e2;
    border: 1px solid #ead0cc;
}


/* TABLET */

@media (max-width: 950px) {

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-identity {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 28px 20px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 50px;
    }

    .mobile-brand strong,
    .mobile-brand span {
        display: block;
    }

    .mobile-brand strong {
        color: var(--navy);
        font-family: Georgia, serif;
        font-weight: 400;
    }

    .mobile-brand span {
        margin-top: 2px;
        color: var(--muted);
        font-size: 10px;
    }

    .portal {
        display: block;
        padding-bottom: 72px;
    }

    .sidebar {
        display: none;
    }

    .portal-main {
        padding: 28px 20px;
    }

    .mobile-nav {
        height: 66px;

        position: fixed;
        z-index: 50;
        left: 0;
        right: 0;
        bottom: 0;

        display: grid;
        grid-template-columns: repeat(3, 1fr);

        background: rgba(20,40,59,.97);
        border-top: 1px solid rgba(255,255,255,.1);
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;

        color: rgba(255,255,255,.58);

        font-size: 9px;
    }

    .mobile-nav a span {
        color: var(--gold);
        font-size: 20px;
    }

    .mobile-nav a.active {
        color: white;
    }

    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-totals {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* PHONE */

@media (max-width: 650px) {

    .portal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-header h1 {
        font-size: 34px;
    }

    .metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .metric {
        padding: 15px 12px;
    }

    .metric-top {
        font-size: 9px;
    }

    .metric-icon,
    .metric small {
        display: none;
    }

    .metric > strong {
        font-size: 27px;
    }

    .content-card {
        padding: 20px 16px;
    }

    .dossier {
        grid-template-columns: 40px 1fr auto 14px;
        gap: 10px;
    }

    .dossier-date {
        display: none;
    }

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

    .simple-top {
        min-height: 70px;
        padding: 13px 17px;
    }

    .compact-brand .monogram {
        width: 37px;
        height: 37px;
    }

    .compact-brand span {
        display: none;
    }

    .back-link {
        font-size: 11px;
    }

    .case-container {
        width: calc(100% - 32px);
        padding-top: 30px;
    }

    .case-hero h1 {
        font-size: 37px;
    }

    .quick-section .section-title {
        align-items: flex-start;
    }

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

    .quick-card {
        min-height: 115px;
    }

    .case-totals {
        grid-template-columns: repeat(2, 1fr);
    }

    .entry {
        grid-template-columns: 46px 1fr auto;
        gap: 10px;
    }

    .case-footer-actions {
        display: grid;
    }

    .case-footer-actions .button,
    .case-footer-actions form,
    .case-footer-actions form button {
        width: 100%;
    }

    .form-container {
        padding: 30px 16px;
    }

    .form-card {
        padding: 27px 21px;
    }

    .form-card h1 {
        font-size: 35px;
    }
}


/* =========================================================
   AVOCATIME V2
   ========================================================= */

.auth-v2{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);
    background:#f5f1e8;
}

.auth-brand{
    position:relative;
    overflow:hidden;
    color:white;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(181,144,88,.17),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #1c354b 0%,
            #14283b 55%,
            #0d1d2b 100%
        );
}

.auth-brand:after{
    content:"A";
    position:absolute;
    right:-35px;
    bottom:-170px;
    font-family:Georgia,serif;
    font-size:600px;
    line-height:1;
    color:rgba(255,255,255,.025);
}

.auth-brand-inner{
    position:relative;
    z-index:2;
    min-height:100vh;
    padding:54px 7vw;
    display:flex;
    flex-direction:column;
}

.avt-brand,
.mobile-avt-brand{
    display:flex;
    align-items:center;
    gap:14px;
}

.avt-logo{
    width:49px;
    height:49px;
    border:1px solid #b59058;
    border-radius:14px;
    display:grid;
    place-items:center;
    font-family:Georgia,serif;
    font-size:24px;
    color:#f5f1e8;
    transform:rotate(-2deg);
}

.avt-logo.dark{
    color:#14283b;
}

.avt-brand strong,
.mobile-avt-brand strong{
    display:block;
    font-family:Georgia,serif;
    font-size:20px;
    font-weight:400;
    letter-spacing:.01em;
}

.avt-brand span,
.mobile-avt-brand span{
    display:block;
    margin-top:3px;
    font-size:9px;
    letter-spacing:.16em;
    text-transform:uppercase;
    opacity:.55;
}

.auth-message{
    margin:auto 0;
    max-width:680px;
}

.auth-message h1{
    margin:18px 0 30px;
    font-family:Georgia,serif;
    font-weight:400;
    font-size:clamp(54px,6vw,86px);
    line-height:.96;
    letter-spacing:-.045em;
    color:#f5f1e8;
}

.auth-message h1 em{
    color:#c3a16b;
    font-weight:400;
}

.auth-message p{
    max-width:510px;
    color:rgba(255,255,255,.65);
    font-family:Georgia,serif;
    font-size:19px;
    line-height:1.65;
}

.auth-rule{
    width:72px;
    height:1px;
    margin-bottom:25px;
    background:#b59058;
}

.auth-brand-footer{
    font-size:10px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:rgba(255,255,255,.38);
}

.auth-brand-footer span{
    color:#b59058;
    padding:0 8px;
}

.auth-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:50px;
}

.auth-box{
    width:min(440px,100%);
}

.auth-box h2{
    margin:10px 0 10px;
    color:#14283b;
    font-family:Georgia,serif;
    font-size:43px;
    font-weight:400;
}

.auth-intro{
    margin:0 0 28px;
    color:#73777c;
    line-height:1.65;
}

.mobile-avt-brand{
    display:none;
    margin-bottom:45px;
    color:#14283b;
}

.auth-switch{
    margin-top:24px;
    text-align:center;
    font-size:13px;
    color:#73777c;
}

.auth-switch a{
    color:#14283b;
    font-weight:700;
    text-decoration:none;
}

.auth-switch a:hover{
    color:#b59058;
}

.account-status{
    margin:10px 0 4px;
}

.plan-badge{
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:0 10px;
    border-radius:999px;
    font-size:9px;
    font-weight:800;
    letter-spacing:.1em;
}

.plan-badge.pro{
    background:#efe4d2;
    color:#856633;
}

.plan-badge.beta{
    background:#e6eaf0;
    color:#14283b;
}

.plan-badge.free{
    background:#ececec;
    color:#666;
}


/* ADMIN */

.admin-page{
    min-height:100vh;
    background:#f5f1e8;
}

.admin-top{
    min-height:86px;
    padding:18px max(28px,5vw);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    color:white;
    background:#14283b;
}

.admin-top-actions{
    display:flex;
    align-items:center;
    gap:18px;
    font-size:12px;
}

.admin-main{
    width:min(1150px,calc(100% - 48px));
    margin:auto;
    padding:65px 0 100px;
}

.admin-main h1{
    margin:7px 0 8px;
    font-family:Georgia,serif;
    font-weight:400;
    font-size:48px;
    color:#14283b;
}

.admin-intro{
    color:#73777c;
    margin-bottom:35px;
}

.users-grid{
    display:grid;
    gap:18px;
}

.user-card{
    padding:26px;
    background:#fffdf9;
    border:1px solid #e5ded2;
    border-radius:12px;
}

.user-card-head{
    display:flex;
    align-items:center;
    gap:14px;
}

.user-avatar{
    width:45px;
    height:45px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#14283b;
    color:#d1b383;
    font-family:Georgia,serif;
    font-size:20px;
}

.user-identity{
    min-width:0;
    flex:1;
}

.user-identity strong,
.user-identity span{
    display:block;
}

.user-identity strong{
    color:#14283b;
}

.user-identity span{
    margin-top:4px;
    color:#858585;
    font-size:12px;
}

.pill{
    padding:6px 9px;
    border-radius:999px;
    font-size:8px;
    font-weight:800;
    letter-spacing:.12em;
}

.pill-admin{
    color:#8a6938;
    background:#efe4d2;
}

.subscription-line{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    padding:20px 0;
    margin-top:20px;
    border-top:1px solid #eee8de;
    border-bottom:1px solid #eee8de;
}

.subscription-line small,
.subscription-line strong{
    display:block;
}

.subscription-line small{
    margin-bottom:5px;
    color:#999;
    font-size:8px;
    letter-spacing:.13em;
}

.subscription-line strong{
    color:#14283b;
    font-size:12px;
}

.gift-until{
    padding-top:16px;
    color:#73777c;
    font-size:12px;
}

.gift-until strong{
    color:#14283b;
}

.user-actions{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:20px;
}

.user-actions form{
    margin:0;
}

.mini-button{
    min-height:34px;
    padding:0 11px;
    border:1px solid #dcd5ca;
    border-radius:7px;
    cursor:pointer;
    background:white;
    color:#14283b;
    font-size:10px;
    font-weight:700;
}

.mini-button:hover{
    border-color:#b59058;
}

.mini-gold{
    background:#b59058;
    border-color:#b59058;
    color:white;
}

.mini-muted{
    color:#777;
    background:#f4f2ed;
}

.button-light{
    background:white;
    color:#14283b;
}


@media(max-width:850px){

    .auth-v2{
        display:block;
        background:#f5f1e8;
    }

    .auth-brand{
        display:none;
    }

    .auth-panel{
        min-height:100vh;
        padding:35px 24px;
    }

    .mobile-avt-brand{
        display:flex;
    }

    .auth-box h2{
        font-size:38px;
    }

    .admin-top{
        align-items:flex-start;
    }

    .admin-top-actions > span{
        display:none;
    }

    .admin-main{
        width:calc(100% - 30px);
        padding-top:40px;
    }

    .subscription-line{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:520px){

    .subscription-line{
        grid-template-columns:1fr 1fr 1fr;
        gap:7px;
    }

    .user-card{
        padding:19px;
    }

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