:root {
    --vfm-qj-primary: #f2a072;
    --vfm-qj-primary-deep: #dc8a5e;
    --vfm-qj-bg-soft: #fff9f5;
    --vfm-qj-bg-soft-2: #fffdfb;
    --vfm-qj-ink: #2f2318;
    --vfm-qj-muted: #7a5d46;
    --vfm-qj-border: #f1dccd;
    --vfm-qj-ok: #15803d;
    --vfm-qj-warn: #b45309;
    --vfm-qj-error: #b91c1c;
}

.vfm-gc-shell,
.vfm-gc-shell * {
    box-sizing: border-box;
    font-family: "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
}

.vfm-gc-shell {
    color: var(--vfm-qj-ink);
    max-width: 1060px;
    margin: 18px auto;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--vfm-qj-border);
    background:
        radial-gradient(circle at 14% 18%, rgba(242, 160, 114, 0.2), transparent 46%),
        radial-gradient(circle at 86% 84%, rgba(242, 160, 114, 0.12), transparent 42%),
        linear-gradient(148deg, var(--vfm-qj-bg-soft) 0%, var(--vfm-qj-bg-soft-2) 100%);
    box-shadow: 0 14px 34px rgba(220, 138, 94, 0.16);
}

.vfm-dashboard h5,
.vfm-gc-shell h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--vfm-qj-ink);
}

.vfm-dashboard .vfm-card {
    margin: 12px 0;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--vfm-qj-border);
    background: #fff;
    box-shadow: 0 12px 28px rgba(220, 138, 94, 0.12);
}

.vfm-dashboard .vfm-card h3 {
    margin: 0 0 10px;
    color: var(--vfm-qj-ink);
    font-size: 1.04rem;
    letter-spacing: -0.01em;
}

.vfm-dashboard .status-ok {
    color: var(--vfm-qj-ok);
    font-weight: 700;
    font-size: 12px;
}

.vfm-dashboard .status-warn {
    color: var(--vfm-qj-warn);
    font-weight: 700;
    font-size: 12px;
}

.vfm-dashboard .status-bad {
    color: var(--vfm-qj-error);
    font-weight: 700;
    font-size: 12px;
}

.vfm-dashboard code {
    background: #fff7f1;
    border: 1px solid #f0d7c8;
    color: #6e452f;
    border-radius: 8px;
    padding: 2px 6px;
}

.vfm-gc-notice {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--vfm-qj-border);
    background: #fff3e8;
}

.vfm-gc-notice p {
    margin: 0;
}

.vfm-gc-notice.info {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
}

.vfm-gc-notice.success {
    border-left: 4px solid #16a34a;
    background: #ecfdf3;
}

.vfm-gc-notice.error {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
}

.vfm-gc-table-wrap {
    overflow: auto;
}

.vfm-gc-table {
    width: 100%;
    border-collapse: collapse;
}

.vfm-gc-table th,
.vfm-gc-table td {
    text-align: left;
    padding: 7px 5px;
    border-bottom: 1px solid #f2e3da;
}

.vfm-gc-auth {
    max-width: 640px;
}

.vfm-gc-auth .vfm-form,
.vfm-gc-auth form {
    display: grid;
    gap: 10px;
}

.vfm-gc-auth .vfm-form > p,
.vfm-gc-auth form > p,
.vfm-gc-auth .login-username,
.vfm-gc-auth .login-password,
.vfm-gc-auth .login-remember,
.vfm-gc-auth .login-submit {
    margin: 0;
}

.vfm-gc-auth label {
    color: #5b3f2d;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.vfm-register-user-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
}

.vfm-gc-auth input[type="text"],
.vfm-gc-auth input[type="email"],
.vfm-gc-auth input[type="password"],
.vfm-gc-auth input[type="url"],
.vfm-gc-auth select,
.vfm-gc-auth textarea {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--vfm-qj-border);
    background: #fff9f2;
    color: var(--vfm-qj-ink);
    padding: 9px 11px;
    font-size: 0.92rem;
}

