/* =========================================================================
   PhotoZone Graphy — Profile Page Stylesheet
   v2 — liquid-glass modal system, responsive rework, bug fixes
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f5f6f9;
    --bg-grain: radial-gradient(ellipse 80% 60% at 20% -10%, rgba(47, 111, 237, .06), transparent 60%),
                radial-gradient(ellipse 70% 50% at 100% 0%, rgba(184, 135, 44, .05), transparent 55%);
    --surface: #ffffff;
    --surface-2: #f3f4f7;
    --surface-3: #eaecf1;
    --border: #e6e8ec;
    --border-2: #d6dae2;
    --text: #14171f;
    --text-2: #5b6270;
    --text-3: #949aa8;
    --accent: #2f6fed;
    --accent-2: #1f56c7;
    --accent-soft: #eaf1ff;
    --gold: #b8872c;
    --gold-soft: #faf3e3;
    --green: #16a34a;
    --green-soft: #e9faf0;
    --red: #e23a3a;
    --red-soft: #fdecec;
    --amber: #c97a12;
    --amber-soft: #fdf1df;

    /* liquid glass */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 24px 70px -12px rgba(20, 24, 38, .28), 0 2px 8px rgba(20, 24, 38, .06);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .35);
    --scrim: rgba(16, 18, 26, 0.42);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06);
    --shadow: 0 8px 24px rgba(16, 24, 40, .09);
    --shadow-lg: 0 24px 60px rgba(16, 24, 40, .20);

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.32s cubic-bezier(0.22, 1, 0.36, 1);

    --banner-h: 260px;
    --banner-ratio: 4.35 / 1;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    background-image: var(--bg-grain);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, .profile-name, .modal-title, .gallery-title, .top-bar-title {
    font-family: var(--font);
}

/* =========================================================================
   PAGE SHELL — widens on large screens so nothing feels empty
   ========================================================================= */

.page-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 72px;
}

@media (min-width: 1400px) {
    .page-wrap { max-width: 1360px; }
    .image-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1700px) {
    .page-wrap { max-width: 1520px; }
    .image-grid { grid-template-columns: repeat(5, 1fr); }
}

/* =========================================================================
   HERO / BANNER — fixed avatar-overlap and name-overlap bugs
   ========================================================================= */

.profile-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.hero-band {
    aspect-ratio: var(--banner-ratio);
    min-height: 140px;
    max-height: var(--banner-h);
    width: 100%;
    background: linear-gradient(135deg, #eef1f7 0%, #e6ebf4 50%, #eef3f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 12% 0%, rgba(184, 135, 44, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 90% 100%, rgba(47, 111, 237, 0.08) 0%, transparent 65%);
}

.hero-band.editable { cursor: pointer; }

#bannerContainer { position: absolute; inset: 0; }
#bannerContainer iframe { width: 100%; height: 100%; border: none; pointer-events: none; }
#bannerContainer img { width: 100%; height: 100%; object-fit: cover; display: block; }

.banner-edit-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(20, 22, 28, 0.5);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    z-index: 6;
    transition: background var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.banner-edit-btn:hover { background: rgba(20, 22, 28, 0.72); }

/* Hero body no longer relies on a large negative margin that could crush
   into the banner on short banners / long names — avatar overlaps the
   banner edge by a fixed, safe amount instead. */
.hero-body {
    padding: 0 32px 26px;
    position: relative;
    z-index: 2;
}

.hero-top-row {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: -48px;
    flex-wrap: wrap;
}

.avatar-wrap { position: relative; flex-shrink: 0; }

.profile-avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--text-3);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    padding: 0;
}
.profile-avatar:hover { transform: scale(1.03); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar-edit-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
}

.verified-ring {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    color: #fff;
    transition: transform var(--transition);
    z-index: 5;
}
.verified-ring:hover { transform: scale(1.12); }

