:root {
    --account-ink: #101b35;
    --account-muted: #60708b;
    --account-blue: #1065ff;
    --account-line: #d9e6f7;
    --account-green: #087f5b;
    --account-red: #b93842;
}

.account-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 5%, rgba(23, 230, 174, 0.16), transparent 27rem),
        radial-gradient(circle at 90% 8%, rgba(16, 101, 255, 0.2), transparent 30rem),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 52%, #eef5ff 100%);
    color: var(--account-ink);
    font-family: "Encode Sans Expanded", Arial, sans-serif;
}

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

.account-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 36px;
}

.account-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #d6e4f8;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--account-ink);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(13, 61, 143, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.account-back i {
    display: inline-block;
    -webkit-text-stroke: 1px;
    transition: transform 0.2s ease;
}

.account-back:hover,
.account-back:focus {
    color: var(--account-blue);
    border-color: var(--account-blue);
    background: #ffffff;
    outline: none;
}

.account-back:hover i,
.account-back:focus i {
    transform: translateX(-4px);
}



.account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 50px;
    padding: 60px 22px 42px;
}

.account-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 11px;
    border: 1px solid #cfe1fb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #0a52db;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-hero h1 {
    margin: 0;
    color: var(--account-ink);
    font-family: "Dela Gothic One", sans-serif;
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
}

.account-hero h1 span {
    color: var(--account-blue);
}

.account-hero > div > p {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--account-muted);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.75;
}

.account-hero__mark {
    display: grid;
    place-items: center;
    align-content: center;
    width: 230px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 35% 65% 60% 40% / 43% 39% 61% 57%;
    background: linear-gradient(145deg, #001345, #1065ff 66%, #17e6ae);
    color: #ffffff;
    box-shadow: 0 30px 55px rgba(16, 101, 255, 0.22);
    transform: rotate(3deg);
}

.account-hero__mark i {
    font-size: 70px;
}

.account-hero__mark span {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-card,
.admin-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 26px 70px rgba(13, 61, 143, 0.1);
    backdrop-filter: blur(18px);
}

.account-card__heading {
    margin-bottom: 20px;
    text-align: center;
}

.account-card__heading p,
.future-panel div > p:first-child,
.admin-heading p,
.member-card p {
    margin: 0 0 4px;
    color: #1065ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.account-card__heading h2,
.future-panel h2,
.admin-heading h2,
.member-card h2 {
    margin: 0;
    color: var(--account-ink);
    font-size: 22px !important;
    font-weight: 900;
}

.account-card__heading span {
    display: block;
    margin-top: 7px;
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 650;
}

.auth-tabs {
    display: flex;
    width: min(480px, 100%);
    gap: 7px;
    margin: 0 auto 18px;
    padding: 5px;
    border: 1px solid var(--account-line);
    border-radius: 14px;
    background: #f3f8ff;
}

.auth-tab {
    flex: 1;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #72809a;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
}

.auth-tab.is-active {
    background: #ffffff;
    color: var(--account-blue);
    box-shadow: 0 7px 18px rgba(13, 61, 143, 0.1);
}

.auth-form {
    display: grid;
    width: min(560px, 100%);
    gap: 13px;
    margin: 0 auto;
}

.signup-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-form label,
.settings-form label {
    display: grid;
    gap: 7px;
}

.auth-form label span,
.settings-form label span {
    color: #41506a;
    font-size: 10px;
    font-weight: 800;
}

.auth-form input,
.settings-form input,
.settings-form select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--account-line);
    border-radius: 13px;
    background: #fbfdff;
    color: var(--account-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    outline: 0;
}

.auth-form input:focus,
.settings-form input:focus,
.settings-form select:focus {
    border-color: #76aaff;
    box-shadow: 0 0 0 4px rgba(16, 101, 255, 0.12);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--account-muted);
    font-size: 16px;
    cursor: pointer;
    border-radius: 9px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover {
    color: var(--account-blue);
    background-color: rgba(16, 101, 255, 0.06);
}

.password-toggle:focus {
    outline: 0;
    color: var(--account-blue);
}

.auth-helper-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
    margin-bottom: 6px;
}

.forgot-password-btn {
    border: 0;
    background: transparent;
    color: var(--account-blue);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.forgot-password-btn:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.account-primary-btn,
.account-secondary-btn,
.admin-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 13px;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.account-primary-btn {
    border: 1px solid #05337d;
    background: linear-gradient(135deg, #001345, #1065ff);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(16, 101, 255, 0.2);
}

.auth-user {
    display: grid;
    gap: 16px;
}

.member-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border: 1px solid var(--account-line);
    border-radius: 18px;
    background: #f8fbff;
}

.member-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #001345, #1065ff);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.member-card div > span {
    display: block;
    margin-top: 4px;
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 650;
}