.vfm-gc-auth input[type="text"]:focus,
.vfm-gc-auth input[type="email"]:focus,
.vfm-gc-auth input[type="password"]:focus,
.vfm-gc-auth input[type="url"]:focus,
.vfm-gc-auth select:focus,
.vfm-gc-auth textarea:focus {
    outline: none;
    border-color: var(--vfm-qj-primary);
    box-shadow: 0 0 0 0.18rem rgba(242, 160, 114, 0.22);
}

.vfm-gc-auth .login-remember {
    margin-top: 2px;
}

.vfm-gc-auth .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--vfm-qj-muted);
}

.vfm-gc-auth .login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--vfm-qj-primary);
}

.vfm-gc-auth .button,
.vfm-gc-auth button,
.vfm-gc-auth input[type="submit"] {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--vfm-qj-primary), var(--vfm-qj-primary-deep));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(242, 160, 114, 0.3);
    text-align: center;
}

.vfm-gc-auth .button:hover,
.vfm-gc-auth button:hover,
.vfm-gc-auth input[type="submit"]:hover {
    filter: brightness(0.98);
}

.vfm-gc-auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.vfm-gc-auth-col {
    display: block;
}

.vfm-gc-auth small,
.vfm-gc-auth .vfm-help {
    color: var(--vfm-qj-muted);
}

.vfm-gc-login {
    max-width: 1040px;
    margin: 34px auto;
}

.vfm-gc-login-shell {
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 14% 18%, rgba(242, 160, 114, 0.28), transparent 46%),
        radial-gradient(circle at 86% 84%, rgba(242, 160, 114, 0.2), transparent 42%),
        linear-gradient(148deg, #fff6ef 0%, #fff4ea 45%, #fff9f4 100%);
    border: 2px solid rgba(220, 138, 94, 0.52);
    box-shadow: 0 16px 34px rgba(220, 138, 94, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.vfm-gc-login-layout {
    display: grid;
    gap: 18px;
}

.vfm-gc-brand-panel {
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(242, 160, 114, 0.96) 0%, rgba(220, 138, 94, 0.96) 65%, rgba(191, 114, 74, 0.98) 100%);
    color: #fff7f1;
    border: 1px solid rgba(173, 103, 67, 0.4);
    box-shadow: 0 14px 35px rgba(144, 84, 55, 0.24);
}

.vfm-gc-brand-panel h2 {
    margin: 3px 0 8px;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.vfm-gc-brand-panel p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.vfm-gc-login-card.vfm-gc-shell {
    max-width: none;
    margin: 0;
    padding: 24px;
    border: 2px solid rgba(220, 138, 94, 0.36);
    background: #fff;
    box-shadow: 0 12px 30px rgba(144, 84, 55, 0.12);
}

.vfm-gc-login-card h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--vfm-qj-ink);
}

.vfm-gc-login-subtitle {
    margin: 6px 0 16px;
    font-size: 0.88rem;
    color: var(--vfm-qj-muted);
}

.vfm-gc-signup .vfm-gc-auth {
    max-width: none;
}

.vfm-gc-signup-card .vfm-form-register-user {
    gap: 12px;
}

.vfm-gc-signup-card .vfm-help {
    margin: 2px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.vfm-gc-auth-check label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--vfm-qj-muted);
    font-weight: 600;
}

.vfm-gc-auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    margin-top: 1px;
    accent-color: var(--vfm-qj-primary);
}

.vfm-gc-captcha-wrap {
    margin: 2px 0 0;
}

.vfm-gc-captcha-wrap .cf-turnstile,
.vfm-gc-captcha-wrap .g-recaptcha {
    max-width: 100%;
}

.vfm-gc-submit-row {
    margin-top: 4px;
}

.vfm-gc-portal {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-areas:
        "topbar topbar"
        "sidebar content";
    gap: 16px;
    max-width: 1200px;
    margin: 18px auto;
}

.vfm-gc-portal-topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--vfm-qj-border);
    background: #fff;
    box-shadow: 0 12px 28px rgba(220, 138, 94, 0.14);
}

