:root {
    --portal-page: #f4f8f6;
    --portal-surface: #ffffff;
    --portal-line: #dfe9e4;
    --portal-ink: #183b31;
    --portal-text: #344b44;
    --portal-muted: #4d675f;
    --type-body: 15px;
    --type-label: 13px;
    --type-input: 16px;
    --portal-brand: #0b8b7a;
    --portal-brand-dark: #075e54;
}

body.portal-shell {
    min-height: 100vh;
    overflow-x: clip;
    background: var(--portal-page);
    color: var(--portal-text);
    font-family: "Inter", sans-serif;
}

body.portal-shell.bg-dark-950,
.portal-shell .bg-dark-950 {
    background-color: var(--portal-page);
}

.portal-shell .bg-dark-900,
.portal-shell [class~="bg-dark-900/50"],
.portal-shell [class~="bg-dark-900/70"] {
    background-color: var(--portal-surface);
}

.portal-shell [class~="border-dark-800"],
.portal-shell [class~="border-slate-700"] {
    border-color: var(--portal-line);
}

.portal-shell .text-white {
    color: var(--portal-ink);
}

.portal-shell .rate-was {
    color: var(--portal-muted);
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.portal-shell .rate-now {
    color: var(--portal-ink);
    font-weight: 700;
}
.portal-shell .rate-offer-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    color: var(--portal-brand-dark);
    background: #e7f6f3;
    border-radius: 999px;
    font-size: var(--type-label);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}
}

.portal-shell button.text-white,
.portal-shell a.text-white,
.portal-shell .portal-logo-letter,
.portal-shell .portal-avatar-letter {
    color: #ffffff;
}

.portal-shell .text-slate-300 {
    color: var(--portal-text);
}

.portal-shell .text-slate-400 {
    color: #3f5c54;
}

.portal-shell .text-slate-500,
.portal-shell .text-slate-600 {
    color: var(--portal-muted);
}

.portal-shell .text-brand-300,
.portal-shell .text-brand-400,
.portal-shell .text-brand-500,
.portal-shell .text-brand-600,
.portal-shell [class~="hover:text-white"]:hover,
.portal-shell [class~="hover:text-brand-300"]:hover,
.portal-shell [class~="hover:text-brand-400"]:hover {
    color: var(--portal-brand-dark);
}

.portal-shell [class~="hover:bg-brand-400"]:hover,
.portal-shell [class~="hover:bg-brand-500"]:hover {
    background-color: var(--portal-brand-dark);
}