.member-name-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.edit-profile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #cfe1fb;
    border-radius: 8px;
    background: #ffffff;
    color: var(--account-blue);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(13, 61, 143, 0.05);
}

.edit-profile-trigger:hover {
    background: #eaf3ff;
    color: #0a52db;
    border-color: #bcd7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 61, 143, 0.1);
}

.edit-profile-trigger:active {
    transform: translateY(0);
}

.edit-profile-trigger:focus {
    outline: 0;
    border-color: #76aaff;
    box-shadow: 0 0 0 3px rgba(16, 101, 255, 0.15);
}

.member-role {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    padding: 7px 10px;
    border: 1px solid #bcd7ff;
    border-radius: 999px;
    background: #eaf3ff;
    color: #0a52db;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.member-role.is-admin {
    border-color: #ffc3c9;
    background: #fff0f2;
    color: #bd3443;
}

.account-secondary-btn {
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--account-line);
    background: #ffffff;
    color: #455571;
}

.future-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px dashed #bcd6f9;
    border-radius: 18px;
    background: linear-gradient(135deg, #f1f7ff, #f8fffd);
}

.future-panel > span {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border-radius: 18px;
    background: #ffffff;
    color: #1065ff;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(13, 61, 143, 0.1);
}

.future-panel div > p:last-child {
    margin: 7px 0 0;
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.65;
    text-transform: none;
    letter-spacing: 0;
}

.account-status {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 750;
}

.account-status.is-visible {
    display: flex;
}

.account-status.is-error {
    border: 1px solid #efb9bf;
    background: #fff2f3;
    color: #9f303d;
}

.account-status.is-success {
    border: 1px solid #acdcca;
    background: #effcf7;
    color: #087153;
}

.admin-panel {
    margin-top: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(204, 55, 73, 0.1), transparent 19rem),
        rgba(255, 255, 255, 0.9);
}

.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.admin-heading div > span {
    display: block;
    margin-top: 7px;
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 650;
}

.admin-count {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid #f0c5ca;
    border-radius: 13px;
    background: #fff1f3;
    color: #a13b46;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.admin-count strong {
    display: block;
    color: #bd3443;
    font-size: 18px;
    font-weight: 900;
}

.admin-list {
    display: grid;
    gap: 11px;
}

.admin-empty {
    padding: 30px;
    border: 1px dashed #cbd9ec;
    border-radius: 16px;
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.admin-payment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--account-line);
    border-radius: 17px;
    background: rgba(251, 253, 255, 0.94);
}

.admin-payment__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-payment h3 {
    margin: 0;
    color: var(--account-ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.admin-payment__amount {
    color: #0a52db;
    font-size: 12px;
    font-weight: 900;
}

.admin-payment__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    margin-top: 9px;
    color: var(--account-muted);
    font-size: 9px;
    font-weight: 700;
}

.admin-payment__meta code {
    color: #20314f;
    font: inherit;
    font-weight: 900;
    user-select: all;
}

.admin-payment__message {
    margin: 9px 0 0;
    color: #576782;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.55;
}

.admin-payment__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-action {
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid transparent;
}

.admin-action--approve {
    border-color: var(--account-green);
    background: var(--account-green);
    color: #ffffff;
}

.admin-action--reject {
    border-color: #edb8be;
    background: #fff2f3;
    color: var(--account-red);
}

.admin-action:disabled,
.account-primary-btn:disabled {
    cursor: wait;
    opacity: 0.55;
}

.account-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 25px 6px 0;
    color: #718099;
    font-size: 10px;
    font-weight: 700;
}

.account-footer a {
    color: #1065ff;
    font-weight: 900;
    text-decoration: none;
}

.account-footer__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .account-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 34px;
        padding: 45px 8px 34px;
        text-align: center;
    }

    .account-hero__mark {
        width: 190px;
    }

    .member-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .member-card .member-role,
    .member-card .account-secondary-btn {
        grid-column: 1 / -1;
    }

    .admin-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-count {
        align-self: flex-start;
    }

    .admin-payment {
        grid-template-columns: 1fr;
    }

    .admin-payment__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 10px;
    }

    .admin-payment__actions .admin-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .account-shell {
        width: min(100% - 20px, 1080px);
        padding-top: 18px;
    }

    .account-card,
    .admin-panel {
        padding: 17px;
        border-radius: 20px;
    }

    .account-hero h1 {
        font-size: clamp(36px, 13vw, 58px);
    }

    .future-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .future-panel > span {
        margin: 0 auto;
    }

    .admin-payment__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .account-footer {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .account-footer__links {
        justify-content: center;
        width: 100%;
    }
}

