:root {
    --bg: #09090f;
    --surface: #0f0f18;
    --card: #13131e;
    --card-hover: #18182a;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(124, 58, 237, 0.5);
    --text: #e4e4f0;
    --text-muted: #7070a0;
    --text-dim: #40405a;
    --accent: #7c3aed;
    --accent-light: #9d5cf6;
    --accent-glow: rgba(124, 58, 237, 0.18);
    --accent-glow-strong: rgba(124, 58, 237, 0.35);

    --avatar: #3b82f6;
    --avatar-bg: rgba(59, 130, 246, 0.12);
    --profile: #10b981;
    --profile-bg: rgba(16, 185, 129, 0.12);
    --nameplate: #f59e0b;
    --nameplate-bg: rgba(245, 158, 11, 0.12);
    --bundle: #8b5cf6;
    --bundle-bg: rgba(139, 92, 246, 0.12);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family:
        "Inter",
        -apple-system,
        sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header ─────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-light);
    filter: drop-shadow(0 0 8px var(--accent-glow-strong));
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.logo-accent {
    color: var(--accent-light);
}

.search-wrap {
    position: relative;
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 16px 0 40px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.search-input::placeholder {
    color: var(--text-dim);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.total-count {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ─── Filter bar ───────────────────────────────────── */
.filter-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 99;
}

.filter-inner {
    display: flex;
    gap: 4px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.filter-btn:hover {
    color: var(--text);
    background: var(--card);
    border-color: var(--border);
}

.filter-btn.active {
    color: var(--text);
    background: var(--accent-glow);
    border-color: var(--border-hover);
}

.filter-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-avatar {
    background: var(--avatar);
}
.dot-profile {
    background: var(--profile);
}
.dot-nameplate {
    background: var(--nameplate);
}
.dot-bundle {
    background: var(--bundle);
}

/* ─── Main ─────────────────────────────────────────── */
.main {
    padding: 32px 24px 80px;
}

/* ─── States ───────────────────────────────────────── */
.state-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 320px;
    text-align: center;
}

.state-icon {
    font-size: 42px;
    opacity: 0.3;
}

.state-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.state-sub {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 380px;
}

.state-sub code {
    background: var(--card);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent-light);
}

.retry-btn {
    margin-top: 8px;
    padding: 9px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
}

.retry-btn:hover {
    background: var(--accent-light);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* ─── Grid ─────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    animation: fadeIn 0.3s ease;
}

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

/* ─── Card ─────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--border-hover);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #1e1f22;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s ease;
}

.card:hover .card-img {
    transform: scale(1.06);
}

/* Bundle image overlay */
.bundle-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.bundle-img-base,
.bundle-img-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bundle-img-overlay {
    z-index: 1;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.card-info {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border);
}

.card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.price-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-light);
}

/* ─── Badges ───────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

.badge-avatar {
    color: var(--avatar);
    background: var(--avatar-bg);
}
.badge-profile {
    color: var(--profile);
    background: var(--profile-bg);
}
.badge-nameplate {
    color: var(--nameplate);
    background: var(--nameplate-bg);
}
.badge-bundle {
    color: var(--bundle);
    background: var(--bundle-bg);
}
.badge-sm {
    font-size: 10px;
    padding: 2px 7px;
}

.badge-limited {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.12);
    color: var(--nameplate);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ─── Pagination ───────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text-muted);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--text);
    background: var(--accent-glow);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--text-dim);
    padding: 0 4px;
    user-select: none;
}

.page-go-input {
    width: 56px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    text-align: center;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-left: 6px;
    -moz-appearance: textfield;
}

.page-go-input::-webkit-outer-spin-button,
.page-go-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.page-go-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── Modal ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.modal-box::-webkit-scrollbar {
    width: 5px;
}
.modal-box::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--card-hover);
    color: var(--text);
    border-color: var(--border-hover);
}

.modal-content {
    padding: 28px;
}

.modal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.modal-img-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.modal-bundle-img {
    width: 100%;
    aspect-ratio: 1;
    background: #1e1f22;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.modal-bundle-img .bundle-img-base,
.modal-bundle-img .bundle-img-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-bundle-img .bundle-img-overlay {
    z-index: 1;
}

.modal-info-side {
    min-width: 0;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin: 8px 0 6px;
}

.modal-label {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 4px;
}

.modal-summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-section {
    margin-bottom: 22px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

/* ─── Prices table ─────────────────────────────────── */
.prices-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.price-row-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
}

.price-row-vals {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price-original {
    font-size: 12px;
    color: var(--text-dim);
    text-decoration: line-through;
}

.price-arrow {
    color: var(--text-dim);
    font-size: 12px;
}

.price-sell {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-light);
}

.price-limited {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Bundle items list ────────────────────────────── */
.bundle-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bundle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
}

/* ─── Discord link ─────────────────────────────────── */
.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 10px;
    color: #7289da;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 4px;
}

.discord-link:hover {
    background: rgba(88, 101, 242, 0.22);
    border-color: rgba(88, 101, 242, 0.5);
    color: #94a7ff;
}

/* ─── Discord Profile Mockup ──────────────────────── */
.discord-profile-mock {
    width: 100%;
    aspect-ratio: 4/5;
    position: relative;
    background: #2b2d31;
    border-radius: 10px;
    overflow: hidden;
    font-size: 11px;
    flex-shrink: 0;
}

