/* account/style.css */
:root {
    /* unify with other pages */
    --bgColor: #121212;
    --bgColor2: #1f1f1f;
    --accentColor: #e0e0e0;
    --accentColor2: #616161;
    --uriColor: #1e90ff;
    --uriColor2: #64b5f6;
    --box-shadow: rgba(0, 0, 0, .5);
    --radius: 14px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: var(--bgColor);
    color: var(--accentColor);
    margin: 0;
    padding: 0;
    animation: 1s ease-out .3s 1 transitionAnimation;
}

@keyframes transitionAnimation {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

header.b1o-nav {
    display: none;
}

/* hide legacy header block */

.container {
    max-width: 880px;
    margin: 48px auto;
    background: var(--bgColor2);
    padding: 28px 28px 36px;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--box-shadow);
    border: 1px solid var(--accentColor2);
}

.containers-grid {
    display: grid;
    gap: 32px;
}

h1.page-title {
    margin: 0 0 6px;
    font-size: 1.55rem;
}

h2 {
    font-size: 1.05rem;
    margin: 0 0 10px;
}

h3 {
    margin: 14px 0 10px;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accentColor2);
}

form.b1o-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
}

.row-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

label.b1o-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accentColor2);
}

label.b1o-field input,
label.b1o-field textarea {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: #2a2a2a;
    border-radius: 14px;
    padding: 13px 15px;
    font: inherit;
    color: var(--accentColor);
    resize: vertical;
    min-height: 52px;
    transition: border .18s, background .18s;
}

label.b1o-field textarea {
    min-height: 120px;
}

label.b1o-field input:focus,
label.b1o-field textarea:focus {
    outline: none;
    border-color: var(--uriColor);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, .25);
}

button.b1o-btn {
    background: linear-gradient(135deg, var(--uriColor) 0%, var(--uriColor2) 100%);
    border: none;
    padding: 14px 22px;
    font: inherit;
    font-weight: 600;
    letter-spacing: .05em;
    color: #fff;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 6px 28px -6px rgba(30, 144, 255, .55), 0 2px 0 0 var(--uriColor2);
    transition: transform .18s, box-shadow .25s;
}

button.b1o-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px -8px rgba(30, 144, 255, .7);
}

button.b1o-btn.secondary {
    background: linear-gradient(135deg, #2f3339, #3b424a);
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .5);
}

button.b1o-btn.secondary:hover {
    box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .55);
}

.error {
    color: #ff6d63;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    min-height: 1em;
}

.hidden {
    display: none !important;
}

.profile-summary {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    align-items: start;
    background: #181818;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #262626;
}

.profile-summary .avatar {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    object-fit: cover;
    background: #222;
    border: 2px solid var(--uriColor);
    box-shadow: 0 4px 18px -4px rgba(30, 144, 255, .35);
}

.profile-summary .meta p {
    margin: 0 0 6px;
    font-size: .88rem;
    line-height: 1.25;
}

.profile-summary .meta p small {
    color: var(--accentColor2);
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.status-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 10px 6px;
    font-size: .55rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
    border-radius: 999px;
    background: #2c3139;
    color: var(--accentColor2);
    vertical-align: middle;
}

.status-badge.live {
    background: #214024;
    color: #87e39b;
}

.status-badge.guest {
    background: #402626;
    color: #ffb3a4;
}

.debug-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s ease;
}

.debug-wrap.open {
    max-height: 340px;
}

#debug {
    background: #14181f;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: .62rem;
    line-height: 1.3;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, .06);
}

.debug-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: .55rem;
    letter-spacing: .15em;
    cursor: pointer;
    color: var(--accentColor2);
    user-select: none;
}

.debug-toggle:hover {
    color: var(--uriColor);
}

footer {
    width: 100%;
    max-width: 880px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: .65rem;
    color: var(--accentColor2);
}

/* Bubble nav (copied style from other pages) */
.bubble-nav {
    position: fixed;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 24px;
    pointer-events: none;
}

.bubble-nav .bubble-link {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bgColor2);
    box-shadow: 0 4px 16px var(--box-shadow);
    color: var(--accentColor);
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--accentColor2);
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
    position: relative;
}

.bubble-nav .bubble-link:hover {
    background: var(--accentColor2);
    transform: scale(1.08);
    box-shadow: 0 8px 24px var(--box-shadow);
}

.bubble-nav .bubble-label {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bgColor2);
    color: var(--accentColor);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 1em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, left .2s;
    border: 1px solid var(--accentColor2);
    box-shadow: 0 2px 8px var(--box-shadow);
}

