/* ═══════════════════════════════════════════════════════════════════════════
   tex.ag — app.css
   Minimal functional styles for early development.
   Full design pass comes later.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --maroon:       #5C0010;
    --dark-maroon:  #3C0000;
    --mid-maroon:   #732F2F;
    --gold:         #8A7230;
    --white:        #FFFFFF;
    --gray-100:     #F6F6F6;
    --gray-300:     #D1D1D1;
    --gray-500:     #707070;
    --gray-900:     #202020;
    --green:        #2A7A2A;
    --red:          #B00020;
    --amber:        #7A5000;
    --amber-bg:     #FFF8E1;

    --font-display: 'Oswald', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --radius:       6px;
    --shadow:       0 2px 8px rgba(0,0,0,0.12);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--gray-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Auth Layout ────────────────────────────────────────────────────────── */
.auth-body {
    background: var(--dark-maroon);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-wrap {
    width: 100%;
    max-width: 440px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.auth-logo:hover { text-decoration: none; opacity: 0.9; }

.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.auth-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-maroon);
    margin-bottom: 4px;
}

.auth-subheading {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    justify-content: center;
    gap: 8px;
}
.auth-footer a { color: rgba(255,255,255,0.6); }
.auth-footer a:hover { color: var(--white); }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ── Form Fields ────────────────────────────────────────────────────────── */
.field-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.label-optional {
    font-weight: 400;
    color: var(--gray-500);
    font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.15s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(92, 0, 16, 0.12);
}

.field-group.field-error input,
.field-group.field-error select {
    border-color: var(--red);
}

.field-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 5px;
}

.field-error-msg {
    font-size: 0.8rem;
    color: var(--red);
    margin-top: 5px;
    font-weight: 500;
}

/* ── Input with prefix (tex.ag/ biolinkname) ────────────────────────────── */
.input-with-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9rem;
    color: var(--gray-500);
    white-space: nowrap;
    font-family: var(--font-body);
}

.input-with-prefix input {
    border-radius: 0 var(--radius) var(--radius) 0;
    flex: 1;
}

/* ── Password toggle ────────────────────────────────────────────────────── */
.input-with-toggle {
    position: relative;
}

.input-with-toggle input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 4px;
    display: flex;
    align-items: center;
}
.toggle-password:hover { color: var(--gray-900); }

/* ── Biolinkname availability indicator ─────────────────────────────────── */
.biolinkname-status {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
    min-height: 18px;
}
.biolinkname-status.available   { color: var(--green); }
.biolinkname-status.unavailable { color: var(--red); }
.biolinkname-status.checking    { color: var(--gray-500); }

/* ── Honeypot — must be invisible ───────────────────────────────────────── */
.hp-field {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, opacity 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--maroon);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--dark-maroon);
    text-decoration: none;
    color: var(--white);
}

.btn-full { width: 100%; }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #E8F5E9;
    color: var(--green);
    border: 1px solid #A5D6A7;
}

.alert-error {
    background: #FFEBEE;
    color: var(--red);
    border: 1px solid #FFCDD2;
}

.alert-warning {
    background: var(--amber-bg);
    color: var(--amber);
    border: 1px solid #FFE082;
}

.alert-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Inline text button (resend OTP link) */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--maroon);
    font-family: var(--font-body);
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
}
.btn-link:hover { opacity: 0.8; }
.btn-link:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Append these styles to the bottom of public/assets/css/app.css ──────── */

/* ── Dashboard Layout ───────────────────────────────────────────────────── */
.dashboard-body {
    background: var(--gray-100);
    min-height: 100vh;
}

