:root {
    --ink: #10192d;
    --muted: #617089;
    --line: #dfe7ef;
    --soft: #f6f9fc;
    --paper: #ffffff;
    --teal: #008a8a;
    --cyan: #19bdd8;
    --blue: #0869d8;
    --pink: #ff2c7d;
    --coral: #ff5f5f;
    --green: #10a66a;
    --orange: #ff8a00;
    --shadow: 0 18px 44px rgba(23, 35, 60, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f8fbff;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

button,
input {
    font: inherit;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 74px;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
}

.brand img {
    width: 150px;
    height: auto;
}

.top-nav {
    display: flex;
    justify-content: center;
    gap: 34px;
    color: #121d33;
    font-weight: 850;
}

.top-nav a {
    padding: 10px 0;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 850;
}

.notification {
    position: relative;
    color: #23324b;
    font-size: 13px;
}

.notification::after {
    content: attr(data-count);
    position: absolute;
    top: -15px;
    right: -12px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
}

.profile-pill {
    padding: 12px 16px;
    border-radius: 999px;
    background: #f0f5fa;
}

.profile-pill--hot {
    background: linear-gradient(135deg, var(--pink), var(--coral));
    color: #fff;
}

.inline-form {
    margin: 0;
}

.link-button {
    border: 0;
    background: transparent;
    color: #24324b;
    font-weight: 900;
    cursor: pointer;
}

.flash {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 850;
}

.flash-success {
    border: 1px solid #bfead2;
    background: #ecfff5;
    color: #08744a;
}

.flash-error {
    border: 1px solid #ffc4d8;
    background: #fff1f6;
    color: #9b174a;
}

.auth-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    gap: 34px;
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 12px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(circle at 82% 12%, rgba(37, 215, 232, 0.14), transparent 28%),
        #fff;
    box-shadow: var(--shadow);
}

.auth-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.auth-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
}

.auth-card h2 {
    margin-bottom: 6px;
    font-size: 20px;
}

.auth-card label {
    color: #33425a;
    font-weight: 850;
}

.auth-card input {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d4e0ea;
    border-radius: 7px;
}

.portal-screen {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr) 300px;
    gap: 28px;
    min-height: calc(100vh - 74px);
    padding: 28px 22px 40px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 8px;
    color: #32425d;
    font-weight: 850;
}

.side-link span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    border: 1px solid #c8d8e6;
    color: #47617c;
    font-size: 11px;
}

.side-link.active {
    background: linear-gradient(90deg, rgba(37,215,232,0.16), rgba(37,215,232,0.04));
    color: var(--teal);
}

.side-link.active span {
    border-color: transparent;
    background: rgba(25,189,216,0.16);
    color: var(--teal);
}

.refer-card {
    margin-top: auto;
    padding: 28px 18px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 10%, rgba(37,215,232,0.28), transparent 34%),
        linear-gradient(145deg, #064953, #06334a);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}

.refer-icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: var(--cyan);
    font-size: 28px;
    font-weight: 950;
}

.refer-card h3,
.refer-card p {
    color: #fff;
}

.refer-card p {
    color: rgba(255,255,255,0.82);
}

.refer-card a {
    display: inline-flex;
    margin-top: 12px;
    padding: 13px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--coral));
    color: #fff;
    font-weight: 950;
}

.dashboard-main {
    min-width: 0;
}

.welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

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

.welcome-row h1 {
    margin-bottom: 4px;
    font-size: 26px;
}

p {
    color: var(--muted);
    line-height: 1.55;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 950;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--coral));
    color: #fff;
    box-shadow: 0 13px 26px rgba(255,47,124,0.22);
}

.btn-outline {
    border: 1px solid #0c76d8;
    background: #fff;
    color: #0c58b8;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 26px;
}

.metric-card,
.notice,
.table-card,
.rail-card,
.available-domain,
.hosting-card,
.order-card,
.domain-search,
.domain-result,
.trust-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.metric-card {
    position: relative;
    min-height: 140px;
    padding: 24px;
}

.metric-card span {
    display: block;
    margin-bottom: 12px;
    font-weight: 850;
}

.metric-card strong {
    display: block;
    margin-bottom: 18px;
    font-size: 31px;
}

.metric-card a {
    color: var(--teal);
    font-size: 14px;
    font-weight: 900;
}

.notice {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 18px;
    box-shadow: none;
}

.notice b {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
}

.notice a {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 950;
}

.notice-danger {
    border-color: #ffc4d8;
    background: #fff1f6;
}

.notice-danger b,
.notice-danger a {
    background: var(--pink);
    color: #fff;
}

.notice-info {
    border-color: #bfe2ff;
    background: #f0f8ff;
}

.notice-info b {
    background: var(--blue);
}

.notice-info a {
    border: 1px solid #1d9bc1;
    color: #00749b;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.card-head h2 {
    margin: 0;
    font-size: 17px;
}

.card-head a {
    padding: 8px 14px;
    border: 1px solid #d5e0ea;
    border-radius: 6px;
    color: #4e5d73;
    font-weight: 850;
}

.service-table {
    overflow-x: auto;
}

.service-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr 1fr .7fr;
    min-width: 760px;
    align-items: center;
    gap: 16px;
    padding: 15px 22px;
    border-bottom: 1px solid #edf1f5;
    color: #273852;
}

.service-head {
    background: #f8fbff;
    color: #54647c;
    font-size: 13px;
    font-weight: 950;
}

.service-row small {
    display: block;
    color: var(--orange);
}

.service-row small.green {
    color: var(--green);
}