.bubble-nav .bubble-link:hover .bubble-label {
    opacity: 1;
    left: 72px;
}

.bubble-hamburger {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bgColor2);
    box-shadow: 0 4px 16px var(--box-shadow);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: 2px solid var(--accentColor2);
    z-index: 1100;
}

.bubble-hamburger span {
    width: 26px;
    height: 3px;
    background: var(--accentColor);
    display: block;
    border-radius: 2px;
}

@media (max-width:700px) {
    .bubble-nav {
        flex-direction: row;
        left: 0;
        right: 0;
        top: auto;
        bottom: 88px;
        transform: none;
        justify-content: center;
        gap: 18px;
        width: 100vw;
    }

    .bubble-nav .bubble-link {
        width: 56px;
        height: 56px;
        font-size: 1em;
    }

    .bubble-nav .bubble-label {
        left: 50%;
        top: -36px;
        transform: translateX(-50%);
        opacity: 0;
    }

    .bubble-nav .bubble-link:hover .bubble-label {
        opacity: 1;
        top: -44px;
        left: 50%;
    }

    .bubble-hamburger {
        display: flex;
    }

    .container {
        margin: 32px auto;
    }
}

/* Added small edit layout tweaks */
.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.field-pair {
    margin: 0 0 10px;
}

.field-pair small {
    display: block;
    font-size: .55rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accentColor2);
    margin-bottom: 3px;
}

.inline-edit-input {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: #2a2a2a;
    border-radius: 10px;
    padding: 9px 11px;
    font: inherit;
    color: var(--accentColor);
}

.inline-edit-input:focus {
    outline: none;
    border-color: var(--uriColor);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .25);
}

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.checkbox-grid label {
    font-size: .6rem;
    letter-spacing: .07em;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #202020;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #2c2c2c;
    cursor: pointer;
}

.checkbox-grid input {
    width: auto;
    margin: 0;
}

/* Per-field inline editing styles */
.profile-summary {
    grid-template-columns: 140px 1fr !important;
}

.profile-fields {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-field {
    background: #202020;
    border: 1px solid #2a2a2a;
    padding: 10px 14px 12px;
    border-radius: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-field.editing {
    background: #262a30;
    box-shadow: 0 0 0 1px #2f343a;
}

.profile-field small {
    font-size: .55rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accentColor2);
}

.profile-field-value {
    font-size: .85rem;
    line-height: 1.25;
    word-break: break-word;
}

.profile-field-actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.mini-btn {
    background: #2f3339;
    border: 1px solid #3a4149;
    color: #cfd3d6;
    font: inherit;
    font-size: .55rem;
    letter-spacing: .1em;
    padding: 6px 10px 7px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.mini-btn:hover {
    background: #3a4149;
}

.mini-btn.save {
    background: linear-gradient(135deg, var(--uriColor) 0%, var(--uriColor2) 100%);
    border: none;
    color: #fff;
}

.mini-btn.save:hover {
    filter: brightness(1.05);
}

.mini-btn.cancel {
    background: #3a2f2f;
    border: 1px solid #4a3737;
}

.mini-btn.cancel:hover {
    background: #4a3737;
}

.profile-inline-input {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, .08);
    background: #1d1f23;
    border-radius: 10px;
    padding: 9px 11px;
    font: inherit;
    color: var(--accentColor);
    resize: vertical;
}

.profile-inline-input:focus {
    outline: none;
    border-color: var(--uriColor);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .25);
}

.boolean-chip {
    display: inline-block;
    padding: 4px 10px 5px;
    border-radius: 999px;
    font-size: .55rem;
    letter-spacing: .15em;
    font-weight: 700;
    background: #2c3139;
    color: #9aa0a6;
}

.boolean-chip.on {
    background: #214024;
    color: #87e39b;
}

.boolean-chip.off {
    background: #402626;
    color: #ffb3a4;
}

.field-edit-trigger {
    position: absolute;
    /* vertically center: use 50% transform so height changes keep it centered */
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    cursor: pointer;
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--accentColor2);
    background: #2a2f35;
    /* double the height by increasing vertical padding */
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.profile-field:hover .field-edit-trigger {
    color: var(--accentColor);
}

.profile-field.editing .field-edit-trigger {
    display: none;
}

.avatar-edit-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: rgba(0, 0, 0, .55);
    text-align: center;
    font-size: .55rem;
    letter-spacing: .12em;
    padding: 6px 4px 7px;
    border-radius: 0 0 24px 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s;
}

