.h-dashboard-shell {
    --hdb-text: #111827;
    --hdb-muted: #667085;
    --hdb-border: #d7dfea;
    --hdb-surface: #ffffff;
    --hdb-soft: #f7f9fc;
    --hdb-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
    display: grid;
    gap: 22px;
    color: var(--hdb-text);
}

.h-dashboard-login-card {
    max-width: 560px;
    padding: 28px;
    border: 1px solid var(--hdb-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 145, 0, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: var(--hdb-shadow);
}

.h-dashboard-login-card h3 {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 620;
}

.h-dashboard-login-card p {
    margin: 0 0 18px;
    color: var(--hdb-muted);
    font-size: 14px;
    line-height: 1.55;
}

.h-dashboard-login-form p {
    margin-bottom: 14px;
}

.h-dashboard-login-form label {
    display: block;
    margin-bottom: 6px;
    color: #3a4656;
    font-size: 13px;
    font-weight: 520;
}

.h-dashboard-login-form input[type="text"],
.h-dashboard-login-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #d4dde7;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
    font-size: 14px;
}

.h-dashboard-login-form input[type="submit"] {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

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

.h-dashboard-login-links a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.h-dashboard-login-links a:hover {
    text-decoration: underline;
}

.h-dashboard-premium {
    gap: 20px;
}

.h-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.94fr);
    gap: 18px;
    align-items: stretch;
}

.h-dashboard-profile-card,
.h-dashboard-plan-card,
.h-dashboard-card {
    position: relative;
    border: 1px solid var(--hdb-border);
    background:
        radial-gradient(circle at top left, rgba(255, 145, 0, 0.07), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: var(--hdb-shadow);
}

.h-dashboard-profile-card {
    padding: 22px 26px;
    border-radius: 30px 30px 30px 36px;
}

.h-dashboard-profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.h-dashboard-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 999px;
    background: #eef5ff;
    color: #475467;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-dashboard-gear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #667085;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(215, 223, 234, 0.9);
    font-size: 15px;
}

.h-dashboard-profile-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.h-dashboard-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.h-dashboard-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(255, 145, 0, 0.34) 0%, rgba(255, 145, 0, 0.08) 52%, transparent 76%);
    filter: blur(3px);
    pointer-events: none;
}

.h-dashboard-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 26px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 3px rgba(255, 145, 0, 0.22),
        0 14px 32px rgba(255, 145, 0, 0.18);
}

.h-dashboard-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.h-dashboard-profile-copy {
    min-width: 0;
}

.h-dashboard-profile-copy h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 3.6vw, 38px);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 650;
    word-break: break-word;
}

.h-dashboard-profile-copy p {
    margin: 0;
    color: var(--hdb-muted);
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.h-dashboard-plan-card {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 24px 26px;
    border-radius: 28px;
}

.h-dashboard-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.h-dashboard-plan-copy {
    min-width: 0;
}

.h-dashboard-card-kicker {
    display: inline-flex;
    margin-bottom: 9px;
    color: #667085;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-dashboard-plan-copy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 21px;
    line-height: 1.12;
    font-weight: 620;
    letter-spacing: -0.03em;
}

.h-dashboard-plan-copy p {
    margin: 0;
    color: var(--hdb-muted);
    font-size: 14px;
    line-height: 1.45;
}

.h-dashboard-plan-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.h-dashboard-upgrade-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 620;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    box-shadow: 0 12px 28px rgba(255, 145, 0, 0.16);
}

.h-dashboard-upgrade-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 145, 0, 0.2);
}

.h-dashboard-cancel-plan-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid #ef4444;
    background: #fff;
    color: #dc2626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}

.h-dashboard-cancel-plan-btn:hover {
    color: #fff;
    background: #dc2626;
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
}

.h-dashboard-cancel-plan-btn.is-loading {
    pointer-events: none;
    opacity: .72;
}

.h-dashboard-hero-progress,
.h-dashboard-card-progress {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf4;
}

.h-dashboard-hero-progress {
    height: 10px;
}

.h-dashboard-hero-progress span,
.h-dashboard-card-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 145, 0, 1) 0%, rgba(255, 145, 0, 0.62) 100%);
}

.h-dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.h-dashboard-card {
    display: grid;
    gap: 16px;
    min-height: 272px;
    padding: 20px 18px 18px;
    border-radius: 26px;
}

.h-dashboard-card-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.h-dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.h-dashboard-card-title span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h-dashboard-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.h-dashboard-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255, 145, 0, 0.1);
    color: var(--color-primary);
    font-size: 17px;
}