/* Settings Panel */
.settings-panel {
    display: grid;
    gap: 16px;
}

.settings-section {
    padding: 20px;
    border: 1px solid var(--account-line);
    border-radius: 18px;
    background: #ffffff;
}

.settings-section h3 {
    margin-bottom: 12px;
    color: #001345;
    font-size: 13px;
    font-weight: 850;
}

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

.settings-form .account-primary-btn {
    justify-self: start;
    min-width: 140px;
    margin-top: 4px;
}

.danger-zone {
    border-color: #ffd1d5;
    background: #fff8f8;
}

.danger-zone h3 {
    color: #bd3443;
}

.danger-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.danger-box h4 {
    margin: 0;
    color: #8c1e2b;
    font-size: 12px;
    font-weight: 800;
}

.danger-box p {
    margin: 4px 0 0;
    color: #a84c56;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid #ffccd0;
    border-radius: 12px;
    background: #ffffff;
    color: #bd3443;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: #bd3443;
    color: #ffffff;
    border-color: #bd3443;
    box-shadow: 0 4px 12px rgba(189, 52, 67, 0.15);
}

.auth-form textarea,
.settings-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 1px solid var(--account-line);
    border-radius: 13px;
    background: #fbfdff;
    color: var(--account-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    outline: 0;
    resize: vertical;
}

.auth-form textarea:focus,
.settings-form textarea:focus {
    border-color: #76aaff;
    box-shadow: 0 0 0 4px rgba(16, 101, 255, 0.12);
}

/* Admin Tabs & Sections */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 7px;
    margin: 18px 0 24px;
    padding: 5px;
    border: 1px solid var(--account-line);
    border-radius: 14px;
    background: #f3f8ff;
}

.admin-tab {
    flex: 1;
    min-width: 100px;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #72809a;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    color: var(--account-blue);
}

.admin-tab.is-active {
    background: #ffffff;
    color: var(--account-blue);
    box-shadow: 0 7px 18px rgba(13, 61, 143, 0.1);
}

.admin-section {
    animation: fadeInAdmin 0.3s ease;
}

@keyframes fadeInAdmin {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Jodit WYSIWYG Editor Styling Overrides */

/* Apply custom font to UI chrome only — NOT to editor content children */
.jodit-container,
.jodit-toolbar-button,
.jodit-toolbar-button *,
.jodit-ui-button,
.jodit-ui-button *,
.jodit-dialog,
.jodit-dialog *,
.jodit-popup,
.jodit-popup *,
.jodit-dropdown,
.jodit-dropdown *,
.jodit-status-bar,
.jodit-status-bar * {
    font-family: 'Encode Sans Expanded', sans-serif !important;
}

/* Editor content area: set defaults WITHOUT !important so Jodit's
   inline formatting (bold, color, font, etc.) is visible in real-time */
.jodit-wysiwyg {
    background-color: #fbfdff !important;
    color: var(--account-ink);
    font-family: 'Encode Sans Expanded', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

/* Ensure Jodit's formatting elements are never overridden */
.jodit-wysiwyg strong,
.jodit-wysiwyg b {
    font-weight: bold;
}

.jodit-wysiwyg em,
.jodit-wysiwyg i {
    font-style: italic;
}

.jodit-wysiwyg u {
    text-decoration: underline;
}

.jodit-wysiwyg s,
.jodit-wysiwyg strike,
.jodit-wysiwyg del {
    text-decoration: line-through;
}



/* Theming the container border & background */
.jodit-container {
    border: 1px solid var(--account-line) !important;
    border-radius: 13px !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.jodit-toolbar__box {
    border-bottom: 1px solid var(--account-line) !important;
    background-color: #f6f9fc !important;
}

.jodit-status-bar {
    border-top: 1px solid var(--account-line) !important;
    background-color: #f6f9fc !important;
}

/* Active Sessions */
.sessions-list {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--account-line);
    border-radius: 12px;
    gap: 12px;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-icon {
    font-size: 18px;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 8px;
}

.session-details {
    display: flex;
    flex-direction: column;
}

.session-device {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.session-meta {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.session-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 750;
    margin-left: 8px;
}

.session-logout-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #ef4444;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.session-logout-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}
