:root {
    --background: #06191a;
    --background-deep: #041415;

    --panel: rgba(10, 38, 39, 0.94);
    --panel-strong: rgba(13, 46, 47, 0.98);
    --panel-soft: rgba(255, 255, 255, 0.035);

    --border: rgba(98, 234, 213, 0.16);
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(98, 234, 213, 0.28);

    --accent: #62ead5;
    --accent-hover: #86f0df;
    --accent-soft: rgba(98, 234, 213, 0.11);

    --text-primary: #f4fbfa;
    --text-secondary: #a8c1bf;
    --text-muted: #76908e;

    --danger: #ff9a9a;
    --danger-background: rgba(255, 105, 105, 0.08);
    --danger-border: rgba(255, 105, 105, 0.22);

    --success: #82ecd6;
    --success-background: rgba(98, 234, 213, 0.09);
    --success-border: rgba(98, 234, 213, 0.22);

    --shadow:
        0 35px 100px rgba(0, 0, 0, 0.35);

    --radius-large: 42px;
    --radius-medium: 24px;
    --radius-small: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    color: var(--text-primary);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 18% 8%,
            rgba(43, 151, 137, 0.15),
            transparent 32%
        ),
        radial-gradient(
            circle at 86% 85%,
            rgba(22, 104, 97, 0.11),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--background) 0%,
            var(--background-deep) 100%
        );
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    border: 0;
}

form {
    margin: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    min-height: 50px;

    padding: 0 15px;

    color: var(--text-primary);
    caret-color: var(--accent);

    background: rgba(2, 20, 21, 0.72);

    border: 1px solid var(--border-soft);
    border-radius: 13px;

    outline: none;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

select {
    cursor: pointer;
}

select option {
    color: var(--text-primary);
    background: #082627;
}

input:hover,
select:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

input:focus,
select:focus {
    background: rgba(3, 24, 25, 0.88);

    border-color: var(--accent);

    box-shadow:
        0 0 0 4px rgba(98, 234, 213, 0.09);
}

input::placeholder {
    color: var(--text-muted);
}

.button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 19px;

    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;

    border-radius: 13px;

    cursor: pointer;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button-primary {
    color: #062524;

    background: var(--accent);

    border: 1px solid var(--accent);
}

.button-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button-secondary {
    color: var(--text-secondary);

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border-soft);
}

.button-secondary:hover {
    color: var(--text-primary);

    border-color: var(--border-strong);
}

.button-danger {
    color: var(--danger);

    background: var(--danger-background);

    border: 1px solid var(--danger-border);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-full {
    width: 100%;
}

.button-small {
    min-height: 40px;

    padding: 0 15px;

    font-size: 0.82rem;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    color: var(--text-primary);

    font-size: 0.85rem;
    font-weight: 680;
}

.form-help {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.78rem;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.form-link {
    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    width: fit-content;

    color: var(--text-secondary);

    font-size: 0.83rem;
    line-height: 1.5;

    cursor: pointer;
}

.checkbox-row input,
.setting-row input {
    width: 17px;
    height: 17px;

    flex-shrink: 0;

    margin: 2px 0 0;

    accent-color: var(--accent);
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;

    font-size: 0.84rem;
    line-height: 1.55;

    border-radius: 13px;
}

.alert strong {
    display: block;
    margin-bottom: 6px;
}

.alert ul {
    margin: 0;
    padding-left: 19px;
}

.alert-success {
    color: var(--success);

    background: var(--success-background);

    border: 1px solid var(--success-border);
}

.alert-error {
    color: var(--danger);

    background: var(--danger-background);

    border: 1px solid var(--danger-border);
}

.eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--accent);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Landing page */

.page-shell {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 48px;
}

.landing-card {
    position: relative;
    overflow: hidden;

    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 96px));

    display: flex;
    flex-direction: column;

    padding: 42px 54px 32px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 64, 63, 0.78),
            rgba(5, 27, 29, 0.96) 68%
        );

    border: 1px solid var(--border);
    border-radius: 46px;

    box-shadow: var(--shadow);
}

