/* VeriSources - customer facing brand refresh
   Safe visual refresh only: no endpoint, parameter, or core JSP flow changes. */
:root {
    --bg-0: #091019;
    --bg-1: #0f1826;
    --bg-2: #111e2e;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-soft: rgba(255, 255, 255, 0.88);
    --panel-dark: rgba(14, 22, 34, 0.82);
    --text: #152233;
    --text-soft: #53657f;
    --line: #d9e2ef;
    --line-strong: #c8d5e6;
    --brand: #73d6b1;
    --brand-strong: #38b98a;
    --brand-deep: #123e73;
    --navy: #10203a;
    --navy-2: #0b1625;
    --accent: #0a5ad4;
    --danger: #d14444;
    --success: #1e8a52;
    --warning: #b57200;
    --shadow-lg: 0 24px 80px rgba(7, 15, 28, 0.22);
    --shadow-md: 0 14px 38px rgba(10, 19, 34, 0.12);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(115, 214, 177, 0.22), transparent 28%),
        radial-gradient(circle at top left, rgba(56, 185, 138, 0.10), transparent 24%),
        linear-gradient(180deg, #e9eef5 0%, #f4f7fb 28%, #eef3f8 100%);
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

.shell-backdrop {
    position: relative;
    min-height: 100vh;
}

.shell-backdrop::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: clamp(380px, 34vw, 460px);
    background:
        radial-gradient(circle at 78% 18%, rgba(115, 214, 177, 0.30), transparent 20%),
        radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.18), transparent 25%),
        linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 45%, #12314d 100%);
    z-index: 0;
}

