html {
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(89, 150, 255, 0.16), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(35, 88, 173, 0.2), transparent 25%),
        linear-gradient(180deg, #060b15 0%, #09111f 42%, #0d1729 100%);
    color: var(--msw-text, #e5edf7);
    font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main {
    display: block;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: var(--msw-link, #8cc7ff);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
    color: var(--msw-link-hover, #b4daff);
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

table {
    width: 100%;
}

textarea {
    resize: vertical;
}

.container,
.container-fluid {
    position: relative;
}

.app-shell {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

.app-background-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.65;
    pointer-events: none;
    z-index: -1;
}

.app-background-glow-one {
    width: 24rem;
    height: 24rem;
    top: 5rem;
    left: -6rem;
    background: rgba(49, 119, 226, 0.2);
}

.app-background-glow-two {
    width: 28rem;
    height: 28rem;
    right: -10rem;
    top: 18rem;
    background: rgba(26, 63, 139, 0.22);
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    margin-bottom: 0.5rem;
    color: #f8fbff;
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-subtitle {
    max-width: 60rem;
    color: #9dafc6;
    font-size: 1rem;
}

.section-spacing {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.content-shell {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.surface-card,
.card {
    border-radius: 1rem;
    overflow: hidden;
}

.premium-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(17, 27, 44, 0.94), rgba(12, 20, 34, 0.96)) !important;
    border: 1px solid rgba(146, 179, 226, 0.12) !important;
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(113, 177, 255, 0.08), transparent 34%, transparent 100%);
    pointer-events: none;
}

.premium-info-block {
    border: 1px solid rgba(146, 179, 226, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.premium-highlight-panel {
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(90, 169, 255, 0.12);
}

.premium-danger-panel {
    box-shadow:
        0 24px 54px rgba(48, 10, 18, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card {
    border-width: 1px;
}

.card-header {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.shadow-sm {
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18) !important;
}

.shadow {
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22) !important;
}

.shadow-lg {
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.28) !important;
}

.form-label {
    margin-bottom: 0.55rem;
    color: #d6e2f2;
    font-weight: 600;
}

.form-control,
.form-select,
.input-group-text,
.form-check-input {
    border-radius: 0.85rem;
}

.form-control,
.form-select {
    min-height: 3.2rem;
    padding: 0.9rem 1rem;
    width: 100%;
}

.form-control::placeholder,
.form-select::placeholder {
    color: #7d8ca3;
}

.form-text {
    color: #8fa1bb;
}

.text-danger,
.field-validation-error,
.validation-summary-errors,
span.field-validation-valid[data-valmsg-for] {
    font-size: 0.92rem;
}

.field-validation-error {
    display: inline-block;
    margin-top: 0.4rem;
    color: #ff9b9b !important;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.validation-summary-valid {
    display: none;
}

.btn {
    border-radius: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 0.9rem 1.25rem;
}

.btn,
.form-control,
.form-select {
    max-width: 100%;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.text-muted {
    color: #9dafc6 !important;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.border {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.list-group-item {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.min-vh-100 {
    min-height: 100vh !important;
}

.table-responsive {
    border-radius: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.text-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.premium-alert-stack {
    position: relative;
}

.premium-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
}

.premium-alert-icon {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    flex: 0 0 auto;
    margin-top: 0.45rem;
    background: currentColor;
    box-shadow: 0 0 20px currentColor;
    opacity: 0.9;
}

.premium-alert-copy {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 1.5rem;
}

.premium-error-badge,
.home-hero-badge,
.auth-eyebrow,
.dashboard-section-kicker,
.dashboard-sidebar-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(122, 164, 224, 0.18);
    background: rgba(90, 169, 255, 0.08);
    color: #b3d8ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .content-shell,
    .section-spacing {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .page-header {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 15px;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body,
    .card-header,
    .card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-title {
        font-size: 1.65rem;
    }

    .btn-lg,
    .btn {
        min-height: 3rem;
    }
}

.home-hero {
    position: relative;
    padding: 5.5rem 0 3rem;
    text-align: center;
}

.home-title {
    max-width: 58rem;
    margin: 1.25rem auto 1rem;
    color: #f8fbff;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.home-subtitle {
    max-width: 48rem;
    margin: 0 auto;
    color: #a9bdd8;
    font-size: 1.12rem;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.home-action {
    min-width: 12rem;
}

.home-feature-grid {
    padding-top: 1rem;
}

.home-feature-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    margin-top: 0.4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(90, 169, 255, 0.2), rgba(47, 140, 255, 0.12));
    border: 1px solid rgba(90, 169, 255, 0.14);
    color: #c8e5ff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 3rem 0 2rem;
    }

    .home-subtitle {
        font-size: 1rem;
    }

    .home-actions {
        gap: 0.75rem;
    }

    .home-action {
        width: 100%;
    }
}