.vfm-gc-portal-top-left,
.vfm-gc-portal-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vfm-gc-portal-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vfm-qj-primary), var(--vfm-qj-primary-deep));
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.vfm-gc-portal-title {
    font-size: 0.93rem;
    font-weight: 800;
    color: var(--vfm-qj-ink);
}

.vfm-gc-portal-top-user {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--vfm-qj-muted);
}

.vfm-gc-portal-top-link {
    color: var(--vfm-qj-primary-deep);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.vfm-gc-portal-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 16px;
    align-self: start;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--vfm-qj-border);
    background: #fff;
    box-shadow: 0 14px 34px rgba(220, 138, 94, 0.14);
}

.vfm-gc-portal-nav {
    display: grid;
    gap: 8px;
}

.vfm-gc-portal-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--vfm-qj-ink);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}

.vfm-gc-portal-nav a:hover {
    border-color: var(--vfm-qj-primary);
    color: var(--vfm-qj-primary-deep);
}

.vfm-gc-portal-nav a.is-active {
    border-color: var(--vfm-qj-primary);
    color: #fff;
    background: linear-gradient(135deg, var(--vfm-qj-primary), var(--vfm-qj-primary-deep));
}

.vfm-gc-portal-content {
    grid-area: content;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--vfm-qj-border);
    background: #fff;
    box-shadow: 0 10px 28px rgba(220, 138, 94, 0.12);
}