.h-dashboard-card-value {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.h-dashboard-card-value strong {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 650;
}

.h-dashboard-card-value span {
    color: #344054;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}

.h-dashboard-card-value-status strong {
    color: #2ea66a;
}

.h-dashboard-card-sites .h-dashboard-card-icon,
.h-dashboard-card-sites .h-dashboard-card-link,
.h-dashboard-card-sites .h-dashboard-card-progress span {
    color: #c7812f;
}

.h-dashboard-card-sites .h-dashboard-card-icon {
    background: rgba(199, 129, 47, 0.12);
}

.h-dashboard-card-sites .h-dashboard-card-progress span,
.h-dashboard-card-memory .h-dashboard-card-progress span,
.h-dashboard-card-database .h-dashboard-card-progress span,
.h-dashboard-card-ssl .h-dashboard-card-progress span {
    color: inherit;
}

.h-dashboard-card-memory .h-dashboard-card-icon {
    color: #bb7d37;
}

.h-dashboard-card-memory .h-dashboard-card-icon {
    background: rgba(187, 125, 55, 0.12);
}

.h-dashboard-card-database .h-dashboard-card-link {
    color: #bd7c2d;
}

.h-dashboard-card-ssl .h-dashboard-card-icon {
    background: rgba(35, 180, 109, 0.12);
    color: #1fa564;
}

.h-dashboard-card-stats {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
}

.h-dashboard-card-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.h-dashboard-card-stats span {
    color: var(--hdb-muted);
    font-size: 13px;
    line-height: 1.4;
}

.h-dashboard-card-stats b {
    color: #111827;
    font-size: 13px;
    font-weight: 620;
    text-align: right;
}

.h-dashboard-card-progress {
    height: 8px;
}

.h-dashboard-card-link,
.h-dashboard-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: end;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .18s ease, opacity .18s ease, transform .18s ease;
}

.h-dashboard-card-link {
    color: var(--color-primary);
}

.h-dashboard-card-link:hover {
    color: var(--color-primary);
    transform: translateX(1px);
}

.h-dashboard-card-button {
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 15px;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 145, 0, 0.15);
}

.h-dashboard-card-button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.h-dashboard-card-button.is-disabled {
    background: rgba(255, 145, 0, 0.12);
    color: var(--color-primary);
    box-shadow: none;
    pointer-events: none;
    cursor: default;
}

.h-dashboard-card-status {
    border-color: rgba(255, 145, 0, 0.55);
    box-shadow:
        0 0 0 2px rgba(255, 145, 0, 0.08),
        0 20px 42px rgba(15, 23, 42, 0.07);
}

.h-dashboard-card-status .h-dashboard-card-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #1f9d60;
}

.h-dashboard-card-status .h-dashboard-card-title {
    position: relative;
}

.h-dashboard-card-status .h-dashboard-card-title::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.h-dashboard-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100001;
}

.h-dashboard-modal-card {
    width: min(340px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 22px 56px rgba(15, 23, 42, .28);
    padding: 16px;
}

.h-dashboard-modal-card.h-dashboard-modal-card-wide {
    width: min(445px, calc(100vw - 32px));
    padding: 20px;
}

.h-dashboard-modal-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
    text-align: center;
}

.h-dashboard-modal-empty-state > i {
    color: #9ca3af;
    font-size: 56px;
    line-height: 1;
    opacity: .55;
}

.h-dashboard-modal-empty-state > p {
    margin: 0;
    color: #64748b;
    font-size: .95rem;
    font-weight: 500;
}

.h-dashboard-modal-title,
.h-dashboard-modal-title-sm {
    margin: 0 0 8px;
    color: #0f172a;
}

.h-dashboard-modal-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.h-dashboard-modal-title-sm {
    font-size: 18px;
    font-weight: 600;
}

.h-dashboard-modal-note {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
}

.h-dashboard-modal-note.h-dashboard-modal-note-center {
    margin-bottom: 14px;
    text-align: center;
}

.h-dashboard-modal-input {
    width: 100%;
    height: 44px;
    margin-bottom: 8px;
}

.h-dashboard-modal-error {
    min-height: 20px;
    margin: 0 0 10px;
    color: #dc2626;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.h-dashboard-modal-resend {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
}

.h-dashboard-modal-resend.is-visible {
    display: flex;
}

.h-dashboard-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.h-dashboard-modal-actions.h-dashboard-modal-actions-end {
    justify-content: flex-end;
}

.h-dashboard-modal-confirm.is-waiting {
    opacity: .7;
    pointer-events: none;
}

@media (max-width: 1240px) {
    .h-dashboard-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .h-dashboard-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .h-dashboard-card-grid {
        grid-template-columns: 1fr;
    }

    .h-dashboard-profile-card,
    .h-dashboard-plan-card,
    .h-dashboard-card,
    .h-dashboard-login-card {
        border-radius: 24px;
    }

    .h-dashboard-profile-card {
        padding: 20px;
    }

    .h-dashboard-plan-card {
        padding: 20px;
    }

    .h-dashboard-plan-head {
        flex-direction: column;
        align-items: stretch;
    }

    .h-dashboard-plan-actions {
        width: 100%;
    }

    .h-dashboard-upgrade-btn,
    .h-dashboard-cancel-plan-btn {
        width: 100%;
    }

    .h-dashboard-profile-main {
        align-items: flex-start;
    }

    .h-dashboard-avatar {
        width: 72px;
        height: 72px;
        border-radius: 22px;
    }

    .h-dashboard-profile-copy h2 {
        font-size: clamp(24px, 8vw, 32px);
    }
}