.landing-card::before,
.account-card::before {
    content: "";

    position: absolute;
    top: -180px;
    left: -170px;

    width: 480px;
    height: 480px;

    background:
        radial-gradient(
            circle,
            rgba(80, 225, 202, 0.12),
            transparent 68%
        );

    border-radius: 50%;

    pointer-events: none;
}

.landing-card::after,
.account-card::after {
    content: "";

    position: absolute;
    right: -180px;
    bottom: -240px;

    width: 560px;
    height: 560px;

    background:
        radial-gradient(
            circle,
            rgba(26, 112, 103, 0.12),
            transparent 70%
        );

    border-radius: 50%;

    pointer-events: none;
}

.site-header,
.hero-content,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-link {
    display: inline-flex;
}

.site-logo {
    width: 184px;
    height: auto;
}

.header-action {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    color: var(--text-secondary);

    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border-soft);
    border-radius: 12px;
}

.header-action:hover {
    color: var(--text-primary);

    border-color: var(--border-strong);
}

.hero-content {
    flex: 1;

    width: 100%;
    max-width: 820px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    margin: 20px auto;
    padding: 40px 0;

    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    align-self: center;

    margin-bottom: 24px;
    padding: 9px 16px;

    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;

    background: var(--accent-soft);

    border: 1px solid var(--border-strong);
    border-radius: 999px;
}

.hero-content h1 {
    max-width: 780px;

    margin: 0 auto;

    font-size: clamp(2.65rem, 5vw, 5rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.hero-content h1 span {
    display: block;

    margin-top: 8px;

    color: var(--accent);
}

.hero-description {
    max-width: 690px;

    margin: 28px auto 0;

    color: var(--text-secondary);

    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.75;
}

.features {
    width: min(540px, 100%);

    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;

    margin: 42px auto 0;
}

.feature-card {
    padding: 26px;

    text-align: left;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.022)
        );

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-medium);
}

.feature-content h2 {
    margin: 0 0 12px;

    font-size: 1.14rem;
    letter-spacing: -0.02em;
}

.feature-content p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 0.94rem;
    line-height: 1.68;
}

.site-footer {
    display: flex;
    justify-content: center;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

/* Logged-out account */

.account-shell {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 42px 24px;
}

.account-card {
    position: relative;
    overflow: hidden;

    width: min(570px, 100%);

    padding: 30px 34px 24px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 64, 63, 0.88),
            rgba(5, 27, 29, 0.98) 72%
        );

    border: 1px solid var(--border);
    border-radius: 34px;

    box-shadow: var(--shadow);
}

.account-header,
.account-content,
.account-footer {
    position: relative;
    z-index: 1;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 24px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-logo {
    width: 150px;
}

.account-logo-link {
    display: inline-flex;
}

.quiet-link {
    color: var(--text-muted);

    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
}

.quiet-link:hover {
    color: var(--accent);
}

.account-content {
    padding: 30px 0 26px;
}

.account-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin-bottom: 28px;
    padding: 5px;

    background: rgba(2, 20, 21, 0.62);

    border: 1px solid var(--border-soft);
    border-radius: 14px;
}

.account-tab {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-muted);

    font-size: 0.83rem;
    font-weight: 720;
    text-decoration: none;

    border-radius: 10px;
}

.account-tab:hover {
    color: var(--text-primary);
}

.account-tab.is-active {
    color: var(--accent);

    background: var(--accent-soft);

    box-shadow:
        inset 0 0 0 1px rgba(98, 234, 213, 0.12);
}

.account-heading {
    margin-bottom: 26px;
}