.portal-shell [class~="hover:from-brand-400"]:hover {
    background-image: linear-gradient(90deg, #087365, #075e54);
}

.portal-shell [class~="bg-slate-800"],
.portal-shell [class~="bg-slate-700"] {
    background-color: #edf4f0;
}

.portal-shell [class~="hover:bg-slate-800/50"]:hover {
    background-color: #edf4f0;
}

.portal-shell .text-green-400 {
    color: #08734f;
}

.portal-shell .text-blue-400 {
    color: #1d4ed8;
}

.portal-shell .text-purple-400 {
    color: #7e22ce;
}

.portal-shell .text-orange-400 {
    color: #b45309;
}

.portal-shell .text-red-400,
.portal-shell .text-red-300 {
    color: #b42318;
}

.portal-shell .text-yellow-300,
.portal-shell .text-yellow-400 {
    color: #92400e;
}

.portal-shell .text-blue-300 {
    color: #1d4ed8;
}

.domain-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.domain-steps li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 22px;
    color: var(--site-muted, #4a626a);
    font-size: var(--type-body, 15px);
}

.domain-steps li::before {
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c5d5d0;
    content: "";
}

.domain-steps li.is-done { color: #075e54; }
.domain-steps li.is-done::before,
.domain-steps li.is-current::before { background: #0b8b7a; }
.domain-steps li.is-current { color: #16343a; font-weight: 600; }

.portal-shell .form-input {
    min-height: 48px;
    color: #263e35;
    background-color: #ffffff;
    border-color: #cddbd4;
    box-shadow: 0 1px 2px rgba(24, 59, 49, 0.03);
    font-size: var(--type-input);
}

.portal-shell textarea.form-input {
    min-height: 120px;
}

.portal-shell .form-input::placeholder {
    color: #87988f;
}

.portal-shell .form-input:hover {
    border-color: #9bb7aa;
}

.portal-shell .form-input:focus {
    border-color: var(--portal-brand);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 139, 122, 0.13);
}

.portal-shell select.form-input option {
    color: #263e35;
    background-color: #ffffff;
}

.portal-shell .dash-panel,
.portal-shell .dash-stat-card,
.portal-shell .dash-action-card {
    background: var(--portal-surface);
    border-color: var(--portal-line);
    box-shadow: 0 8px 24px rgba(24, 59, 49, 0.035);
}

.portal-shell .dash-panel:hover,
.portal-shell .dash-stat-card:hover,
.portal-shell .dash-action-card:hover {
    border-color: #bdd8cb;
    box-shadow: 0 12px 28px rgba(24, 59, 49, 0.07);
}

.portal-shell .dash-panel-header {
    border-color: var(--portal-line);
}

.portal-shell .dash-stat-value {
    color: var(--portal-ink);
}

.portal-shell .dash-stat-label {
    color: var(--portal-muted);
    font-size: var(--type-label);
}

.portal-shell .text-xs,
.portal-shell .text-\[10px\] {
    font-size: var(--type-label);
    line-height: 1.45;
}

.portal-shell .text-sm {
    font-size: var(--type-body);
    line-height: 1.5;
}

.portal-shell .dash-action-card {
    min-width: 0;
}

.portal-shell .dash-action-card p {
    overflow-wrap: anywhere;
}

.portal-shell table thead {
    background-color: #f4f8f6;
}

.portal-shell table th {
    color: #60766d;
}

.portal-shell table td {
    color: var(--portal-text);
    border-color: var(--portal-line);
}

.portal-shell table tbody tr:hover {
    background-color: #f7faf8;
}

.portal-brand-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.portal-brand-logo--login {
    height: 64px;
    margin-inline: auto;
}

.portal-shell.portal-auth {
    isolation: isolate;
}

.portal-shell.portal-auth form {
    background-color: rgba(255, 255, 255, 0.94);
    border-color: var(--portal-line);
    box-shadow: 0 24px 70px rgba(24, 59, 49, 0.1);
}

.portal-shell.portal-auth form button {
    box-shadow: 0 10px 24px rgba(11, 139, 122, 0.18);
}

.portal-shell .portal-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    stroke-width: 1.8;
}

.portal-shell .portal-menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.portal-shell .portal-topbar {
    border-color: var(--portal-line);
    background-color: rgba(255, 255, 255, 0.92);
}

.portal-shell a:focus-visible,
.portal-shell button:focus-visible,
.portal-shell input:focus-visible,
.portal-shell select:focus-visible,
.portal-shell textarea:focus-visible {
    outline: 3px solid rgba(11, 139, 122, 0.32);
    outline-offset: 2px;
}

.portal-shell::-webkit-scrollbar-track,
.portal-shell *::-webkit-scrollbar-track {
    background: #e7f0ec;
}

.portal-shell::-webkit-scrollbar-thumb,
.portal-shell *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #43b39a, #087365);
}

.portal-shell::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0b8b7a, #075e54);
}

.portal-shell main > * {
    animation: portal-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portal-shell main > *:nth-child(2) { animation-delay: 60ms; }
.portal-shell main > *:nth-child(3) { animation-delay: 110ms; }
.portal-shell main > *:nth-child(4) { animation-delay: 160ms; }

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

.portal-shell ::selection {
    color: var(--portal-brand-dark);
    background: rgba(11, 139, 122, 0.16);
}

@media (max-width: 640px) {
    .portal-shell main {
        min-width: 0;
    }

    .portal-shell table {
        min-width: 620px;
    }

    .portal-shell .dash-panel {
        overflow-x: auto;
    }
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (prefers-reduced-motion: reduce) {
    .portal-shell *,
    .portal-shell *::before,
    .portal-shell *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .portal-shell main > * {
        opacity: 1;
        transform: none;
        animation: none;
    }
}