.dashboard-wrap {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar Nav ────────────────────────────────────────────────────────── */
.dashboard-nav {
    width: 260px;
    min-width: 260px;
    background: var(--dark-maroon);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.nav-logo:hover { opacity: 0.9; text-decoration: none; }

.nav-close {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.nav-user {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-user-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.nav-user-link {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.nav-user-plan-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FFD700;
    margin-top: 8px;
}

.nav-user-plan-badge i {
    font-size: 0.7rem;
}

a.nav-user-plan-upgradeable {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

a.nav-user-plan-upgradeable:hover {
    opacity: 0.85;
    text-decoration: none;
}

.nav-user-plan-name {
    color: #FFD700;
}

.nav-user-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 12px;
    background: var(--maroon);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-user-upgrade-btn:hover {
    background: var(--mid-maroon);
    text-decoration: none;
    color: var(--white);
}

.nav-items {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    text-decoration: none;
}

.nav-item.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    font-weight: 600;
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.nav-item-locked {
    opacity: 0.6;
}

.nav-badge {
    margin-left: auto;
    background: var(--maroon);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-upgrade-hint {
    font-size: 0.65rem;
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

a.nav-user-plan-upgradeable:hover .nav-upgrade-hint {
    background: rgba(255,255,255,0.35);
}

.nav-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s;
}
.nav-logout:hover { color: var(--white); text-decoration: none; }

/* ── Nav overlay (mobile) ───────────────────────────────────────────────── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.nav-overlay.visible { display: block; }

/* ── Main workspace ─────────────────────────────────────────────────────── */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--gray-900);
    cursor: pointer;
    padding: 6px;
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-maroon);
    flex: 1;
}

.topbar-view-page {
    color: var(--gray-500);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s;
}
.topbar-view-page:hover { color: var(--maroon); }

.dashboard-content {
    flex: 1;
    padding: 32px;
}

/* ── Panel placeholder (stub panels) ────────────────────────────────────── */
.panel-placeholder {
    text-align: center;
    padding: 80px 32px;
    color: var(--gray-500);
}

.panel-placeholder i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 16px;
    display: block;
}

.panel-placeholder h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

/* ── Email verification banner ──────────────────────────────────────────── */
.verify-banner {
    background: var(--amber-bg);
    border-bottom: 1px solid #FFE082;
    color: var(--amber);
    padding: 10px 24px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verify-resend {
    margin-left: auto;
    color: var(--amber);
    font-size: 0.875rem;
}

.alert-dashboard {
    margin: 16px 24px 0;
    border-radius: var(--radius);
}

/* ── Mobile responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .dashboard-nav {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        transition: left 0.25s ease;
    }

    .dashboard-nav.open {
        left: 0;
    }

    .nav-close {
        display: block;
    }

    .hamburger {
        display: block;
    }

    .dashboard-content {
        padding: 20px 16px;
    }
}

@media (min-width: 769px) {
    .dashboard-nav {
        position: relative;
        left: 0 !important;
    }
    .nav-overlay {
        display: none !important;
    }
}

/* ── Append to bottom of public/assets/css/app.css ───────────────────── */

/* ── Editor layout ──────────────────────────────────────────────────────── */
.editor-wrap {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 56px - 64px); /* viewport minus topbar minus publish bar */
    padding-bottom: 80px; /* room for publish bar */
}

.editor-panel {
    flex: 1;
    min-width: 0;
    padding: 24px;
    overflow-y: auto;
}

.preview-panel {
    width: 300px;
    min-width: 300px;
    background: var(--gray-100);
    border-left: 1px solid var(--gray-300);
    padding: 24px 16px;
}

.preview-sticky {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ── Editor sections ────────────────────────────────────────────────────── */
.editor-section {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.editor-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-maroon);
    margin-bottom: 16px;
}

.editor-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.editor-section-header .editor-section-title {
    margin-bottom: 0;
}

.section-limit-badge {
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--gray-300);
}

/* ── Photo upload ───────────────────────────────────────────────────────── */
.photo-upload-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    color: var(--gray-300);
    font-size: 1.8rem;
}

/* ── Photo crop modal ─── Chat 05 ──────────────────────────────────────── */
.crop-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.crop-modal {
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-200);
}

.crop-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.crop-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.15s;
}
.crop-close:hover { color: var(--gray-900); }

.crop-body {
    position: relative;
    width: 100%;
    height: 320px;
    background: #1a1a1a;
}

.crop-body img {
    display: block;
    max-width: 100%;
}

.crop-hint {
    padding: 8px 18px;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    background: var(--gray-50);
}

.crop-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--gray-200);
}