/* Center profile summary inside the Your Profile panel */
.panel .profile-summary {
    margin: 0 auto;
    justify-content: center;
    align-items: start;
    width: 100%;
    max-width: 760px;
}

.tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--accentColor2);
    margin-bottom: 24px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--accentColor2);
    padding: 10px 16px;
    font: inherit;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: var(--accentColor);
    border-bottom-color: var(--uriColor);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.panel .profile-summary.no-avatar {
    grid-template-columns: 1fr !important;
}

.panel .profile-summary.no-avatar .profile-fields {
    margin: 0 auto;
}

@media (min-width:701px) {
    .panel .profile-summary {
        grid-template-columns: 160px minmax(0, 520px) !important;
    }
}

/* Profile sizing adjustments (enlarge) */
.panel .profile-summary {
    max-width: 1000px;
}

.panel .profile-summary:not(.no-avatar) {
    grid-template-columns: 180px minmax(0, 680px) !important;
}

.panel .profile-summary .avatar {
    width: 120px;
    height: 120px;
    border-radius: 32px;
}

.panel .profile-fields {
    max-width: 680px;
}

.panel .profile-field {
    padding: 16px 20px 18px;
    border-radius: 18px;
}

.panel .profile-field small {
    font-size: .6rem;
}

.panel .profile-field-value {
    font-size: .95rem;
}

.panel .field-edit-trigger {
    /* keep panel override centered as well */
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    font-size: .75rem;
    padding: 10px 14px;
}

@media (max-width:700px) {
    .panel .profile-summary:not(.no-avatar) {
        grid-template-columns: 1fr !important;
    }

    .panel .profile-summary .avatar {
        margin: 0 auto 18px;
    }
}

/* ===== Panel-level overrides for sizing, etc ===== */
.panel .profile-summary {
    max-width: none;
}

.panel .profile-fields {
    max-width: none;
}

.panel .profile-summary:not(.no-avatar) {
    grid-template-columns: 200px minmax(0, 1fr) !important;
}

@media (max-width:700px) {
    .panel .profile-summary:not(.no-avatar) {
        grid-template-columns: 1fr !important;
    }
}

/* Wider profile layout overrides */
body.authed #account.container {
    max-width: 1100px;
}

.color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid #444;
    margin: 0 6px 0 0;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset;
}

.color-edit {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 4px;
}

.color-edit input[type=color] {
    -webkit-appearance: none;
    appearance: none;
    width: 54px;
    height: 46px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #333, 0 0 0 3px rgba(255, 255, 255, .05);
}

.color-edit input[type=color]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-edit input[type=color]::-webkit-color-swatch {
    border: none;
    border-radius: 10px;
}

.color-edit input[type=color]:focus {
    outline: 2px solid var(--uriColor);
    outline-offset: 2px;
}

/* Enhanced color picker UI */
.color-edit-wrapper {
    background: #1d1f23;
    padding: 14px 16px 18px;
    border: 1px solid #2a2f32;
    border-radius: 14px;
    margin: 6px 0 8px;
    position: relative;
}

.color-preview-gradient {
    height: 60px;
    border-radius: 12px;
    border: 1px solid #2d3136;
    box-shadow: 0 2px 10px -4px #000 inset, 0 0 0 1px rgba(255, 255, 255, .04);
    margin: 0 0 14px;
    position: relative;
    overflow: hidden;
}

.color-preview-gradient::after {
    content: 'Gradient Preview';
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: .55rem;
    letter-spacing: .15em;
    background: rgba(0, 0, 0, .35);
    padding: 4px 8px 5px;
    border-radius: 8px;
    color: #b5bcc2;
}

.color-edit-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.color-edit-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 180px;
}

.color-edit-item label {
    font-size: .55rem;
    letter-spacing: .15em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accentColor2);
}

.color-chip-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #20252b;
    padding: 10px 12px;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.color-chip-input:focus-within {
    border-color: var(--uriColor);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .25);
}

.color-chip-input input[type=color] {
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 0 1px #181b1f, 0 0 0 3px rgba(255, 255, 255, .05);
}

.color-chip-input input[type=color]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-chip-input input[type=color]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.color-chip-input input.hex-field {
    flex: 1;
    min-width: 0;
    background: #15181c;
    border: 1px solid #252a30;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: var(--accentColor);
    letter-spacing: .04em;
}

.color-chip-input input.hex-field:focus {
    outline: none;
    border-color: var(--uriColor);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .25);
}