.account-heading h1 {
    margin: 0;

    font-size: clamp(1.85rem, 5vw, 2.35rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.account-heading p {
    margin: 12px 0 0;

    color: var(--text-secondary);

    font-size: 0.91rem;
    line-height: 1.65;
}

.account-form {
    display: grid;
    gap: 19px;
}

.account-switch {
    margin: 24px 0 0;

    color: var(--text-muted);

    font-size: 0.84rem;
    text-align: center;
}

.account-switch a {
    color: var(--accent);

    font-weight: 700;
    text-decoration: none;
}

.account-switch a:hover {
    text-decoration: underline;
}

.account-legal {
    margin: 18px 0 0;

    color: var(--text-muted);

    font-size: 0.73rem;
    line-height: 1.55;
    text-align: center;
}

.account-footer {
    padding-top: 20px;

    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-footer p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.72rem;
}

/* Logged-in account */

.profile-shell {
    width: 100%;
    min-height: 100vh;

    padding: 38px;
}

.profile-container {
    width: min(1180px, 100%);

    margin: 0 auto;
}

.profile-header {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 30px;
    padding: 0 6px;
}

.profile-logo {
    width: 175px;
}

.profile-logo-link {
    display: inline-flex;
}

.profile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;

    margin-bottom: 18px;
    padding: 34px 36px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 64, 63, 0.82),
            rgba(5, 27, 29, 0.94)
        );

    border: 1px solid var(--border);
    border-radius: 28px;
}

.profile-intro h1 {
    margin: 0;

    font-size: clamp(2rem, 4vw, 3.15rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.profile-intro p {
    max-width: 680px;

    margin: 14px 0 0;

    color: var(--text-secondary);

    line-height: 1.65;
}

.verified-badge,
.pending-badge,
.development-badge {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    padding: 9px 13px;

    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    border-radius: 999px;
}

.verified-badge,
.development-badge {
    color: var(--accent);

    background: var(--accent-soft);

    border: 1px solid var(--border-strong);
}

.pending-badge {
    color: #efcc85;

    background: rgba(239, 204, 133, 0.09);

    border: 1px solid rgba(239, 204, 133, 0.22);
}

.profile-nav {
    display: flex;
    gap: 8px;

    margin-bottom: 24px;
    padding: 6px;

    overflow-x: auto;

    background: rgba(5, 28, 29, 0.78);

    border: 1px solid var(--border-soft);
    border-radius: 16px;

    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.profile-nav-link {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 1;

    padding: 0 18px;

    color: var(--text-muted);

    font-size: 0.82rem;
    font-weight: 720;
    text-decoration: none;
    white-space: nowrap;

    border-radius: 11px;
}

.profile-nav-link:hover {
    color: var(--text-primary);
}

.profile-nav-link.is-active {
    color: var(--accent);

    background: var(--accent-soft);

    box-shadow:
        inset 0 0 0 1px rgba(98, 234, 213, 0.12);
}

.profile-alert {
    margin-bottom: 22px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
}

.profile-card {
    padding: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(13, 46, 47, 0.92),
            rgba(5, 27, 29, 0.97)
        );

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-medium);
}

.profile-summary-card {
    align-self: start;

    text-align: center;
}

.profile-card-label {
    display: block;

    margin-bottom: 16px;

    color: var(--accent);

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.account-avatar {
    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 8px auto 18px;

    color: var(--accent);

    font-size: 1.75rem;
    font-weight: 800;

    background: var(--accent-soft);

    border: 1px solid var(--border-strong);
    border-radius: 22px;
}

.profile-summary-card h2 {
    margin: 0;

    font-size: 1.2rem;
}

.profile-summary-card > p {
    margin: 8px 0 24px;

    color: var(--text-muted);

    font-size: 0.82rem;
    word-break: break-word;
}

.profile-details {
    display: grid;
    gap: 0;

    margin: 0;

    text-align: left;

    border-top: 1px solid var(--border-soft);
}

.profile-details div {
    display: grid;
    gap: 6px;

    padding: 17px 0;

    border-bottom: 1px solid var(--border-soft);
}

.profile-details dt {
    color: var(--text-muted);

    font-size: 0.72rem;
}

.profile-details dd {
    margin: 0;

    color: var(--text-secondary);

    font-size: 0.83rem;
    font-weight: 650;
}

.profile-main-card {
    min-width: 0;
}

.profile-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
}

.profile-card-heading h2 {
    margin: 0;

    font-size: 1.28rem;
    letter-spacing: -0.025em;
}

.profile-card-heading .profile-card-label {
    margin-bottom: 8px;
}

.profile-card-heading > p {
    max-width: 310px;

    margin: 0;

    color: var(--text-muted);

    font-size: 0.78rem;
    line-height: 1.55;
    text-align: right;
}

.profile-form {
    display: grid;
    gap: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.verification-notice {
    margin-bottom: 22px;
    padding: 18px 20px;

    background: rgba(239, 204, 133, 0.07);

    border: 1px solid rgba(239, 204, 133, 0.18);
    border-radius: 15px;
}

.verification-notice strong {
    display: block;

    margin-bottom: 6px;

    color: #efcc85;

    font-size: 0.88rem;
}

.verification-notice p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 0.81rem;
    line-height: 1.55;
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-top: 30px;
    padding: 20px;

    background: var(--danger-background);

    border: 1px solid var(--danger-border);
    border-radius: 16px;
}

.danger-zone strong {
    display: block;

    margin-bottom: 6px;

    color: var(--danger);

    font-size: 0.88rem;
}

.danger-zone p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 0.8rem;
    line-height: 1.55;
}