.crop-cancel {
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    background: none;
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.crop-cancel:hover { border-color: var(--gray-500); color: var(--gray-900); }

.crop-submit {
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.crop-submit:hover { background: var(--maroon-deep, #3A0000); }
.crop-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Theme picker ───────────────────────────────────────────────────────── */
.theme-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 72px;
    position: relative;
}

.theme-btn:hover:not(:disabled) {
    border-color: var(--maroon);
}

.theme-btn.active {
    border-color: var(--maroon);
    background: #FFF5F6;
}

.theme-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.theme-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
}

/* Theme swatch colors */
.theme-maroon     { background: #5C0010; }
.theme-white      { background: #FFFFFF; border: 1px solid #D1D1D1; }
.theme-night      { background: #1a1a2e; }
.theme-rev   { background: linear-gradient(135deg, #5C0010, #FFFFFF); }
.theme-bonfire { background: linear-gradient(135deg, #5C0010, #8A7230); }
.theme-custom        { border: 1px solid var(--gray-300); }
.theme-custom-locked { background: conic-gradient(#5C0010 0deg, #FFFFFF 120deg, #8A7230 240deg, #5C0010 360deg); }

/* Custom color pickers */
.custom-colors {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.color-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.color-row label {
    width: 90px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0;
}
.color-row input[type="color"] {
    width: 40px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    background: none;
}

.theme-label {
    font-size: 0.75rem;
    color: var(--gray-900);
}

.theme-lock {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.65rem;
    color: var(--gray-500);
}

/* ── Items list (social icons + links) ──────────────────────────────────── */
.items-list {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
}

.item-reorder {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.reorder-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 2px 4px;
    font-size: 0.7rem;
    line-height: 1;
    transition: color 0.15s;
}
.reorder-btn:hover:not(:disabled) { color: var(--maroon); }
.reorder-btn:disabled {
    color: var(--gray-300);
    cursor: default;
}

.item-row.inactive {
    opacity: 0.5;
}

.item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maroon);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.item-label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-url {
    font-size: 0.75rem;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.item-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 4px;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.item-toggle.active { color: var(--green); }
.item-toggle:hover  { color: var(--gray-900); }

.item-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-300);
    padding: 4px;
    font-size: 0.85rem;
    transition: color 0.15s;
}
.item-delete:hover { color: var(--red); }

.items-empty {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
    padding: 16px;
}

/* ── Item edit (inline) ─── Chat 05 ────────────────────────────────────── */
.item-edit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-300);
    padding: 4px;
    font-size: 0.8rem;
    transition: color 0.15s;
}
.item-edit:hover { color: var(--gold); }

.item-row.editing {
    flex-wrap: wrap;
}

.item-edit-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0 2px;
}

.item-edit-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s;
}
.item-edit-input:focus {
    border-color: var(--maroon);
}

.item-edit-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.item-edit-save {
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.item-edit-save:hover { background: var(--maroon-deep, #3A0000); }

.item-edit-cancel {
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
    background: none;
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.item-edit-cancel:hover { border-color: var(--gray-500); color: var(--gray-900); }

.btn-add {
    width: 100%;
    justify-content: center;
}

/* ── Buttons: secondary and small ───────────────────────────────────────── */
.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
}
.btn-secondary:hover {
    background: var(--gray-100);
    text-decoration: none;
    color: var(--gray-900);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
}

/* ── Publish bar ────────────────────────────────────────────────────────── */
.publish-bar {
    position: fixed;
    bottom: 0;
    left: 260px; /* sidebar width */
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-300);
    z-index: 40;
    padding: 12px 24px;
}

.publish-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.publish-status {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.publish-bar-actions {
    display: flex;
    gap: 10px;
}

.publish-verify-msg {
    width: 100%;
    font-size: 0.8rem;
    color: var(--amber);
    background: var(--amber-bg);
    border: 1px solid #FFE082;
    border-radius: var(--radius);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s;
}
.publish-verify-msg.flash {
    transform: scale(1.02);
}
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Phone preview frame ────────────────────────────────────────────────── */
.preview-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.phone-frame {
    width: 220px;
    height: 420px;
    background: var(--gray-900);
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--gray-500);
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 22px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 24px;
    scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar { display: none; }

.preview-loading {
    text-align: center;
    padding: 40px 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.preview-view-link {
    font-size: 0.78rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.preview-view-link:hover { color: var(--maroon); }

/* ── textarea ───────────────────────────────────────────────────────────── */
textarea {
    resize: vertical;
    min-height: 72px;
}

/* ── Mobile: hide preview, show at bottom ───────────────────────────────── */
@media (max-width: 900px) {
    .preview-panel {
        display: none;
    }
    .publish-bar {
        left: 0;
    }
}

/* ── Append to bottom of public/assets/css/app.css ───────────────────── */

/* ── Analytics ──────────────────────────────────────────────────────────── */
.analytics-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    flex: 1;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-maroon);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analytics-locked {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
}

.analytics-locked-inner {
    text-align: center;
    color: var(--gray-500);
}

.analytics-locked-inner i {
    font-size: 1.5rem;
    color: var(--gray-300);
    margin-bottom: 8px;
    display: block;
}

.analytics-locked-inner p {
    font-size: 0.875rem;
    margin-bottom: 12px;
}

/* FOMO teaser for free users */
.analytics-fomo {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 12px;
}
.analytics-fomo-inner {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}
.analytics-fomo-inner i {
    font-size: 2rem;
    color: var(--maroon);
    margin-bottom: 8px;
    display: block;
}
.analytics-fomo-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-maroon);
    margin-bottom: 6px;
}

/* Detail link icon in analytics table */
.analytics-detail-link {
    color: var(--gray-300);
    font-size: 0.9rem;
    transition: color 0.15s;
    text-decoration: none;
    padding: 4px;
}
.analytics-detail-link:hover {
    color: var(--maroon);
    text-decoration: none;
}

/* Retention disclosure */
.analytics-retention {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}

.analytics-table-wrap {
    margin-bottom: 16px;
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.analytics-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 8px;
    border-bottom: 1px solid var(--gray-300);
}

.analytics-table td {
    padding: 8px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.analytics-table tr:last-child td {
    border-bottom: none;
}

.analytics-link-label {
    display: block;
    font-weight: 500;
    color: var(--gray-900);
}

.analytics-link-url {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.text-right { text-align: right; }

.analytics-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.device-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.device-label {
    width: 80px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.device-bar-track {
    flex: 1;
    background: var(--gray-100);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.device-bar-fill {
    height: 100%;
    background: var(--maroon);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.device-pct {
    width: 36px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--gray-500);
    flex-shrink: 0;
}

/* ── Append to bottom of public/assets/css/app.css ───────────────────── */

/* ── Account Settings ───────────────────────────────────────────────────── */
.account-wrap {
    max-width: 600px;
}

.account-section {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.account-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-maroon);
    margin-bottom: 20px;
}

.security-block {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.security-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.security-block-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.account-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.account-feedback {
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 20px;
}

/* Verified / unverified badges */
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E8F5E9;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.badge-unverified {
    display: inline-flex;
    align-items: center;
    background: #FFF8E1;
    color: var(--amber);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Trusted devices list */
.devices-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
}

.device-info {
    flex: 1;
    min-width: 0;
}

.device-ua {
    font-size: 0.8rem;
    color: var(--gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Account info grid */
.account-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
}

.info-label {
    width: 120px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.info-value {
    color: var(--gray-900);
    font-weight: 500;
}

/* Danger zone */
.danger-zone {
    border-color: #FFCDD2;
}

.danger-title {
    color: var(--red) !important;
}

.btn-danger {
    background: var(--red);
    color: var(--white);
    border: none;
}
.btn-danger:hover {
    background: #8B0000;
    color: var(--white);
    text-decoration: none;
}

.btn-danger-outline {
    background: var(--white);
    color: var(--red);
    border: 1px solid var(--red);
}
.btn-danger-outline:hover {
    background: #FFEBEE;
    text-decoration: none;
}
/* ── Class year row with toggle ─────────────────────────────────────────── */
.class-year-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    cursor: pointer;
    margin: 0;
}

.toggle-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UPGRADE / PRICING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.upgrade-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 0 48px;
}

/* ── Billing cycle toggle ──────────────────────────────────────────────── */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 4px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.billing-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: var(--gray-500);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.billing-btn.active {
    background: var(--white);
    color: var(--maroon);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.billing-save {
    display: inline-block;
    background: #E8F5E9;
    color: var(--green);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

/* ── Plan cards grid ───────────────────────────────────────────────────── */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
    align-items: start;
}

.plan-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.plan-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.plan-card.plan-featured {
    border: 2px solid var(--maroon);
    box-shadow: 0 4px 20px rgba(92, 0, 16, 0.12);
}

.plan-card.plan-current {
    border-color: var(--gold);
}

/* ── Plan badge ────────────────────────────────────────────────────────── */
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-badge-featured {
    background: var(--maroon);
}

/* ── Plan card content ─────────────────────────────────────────────────── */
.plan-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-maroon);
    text-align: center;
    margin-top: 8px;
}

.plan-tagline {
    font-size: 0.82rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 16px;
}

.plan-price {
    text-align: center;
    margin-bottom: 2px;
}

.plan-amount {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--maroon);
}

.plan-period {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.plan-billed {
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray-500);
    min-height: 18px;
    margin-bottom: 20px;
}

/* ── Feature list ──────────────────────────────────────────────────────── */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-top: 1px solid var(--gray-100);
    padding-top: 20px;
}

.plan-features li {
    font-size: 0.85rem;
    color: var(--gray-900);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li i {
    font-size: 0.72rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.plan-features li .fa-check {
    color: var(--green);
}

.plan-features li .fa-xmark {
    color: var(--gray-300);
}

.plan-features li.feat-disabled {
    color: var(--gray-500);
}

.plan-features .feat-star {
    color: var(--gold);
}

/* ── Plan action buttons ───────────────────────────────────────────────── */
.plan-action {
    text-align: center;
}

.btn-checkout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    background: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-checkout:hover {
    background: var(--dark-maroon);
}

.btn-checkout:disabled {
    opacity: 0.7;
    cursor: wait;
}

.btn-checkout-featured {
    background: var(--maroon);
    box-shadow: 0 2px 8px rgba(92, 0, 16, 0.3);
}

.btn-manage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    background: transparent;
    color: var(--maroon);
    border: 1px solid var(--maroon);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-manage:hover {
    background: var(--maroon);
    color: var(--white);
}

.btn-manage:disabled {
    opacity: 0.7;
    cursor: wait;
}

.plan-current-label {
    display: block;
    padding: 12px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
}

.plan-current-label.plan-included {
    color: var(--gray-500);
}

/* ── Feature comparison table ──────────────────────────────────────────── */
.compare-section {
    margin-bottom: 40px;
}

.compare-heading {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-maroon);
    margin-bottom: 16px;
    text-align: center;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-300);
}

.compare-table thead {
    background: var(--dark-maroon);
    color: var(--white);
}

.compare-table th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: center;
}

.compare-table th.compare-feature-col {
    text-align: left;
}

.compare-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-900);
}

.compare-table td.compare-feature-col {
    text-align: left;
    font-weight: 500;
    color: var(--gray-900);
}

.compare-table td.compare-featured-col {
    background: rgba(92, 0, 16, 0.03);
}

.compare-table th.compare-featured-col {
    background: rgba(255, 255, 255, 0.1);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.feat-yes {
    color: var(--green);
}

.feat-no {
    color: var(--gray-300);
}

/* ── Upgrade alerts ─────────────────────────────────────────────────────── */
.upgrade-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.upgrade-alert i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.upgrade-alert strong {
    font-weight: 600;
}

.upgrade-alert-success {
    background: #E8F5E9;
    color: #1B5E20;
    border: 1px solid #A5D6A7;
}

.upgrade-alert-success i {
    color: var(--green);
}

.upgrade-alert-info {
    background: var(--amber-bg);
    color: var(--amber);
    border: 1px solid #FFE082;
}

.upgrade-alert-info i {
    color: var(--amber);
}

/* ── Policies note ─────────────────────────────────────────────────────── */
.upgrade-policies {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.upgrade-policies p {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 8px;
}

.upgrade-policies a {
    color: var(--maroon);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .plan-cards {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .plan-card.plan-featured {
        order: -1;
    }

    .compare-table {
        font-size: 0.78rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 500px) {
    .billing-toggle {
        max-width: 100%;
    }
}

/* ── Social Icon Picker Modal ────────────────────────────────────────────── */

.social-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.social-picker-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.social-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.social-picker-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.social-picker-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.social-picker-close-btn:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.social-picker-search-wrap {
    position: relative;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

.social-picker-search-wrap i {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
}

.social-picker-search-wrap input {
    width: 100%;
    padding: 9px 12px 9px 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

.social-picker-search-wrap input:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 2px rgba(92, 0, 16, 0.1);
}

.social-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 16px 20px;
    overflow-y: auto;
    max-height: 280px;
}

.social-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.78rem;
    color: var(--text);
}

.social-picker-item i {
    font-size: 1.3rem;
    color: var(--muted);
    transition: color 0.15s ease;
}

.social-picker-item:hover {
    border-color: var(--maroon);
    background: rgba(92, 0, 16, 0.03);
}

.social-picker-item:hover i {
    color: var(--maroon);
}

.social-picker-item.selected {
    border-color: var(--maroon);
    background: rgba(92, 0, 16, 0.06);
    box-shadow: 0 0 0 2px rgba(92, 0, 16, 0.15);
}

.social-picker-item.selected i {
    color: var(--maroon);
}

.social-picker-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 20px;
    font-size: 0.88rem;
}

.social-picker-url-wrap {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    border-radius: 0 0 12px 12px;
}

.social-picker-selected-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--maroon);
    margin-bottom: 8px;
}

.social-picker-selected-label i {
    margin-right: 6px;
}

.social-picker-url-wrap input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 4px;
}

.social-picker-url-wrap input:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 2px rgba(92, 0, 16, 0.1);
}

.social-picker-url-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 10px 0;
}

.social-picker-url-wrap .btn {
    width: 100%;
}

@media (max-width: 500px) {
    .social-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-picker-modal {
        max-height: 90vh;
    }
}

/* ── Add Link Modal ──────────────────────────────────────────────────────── */

.link-add-modal {
    max-width: 420px;
}

.link-add-body {
    padding: 20px;
}

.link-add-body .field-group {
    margin-bottom: 16px;
}

.link-add-body label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.link-add-body input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

.link-add-body input:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 2px rgba(92, 0, 16, 0.1);
}

.link-add-body .btn {
    width: 100%;
    margin-top: 4px;
}