.vfm-gc-portal-content-title {
    margin: 0 0 12px;
    color: var(--vfm-qj-ink);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.vfm-gc-portal-content .vfm-card {
    border: 1px solid var(--vfm-qj-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(220, 138, 94, 0.1);
}

.vfm-gc-portal-content .vfm-form {
    display: grid;
    gap: 10px;
}

.vfm-gc-portal-content .vfm-form > p {
    margin: 0;
}

.vfm-gc-portal-content input[type="text"],
.vfm-gc-portal-content input[type="email"],
.vfm-gc-portal-content input[type="password"],
.vfm-gc-portal-content input[type="url"],
.vfm-gc-portal-content input[type="number"],
.vfm-gc-portal-content input[type="date"],
.vfm-gc-portal-content select,
.vfm-gc-portal-content textarea {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--vfm-qj-border);
    background: #fff9f2;
    color: var(--vfm-qj-ink);
    padding: 9px 11px;
    font-size: 0.92rem;
}

.vfm-gc-portal-content textarea {
    min-height: 120px;
}

.vfm-gc-portal-content input[type="text"]:focus,
.vfm-gc-portal-content input[type="email"]:focus,
.vfm-gc-portal-content input[type="password"]:focus,
.vfm-gc-portal-content input[type="url"]:focus,
.vfm-gc-portal-content input[type="number"]:focus,
.vfm-gc-portal-content input[type="date"]:focus,
.vfm-gc-portal-content select:focus,
.vfm-gc-portal-content textarea:focus {
    outline: none;
    border-color: var(--vfm-qj-primary);
    box-shadow: 0 0 0 0.18rem rgba(242, 160, 114, 0.22);
}

.vfm-form-company,
.vfm-form-director,
.vfm-form-pageant,
.vfm-form-gateways {
    font-size: 13px;
}

.vfm-form.vfm-form-director,
.vfm-form.vfm-form-company,
.vfm-form.vfm-form-pageant,
.vfm-form.vfm-form-gateways {
    border: 1px solid var(--vfm-qj-border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.vfm-form-company h5,
.vfm-form-director h5,
.vfm-form-pageant h5,
.vfm-form-gateways h5,
.vfm-gc-portal-content .vfm-card h5 {
    margin: 0 0 8px;
    font-size: 20px;
}

.vfm-form-company .vfm-block-muted {
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
}

.vfm-form-company .vfm-block-muted p {
    margin-bottom: 8px;
}

.vfm-gw-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 10px 0 18px;
}

.vfm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef;
    color: #225;
    border: 1px solid #cfe;
}

.vfm-acct {
    margin: 10px 0 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    white-space: nowrap;
    overflow: auto;
}

.vfm-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.vfm-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.vfm-meta {
    font-size: 13px;
    opacity: 0.8;
}

.vfm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vfm-toolbar a.us-btn-style_4 {
    text-decoration: none;
}

.vfm-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vfm-gc-row {
    display: flex;
    gap: 10px;
}

.vfm-gc-row-end {
    align-items: flex-end;
}

.vfm-gc-wrap {
    flex-wrap: wrap;
}

.vfm-gc-col-1 {
    flex: 1;
}

.vfm-gc-col-2 {
    flex: 2;
}

.vfm-gc-col-3 {
    flex: 3;
}

.vfm-gc-min-220 {
    min-width: 220px;
}

.vfm-gc-tabnav {
    display: flex;
    gap: 8px;
}

.vfm-gc-tabnav a {
    text-decoration: none;
}

.vfm-gc-tablink {
    text-decoration: none;
}

.vfm-gc-tablink.is-active {
    font-weight: 700;
}

.vfm-gc-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.vfm-gc-status-badge.is-approved {
    background: #2e7d32;
}

.vfm-gc-status-badge.is-refused {
    background: #c62828;
}

.vfm-gc-status-badge.is-pending {
    background: #f57c00;
}

.vfm-gc-m0 {
    margin: 0;
}

.vfm-gc-mt-4 {
    margin-top: 4px;
}

.vfm-gc-mt-16 {
    margin-top: 16px;
}

.vfm-gc-mt-12 {
    margin-top: 12px;
}

.vfm-gc-mt-10 {
    margin-top: 10px;
}

.vfm-gc-mt-8 {
    margin-top: 8px;
}

.vfm-gc-mv-10 {
    margin: 10px 0;
}

.vfm-gc-mv-8 {
    margin: 8px 0;
}

.vfm-gc-note {
    margin: 0 0 6px;
    opacity: 0.85;
}

.vfm-gc-muted-note {
    margin: 10px 0 0;
    opacity: 0.7;
}

.vfm-gc-fw-600 {
    font-weight: 600;
}

.vfm-gc-checkline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.vfm-gc-hidden {
    display: none;
}

.vfm-gc-status-chip {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #fff3cd;
    border: 1px solid #ffe08a;
    color: #8a6d3b;
}

.vfm-gc-btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.vfm-gc-contract-state {
    font-weight: 600;
}

.vfm-gc-contract-state.is-ok {
    color: #2e7d32;
}

.vfm-gc-contract-state.is-warn {
    color: #ef6c00;
}

.vfm-missing-fields {
    margin: .5em 0 0 1.2em;
}

.vfm-missing-fields li {
    color: #c62828;
    font-weight: 600;
}

.vfm-gc-review-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.vfm-gc-review-badge.is-pending {
    background: #fff3cd;
    border: 1px solid #ffe08a;
    color: #8a6d3b;
}

.vfm-gc-review-badge.is-approved {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.vfm-gc-review-badge.is-rejected {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.vfm-gc-review-badge.is-unknown {
    background: #eee;
    border: 1px solid #ddd;
    color: #333;
}

@media (min-width: 960px) {
    .vfm-gc-login-layout {
        grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.1fr);
        align-items: stretch;
    }

    .vfm-gc-brand-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 960px) {
    .vfm-gc-portal {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "sidebar"
            "content";
    }

    .vfm-gc-portal-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .vfm-gc-portal-sidebar {
        position: relative;
        top: auto;
    }
}

@media (max-width: 760px) {
    .vfm-gc-shell {
        margin: 10px auto;
        padding: 14px;
        border-radius: 16px;
    }

    .vfm-gc-auth-row {
        grid-template-columns: 1fr;
    }

    .vfm-gc-login {
        margin: 18px auto;
    }

    .vfm-gc-login-shell {
        padding: 14px;
        border-radius: 18px;
    }

    .vfm-gc-brand-panel,
    .vfm-gc-login-card.vfm-gc-shell {
        padding: 18px;
        border-radius: 14px;
    }
}