#modalImgSlot .discord-profile-mock {
    font-size: 13px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Banner (top 34% of mock) */
.dp-banner {
    width: 100%;
    height: 34%;
    background: #5865f2;
    position: relative;
    overflow: hidden;
}

.dp-banner--transparent {
    background: transparent;
}

/* Full-background effect gradient overlay (type 1) */
.dp-effect-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(43, 45, 49, 0.78) 45%,
        rgba(43, 45, 49, 0.97) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Body */
.dp-body {
    padding: 0 9% 8%;
    position: relative;
}

.dp-body--elevated {
    z-index: 2;
}

/* Avatar row */
.dp-avatar-row {
    display: flex;
    align-items: flex-end;
    margin-top: -15%;
    margin-bottom: 5%;
    overflow: visible;
}

.dp-avatar {
    width: 30%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #5865f2;
    border: 3px solid #2b2d31;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-avatar-icon {
    width: 55%;
    height: 55%;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-avatar-icon svg {
    width: 100%;
    height: 100%;
}

.dp-avatar-deco {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

.dp-status {
    width: 30%;
    height: 30%;
    background: #23a55a;
    border-radius: 50%;
    border: 2px solid #2b2d31;
    position: absolute;
    bottom: 2%;
    right: 2%;
    z-index: 3;
}

/* Name */
.dp-username {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #f2f3f5;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-tag {
    display: block;
    font-size: 1.05em;
    color: #b5bac1;
    margin-bottom: 5%;
}

/* Nameplate strip (type 2) */
.dp-nameplate-strip {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 2.5em;
    margin-bottom: 2%;
    background: rgba(0, 0, 0, 0.3);
}

.dp-nameplate-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.dp-nameplate-text {
    position: relative;
    z-index: 1;
    padding: 0 0.6em;
    font-size: 1.5em;
    font-weight: 700;
    color: #f2f3f5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* About me section */
.dp-about {
    background: rgba(30, 31, 34, 0.85);
    border-radius: 6px;
    padding: 6% 7%;
}

.dp-about-title {
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    color: #b5bac1;
    letter-spacing: 0.07em;
    margin-bottom: 6%;
}

.dp-about-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-about-line {
    height: 5px;
    background: #3a3d44;
    border-radius: 3px;
}

/* ─── Avatar decoration preview (type 0) ──────────────── */
.dp-avatar-preview {
    width: 100%;
    aspect-ratio: 1;
    background: #1e1f22;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#modalImgSlot .dp-avatar-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dp-avatar-base-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%;
    box-sizing: border-box;
}

.dp-status--avatar {
    width: 8%;
    height: 8%;
    background: #23a55a;
    border-radius: 50%;
    border: 2px solid var(--surface);
    position: absolute;
    bottom: 16%;
    right: 16%;
    z-index: 2;
}

.dp-deco-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4%;
    box-sizing: border-box;
    z-index: 1;
}

/* ─── Profile effect template preview (type 1) ─────────── */
.dp-profile-preview {
    width: 100%;
    position: relative;
    background: #1e1f22;
    border-radius: 10px;
    overflow: hidden;
}

#modalImgSlot .dp-profile-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dp-profile-base {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    opacity: 0.18;
}

.dp-effect-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.dp-profile-crop {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
}

/* ─── Nameplate chat preview (type 2) ──────────────────── */
.dp-chat-preview {
    width: 100%;
    aspect-ratio: 1;
    background: #1e1f22;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2%;
    padding: 8% 6%;
    box-sizing: border-box;
    font-size: 11px;
}

#modalImgSlot .dp-chat-preview {
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dp-chat-row {
    display: flex;
    align-items: center;
    gap: 4%;
    border-radius: 6px;
    padding: 2% 3%;
    flex-shrink: 0;
}

.dp-chat-row--dim {
    height: 22%;
    opacity: 0.3;
}

.dp-chat-row--main {
    height: 30%;
}

.dp-chat-av {
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: 50%;
}

.dp-chat-av--dim {
    width: 15%;
    background: #3a3d44;
}

.dp-chat-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-chat-line {
    height: 6px;
    background: #3a3d44;
    border-radius: 3px;
}

.dp-nameplate-bg {
    flex: 1;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 5%;
    padding: 0 8% 0 4%;
    box-sizing: border-box;
    background: rgba(88, 101, 242, 0.15);
}

.dp-nameplate-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.dp-nameplate-av {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    height: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.dp-nameplate-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dp-nameplate-av .dp-status {
    width: 32%;
    height: 32%;
    border-width: 1px;
    border-color: transparent;
}

.dp-nameplate-name {
    position: relative;
    z-index: 2;
    width: 50%;
    flex-shrink: 0;
    height: 28%;
    background: rgba(97, 96, 99, 0.4);
    border-radius: 100px;
}

.dp-nameplate-pill {
    position: relative;
    z-index: 1;
    font-size: 0.85em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
    .modal-layout {
        grid-template-columns: 1fr;
    }

    .modal-img-side {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .header-inner {
        gap: 12px;
    }
    .logo-text {
        font-size: 16px;
    }
    .total-count {
        display: none;
    }
    .search-wrap {
        max-width: 100%;
    }
    .main {
        padding: 20px 16px 60px;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .modal-content {
        padding: 20px;
    }
    .modal-box {
        border-radius: var(--radius);
    }
    .modal-layout {
        gap: 20px;
    }
}

@media (max-width: 400px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