.verified-ring .vr-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 22, 28, .92);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 11.5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s, visibility 0.16s;
    z-index: 100;
    box-shadow: var(--shadow);
}
.verified-ring .vr-tooltip a { color: #cfe0ff; text-decoration: none; font-weight: 600; display: block; margin-top: 4px; }
.verified-ring:hover .vr-tooltip, .verified-ring:focus .vr-tooltip { opacity: 1; visibility: visible; }

/* Identity block sits beside the avatar on desktop but always keeps clear
   air above it — the "name overlapping banner" bug came from negative
   margins pulling identity text up into the image; this version doesn't. */
.identity {
    min-width: 0;
    padding-bottom: 6px;
    flex: 1 1 220px;
}

.profile-name {
    font-size: 23px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.28;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}
.profile-name .badge-check { color: var(--accent); font-size: 15px; }

.profile-username {
    font-size: 13.5px;
    color: var(--text-3);
    font-family: var(--font-mono);
    margin-top: 3px;
}

.profile-action-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

.btn-edit, .btn-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-edit {
    background: var(--surface);
    border: 1px solid var(--border-2);
    color: var(--text);
    padding: 10px 18px;
}
.btn-edit:hover { background: var(--surface-2); border-color: var(--text-3); }

.btn-follow {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
}
.btn-follow:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-follow.following { background: var(--surface); color: var(--red); border: 1px solid var(--red); box-shadow: none; }
.btn-follow.following:hover { background: var(--red-soft); }

.stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    padding: 0 24px 0 0;
    margin-right: 24px;
    border-right: 1px solid var(--border);
    cursor: pointer;
    gap: 2px;
    transition: opacity var(--transition);
}
.stat-pill:last-child { border-right: none; padding-right: 0; margin-right: 0; cursor: default; }
.stat-pill:not(:last-child):hover { opacity: 0.65; }
.stat-num { font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-lbl { font-size: 12px; color: var(--text-3); font-weight: 500; }

.hero-extras {
    padding: 20px 32px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero-extras:empty { display: none; }

.profile-bio {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-2);
    overflow-wrap: break-word;
    max-width: 74ch;
}

.meta-chips, .spec-tags, .social-links { display: flex; flex-wrap: wrap; gap: 8px; }

.meta-chip {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 6px 13px;
    border-radius: 30px;
    font-size: 12.5px;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.meta-chip i { color: var(--text-3); width: 13px; text-align: center; }

.spec-tag {
    background: var(--accent-soft);
    border: 1px solid #d7e4fd;
    color: var(--accent-2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.social-link {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12.5px;
    text-decoration: none;
    color: var(--text-2);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.social-link:hover { background: var(--surface-3); border-color: var(--border-2); color: var(--text); transform: translateY(-1px); }
.social-link i { font-size: 13px; }

/* =========================================================================
   TOP BAR
   ========================================================================= */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar-left { display: flex; align-items: center; gap: 10px; }
.top-bar-left i { color: var(--gold); font-size: 15px; }
.top-bar-title { font-size: 14.5px; font-weight: 700; color: var(--text); }

.icon-btn {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-2); }

.notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    font-size: 9.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

/* =========================================================================
   LIQUID GLASS — shared modal system
   ========================================================================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--scrim);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
    padding: 32px 20px;
}
.modal.open { display: flex; align-items: flex-start; justify-content: center; animation: scrimIn .22s ease; }
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }

.modal-inner {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    margin: auto;
    width: 100%;
    max-width: 640px;
    position: relative;
    padding: 30px;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    animation: modalIn var(--transition-spring);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-inner.wide { max-width: 1040px; padding: 0; overflow: hidden; }

@media (min-width: 1180px) {
    .modal-inner { max-width: 720px; padding: 34px; }
    .modal-inner.wide { max-width: 1180px; }
    #editModal .modal-inner { max-width: 820px; }
    #bannerModal .modal-inner { max-width: 620px; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-2);
    transition: all var(--transition);
    z-index: 5;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.85); color: var(--text); transform: rotate(90deg); }

.modal-title {
    font-size: 18.5px;
    font-weight: 800;
    margin-bottom: 6px;
    padding-right: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}
.modal-title i { color: var(--gold); font-size: 16px; }
.modal-subtitle {
    font-size: 12.5px;
    color: var(--text-3);
    margin-bottom: 22px;
    padding-right: 38px;
    line-height: 1.6;
}

/* =========================================================================
   BANNER MODAL
   ========================================================================= */

.banner-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.banner-option {
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.banner-option:hover { border-color: var(--border-2); transform: translateY(-2px); }
.banner-option.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.banner-option.selected::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 7px; right: 7px;
    width: 20px; height: 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
}

.banner-option-preview { width: 100%; aspect-ratio: var(--banner-ratio); overflow: hidden; background: var(--surface); }
.banner-option-preview iframe, .banner-option-preview img { width: 100%; height: 100%; border: none; pointer-events: none; object-fit: cover; }
.banner-option-preview iframe { transform: scale(1.3); }

.banner-option-title {
    padding: 10px;
    font-size: 11.5px;
    text-align: center;
    color: var(--text-2);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.locked { cursor: pointer; opacity: 0.85; }
.locked:hover { opacity: 1; }

.banner-remove { background: var(--red-soft); border-color: #f6c9c9; }
.banner-remove .banner-option-title { color: var(--red); }

.banner-upload-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; }

/* =========================================================================
   EDIT PROFILE — accordion + form
   ========================================================================= */

.accordion-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
}
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    cursor: pointer;
    background: var(--surface-2);
    font-weight: 700;
    font-size: 14px;
    user-select: none;
    transition: background var(--transition);
}
.accordion-header:hover { background: var(--surface-3); }
.accordion-header span { display: flex; align-items: center; gap: 9px; }
.accordion-header i.chev { transition: transform 0.22s ease; font-size: 12px; color: var(--text-3); }
.accordion-section.open .accordion-header i.chev { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.accordion-section.open .accordion-body { max-height: 3200px; }
.accordion-body-inner { padding: 18px; }

.bio-counter { font-size: 11px; color: var(--text-3); text-align: right; margin-top: 5px; }
.bio-counter.warn { color: var(--amber); }
.bio-counter.over { color: var(--red); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-2); }

.field input, .field textarea, .field select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 11px 13px;
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-hint { font-size: 11px; color: var(--text-3); }
.field-hint.ok { color: var(--green); }

.avatar-picker {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.avatar-preview {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-3);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--text-3);
    flex-shrink: 0;
    border: 2px solid var(--border-2);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.btn-upload {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid #d7e4fd;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}
.btn-upload:hover { background: #ddeaff; }

.spec-tag-search {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 9px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
    background: var(--surface);
}
.spec-tag-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.spec-tag-scroll-box {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: var(--surface);
}
.spec-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tag-btn.hidden-by-search { display: none; }
.spec-tag-empty { font-size: 12px; color: var(--text-3); padding: 8px 2px; }

.spec-tag-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    font-weight: 500;
}
.spec-tag-btn:hover { border-color: var(--border-2); color: var(--text); }
.spec-tag-btn.active { background: var(--accent-soft); border-color: #b9d2fb; color: var(--accent); font-weight: 700; }

/* ---- Social links & websites — redesigned ------------------------------ */

.social-links-intro {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.65;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--accent-soft);
    border: 1px solid #d7e4fd;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.social-links-intro i { color: var(--accent); font-size: 13px; margin-top: 1px; flex-shrink: 0; }

.social-input-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 9px;
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    flex-wrap: wrap;
}
.social-input-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.social-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: var(--text-2);
}

.social-label-col {
    width: 108px;
    flex-shrink: 0;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 700;
}

.social-input-wrap { position: relative; flex: 1; min-width: 150px; }
.social-input-wrap .at-prefix {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--text-3); font-size: 13px; pointer-events: none;
}
.social-input-wrap input {
    padding: 9px 11px 9px 22px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text);
}
.social-input-wrap input:focus { outline: none; }
.social-input-wrap.phone-mode .at-prefix { display: none; }
.social-input-wrap.phone-mode input { padding-left: 11px; }

.social-mode-toggle {
    flex-shrink: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 7px 12px;
    white-space: nowrap;
    border-radius: 20px;
    transition: all var(--transition);
}
.social-mode-toggle:hover { background: var(--accent-soft); border-color: #d7e4fd; }

@media (max-width: 560px) {
    .social-input-card { flex-direction: column; align-items: stretch; }
    .social-label-col { width: 100%; display: flex; align-items: center; gap: 10px; }
    .social-mode-toggle { width: 100%; text-align: center; }
    .social-input-wrap { width: 100%; }
}

.form-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions-row > * { flex: 1; min-width: 180px; }
@media (max-width: 480px) {
    .form-actions-row { flex-direction: column; }
    .form-actions-row > * { width: 100%; }
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: filter var(--transition), transform var(--transition);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(.985); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
    background: var(--amber-soft);
    color: var(--amber);
    border: 1px solid #f3dca6;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-secondary:hover { background: #fbe7c1; }

/* =========================================================================
   SOCIAL-LINK GATE MODAL — redesigned, no emoji, clear icon
   ========================================================================= */

#socialGateModal .modal-inner { max-width: 460px; text-align: center; }
.gate-icon-ring {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid #d7e4fd;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.gate-icon-ring i { font-size: 22px; color: var(--accent); }
.gate-body-text { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin: 6px 0 22px; }
.gate-body-text strong { color: var(--red); font-weight: 700; }
.gate-actions { display: flex; flex-direction: column; gap: 10px; }

/* =========================================================================
   IMAGE GRID
   ========================================================================= */

.gallery-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.gallery-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.gallery-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.image-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition), border-color var(--transition);
}
.image-card.visible { opacity: 1; transform: translateY(0); }
.image-card:hover { box-shadow: var(--shadow); border-color: var(--border-2); }

.img-wrapper { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; flex-shrink: 0; }
.img-wrapper::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    z-index: 1;
    transition: opacity 0.3s;
}
.img-wrapper.loaded::before { opacity: 0; pointer-events: none; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.card-img {
    width: 100%; height: 100%; object-fit: cover; cursor: pointer;
    position: relative; z-index: 2; display: block;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.card-img.visible { opacity: 1; }
.img-wrapper:hover .card-img { transform: scale(1.035); }

.img-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(to top, rgba(10, 12, 18, 0.45) 0%, transparent 55%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--transition); cursor: pointer;
}
.img-wrapper:hover .img-overlay { opacity: 1; }

.img-overlay-icon {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: var(--text);
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    transform: scale(0.85);
    transition: transform var(--transition);
}
.img-wrapper:hover .img-overlay-icon { transform: scale(1); }

.image-info { padding: 14px 15px 15px; flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.image-title {
    font-size: 13.5px; font-weight: 700; color: var(--text);
    overflow-wrap: break-word;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.4;
}

.image-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.like-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }

.like-btn { background: none; border: none; cursor: pointer; font-size: 15px; padding: 2px; line-height: 1; color: var(--text-3); transition: transform 0.18s, color 0.18s; }
.like-btn.liked { color: var(--red); }
.like-btn:hover { transform: scale(1.15); }
.like-btn.liked .like-icon { animation: pop 0.26s ease; }
@keyframes pop { 50% { transform: scale(1.4); } }

.like-count { font-weight: 700; font-size: 12.5px; color: var(--text-2); min-width: 14px; }

.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-approved { background: var(--green-soft); color: var(--green); }
.status-pending { background: var(--amber-soft); color: var(--amber); }
.status-rejected { background: var(--red-soft); color: var(--red); }

.rejection-box {
    background: var(--red-soft);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 12px 13px;
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}
.rejection-box strong { color: var(--red); display: inline-flex; align-items: center; gap: 5px; }

.rejection-moderator {
    margin-top: 9px; padding-top: 9px;
    border-top: 1px solid rgba(226, 58, 58, 0.18);
    font-size: 11.5px; color: var(--text-3);
    display: flex; flex-direction: column; gap: 4px;
}
.rejection-moderator span { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rejection-time { font-size: 11px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tag { background: var(--surface-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 8px; font-size: 10.5px; color: var(--text-3); }

.edit-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    background: var(--accent-soft);
    border: 1px solid #d7e4fd;
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    text-decoration: none;
    transition: all var(--transition);
    font-weight: 700;
    align-self: flex-start;
}
.edit-link:hover { background: #ddeaff; }

.btn-delete-img {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; background: var(--red-soft); border: 1px solid #f6c9c9;
    color: var(--red); border-radius: var(--radius-sm); font-size: 11.5px;
    font-weight: 700; cursor: pointer; font-family: inherit;
    transition: all var(--transition); align-self: flex-start;
}
.btn-delete-img:hover { background: #fadcdc; }

.rejection-actions { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.btn-appeal, .btn-appeal-denied, .btn-appeal-approved, .btn-appeal-pending {
    padding: 7px 14px; border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 700;
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit; border: 1px solid transparent; cursor: pointer;
}
.btn-appeal { background: var(--red-soft); border-color: #f6c9c9; color: var(--red); transition: all var(--transition); }
.btn-appeal:hover { background: #fadcdc; }
.btn-appeal-denied { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; }
.btn-appeal-approved { background: var(--green-soft); color: var(--green); cursor: not-allowed; }
.btn-appeal-pending { background: var(--amber-soft); color: var(--amber); cursor: not-allowed; }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background: var(--surface);
    border: 1px dashed var(--border-2);
    border-radius: var(--radius-lg);
}
.empty-icon { font-size: 32px; margin-bottom: 14px; color: var(--border-2); }
.empty-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--text-3); }
.empty-cta {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
    padding: 10px 22px; background: var(--accent); color: #fff; border-radius: 30px;
    text-decoration: none; font-size: 13px; font-weight: 700;
}

/* =========================================================================
   LIGHTBOX
   ========================================================================= */

.lightbox-fullscreen {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: rgba(10, 12, 18, 0.92);
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.lightbox-fullscreen.open { display: flex; }
.lb-content { position: relative; max-width: 94vw; max-height: 94vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 0 80px rgba(0, 0, 0, 0.5); }
.lb-close {
    position: fixed; top: 20px; right: 20px; width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 17px; color: #fff; z-index: 10;
    transition: background var(--transition);
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-caption {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
    background: rgba(20, 22, 28, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 30px; padding: 9px 22px; font-size: 13px; color: #fff;
    max-width: 80vw; text-align: center;
}

/* =========================================================================
   DETAIL MODAL
   ========================================================================= */

.detail-layout { display: grid; grid-template-columns: 1fr 380px; min-height: 460px; }
.detail-media { background: #0c0e13; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.detail-media img { max-width: 100%; max-height: 84vh; object-fit: contain; display: block; }

.detail-info { padding: 26px 24px; overflow-y: auto; max-height: 84vh; }
.detail-photographer { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.detail-avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    background: var(--surface-2); display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; color: var(--text-3);
}
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-ph-name { font-weight: 800; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.detail-ph-name:hover { color: var(--accent); }
.detail-ph-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.detail-img-title { font-size: 19px; font-weight: 800; margin-bottom: 11px; overflow-wrap: break-word; letter-spacing: -0.01em; }
.detail-stats { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }
.detail-stat { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.detail-desc { font-size: 13.5px; line-height: 1.75; color: var(--text-2); margin-bottom: 15px; overflow-wrap: break-word; white-space: pre-line; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.detail-tag { background: var(--surface-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 10px; font-size: 10.5px; color: var(--text-3); }

.detail-section { margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.detail-section strong { font-size: 11.5px; font-weight: 800; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.rejection-detail .rejection-box p { margin: 5px 0; font-size: 12.5px; }
.appeal-status { margin-top: 9px; padding: 11px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 12.5px; }

.detail-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn-copy, .btn-view-full {
    background: var(--accent-soft); color: var(--accent); border: 1px solid #d7e4fd;
    padding: 9px 15px; border-radius: var(--radius-sm); font-size: 12.5px; cursor: pointer;
    font-family: inherit; transition: all var(--transition); display: inline-flex;
    align-items: center; gap: 6px; text-decoration: none; font-weight: 600;
}
.btn-view-full { background: var(--green-soft); color: var(--green); border-color: #c4eed4; }
.btn-copy:hover { background: #ddeaff; }
.btn-view-full:hover { background: #d4f5e0; }

/* =========================================================================
   FOLLOW LIST
   ========================================================================= */

.follow-list { max-height: 440px; overflow-y: auto; }
.follow-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--border); gap: 10px; }
.follow-item:last-child { border-bottom: none; }
.follow-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.follow-info:hover .follow-name { color: var(--accent); }
.f-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-3); flex-shrink: 0;
}
.f-avatar img { width: 100%; height: 100%; object-fit: cover; }
.follow-name { font-size: 14px; font-weight: 700; transition: color var(--transition); overflow-wrap: break-word; }
.follow-uname { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

.btn-follow-sm {
    background: var(--green-soft); color: var(--green); border: 1px solid #c4eed4;
    padding: 7px 15px; border-radius: 20px; font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all var(--transition); flex-shrink: 0;
}
.btn-follow-sm.following { background: var(--red-soft); color: var(--red); border-color: #f6c9c9; }

/* =========================================================================
   NOTIFICATIONS
   ========================================================================= */

.notif-dropdown {
    display: none;
    position: fixed;
    right: 20px;
    top: 76px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid var(--glass-border);
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: 460px;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    z-index: 99999;
    animation: modalIn var(--transition-spring);
}
.notif-dropdown::-webkit-scrollbar { width: 6px; }
.notif-dropdown::-webkit-scrollbar-track { background: transparent; }
.notif-dropdown::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }

.notif-header {
    padding: 15px 18px 11px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
}

.notif-item { padding: 13px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,.5); }
.notif-item.unread { background: rgba(234, 241, 255, .65); }
.notif-item.unread:hover { background: rgba(221, 234, 255, .8); }

.notif-message { font-size: 13px; line-height: 1.55; margin-bottom: 6px; overflow-wrap: break-word; }
.notif-time { font-size: 11px; color: var(--text-3); }
.notif-type { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 10.5px; font-weight: 700; }
.notif-type.approved, .notif-type.comment { background: var(--green-soft); color: var(--green); }
.notif-type.rejected, .notif-type.welcome { background: var(--red-soft); color: var(--red); }
.notif-type.like, .notif-type.achievement { background: var(--gold-soft); color: var(--gold); }
.notif-type.follow, .notif-type.profile_view { background: var(--accent-soft); color: var(--accent); }
.notif-type.system { background: #f1edff; color: #6c4df0; }

.delete-notif-btn { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 12px; padding: 5px 7px; border-radius: 6px; transition: all var(--transition); }
.delete-notif-btn:hover { background: var(--red-soft); color: var(--red); }

.notif-names-reveal { margin-top: 9px; padding: 9px 11px; background: rgba(255,255,255,.6); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-2); display: none; }
.notif-names-reveal.open { display: block; }

/* activity dropdown menu (uses glass too) */
#activityMenu {
    background: var(--glass-bg-strong) !important;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow), var(--glass-highlight) !important;
}

/* =========================================================================
   SEARCH MODAL
   ========================================================================= */

.search-modal-box { position: relative; display: flex; align-items: center; margin-bottom: 18px; }
.search-modal-icon { position: absolute; left: 15px; color: var(--text-3); font-size: 14px; pointer-events: none; }
.search-modal-input {
    width: 100%;
    padding: 13px 15px 13px 40px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.search-modal-input:focus { border-color: var(--accent); }

.search-modal-results { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }

.sm-card {
    display: flex; align-items: center; gap: 13px; padding: 11px 13px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    text-decoration: none; color: inherit;
    background: var(--surface);
    transition: background 0.15s ease, border-color 0.15s ease, transform .15s ease;
}
.sm-card:hover { background: var(--surface-2); border-color: var(--accent); transform: translateX(2px); }

.sm-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2);
    overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    color: var(--text-3); font-size: 16px;
}
.sm-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sm-info { min-width: 0; flex: 1; }
.sm-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sm-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-username { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; display: flex; align-items: center; gap: 4px; }

.sm-badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800;
    color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 20px;
    flex-shrink: 0; text-transform: uppercase;
}
.sm-arrow { color: var(--text-3); font-size: 12px; flex-shrink: 0; }

.sm-loading { text-align: center; padding: 34px 0; color: var(--text-3); font-size: 20px; }
.sm-empty { text-align: center; padding: 26px 10px 16px; color: var(--text-3); }
.sm-empty i { font-size: 26px; margin-bottom: 9px; display: block; }
.sm-empty p { font-size: 13.5px; font-weight: 700; color: var(--text-2); }

.sm-suggest-label {
    font-size: 11.5px; font-weight: 800; color: var(--gold); text-transform: uppercase;
    letter-spacing: 0.4px; margin: 6px 0 11px; display: flex; align-items: center; gap: 6px;
}

/* =========================================================================
   CROP MODAL — sized to actually reflect the target output ratio
   ========================================================================= */

.crop-container {
    height: 420px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.crop-container img { display: block; max-width: 100%; max-height: 100%; }
.crop-ratio-note {
    font-size: 11.5px;
    color: var(--text-3);
    text-align: center;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* =========================================================================
   TOASTS
   ========================================================================= */

.cache-toast {
    position: fixed; bottom: 18px; right: 18px;
    background: rgba(20,22,28,.85);
    backdrop-filter: blur(14px);
    color: #fff; border-radius: 30px; padding: 8px 16px; font-size: 11.5px;
    z-index: 9000; opacity: 0; transition: opacity 0.35s; pointer-events: none;
    display: flex; align-items: center; gap: 6px;
}
.cache-toast.show { opacity: 1; }

#toast-container {
    position: fixed; top: 22px; right: 22px; z-index: 9999;
    display: flex; flex-direction: column; gap: 9px; max-width: calc(100vw - 32px);
}
.toast {
    padding: 13px 17px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    max-width: 340px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}
.toast.success { background: rgba(22, 163, 74, .95); }
.toast.error { background: rgba(226, 58, 58, .95); }
.toast.info { background: rgba(47, 111, 237, .95); }

.load-more-wrap { display: flex; align-items: center; justify-content: center; margin-top: 30px; min-height: 50px; }
.btn-load-more {
    background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2);
    padding: 11px 30px; border-radius: 30px; font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all var(--transition);
}
.btn-load-more:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }

.load-spinner {
    width: 24px; height: 24px; border: 2px solid var(--border-2); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.65s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-media { min-height: 260px; }
    .detail-info { max-height: none; }
    .image-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    :root { --banner-h: 190px; --banner-ratio: 2.2 / 1; }

    .profile-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .profile-action-row .btn-edit,
    .profile-action-row .btn-follow {
        width: 40px !important; height: 40px; padding: 0; border-radius: 50%;
        justify-content: center; min-width: unset;
    }
    .profile-action-row .btn-txt { display: none; }
    .profile-action-row .btn-edit .fa-chevron-down { display: none; }

    .page-wrap { padding: 16px 12px 44px; }
    .hero-body { padding: 0 16px 18px; }
    .hero-top-row { margin-top: -34px; }
    .hero-extras { padding: 16px 16px 20px; }

    .profile-avatar { width: 84px; height: 84px; font-size: 26px; border-width: 3px; }
    .avatar-edit-badge, .verified-ring { width: 24px; height: 24px; font-size: 10px; }
    .profile-name { font-size: 18px; }

    .stats-strip { gap: 0; }
    .stat-pill { padding: 0 14px 0 0; margin-right: 14px; }
    .stat-num { font-size: 16px; }

    .image-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .form-grid { grid-template-columns: 1fr; }
    .modal-inner { padding: 20px; border-radius: var(--radius-lg); }
    .notif-dropdown { width: calc(100vw - 24px); right: 12px; }
    .btn-edit, .btn-follow { width: 100%; justify-content: center; }
    .crop-container { height: 320px; }
}

@media (max-width: 420px) {
    .image-grid { gap: 8px; }
}
