/* Account Page Layout */
main.explore-panel {
    padding-top: 2rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.explore-columns {
    max-width: 800px;
    width: 90%;
    background: linear-gradient(145deg, var(--geo-panel), var(--geo-panel-alt));
    border: 1px solid var(--geo-border);
    backdrop-filter: blur(6px);
    padding: 2rem;
    border-radius: var(--geo-radius-large);
    box-shadow: 0 18px 38px var(--geo-shadow);
}

.explore-panel-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.panel-description {
    text-align: center;
    font-size: 1rem;
    color: #cccccc;
}

.line {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Account Form */
.account-loading {
    display: grid;
    gap: 1rem;
    max-width: 34rem;
    margin: 0 auto;
}

.account-loading[hidden],
#account-form[hidden] {
    display: none;
}

.account-skeleton-field {
    display: grid;
    gap: 0.45rem;
}

.account-skeleton-label {
    width: 6rem;
}

.account-skeleton-input {
    display: block;
    height: 2.8rem;
    border-radius: 0.75rem;
}

.basic-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.basic-form label {
    font-weight: bold;
    font-size: 0.95rem;
}

.basic-form input {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
}

/* Fixes the input autofill recolor */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #1c1c1c inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.basic-form input:focus {
    border-color: rgba(0, 255, 174, 0.7);
    background-color: rgba(8, 22, 25, 0.92) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 174, 0.12) !important;
}

/* Password strength bar */
.password-strength {
    height: 6px;
    width: 100%;
    background-color: #333;
    border-radius: 4px;
    margin-top: 4px;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition:
        width 0.3s ease,
        background-color 0.3s ease;
}

.password-strength-text {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Save Button */
.saveBtn {
    padding: 0.75rem 1.5rem;
    background-color: #00ffae;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.3s ease-in-out;
}

#account-form button:disabled {
    background-color: #4a5a55;
    color: #9aa7a3;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

.saveBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 255, 174, 0.3);
}

.saveBtn:active {
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0, 255, 174, 0.2);
}

/* Danger Zone */
.danger-zone {
    background-color: rgba(255, 0, 0, 0.07);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.danger-zone h3 {
    color: #ff5e5e;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.danger-zone p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.danger-zone span {
    color: #ff4d4d;
    font-weight: bold;
}

.deleteBtn {
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    color: #ff5e5e;
    font-weight: bold;
    border: 1px solid #ff5e5e;
    border-radius: 25px;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.deleteBtn:hover {
    background-color: #ff5e5e;
    color: #000;
}

.basic-form input:disabled {
    background-color: #232323;
    color: #888;
    cursor: not-allowed;
}

#profile-icon {
    border: 2px solid #408f47;
    transition: border 0.2s ease;
}

#profile-icon:hover {
    border: 2px solid #ddd;
}

.delete-modal {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideUp 0.35s ease;
}

.delete-modal h2 {
    margin-bottom: 0.5rem;
    color: #ff4c4c;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 5px #000;
}