.color-meta-line {
    font-size: .55rem;
    letter-spacing: .12em;
    opacity: .65;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.color-meta-line span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-tag {
    background: #25313d;
    color: #7fa4c1;
    padding: 4px 8px 5px;
    border-radius: 7px;
    font-size: .5rem;
    letter-spacing: .15em;
    font-weight: 600;
}

.color-swatch.inline {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

.color-swatch.gradient {
    width: 46px;
    height: 18px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.profile-field-value .gradient-pair {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Added styles for link editor title & icon help */
.link-editor-title {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 10px 7px;
    border: 1px solid #334048;
    border-radius: 10px;
    background: #1d242b;
    color: #9fb3c1;
}

.link-editor-title span {
    color: #fff;
}

.icon-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 18px;
    height: 18px;
    font-size: .65rem;
    background: #27313a;
    color: #8fb4d1;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #34424c;
}

.icon-help:hover {
    background: #334350;
    color: #fff;
}

/* Added refined style for Imgur upload helper */
.icon-help.imgur-help {
    margin-left: 8px;
    width: 22px;
    height: 22px;
    font-size: .7rem;
    background: #25313a;
    color: #8fb4d1;
    border: 1px solid #33434e;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.icon-help.imgur-help:hover {
    background: #334350;
    color: #fff;
    border-color: #3f5361;
}

/* Unified Links List Formatting */
.links-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

/* Drag & drop visuals */
.profile-field[draggable] {
    cursor: grab;
}
.profile-field[draggable]:active {
    cursor: grabbing;
}
.profile-field.dragging {
    opacity: 0.6;
    transform: scale(.995);
}
.profile-field.drag-over {
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.7), 0 0 0 3px rgba(30,144,255,.06) inset;
    border-color: rgba(100,180,240,.14);
}


/* Auth toggle button custom style */
.auth-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px auto 4px;
    background: linear-gradient(135deg, #1f272f 0%, #222c35 100%);
    border: 2px solid #31404b;
    padding: 12px 28px;
    font-size: .65rem;
    letter-spacing: .18em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 16px;
    color: var(--accentColor);
    box-shadow: 0 4px 14px -6px #000, 0 0 0 1px rgba(255, 255, 255, .04) inset;
    cursor: pointer;
    transition: background .25s, transform .25s, box-shadow .25s;
}

.auth-toggle-btn:hover {
    background: linear-gradient(135deg, #25323c 0%, #2b3843 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -6px #000, 0 0 0 1px rgba(255, 255, 255, .07) inset;
}

.auth-toggle-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #1d242b 0%, #242d34 100%);
}

#b1o-icon-modal .icon-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

#b1o-icon-modal .icon-modal {
    max-width: 900px;
    width: 100%;
    background: #2b2b2b;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}

#b1o-icon-modal .icon-modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#b1o-icon-modal #b1o-icon-search {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #343434;
    color: #fff;
}

#b1o-icon-modal .mini-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#b1o-icon-modal #b1o-icon-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 60vh;
    overflow: auto;
    background: linear-gradient(#2b2b2b, #262626);
}

#b1o-icon-modal .icon-modal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    background: #333;
    color: #fff;
    cursor: pointer;
    gap: 6px;
}

#b1o-icon-modal .icon-modal-btn:focus {
    outline: 2px solid rgba(100, 180, 240, 0.25);
}

#b1o-icon-modal .icon-none {
    opacity: .85;
    font-size: .85rem;
    color: #fff
}

#b1o-icon-modal .icon-backdrop {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

#b1o-icon-modal .icon-backdrop i {
    font-size: 1.2rem;
    color: #fff
}

#b1o-icon-modal .icon-label {
    font-size: .65rem;
    color: #fff;
    opacity: .9;
    margin-top: 6px
}

#b1o-icon-modal .icon-modal-btn:hover {
    background: #3a3a3a;
}

#b1o-icon-modal .icon-modal-btn:active {
    transform: translateY(1px);
}

/* make sure modal is hidden by default (display toggled inline) */
#b1o-icon-modal {
    display: none;
}

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

    .le-row {
        flex-direction: column;
        gap: 6px;
    }

    .panel .profile-fields {
        width: 100%;
    }
}

/* Small hint text */
.mini-hint {
    font-size: .55rem;
    opacity: .65;
    margin: 6px 0 2px;
}

/* ===== Merge Account + Links summary boxes into one visual block ===== */
.panel .profile-summary {
    border-radius: 16px;
    border: 1px solid #262626;
    background: #181818;
}

/* ================================================================ */