.badge {
    display: inline-flex;
    width: max-content;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.badge.active {
    background: #dff8eb;
    color: var(--green);
}

.badge.warning {
    background: #fff0d7;
    color: var(--orange);
}

.action-icons {
    display: flex;
    gap: 8px;
}

.action-icons button {
    min-width: 42px;
    min-height: 36px;
    border: 1px solid #d5e0ea;
    border-radius: 7px;
    background: #fff;
    color: #0f1d32;
    font-size: 12px;
    font-weight: 850;
}

.right-rail {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 34px;
}

.rail-card {
    padding: 20px;
}

.rail-card h2 {
    margin-bottom: 18px;
    font-size: 17px;
}

.rail-card a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f5;
}

.rail-card a:last-child {
    border-bottom: 0;
}

.rail-card span,
.rail-card strong {
    display: block;
    color: var(--ink);
    font-weight: 900;
}

.rail-card small {
    color: var(--muted);
}

.cpanel-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.cpanel-row > b {
    color: #ff6a00;
    font-size: 24px;
}

.cpanel-row > span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #dff8eb;
    color: var(--green);
    font-size: 12px;
}

.cpanel-card .btn {
    width: 100%;
}

.ticket-row {
    padding: 14px 0;
    border-top: 1px solid #edf1f5;
}

.ticket-row b,
.ticket-row span {
    display: block;
}

.ticket-row b {
    color: var(--teal);
}

.ticket-row small {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ffe2ee;
    color: var(--pink);
    font-weight: 900;
}

.checkout-screen {
    padding: 34px 24px 70px;
    border-top: 1px solid var(--line);
    background: #fbfdff;
}

.checkout-wrap {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0 auto 34px;
}

.checkout-steps > div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 18px;
    border-bottom: 3px solid #d9e3ef;
}

.checkout-steps b {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #b9c7d8;
    border-radius: 50%;
    color: #7b8aa0;
}

.checkout-steps span {
    font-weight: 950;
}

.checkout-steps small {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.checkout-steps .done b,
.checkout-steps .current b {
    border-color: var(--blue);
    background: #fff;
    color: var(--blue);
}

.checkout-steps .done b {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
}

.checkout-steps .current {
    border-bottom-color: var(--blue);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
}

.available-domain {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 30px;
}

.domain-check {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: #dff8eb;
    color: var(--green);
    font-size: 28px;
    font-weight: 900;
}

.available-domain span {
    color: var(--green);
    font-weight: 900;
}

.available-domain h2 {
    margin: 6px 0 0;
    font-size: 28px;
}

.available-domain em {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dff8eb;
    color: var(--green);
    font-size: 12px;
    font-style: normal;
    text-transform: uppercase;
}

.available-domain strong {
    font-size: 24px;
}

.domain-search.compact {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    padding: 10px;
}

.domain-search input {
    flex: 1;
    min-height: 46px;
    border: 1px solid #d5e0ea;
    border-radius: 7px;
    padding: 0 14px;
}

.domain-result {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px 18px;
    box-shadow: none;
}

.domain-result span {
    display: block;
    color: var(--muted);
}

.section-title {
    margin: 28px 0 24px;
}

.section-title h2 {
    margin-bottom: 8px;
    font-size: 22px;
}

.hosting-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hosting-card {
    position: relative;
    padding: 34px 28px 24px;
    text-align: center;
    cursor: pointer;
}

.hosting-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hosting-card.selected {
    border: 2px solid var(--blue);
}

.ribbon {
    position: absolute;
    top: -17px;
    left: -2px;
    right: -2px;
    padding: 9px 0;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, var(--pink), var(--coral));
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.host-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 50%;
    background: #e5f5f7;
    color: var(--teal);
    font-weight: 950;
}

.host-icon.wordpress {
    color: var(--blue);
}

.hosting-card h3 {
    margin-bottom: 8px;
}

.hosting-card strong {
    display: block;
    margin: 22px 0 10px;
    color: var(--teal);
    font-size: 20px;
}

.hosting-card.selected strong {
    color: var(--blue);
}

.hosting-card ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 28px;
    padding: 0;
    text-align: left;
    list-style: none;
    color: #415064;
    font-size: 14px;
}

.hosting-card li::before {
    content: "✓";
    margin-right: 9px;
    color: var(--teal);
}

.hosting-card .select-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--teal);
    border-radius: 8px;
    background: #fff;
    color: var(--teal);
    font-weight: 950;
}

.hosting-card.selected .select-plan {
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), #0087ff);
    color: #fff;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 22px;
    padding: 18px 24px;
    box-shadow: none;
}

.trust-row b,
.trust-row span {
    display: block;
}

.trust-row span {
    color: var(--muted);
}

.order-card {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.order-card h2 {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
}

.order-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.order-line span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.order-total {
    display: grid;
    gap: 6px;
    padding: 22px 0;
}

.order-total b {
    font-size: 32px;
}

.order-total small,
.order-card p {
    color: var(--muted);
}

.order-card .btn {
    width: 100%;
    min-height: 52px;
}

@media (max-width: 1180px) {
    .portal-screen,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .right-rail {
        display: none;
    }

    .metric-grid,
    .hosting-plans,
    .trust-row,
    .auth-hero,
    .auth-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .app-topbar {
        grid-template-columns: 1fr auto;
        padding: 0 16px;
    }

    .top-nav {
        display: none;
    }

    .top-actions {
        gap: 10px;
        font-size: 13px;
    }

    .notification {
        display: none;
    }

    .portal-screen,
    .checkout-screen {
        padding-left: 14px;
        padding-right: 14px;
    }

    .metric-grid,
    .hosting-plans,
    .trust-row,
    .checkout-steps,
    .auth-hero,
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .welcome-row,
    .notice,
    .available-domain,
    .domain-result {
        grid-template-columns: 1fr;
    }

    .domain-search.compact {
        flex-direction: column;
    }
}