.delete-modal p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.warning-text {
    display: block;
    margin-top: 0.3rem;
    color: #ff4c4c;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.delete-modal .modal-actions > button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delete-modal .modal-actions > button.danger {
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    color: #ff5e5e;
    font-weight: bold;
    border: 1px solid #ff5e5e;
    border-radius: 25px;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.delete-modal .modal-actions > button.danger:hover {
    background-color: #ff5e5e;
    color: #000;
}

.delete-modal .modal-actions > button.secondary {
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 25px;
    cursor: pointer;

    transition: all 0.25s ease;
}

.delete-modal .modal-actions > button.secondary:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    main.explore-panel {
        padding: 1rem 0.75rem 2.5rem;
    }

    .explore-columns {
        width: 100%;
        padding: 1.25rem;
    }

    .title {
        margin-bottom: 1rem;
        font-size: 1.65rem;
    }

    .panel-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .explore-panel-section {
        gap: 1rem;
    }

    .basic-form {
        gap: 0.65rem;
    }

    .basic-form label {
        margin-top: 0.35rem;
        font-size: 0.88rem;
    }

    .basic-form input {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 2.75rem;
        font-size: 1rem;
    }

    .password-strength {
        margin-top: 0;
    }

    .password-strength-text {
        margin-bottom: 0.25rem;
        font-size: 0.78rem;
    }

    .saveBtn {
        min-height: 2.8rem;
        margin-top: 0.35rem;
    }

    .danger-zone {
        padding: 1.1rem;
    }

    .danger-zone h3 {
        font-size: 1.05rem;
    }

    .danger-zone p {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .deleteBtn {
        min-height: 2.75rem;
    }
}

@media (max-width: 420px) {
    .explore-columns {
        padding: 1rem;
    }

    .danger-zone .deleteBtn {
        width: 100%;
    }

    .modal-actions {
        flex-wrap: wrap;
    }
}

/* ANIMATIONS */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Account settings refresh */
main.explore-panel {
    padding: 2rem 1rem 4rem;
    color: var(--geo-text, #f4fff9);
    text-align: left;
}

.explore-columns {
    width: min(100%, 56rem);
    padding: clamp(1.15rem, 4vw, 2.5rem);
}

.explore-panel-section {
    gap: 1rem;
}

.explore-panel-section:hover {
    transform: none;
    border-color: var(--geo-border);
    box-shadow: 0 18px 38px var(--geo-shadow);
}

.account-heading {
    margin-bottom: 1.6rem;
}

.account-heading .title {
    margin: 0;
    color: var(--geo-text, #f4fff9);
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    text-align: left;
    text-shadow: none;
}

.account-heading .panel-description {
    max-width: 40rem;
    margin: 0.7rem 0 0;
    color: var(--geo-muted, #b7cbc5);
    line-height: 1.6;
    text-align: left;
}

.account-eyebrow {
    margin: 0 0 0.45rem;
    color: var(--geo-accent-strong, #8fffd3);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.account-data-panel,
.privacy-request-panel {
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid var(--geo-border, rgba(150, 255, 220, 0.16));
    border-radius: 1rem;
    background: rgba(7, 17, 20, 0.48);
}

.account-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-section-heading h2,
.account-request-history h3 {
    margin: 0;
    color: var(--geo-text, #f4fff9);
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.account-supporting-copy {
    margin: 0.8rem 0 0;
    color: var(--geo-muted, #b7cbc5);
    font-size: 0.93rem;
    line-height: 1.6;
}

.account-link-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(102, 255, 200, 0.42);
    border-radius: 0.75rem;
    background: rgba(0, 230, 160, 0.1);
    color: #a8ffdf !important;
    font-size: 0.88rem;
    font-weight: 750;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.account-link-button:hover {
    transform: translateY(-1px);
    border-color: #78ffd0;
    background: rgba(0, 230, 160, 0.18);
}

.account-link-button:focus-visible,
main.explore-panel a:focus-visible {
    outline: 2px solid #8fffd3;
    outline-offset: 3px;
}

.privacy-request-panel {
    display: grid;
    gap: 0.85rem;
}

.account-request-form {
    display: grid;
    gap: 0.55rem;
    max-width: 42rem;
}

.account-request-form label {
    margin-top: 0.35rem;
    color: #e5f4ee;
    font-size: 0.9rem;
    font-weight: 700;
}

.account-request-form label span {
    color: var(--geo-muted, #b7cbc5);
    font-weight: 400;
}

.account-request-form select,
.account-request-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(175, 255, 229, 0.18);
    border-radius: 0.7rem;
    background: #101a1f;
    color: #f4fff9;
    font: inherit;
}

.account-request-form textarea {
    min-height: 6rem;
    resize: vertical;
}

.account-request-form select:focus,
.account-request-form textarea:focus {
    outline: 2px solid rgba(0, 255, 174, 0.52);
    outline-offset: 1px;
}

.account-request-form small {
    color: var(--geo-muted, #b7cbc5);
    line-height: 1.45;
}

.account-request-form .saveBtn {
    justify-self: start;
    min-height: 2.75rem;
    margin-top: 0.4rem;
    padding: 0.65rem 1.15rem;
}

#privacy-request-status,
#email-change-status {
    min-height: 1.3em;
    margin: 0;
    color: #a8ffdf;
    font-size: 0.9rem;
    line-height: 1.5;
}

.account-request-history {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(175, 255, 229, 0.12);
}

.account-request-history h3 {
    font-size: 0.98rem;
}

#privacy-request-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
}

#privacy-request-list li {
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(175, 255, 229, 0.1);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.025);
    color: #d9e8e2;
    font-size: 0.86rem;
    line-height: 1.5;
}

.account-request-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem 0.8rem;
}

.account-request-item strong {
    color: #f4fff9;
    font-size: 0.86rem;
}

.account-request-item > small {
    grid-column: 1 / -1;
    color: var(--geo-muted, #b7cbc5);
    font-size: 0.78rem;
}

.account-request-status {
    justify-self: end;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(175, 255, 229, 0.18);
    border-radius: 999px;
    color: #cfe4db;
    font-size: 0.72rem;
    font-weight: 700;
}

.account-request-status--completed {
    border-color: rgba(143, 255, 211, 0.3);
    background: rgba(0, 230, 160, 0.08);
    color: #a8ffdf;
}

.account-request-status--rejected,
.account-request-status--closed {
    border-color: rgba(255, 177, 150, 0.25);
    color: #ffd2c2;
}

#account-form {
    gap: 0.7rem;
}

#account-form > .account-section-heading {
    margin-bottom: 0.4rem;
}

#account-form > label {
    margin-top: 0.35rem;
    color: #e5f4ee;
}

#account-form > input {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid rgba(175, 255, 229, 0.18);
    border-radius: 0.7rem;
    background: rgba(8, 18, 22, 0.88);
}

.account-email-change {
    display: grid;
    gap: 0.65rem;
    margin: 0.7rem 0;
    padding: 1rem;
    border: 1px solid rgba(110, 220, 190, 0.19);
    border-radius: 0.85rem;
    background: rgba(4, 28, 27, 0.35);
}

.account-email-change h3 {
    margin: 0;
    color: #f4fff9;
    font-size: 1rem;
}

.account-email-change p {
    margin: 0;
    color: var(--geo-muted, #b7cbc5);
    font-size: 0.88rem;
    line-height: 1.5;
}

.account-email-change label {
    margin-top: 0.2rem;
    color: #e5f4ee;
    font-size: 0.9rem;
    font-weight: 700;
}

.account-email-change input {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.8rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(175, 255, 229, 0.18);
    border-radius: 0.7rem;
    background: rgba(8, 18, 22, 0.88);
    color: #fff;
}

.danger-zone {
    margin-top: 0.4rem;
}

.danger-zone a,
.privacy-request-panel a {
    color: #a8ffdf;
    text-decoration-color: rgba(168, 255, 223, 0.55);
    text-underline-offset: 0.18em;
}

.danger-zone a:hover,
.privacy-request-panel a:hover {
    color: #d4fff0;
    text-decoration-color: currentColor;
}

@media (max-width: 520px) {
    main.explore-panel {
        padding: 1rem 0.65rem 2.5rem;
    }

    .explore-columns {
        width: 100%;
        padding: 1rem;
    }

    .explore-panel-section {
        padding: 1rem;
    }

    .account-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-link-button {
        width: 100%;
    }

    .account-request-form .saveBtn {
        width: 100%;
    }
}

/* Account tabbed layout */
.explore-columns {
    width: min(100%, 68rem);
    max-width: 68rem;
}

.account-layout {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.account-tabs {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.5rem;
    border: 1px solid var(--geo-border, rgba(150, 255, 220, 0.16));
    border-radius: 1rem;
    background: rgba(7, 17, 20, 0.48);
}

.account-tab {
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    color: var(--geo-muted, #b7cbc5);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    outline: none;
    transition:
        background 150ms ease,
        color 150ms ease;
}

.account-tab:hover,
.account-tab:focus-visible {
    background: rgba(0, 245, 179, 0.1);
    color: var(--geo-text, #f4fff9);
}

.account-tab[aria-selected="true"] {
    background: rgba(0, 245, 179, 0.16);
    box-shadow: inset 3px 0 0 #00f5b3;
    color: #a8ffdf;
}

.account-tab--danger[aria-selected="true"] {
    background: rgba(255, 90, 90, 0.14);
    box-shadow: inset 3px 0 0 #ff6b6b;
    color: #ffb3b3;
}

.account-panels,
.account-panel {
    min-width: 0;
}

.account-panel[hidden],
.is-tab-hidden {
    display: none !important;
}

.account-panel--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 960px) {
    .account-panel--split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.account-panel--split .account-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
}

.account-form-actions {
    margin-top: 1.25rem;
}

.account-view-profile {
    margin-top: 1rem;
    align-self: flex-start;
}

.account-safety-panel {
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid var(--geo-border, rgba(150, 255, 220, 0.16));
    border-radius: 1rem;
    background: rgba(7, 17, 20, 0.48);
}

.account-safety-list {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.account-safety-list li {
    display: grid;
    gap: 0.4rem;
    justify-items: start;
    padding: 1rem;
    border: 1px solid rgba(150, 255, 220, 0.14);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
}

.account-safety-list span {
    color: var(--geo-muted, #b7cbc5);
    font-size: 0.9rem;
}

.account-dropdown-slot {
    margin-bottom: 0.4rem;
}

@media (max-width: 820px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-tabs {
        position: static;
        display: flex;
        overflow-x: auto;
    }

    .account-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .account-panel--split {
        grid-template-columns: 1fr;
    }
}

/* Account cards, spacing and stable panel height */
.account-layout {
    gap: 2rem;
}

.account-panels {
    min-height: 44rem;
}

.account-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    box-sizing: border-box;
    height: 100%;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--geo-border, rgba(150, 255, 220, 0.16));
    border-radius: 1.1rem;
    background: rgba(7, 17, 20, 0.48);
}

.account-card > h2 {
    margin: 0;
    color: var(--geo-text, #f4fff9);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.account-card > .account-supporting-copy {
    margin: -1rem 0 0;
}

.account-card > * {
    max-width: 100%;
}

.account-card .account-field,
.account-card form,
.account-card .account-dropdown-slot {
    width: 100%;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.account-field label {
    color: #e5f4ee;
    font-size: 0.9rem;
    font-weight: 700;
}

.account-field input,
.account-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(175, 255, 229, 0.18);
    border-radius: 0.7rem;
    background: rgba(8, 18, 22, 0.88);
    color: #fff;
    font: inherit;
}

.account-field small {
    color: var(--geo-muted, #b7cbc5);
    line-height: 1.5;
}

.account-field small:empty {
    display: none;
}

.account-request-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.account-request-form .saveBtn,
.account-email-change .saveBtn {
    align-self: flex-start;
    width: auto;
    min-width: 11rem;
}

.account-panel--split {
    gap: 1.5rem;
}

.account-card--wide {
    grid-column: 1 / -1;
}

.account-form-actions {
    margin-top: 1.5rem;
}

.account-email-change {
    margin: 0;
    background: rgba(7, 17, 20, 0.48);
}

.danger-zone.account-card {
    max-width: 40rem;
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(40, 10, 12, 0.35);
}

.danger-zone.account-card p {
    margin: -1rem 0 0;
}

#privacy-request-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

#privacy-request-status:empty,
#email-change-status:empty {
    display: none;
}

@media (max-width: 820px) {
    .account-panels {
        min-height: 0;
    }
}

/* Horizontal tabs: not sticky, no empty column under a sidebar */
.account-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.account-panels {
    min-height: 0;
}

.account-tabs {
    position: static;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
}

.account-tab {
    flex: 0 0 auto;
    white-space: nowrap;
}

.account-tab--danger {
    margin-left: auto;
}

.account-tab[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 #00f5b3;
}

.account-tab--danger[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 #ff6b6b;
}

.account-card {
    height: auto;
}