.settings-list {
    display: grid;
    gap: 12px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 20px;

    background: rgba(2, 20, 21, 0.48);

    border: 1px solid var(--border-soft);
    border-radius: 15px;

    cursor: pointer;
}

.setting-row span {
    display: grid;
    gap: 5px;
}

.setting-row strong {
    font-size: 0.88rem;
}

.setting-row small {
    color: var(--text-muted);

    font-size: 0.76rem;
    line-height: 1.5;
}

.subscription-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 22px;

    background: rgba(2, 20, 21, 0.48);

    border: 1px solid var(--border-soft);
    border-radius: 16px;
}

.subscription-label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subscription-status-card strong {
    display: block;

    margin-bottom: 7px;

    font-size: 1rem;
}

.subscription-status-card p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 0.84rem;
    line-height: 1.6;
}

.subscription-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin-top: 18px;
}

.subscription-features > div {
    padding: 18px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border-soft);
    border-radius: 15px;
}

.subscription-features strong {
    display: block;

    margin-bottom: 8px;

    font-size: 0.85rem;
}

.subscription-features p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.76rem;
    line-height: 1.55;
}

.profile-footer {
    margin-top: 26px;
    padding: 20px;

    color: var(--text-muted);

    font-size: 0.76rem;
    text-align: center;
}

.profile-footer p {
    margin: 0;
}

/* Tablet and mobile */

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-card-heading > p {
        max-width: 280px;
    }

    .subscription-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-shell {
        align-items: flex-start;

        padding: 20px;
    }

    .landing-card {
        min-height: calc(100vh - 40px);

        padding: 28px 24px 24px;

        border-radius: 32px;
    }

    .site-header {
        min-height: 58px;
    }

    .site-logo {
        width: 155px;
    }

    .hero-content {
        margin: auto;
        padding: 46px 0;
    }

    .hero-content h1 {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
        line-height: 1.06;
    }

    .account-shell {
        align-items: flex-start;

        padding: 18px;
    }

    .account-card {
        padding: 25px 22px 20px;

        border-radius: 27px;
    }

    .account-logo {
        width: 135px;
    }

    .profile-shell {
        padding: 22px 18px;
    }

    .profile-header {
        margin-bottom: 20px;
    }

    .profile-logo {
        width: 150px;
    }

    .profile-intro {
        align-items: flex-start;
        flex-direction: column;

        padding: 27px 24px;

        border-radius: 23px;
    }

    .profile-nav-link {
        flex: none;
    }

    .profile-card {
        padding: 23px;
    }

    .profile-card-heading {
        flex-direction: column;
        gap: 10px;
    }

    .profile-card-heading > p {
        max-width: none;

        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .subscription-status-card,
    .danger-zone {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding: 12px;
    }

    .landing-card {
        min-height: calc(100vh - 24px);

        padding: 22px 18px 20px;

        border-radius: 26px;
    }

    .site-header {
        align-items: flex-start;
    }

    .site-logo {
        width: 138px;
    }

    .header-action {
        min-height: 36px;

        padding: 0 12px;
    }

    .account-header {
        align-items: flex-start;
    }

    .account-logo {
        width: 125px;
    }

    .quiet-link {
        max-width: 95px;

        text-align: right;
    }

    .account-content {
        padding-top: 25px;
    }

    .profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-header-actions {
        width: 100%;
    }

    .profile-header-actions .button,
    .profile-header-actions form {
        flex: 1;
    }

    .profile-header-actions form .button {
        width: 100%;
    }

    .profile-intro h1 {
        font-size: 2rem;
    }

    .profile-card {
        padding: 20px;

        border-radius: 20px;
    }

    .form-actions .button {
        width: 100%;
    }

    .setting-row {
        align-items: flex-start;
    }
}