.topbar {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 28px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    background: rgba(7, 14, 24, 0.62);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand a {
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.brand-title {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.brand-subtitle {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(233, 242, 255, 0.72);
    margin-top: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: #f2f6ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover,
.nav a.is-active {
    background: rgba(115, 214, 177, 0.16);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 28px 38px;
}

.page-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: #f3f6fb;
}

.page-intro-copy {
    flex: 1 1 720px;
    min-width: 0;
    max-width: 900px;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(232, 242, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.page-intro h1,
.hero-title {
    margin: 10px 0 8px;
    font-size: clamp(1.95rem, 3.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.page-intro p,
.hero-copy {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(241, 246, 255, 0.88);
}

.lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}

.page-intro > .badge,
.page-intro > .status-badge,
.page-intro > .status-chip {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 6px;
}


.page-shell.compact-intro.page-intro {
    margin-bottom: 18px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
    gap: 26px;
    align-items: stretch;
}

.hero-text,
.hero-card,
.card,
.panel,
.auth-panel,
.auth-side,
.metric-card,
.trust-step,
.value-card,
.review-card,
.feature-panel,
.status-panel {
    background: var(--panel);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-text {
    padding: 34px;
    overflow: hidden;
    position: relative;
}

.hero-text::after {
    content: "";
    position: absolute;
    inset: auto -50px -80px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 214, 177, 0.18), transparent 62%);
}

.hero-card {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(245, 250, 248, 0.98) 100%);
}

.hero-card h3,
.card h2,
.card h3,
.section-head h2,
.auth-panel h1,
.auth-side h2,
.metric-card h3 {
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.hero-card p,
.card p,
.auth-panel p,
.auth-side p,
.note-box,
.section-head p {
    line-height: 1.65;
}

.hero-logo-stack {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.hero-logo-stack .wordmark {
    width: min(420px, 100%);
    filter: drop-shadow(0 8px 28px rgba(9, 21, 33, 0.12));
}

.hero-logo-stack .shield {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 22, 35, 0.94), rgba(18, 40, 60, 0.82));
    padding: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 12px 30px rgba(10,18,32,0.18);
}

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

.metric-card {
    padding: 18px;
    background: rgba(244, 249, 255, 0.8);
}

.metric-card .metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}

.metric-card .metric-label {
    display: block;
    color: var(--text-soft);
    font-size: 0.93rem;
    line-height: 1.45;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.button-row.tight {
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn.primary {
    color: #06131e;
    background: linear-gradient(135deg, #86e3c0 0%, #5cc79f 48%, #40b487 100%);
    box-shadow: 0 10px 24px rgba(58, 180, 134, 0.28);
}

.btn.secondary {
    color: var(--navy);
    background: rgba(235, 242, 252, 0.95);
    border-color: rgba(19, 61, 111, 0.08);
}

.btn.secondary:hover {
    background: rgba(223, 234, 249, 1);
}

.btn.ghost {
    color: #f7fbff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn.danger {
    color: #fff;
    background: linear-gradient(180deg, #e95555 0%, #cb3232 100%);
    box-shadow: 0 10px 24px rgba(203, 50, 50, 0.24);
}

.btn.mini {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 12px;
    background: rgba(235, 242, 252, 0.95);
    border-color: rgba(19, 61, 111, 0.08);
    color: var(--navy);
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

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

.grid.three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.card {
    margin-top: 24px;
    padding: 28px;
}

.card.inner {
    margin-top: 0;
    padding: 24px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
}

.card.narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.card.flat-top {
    margin-top: 0;
}

.auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.auth-panel,
.auth-side {
    padding: 28px;
}

.auth-side {
    background:
        linear-gradient(180deg, rgba(11, 22, 37, 0.96) 0%, rgba(17, 31, 49, 0.93) 100%),
        radial-gradient(circle at top right, rgba(115, 214, 177, 0.18), transparent 26%);
    color: #edf5ff;
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    bottom: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 214, 177, 0.22), transparent 64%);
}

.auth-side > * {
    position: relative;
    z-index: 1;
}

.auth-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.auth-brand-row img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
}

.auth-list,
.feature-list,
.trust-list,
.value-list,
.simple-list,
.hero-card ol,
.hero-card ul,
.card ul,
.card ol {
    margin: 0;
    padding-left: 18px;
}

.auth-list li,
.feature-list li,
.trust-list li,
.value-list li,
.simple-list li,
.hero-card li,
.card li {
    margin-top: 10px;
    line-height: 1.6;
}

.auth-compact-note {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(239, 247, 255, 0.92);
}

.stack-form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 7px;
    font-weight: 700;
    color: #162536;
}

.stack-form input[type="text"],
.stack-form input[type="email"],
.stack-form input[type="password"],
.stack-form input[type="file"],
.stack-form input[type="tel"],
.stack-form textarea,
.stack-form select,
.wide-input,
.inline-form input[type="text"],
.inline-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.stack-form textarea {
    min-height: 110px;
    resize: vertical;
}

.compact textarea {
    min-height: 88px;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus,
.wide-input:focus,
.inline-form input:focus {
    border-color: #6acdad;
    box-shadow: 0 0 0 4px rgba(115, 214, 177, 0.18);
}

.inline-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form .wide-input {
    flex: 1 1 340px;
}

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

.field-help {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 6px;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-soft);
}

.hidden-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.flash {
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 26, 40, 0.08);
}

.flash-success {
    background: linear-gradient(180deg, #eaf8ef 0%, #def3e5 100%);
    color: #1f6b34;
    border: 1px solid rgba(31, 107, 52, 0.10);
}

.flash-error {
    background: linear-gradient(180deg, #fff0f0 0%, #ffe6e6 100%);
    color: #972929;
    border: 1px solid rgba(151, 41, 41, 0.10);
}

.note-box {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(241, 247, 255, 0.96) 0%, rgba(234, 243, 252, 0.96) 100%);
    color: var(--text);
    border: 1px solid rgba(19, 61, 111, 0.08);
}

.note-box.dark {
    background: rgba(8, 20, 32, 0.88);
    color: #eef5ff;
    border-color: rgba(255, 255, 255, 0.08);
}

.note-box.warn {
    background: linear-gradient(180deg, #fff8eb 0%, #fff1d7 100%);
    color: #7d5200;
    border-color: rgba(181, 114, 0, 0.16);
}

.note-box.success {
    background: linear-gradient(180deg, #ecfaf1 0%, #def5e8 100%);
    color: #1f6b34;
    border-color: rgba(31, 107, 52, 0.12);
}


.note-box.warning {
    background: linear-gradient(180deg, #fff8eb 0%, #fff1d7 100%);
    color: #7d5200;
    border-color: rgba(181, 114, 0, 0.16);
}

.auth-inline-links {
    margin-top: 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-inline-links a {
    font-weight: 700;
}

.key-value {
    display: grid;
    gap: 0;
}

.key-value div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #e8eef7;
}

.key-value div:last-child {
    border-bottom: none;
}

.key-value span {
    color: var(--text-soft);
    font-weight: 600;
}

.status-chip,
.status-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #eef3fb;
    color: #15345c;
}

.status-badge.warn,
.badge.warn {
    background: #fff4df;
    color: #8a5a00;
}

.badge.success {
    background: #e8f8ec;
    color: #1f6b34;
}

.badge.danger {
    background: #ffe9e9;
    color: #9a2d2d;
}

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

.section-head h2 {
    margin-bottom: 6px;
}

.review-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    padding: 20px;
    margin-top: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
    border: 1px solid rgba(19, 61, 111, 0.08);
}

.review-card.review-card-wide {
    grid-template-columns: 320px minmax(0, 1.15fr) minmax(260px, 0.8fr);
    align-items: start;
}

.package-admin-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: start;
}

.package-admin-actions {
    align-self: start;
    position: sticky;
    top: 16px;
}

.package-config-grid {
    align-items: end;
}

.package-check-row {
    gap: 18px;
}

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

.package-summary-grid div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.package-summary-grid span {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.package-summary-grid strong {
    font-size: 1rem;
    color: var(--navy);
}

.review-summary strong {
    display: inline-block;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.review-summary div {
    margin-top: 8px;
    line-height: 1.5;
}

.image-preview-box {
    width: 100%;
    background: rgba(255,255,255,0.96);
    border: 1px solid #e5edf8;
    border-radius: 18px;
    padding: 12px;
}

.image-preview-box img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 14px;
    background: #f6f8fc;
    display: block;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.table thead th {
    text-align: left;
    padding: 13px 12px;
    background: linear-gradient(180deg, #f2f7fd 0%, #e8f0fb 100%);
    color: var(--navy);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid #dde7f4;
}

.table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #e9eff8;
    vertical-align: top;
    line-height: 1.55;
}

.table tbody tr:hover {
    background: rgba(242, 248, 255, 0.68);
}

.verify-panel .hash-box {
    background: linear-gradient(180deg, #0e1724 0%, #132131 100%);
    color: #edf3ff;
    border-radius: 16px;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.06);
}

.hash-box code,
.note-box code,
.card code,
.review-summary code {
    font-family: "Consolas", "SFMono-Regular", monospace;
    word-break: break-word;
}

.preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 240px;
    border-radius: 18px;
    border: 1px solid #d8e3ef;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}

.preview-frame img {
    max-width: 100%;
    max-height: 360px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-box {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7fc 100%);
    border: 1px solid rgba(19, 61, 111, 0.08);
}

.stat-box .value {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.stat-box .label {
    display: block;
    color: var(--text-soft);
    line-height: 1.45;
}

.value-card {
    padding: 22px;
}

.value-card h3 {
    margin: 0 0 12px;
}

.top-gap {
    margin-top: 18px;
}

.centered {
    text-align: center;
}

.footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px 34px;
}

.footer {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
    gap: 24px;
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(10, 18, 30, 0.90);
    color: rgba(236, 244, 255, 0.9);
    box-shadow: var(--shadow-lg);
}

.footer-brand {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    flex: 0 0 auto;
}

.footer h3,
.footer h4 {
    margin: 0 0 8px;
    color: #fff;
}

.footer p,
.footer li {
    margin: 0;
    line-height: 1.65;
    color: rgba(236, 244, 255, 0.78);
}

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

.footer a {
    color: #cfe6ff;
}

.muted {
    color: var(--text-soft);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1160px) {
    .hero,
    .auth-wrap,
    .review-card,
    .review-card.review-card-wide,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .hero-proof {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .grid.two,
    .grid.three,
    .form-grid.two,
    .footer,
   .page-intro {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topbar {
        padding: 14px 14px 0;
    }

    .topbar-inner,
    .brand,
    .nav {
        align-items: flex-start;
    }

    .topbar-inner {
        flex-direction: column;
    }

    .page-shell,
    .footer-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-text,
    .hero-card,
    .card,
    .auth-panel,
    .auth-side {
        padding: 22px;
    }

    .table {
        display: block;
        overflow-x: auto;
    }
}


.profile-grid {
    align-items: start;
}

.profile-side-stack {
    display: grid;
    gap: 20px;
}

.profile-form .subsection-title {
    margin: 0 0 10px;
    font-size: 1.02rem;
}

.field-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

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

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

.section-divider {
    height: 1px;
    margin: 12px 0 16px;
    background: rgba(15, 24, 38, 0.08);
}

.inline-check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.compact-kv div strong {
    text-align: right;
}

@media (max-width: 980px) {
    .field-grid.two-col,
    .field-grid.four-col,
    .inline-check-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .inline-check-row {
        justify-content: start;
    }
}

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

.button-row.wrap-between {
    justify-content: space-between;
    align-items: center;
}

.flash.flash-warn {
    background: linear-gradient(180deg, #fff8eb 0%, #fff1d7 100%);
    color: #7d5200;
    border: 1px solid rgba(181, 114, 0, 0.16);
}

@media (max-width: 1100px) {
    .package-admin-card {
        grid-template-columns: 1fr;
    }

    .package-admin-actions {
        position: static;
    }

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

@media (max-width: 640px) {
    .package-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .form-grid.three {
        grid-template-columns: 1fr;
    }

    .button-row.wrap-between {
        justify-content: flex-start;
        align-items: flex-start;
    }
}


.preview-frame video {
    display: block;
    width: 100%;
}

.video-preview-box img {
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(10, 18, 32, 0.12);
}

.table code,
.review-summary code,
.hash-box code {
    word-break: break-all;
}

.top-gap {
    margin-top: 18px;
}

.btn.danger {
    background: rgba(209, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(209, 68, 68, 0.24);
}

.btn.danger:hover {
    background: rgba(209, 68, 68, 0.18);
    text-decoration: none;
}

.review-card-wide {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    margin-top: 18px;
}

.image-preview-box,
.review-summary {
    min-width: 0;
}

.review-summary strong {
    font-size: 1.05rem;
}

@media (max-width: 980px) {
    .review-card-wide {
        grid-template-columns: 1fr;
    }
}

.finance-history-filters {
    margin-bottom: 18px;
}

.finance-history-filters .field-grid {
    margin-bottom: 0;
}

.finance-history-search-row {
    margin-top: 14px;
    align-items: end;
}

.finance-history-actions {
    display: flex;
    align-items: end;
}

.finance-history-actions .button-row {
    margin-top: 0;
}

@media (max-width: 980px) {
    .finance-history-actions {
        align-items: stretch;
    }

    .finance-history-actions .button-row {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


.otp-reveal-token {
    display: inline-block;
    min-width: 0;
    margin-left: 10px;
    padding: 0;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #1f2937;
    background: transparent;
    transition: all 0.15s ease;
}

.otp-reveal-token.is-visible {
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    color: #f2f6ff;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
    background: rgba(115, 214, 177, 0.16);
    color: #fff;
    transform: translateY(-1px);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(7, 14, 24, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 36px rgba(0,0,0,0.24);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu a {
    display: block;
    width: 100%;
}

.expand-block {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 246, 252, 0.98) 100%);
    overflow: hidden;
}

.expand-block summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 18px;
    font-weight: 800;
    color: var(--navy);
}

.expand-block summary::-webkit-details-marker {
    display: none;
}

.expand-block[open] summary {
    border-bottom: 1px solid #e4ecf7;
}

.expand-block > div {
    padding: 0 18px 18px;
}

.pager-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.pager-summary,
.pager-page {
    color: var(--text-soft);
    font-size: 13px;
}

.pager-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn.is-disabled {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 920px) {
    .nav-dropdown {
        width: 100%;
        justify-content: flex-end;
    }

    .nav-dropdown-menu {
        right: 0;
        left: auto;
    }
}

.upload-dropzone {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 24px 18px;
    border: 2px dashed #c7d7ea;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(238, 245, 253, 0.98) 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.upload-dropzone strong {
    display: block;
    font-size: 1.02rem;
    color: var(--navy);
}

.upload-dropzone .upload-dropzone-state {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
}

.upload-dropzone:hover,
.upload-dropzone:focus {
    outline: none;
    border-color: rgba(56, 185, 138, 0.65);
    box-shadow: 0 0 0 4px rgba(115, 214, 177, 0.14);
    transform: translateY(-1px);
}

.upload-dropzone.is-dragover {
    border-color: rgba(56, 185, 138, 0.85);
    background: linear-gradient(180deg, rgba(236, 252, 246, 0.98) 0%, rgba(227, 248, 238, 0.98) 100%);
}

.mobile-quick-upload .stats-row {
    margin-top: 0;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.thumb-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,254,0.98) 100%);
    border: 1px solid rgba(19, 61, 111, 0.10);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 26, 40, 0.08);
}

.thumb-card-image-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    background: #e9f0f8;
    overflow: hidden;
}

.thumb-card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-card-body {
    padding: 14px 16px 16px;
}

.thumb-card-title {
    font-weight: 800;
    color: var(--navy);
    line-height: 1.35;
    word-break: break-word;
}

.thumb-card-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-soft);
    word-break: break-word;
}

@media (max-width: 920px) {
    .upload-dropzone {
        padding: 20px 16px;
    }

    .thumb-grid {
        grid-template-columns: 1fr;
    }
}