/*
|--------------------------------------------------------------------------
| Unified large glass-card layout
|--------------------------------------------------------------------------
*/

:root {
    --site-card-width: 1380px;
    --site-card-radius: 42px;
    --site-card-border: rgba(98, 234, 213, 0.2);
    --site-card-background:
        linear-gradient(
            145deg,
            rgba(18, 72, 69, 0.72),
            rgba(4, 28, 30, 0.94) 70%
        );
    --site-card-shadow:
        0 28px 90px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

/* Keep each page inside one large, consistent glass card. */
.landing-card,
.account-card,
.profile-container {
    background: var(--site-card-background);
    border: 1px solid var(--site-card-border);
    box-shadow: var(--site-card-shadow);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.page-shell,
.account-shell,
.profile-shell {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 48px;
}

.landing-card {
    width: min(var(--site-card-width), 100%);
    min-height: min(760px, calc(100vh - 152px));
    border-radius: var(--site-card-radius);
}

.account-card {
    width: min(680px, 100%);
    border-radius: 32px;
}

.profile-shell {
    padding-right: 30px;
    padding-left: 30px;
}

.profile-container {
    position: relative;
    overflow: hidden;
    width: min(var(--site-card-width), 100%);
    padding: 38px;
    border-radius: var(--site-card-radius);
}

.profile-container::before {
    position: absolute;
    top: -250px;
    left: -220px;
    width: 620px;
    height: 620px;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(98, 234, 213, 0.1),
            transparent 69%
        );
    border-radius: 50%;
}

.profile-container > * {
    position: relative;
    z-index: 1;
}

/* Simplified profile heading: no separate card inside the main card. */
.profile-intro,
.profile-intro-simple {
    margin: 0;
    padding: 8px 6px 28px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.profile-intro h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.profile-nav {
    margin-bottom: 22px;
    background: rgba(2, 20, 21, 0.3);
    border-color: rgba(255, 255, 255, 0.075);
}

.profile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.profile-main-card {
    padding: 30px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(1, 18, 19, 0.26)
        );
    border-color: rgba(255, 255, 255, 0.075);
    box-shadow: none;
}

.profile-footer {
    margin-top: 20px;
    padding-bottom: 0;
}

/* Admin pages inherit the large account card without changing admin tools. */
.profile-page .admin-panel,
.profile-page .admin-manage-panel,
.profile-page .admin-stat-card {
    background: rgba(3, 28, 29, 0.5);
}

@media (max-width: 760px) {
    .page-shell,
    .account-shell,
    .profile-shell {
        padding-top: 12px;
        padding-right: 14px;
        padding-bottom: 28px;
        padding-left: 14px;
    }

    .landing-card,
    .profile-container {
        border-radius: 28px;
    }

    .profile-container {
        padding: 24px;
    }

    .profile-main-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .landing-card,
    .account-card,
    .profile-container {
        border-radius: 24px;
    }

    .profile-container {
        padding: 18px;
    }

    .profile-intro,
    .profile-intro-simple {
        padding: 4px 2px 22px;
    }

    .profile-main-card {
        padding: 18px;
    }
}
