/*
   =====================================
   MODERN PUBLIC PROFILE STYLES - V5
   Tighter, glassmorphism, innovative
   =====================================
*/

/* --- General --- */
body.profile-page {
    background-color: #0a0f1e;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    overflow-x: hidden;
    max-width: 100vw;
}

body.profile-page * {
    box-sizing: border-box;
}

.draft-tag {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #ffc107;
    font-size: 0.7em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 7, 0.25);
    margin-left: 6px;
    display: inline-block;
    letter-spacing: 0.02em;
}

.profile-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 130px 24px 60px;
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
}

/* --- Profile Header Card --- */
.profile-header {
    display: block;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 36px 32px 28px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 100;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
        0 12px 48px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.profile-info {
    min-width: 0;
    padding: 16px 0 0;
}

.profile-header .profile-name {
    color: #f8fafc;
    font-size: 1.9em;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.profile-header .profile-name .verified-checkmark svg {
    width: 26px;
    height: 26px;
}

.profile-tier {
    margin-top: 4px;
}

.tier-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.profile-bio {
    color: #94a3b8;
    max-width: 560px;
    margin: 12px auto 0;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Detail Pills (Established/Born, Publishing Rate) */
.profile-header-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.profile-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-detail-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-detail-value,
.posting-rate-value,
.date-value {
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.15;
}

/* --- Action Buttons --- */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.profile-btn {
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.profile-btn.primary {
    background-color: #facc15;
    color: #1e293b;
}

.profile-btn.primary:hover {
    background-color: #eab308;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25);
}

.profile-btn.secondary {
    background-color: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.profile-btn.secondary:hover {
    background-color: rgba(71, 85, 105, 0.6);
    transform: translateY(-1px);
}

.profile-btn.subscribe-btn {
    font-size: 0.82rem;
    padding: 8px 18px;
    border-radius: 10px;
    color: #fff !important;
    transition: all 0.2s ease;
}

.profile-btn.subscribe-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.profile-btn.subscribe-btn.subscribed {
    opacity: 0.85;
}

/* --- Stats Grid (inside header card) --- */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 20px;
}

.stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 6px;
    background: rgba(15, 23, 42, 0.5);
    text-align: center;
    transition: background 0.15s ease;
}

.stat-cell:hover {
    background: rgba(15, 23, 42, 0.7);
}

.stat-cell .stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-cell .stat-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

button.stat-cell-clickable {
    appearance: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

button.stat-cell-clickable:hover {
    background: rgba(59, 130, 246, 0.1);
}

button.stat-cell-clickable:hover .stat-value {
    color: #93c5fd;
}

button.stat-cell-clickable:hover .stat-label {
    color: #93c5fd;
}

button.stat-cell-clickable:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: -2px;
}

/* --- Nuzler Feed --- */
.nuzler-feed .feed-title {
    color: #cbd5e1;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nuzler-post {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.75) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 22px 24px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nuzler-post:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nuzler-post .post-title {
    color: #f1f5f9;
    font-size: 1.35em;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* --- Post Date Line (replaces duplicate post-meta) --- */
.post-date-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.post-date-value {
    color: #94a3b8;
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.post-date-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.72em;
    font-weight: 700;
    background: rgba(255, 193, 7, 0.12);
    color: #fde68a;
    border: 1px solid rgba(255, 193, 7, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-date-scheduled {
    color: #a78bfa;
    font-size: 0.82em;
    font-weight: 600;
}

.post-date-provider {
    color: #64748b;
    font-size: 0.82em;
    font-weight: 500;
    font-style: italic;
}

.nuzler-post .post-meta {
    color: #64748b;
    font-size: 0.92em;
    margin-bottom: 16px;
    line-height: 1.5;
}

.nuzler-post .post-content {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 1.05em;
}

.nuzler-post.no-posts {
    text-align: center;
    color: #475569;
    padding: 32px;
    font-size: 0.9em;
}

/* --- Publisher Post Header (profile page nuzlers) --- */
.pub-post-header {
    background: linear-gradient(145deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 55%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 14px;
    overflow: hidden;
}

/* Public profile nuzler card: identity/details left, subscribe right */
.pub-post-hero-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(0, 0, 0, 0.12);
}

.pub-post-header-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.pub-post-hero-bar .pub-post-date {
    color: #cbd5e1;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.3;
}

.pub-post-subscribe-wrap {
    flex-shrink: 0;
    align-self: center;
}

.pub-post-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 0;
}

.pub-post-name {
    font-weight: 700;
    font-size: 1.14rem;
    letter-spacing: -0.01em;
}

.pub-post-tier {
    font-size: 0.96rem;
    font-weight: 600;
}

.pub-post-meta-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    max-width: 100%;
}

.pub-post-meta-line {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
}

.pub-post-meta-button {
    font-family: inherit;
    cursor: pointer;
    color: #93c5fd;
    border-color: rgba(59,130,246,0.28);
    background: rgba(59,130,246,0.1);
    transition: all 0.15s ease;
}

.pub-post-meta-button:hover {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.45);
}

.pub-post-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 22px 18px;
}

.pub-post-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.76em;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    font-family: inherit;
}

.pub-post-pill.pub-post-type {
    color: var(--tier-color, #60a5fa);
    border-color: color-mix(in srgb, var(--tier-color, #60a5fa) 25%, transparent);
    background: color-mix(in srgb, var(--tier-color, #60a5fa) 8%, transparent);
}

button.pub-post-pill-click {
    cursor: pointer;
    transition: all 0.15s ease;
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.2);
    color: #60a5fa;
}

button.pub-post-pill-click:hover {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.35);
    color: #93c5fd;
    transform: translateY(-1px);
}

button.pub-post-pill-click:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.pub-post-provider {
    color: #64748b;
    font-style: italic;
}

.pub-post-scheduled {
    color: #a78bfa;
    border-color: rgba(167,139,250,0.2);
    background: rgba(167,139,250,0.08);
}

.pub-post-subscribe {
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
    transition: all 0.15s ease;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.pub-post-subscribe:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* --- Post Header in Feed (legacy/other feeds) --- */
.post-header-profile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.author-info-profile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.post-header-profile .subscribe-button {
    margin-left: 12px;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 12px;
    white-space: nowrap;
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.post-header-profile .subscribe-button:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.author-name-row-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.author-name-row-profile .verified-checkmark svg {
    width: 18px;
    height: 18px;
}

.author-name {
    color: #f8fafc;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.author-tier-row-profile {
    margin-bottom: 2px;
}

.author-tier-row-profile .author-tier {
    font-size: 0.88em;
    font-weight: 600;
    opacity: 0.75;
}

.nuzler-type-row-profile {
    margin-bottom: 2px;
}

.nuzler-type-row-profile .nuzler-type {
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.65;
}

.post-header-profile .published-date {
    color: #a7b0bf;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.post-header-profile .nuzler-brand-tag {
    margin-top: 2px;
}

.posting-rate-profile {
    font-size: 0.82em;
    font-weight: 500;
    opacity: 0.55;
}

/* --- Post Footer Stats --- */
.post-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.post-footer .stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-footer .stats span,
.post-footer .stats button {
    font-size: 1em;
    color: #64748b;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.15s ease;
    background: transparent;
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 600;
}

.post-footer .stats span:hover,
.post-footer .stats button:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.post-footer .stats .nuze-btn.active {
    background: rgba(255, 255, 255, 0.06);
}

.post-footer .stats .share-nuzler-link {
    margin-left: auto;
    font-size: 0.88em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

/* --- Comments Section --- */
.comments-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    color: #e2e8f0;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    min-height: 64px;
    transition: border-color 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4);
}

.comment-form .post-comment-btn {
    margin-top: 12px;
    padding: 12px 24px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.comment-form .post-comment-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.comment {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author,
.comment-author-link {
    font-size: 0.95em;
    font-weight: 600;
}

.comment-time {
    font-size: 0.82em;
    color: #475569;
}

.comment-content {
    font-size: 1em;
    color: #94a3b8;
    line-height: 1.7;
}

.no-comments {
    color: #475569;
    font-size: 0.95em;
    text-align: center;
    padding: 24px 0;
}

.new-comment {
    animation: commentFadeIn 0.3s ease;
}

@keyframes commentFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Visibility Tag --- */
.visibility-tag {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 8px;
    background-color: rgba(74, 85, 104, 0.4);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

/* --- Verification Tier Styling --- */
.profile-header .profile-name {
    transition: color 0.3s ease;
    font-weight: 700;
    margin-bottom: 2px;
}

.post-header-profile .author-name {
    font-weight: 700;
    transition: color 0.3s ease;
}

.author-name-row-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1px;
}

/* Tier-based after/active/hover colors for post footer */
.tier-red .post-footer .stats span::after { background-color: #ff4444 !important; }
.tier-blue .post-footer .stats span::after { background-color: #409eff !important; }
.tier-orange .post-footer .stats span::after { background-color: #f97316 !important; }
.tier-purple .post-footer .stats span::after { background-color: #b388ff !important; }
.tier-green .post-footer .stats span::after { background-color: #10b981 !important; }
.tier-yellow .post-footer .stats span::after { background-color: #eab308 !important; }
.tier-pink .post-footer .stats span::after { background-color: #ff85b3 !important; }
.tier-mint .post-footer .stats span::after { background-color: #2dd4bf !important; }
.tier-magenta .post-footer .stats span::after { background-color: #d946ef !important; }
.tier-indigo .post-footer .stats span::after { background-color: #6366f1 !important; }
.tier-emerald .post-footer .stats span::after { background-color: #059669 !important; }
.tier-stadium .post-footer .stats span::after { background-color: #22c55e !important; }
.tier-copper .post-footer .stats span::after { background-color: #b45309 !important; }
.tier-sky .post-footer .stats span::after { background-color: #0ea5e9 !important; }
.tier-coral .post-footer .stats span::after { background-color: #fb7185 !important; }
.tier-royal .post-footer .stats span::after { background-color: #2563eb !important; }
.tier-rose .post-footer .stats span::after { background-color: #f43f5e !important; }

.tier-red .post-footer .stats .nuze-btn.active { color: #ff4444 !important; }
.tier-blue .post-footer .stats .nuze-btn.active { color: #409eff !important; }
.tier-orange .post-footer .stats .nuze-btn.active { color: #f97316 !important; }
.tier-purple .post-footer .stats .nuze-btn.active { color: #b388ff !important; }
.tier-green .post-footer .stats .nuze-btn.active { color: #10b981 !important; }
.tier-yellow .post-footer .stats .nuze-btn.active { color: #eab308 !important; }
.tier-pink .post-footer .stats .nuze-btn.active { color: #ff85b3 !important; }
.tier-mint .post-footer .stats .nuze-btn.active { color: #2dd4bf !important; }
.tier-magenta .post-footer .stats .nuze-btn.active { color: #d946ef !important; }
.tier-indigo .post-footer .stats .nuze-btn.active { color: #6366f1 !important; }
.tier-emerald .post-footer .stats .nuze-btn.active { color: #059669 !important; }
.tier-stadium .post-footer .stats .nuze-btn.active { color: #22c55e !important; }
.tier-copper .post-footer .stats .nuze-btn.active { color: #b45309 !important; }
.tier-sky .post-footer .stats .nuze-btn.active { color: #0ea5e9 !important; }
.tier-coral .post-footer .stats .nuze-btn.active { color: #fb7185 !important; }
.tier-royal .post-footer .stats .nuze-btn.active { color: #2563eb !important; }
.tier-rose .post-footer .stats .nuze-btn.active { color: #f43f5e !important; }

.tier-red .post-footer .stats span:hover { color: #ff4444 !important; }
.tier-blue .post-footer .stats span:hover { color: #409eff !important; }
.tier-orange .post-footer .stats span:hover { color: #f97316 !important; }
.tier-purple .post-footer .stats span:hover { color: #b388ff !important; }
.tier-green .post-footer .stats span:hover { color: #10b981 !important; }
.tier-yellow .post-footer .stats span:hover { color: #eab308 !important; }
.tier-pink .post-footer .stats span:hover { color: #ff85b3 !important; }
.tier-mint .post-footer .stats span:hover { color: #2dd4bf !important; }
.tier-magenta .post-footer .stats span:hover { color: #d946ef !important; }
.tier-indigo .post-footer .stats span:hover { color: #6366f1 !important; }
.tier-emerald .post-footer .stats span:hover { color: #059669 !important; }
.tier-stadium .post-footer .stats span:hover { color: #22c55e !important; }
.tier-copper .post-footer .stats span:hover { color: #b45309 !important; }
.tier-sky .post-footer .stats span:hover { color: #0ea5e9 !important; }
.tier-coral .post-footer .stats span:hover { color: #fb7185 !important; }
.tier-royal .post-footer .stats span:hover { color: #2563eb !important; }
.tier-rose .post-footer .stats span:hover { color: #f43f5e !important; }

/* --- Mobile: Tablets --- */
@media (max-width: 768px) {
    .profile-container {
        padding-top: 80px;
    }

    @supports (-webkit-appearance: none) {
        .profile-container {
            padding-top: 100px !important;
        }
    }

    .profile-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pub-post-hero-bar {
        padding: 16px 16px 14px;
    }

    .pub-post-hero-bar .pub-post-date {
        font-size: 1rem;
    }

    .pub-post-identity {
        padding: 0;
    }

    .pub-post-details {
        padding: 12px 16px 14px;
    }

    .pub-post-name {
        font-size: 1.04rem;
    }

    .pub-post-meta-line {
        font-size: 0.86rem;
    }

    .pub-post-pill {
        font-size: 0.72em;
        padding: 2px 8px;
    }

    .pub-post-subscribe {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .stat-cell .stat-value {
        font-size: 1.1rem;
    }

    .stat-cell .stat-label {
        font-size: 0.58rem;
    }
}

/* --- Mobile: Small Screens --- */
@media (max-width: 600px) {
    .profile-container {
        padding: 1.2rem 14px 32px;
        padding-top: 1.2rem !important;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .profile-header {
        margin-top: 0;
        z-index: 10;
        padding: 24px 14px;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
        margin: 0 auto 8px;
    }

    .profile-header .profile-name {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px 8px;
        max-width: 100%;
        font-size: 1.6rem;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .profile-header .profile-name .verified-checkmark {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .profile-header .profile-name .verified-checkmark svg {
        width: 18px;
        height: 18px;
    }

    .profile-bio {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.55;
        margin: 10px auto 0;
    }

    .profile-tier,
    .posting-rate-display,
    .date-info-display,
    .profile-header-details {
        max-width: 100%;
    }

    .profile-header-details {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .profile-detail-pill {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .profile-detail-value,
    .posting-rate-value,
    .date-value {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Publisher post header on mobile */
    .pub-post-hero-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
        min-height: 0;
        padding: 16px 14px;
    }

    .pub-post-header-copy {
        gap: 9px;
    }

    .pub-post-subscribe-wrap {
        align-self: start;
    }

    .pub-post-hero-bar .pub-post-date {
        font-size: 0.95rem;
    }

    .pub-post-identity {
        padding: 0;
    }

    .pub-post-details {
        padding: 12px 14px 14px;
    }

    .pub-post-name {
        font-size: 1rem;
    }

    .pub-post-meta-list {
        gap: 6px;
    }

    .pub-post-meta-line {
        min-height: 26px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .pub-post-pill {
        font-size: 0.7em;
        padding: 2px 7px;
    }

    .pub-post-subscribe {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    /* Stats grid: 2 rows on mobile */
    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 16px;
    }

    .stat-cell {
        min-width: 0;
        padding: 10px 4px;
    }

    .stat-cell .stat-value {
        font-size: 1rem;
    }

    .stat-cell .stat-label {
        font-size: 0.55rem;
        margin-top: 3px;
    }

    .profile-actions {
        flex-direction: column;
        gap: 6px;
        margin-top: 12px;
    }

    .profile-actions .profile-btn {
        width: 100%;
        box-sizing: border-box;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        white-space: normal;
        font-size: 0.82rem;
    }

    .nuzler-feed .feed-title {
        font-size: 0.95em;
    }

    .nuzler-post {
        padding: 20px 18px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .nuzler-post .post-title {
        font-size: 1.15em;
    }

    .nuzler-post .post-meta {
        font-size: 0.88em;
    }

    .nuzler-post .post-content {
        font-size: 1em;
    }

    .profile-header-details {
        gap: 6px;
        margin-top: 10px;
    }

    .profile-detail-pill {
        width: 100%;
        justify-content: space-between;
        min-height: 36px;
        padding: 8px 14px;
    }

    .profile-detail-label {
        font-size: 0.7rem;
    }

    .profile-detail-value,
    .posting-rate-value,
    .date-value {
        font-size: 0.85rem;
    }

    .post-header-profile {
        gap: 10px;
    }

    .author-name {
        font-size: 1.05em;
    }

    .author-tier-row-profile .author-tier {
        font-size: 0.85em;
    }

    .nuzler-type-row-profile .nuzler-type {
        font-size: 0.82em;
    }

    .post-date-line {
        gap: 6px;
    }

    .post-date-value {
        font-size: 0.82em;
    }

    .post-footer .stats {
        gap: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .post-footer .stats::-webkit-scrollbar {
        display: none;
    }

    .post-footer .stats span,
    .post-footer .stats button {
        font-size: 0.9em;
        padding: 6px 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .post-footer .stats {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
    }

    .post-footer .stats::-webkit-scrollbar {
        display: none;
    }

    .post-footer .stats span,
    .post-footer .stats button {
        padding: 5px 10px;
        font-size: 0.85em;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 380px) {
    .post-footer .stats {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/* --- Editable Profile (Dashboard) --- */
.profile-container.editable .profile-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-container.editable .profile-name-input,
.profile-container.editable .profile-bio-input {
    background: transparent;
    border: 1px solid transparent;
    color: inherit;
    font-family: inherit;
    padding: 5px;
    margin: -5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
    resize: none;
}

.profile-container.editable .profile-name-input {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-container.editable .profile-bio-input {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
    height: 100px;
    overflow-y: auto;
}

.profile-container.editable .profile-name-input:hover,
.profile-container.editable .profile-bio-input:hover,
.profile-container.editable .profile-name-input:focus,
.profile-container.editable .profile-bio-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 16px;
}

/* --- Alert Messages --- */
.alert {
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85em;
    line-height: 1.4;
}

.alert-success {
    color: #86efac;
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.alert-danger {
    color: #fca5a5;
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-warning {
    color: #fde68a;
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

/* --- Initials Avatar --- */
.profile-header .initials-avatar,
.profile-container .initials-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.profile-header .initials-avatar.blue,  .profile-container .initials-avatar.blue    { background-color: #409eff; }
.profile-header .initials-avatar.gold,  .profile-container .initials-avatar.gold    { background-color: #facc15; }
.profile-header .initials-avatar.purple,.profile-container .initials-avatar.purple  { background-color: #b388ff; }
.profile-header .initials-avatar.brown, .profile-container .initials-avatar.brown   { background-color: #cd853f; }
.profile-header .initials-avatar.pink,  .profile-container .initials-avatar.pink    { background-color: #ff85b3; }
.profile-header .initials-avatar.red,   .profile-container .initials-avatar.red     { background-color: #ff4444; }
.profile-header .initials-avatar.orange,.profile-container .initials-avatar.orange  { background-color: #f97316; }
.profile-header .initials-avatar.yellow,.profile-container .initials-avatar.yellow  { background-color: #eab308; }
.profile-header .initials-avatar.meme,.profile-container .initials-avatar.meme    { background-color: #ff4fd8; }
.profile-header .initials-avatar.audio,.profile-container .initials-avatar.audio    { background-color: #a78bfa; }
.profile-header .initials-avatar.green, .profile-container .initials-avatar.green   { background-color: #10b981; }
.profile-header .initials-avatar.violet,.profile-container .initials-avatar.violet  { background-color: #8b45c5; }
.profile-header .initials-avatar.teal,  .profile-container .initials-avatar.teal    { background-color: #14b8a6; }
.profile-header .initials-avatar.lightblue,.profile-container .initials-avatar.lightblue { background-color: #38bdf8; }
.profile-header .initials-avatar.gray,  .profile-container .initials-avatar.gray    { background-color: #6b7280; }
.profile-header .initials-avatar.lime,  .profile-container .initials-avatar.lime    { background-color: #84cc16; }
.profile-header .initials-avatar.darkblue,.profile-container .initials-avatar.darkblue { background-color: #1e40af; }
.profile-header .initials-avatar.cyan,  .profile-container .initials-avatar.cyan    { background-color: #06b6d4; }
.profile-header .initials-avatar.darkpink,.profile-container .initials-avatar.darkpink { background-color: #be185d; }
.profile-header .initials-avatar.mint,  .profile-container .initials-avatar.mint    { background-color: #2dd4bf; }
.profile-header .initials-avatar.magenta,.profile-container .initials-avatar.magenta { background-color: #d946ef; }
.profile-header .initials-avatar.indigo,.profile-container .initials-avatar.indigo  { background-color: #6366f1; }
.profile-header .initials-avatar.emerald,.profile-container .initials-avatar.emerald { background-color: #059669; }
.profile-header .initials-avatar.stadium,.profile-container .initials-avatar.stadium { background-color: #22c55e; }
.profile-header .initials-avatar.copper,.profile-container .initials-avatar.copper { background-color: #b45309; }
.profile-header .initials-avatar.sky,    .profile-container .initials-avatar.sky     { background-color: #0ea5e9; }
.profile-header .initials-avatar.coral,  .profile-container .initials-avatar.coral   { background-color: #fb7185; }
.profile-header .initials-avatar.royal, .profile-container .initials-avatar.royal   { background-color: #2563eb; }
.profile-header .initials-avatar.rose,  .profile-container .initials-avatar.rose    { background-color: #f43f5e; }
.profile-header .initials-avatar.default,.profile-container .initials-avatar.default { background-color: #334155; }

.profile-header .initials-avatar {
    width: 112px;
    height: 112px;
    font-size: 3.2rem;
    border: 3px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    border-radius: 18px;
}

@media (max-width: 600px) {
    .profile-header .initials-avatar {
        width: 80px;
        height: 80px;
        border-width: 2px;
        font-size: 2.4rem;
        border-radius: 14px;
    }

    .profile-header {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .profile-header-details {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .profile-detail-pill {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .profile-detail-value,
    .posting-rate-value,
    .date-value {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-cell {
        min-width: 0;
    }
}

header .profile-name .initials-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Account dropdown override for profile page */
body.profile-page header.site-header .profile-menu .profile-name {
    display: flex !important;
    align-items: center !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}

body.profile-page header.site-header .profile-menu .profile-name .initials-avatar {
    width: 30px !important;
    height: 30px !important;
    margin-right: 10px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

/* --- People Modal --- */

/* --- Public profile readability pass --- */
body.profile-page {
    font-size: 1rem;
    line-height: 1.68;
}

.profile-header .profile-name {
    font-size: 2.15rem;
    line-height: 1.2;
}

.tier-display,
.profile-bio {
    font-size: 1.08rem;
    line-height: 1.65;
}

.profile-detail-label {
    font-size: 0.88rem;
}

.profile-detail-value,
.posting-rate-value,
.date-value {
    font-size: 1.02rem;
}

.profile-btn,
.profile-btn.subscribe-btn,
.post-header-profile .subscribe-button {
    font-size: 1rem;
}

.stat-cell .stat-value {
    font-size: 1.45rem;
}

.stat-cell .stat-label {
    font-size: 0.72rem;
}

.nuzler-feed .feed-title {
    font-size: 1.35rem;
}

.nuzler-post .post-title {
    font-size: 1.48rem;
    line-height: 1.32;
}

.nuzler-post .post-meta,
.author-tier-row-profile .author-tier,
.nuzler-type-row-profile .nuzler-type,
.posting-rate-profile {
    font-size: 1rem;
}

.nuzler-post .post-content,
.post-footer .stats span,
.post-footer .stats button,
.comment,
.comment-form textarea,
.comment-form .post-comment-btn {
    font-size: 1.05rem;
    line-height: 1.75;
}

.author-name {
    font-size: 1.22rem;
}

@media (max-width: 600px) {
    body.profile-page {
        font-size: 1rem;
    }

    .profile-header .profile-name {
        font-size: 1.78rem;
    }

    .profile-bio,
    .tier-display {
        font-size: 1rem;
    }

    .profile-detail-label {
        font-size: 0.82rem;
    }

    .profile-detail-value,
    .posting-rate-value,
    .date-value,
    .profile-btn,
    .profile-btn.subscribe-btn {
        font-size: 1rem;
    }

    .nuzler-feed .feed-title {
        font-size: 1.15rem;
    }

    .nuzler-post .post-title {
        font-size: 1.28rem;
    }

    .nuzler-post .post-content,
    .post-footer .stats span,
    .post-footer .stats button {
        font-size: 1rem;
    }
}

/* ===== Premium profile presentation v9.1 ===== */
body.profile-page {
    background:
        linear-gradient(145deg, rgba(72, 213, 151, 0.075) 0%, transparent 28%),
        linear-gradient(315deg, rgba(255, 111, 143, 0.055) 0%, transparent 30%),
        linear-gradient(180deg, #10130f 0%, #0b0d0c 52%, #090a09 100%);
    color: #f2f0e8;
}

.profile-container {
    position: relative;
}

.profile-header {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(21, 25, 22, 0.86);
    border: 1px solid rgba(227, 220, 196, 0.13);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.profile-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tier-color, #d9b35f), rgba(217, 179, 95, 0.25), transparent 78%);
    opacity: 0.9;
}

.profile-header .profile-name,
.nuzler-post .post-title,
.pub-post-name {
    color: #fffaf0;
}

.profile-bio {
    color: rgba(242, 240, 232, 0.72);
}

.tier-display {
    padding: 6px 13px;
    background: color-mix(in srgb, currentColor 11%, rgba(255, 255, 255, 0.045));
    border-color: color-mix(in srgb, currentColor 34%, rgba(227, 220, 196, 0.12));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    text-transform: none;
}

.profile-detail-pill,
.stat-cell {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(227, 220, 196, 0.1);
}

.profile-detail-label,
.stat-cell .stat-label {
    color: rgba(242, 240, 232, 0.48);
}

.profile-detail-value,
.posting-rate-value,
.date-value,
.stat-cell .stat-value {
    color: #fffaf0;
}

.profile-stats-grid {
    background: rgba(227, 220, 196, 0.1);
    border: 1px solid rgba(227, 220, 196, 0.08);
}

.stat-cell:hover {
    background: rgba(217, 179, 95, 0.07);
}

.profile-btn.primary,
.profile-btn.subscribe-btn {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--tier-color, #d9b35f) 24%, transparent);
}

.profile-btn.secondary {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(227, 220, 196, 0.13);
    color: #f2f0e8;
}

.profile-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.075);
}

.nuzler-feed .feed-title {
    color: rgba(242, 240, 232, 0.82);
    border-bottom-color: rgba(227, 220, 196, 0.12);
}

.nuzler-post {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.016)),
        rgba(21, 25, 22, 0.84);
    border-color: rgba(227, 220, 196, 0.12);
    border-left-color: var(--tier-color, var(--tier-accent, #d9b35f));
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nuzler-post::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tier-color, var(--tier-accent, #d9b35f)), transparent 72%);
    pointer-events: none;
}

.nuzler-post:hover {
    border-color: rgba(227, 220, 196, 0.2);
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.44);
}

.nuzler-post .post-content {
    color: rgba(242, 240, 232, 0.73);
}

.pub-post-header {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.058), rgba(255,255,255,0.018)),
        rgba(10, 12, 10, 0.35);
    border-color: rgba(227, 220, 196, 0.12);
}

.pub-post-hero-bar {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--tier-color, #d9b35f) 10%, transparent), transparent 70%),
        rgba(0, 0, 0, 0.14);
    border-bottom-color: rgba(227, 220, 196, 0.1);
}

.pub-post-meta-line,
.pub-post-pill,
.post-date-status,
.post-date-scheduled {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(227, 220, 196, 0.11);
    color: rgba(242, 240, 232, 0.76);
}

.pub-post-meta-button,
button.pub-post-pill-click {
    background: color-mix(in srgb, var(--tier-color, #d9b35f) 10%, rgba(255,255,255,0.035));
    border-color: color-mix(in srgb, var(--tier-color, #d9b35f) 28%, rgba(227,220,196,0.1));
    color: #fffaf0;
}

.pub-post-meta-button:hover,
button.pub-post-pill-click:hover {
    background: color-mix(in srgb, var(--tier-color, #d9b35f) 18%, rgba(255,255,255,0.05));
    border-color: color-mix(in srgb, var(--tier-color, #d9b35f) 42%, rgba(227,220,196,0.14));
}

.pub-post-subscribe {
    box-shadow: 0 14px 32px color-mix(in srgb, var(--tier-color, #d9b35f) 22%, rgba(0,0,0,0.5));
}

.post-footer,
.comments-section {
    border-top-color: rgba(227, 220, 196, 0.1);
}

.post-footer .stats span,
.post-footer .stats button {
    color: rgba(242, 240, 232, 0.62);
}

.post-footer .stats span:hover,
.post-footer .stats button:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(227, 220, 196, 0.1);
    color: #fffaf0;
}

.comment-form textarea {
    background: rgba(10, 12, 10, 0.62);
    border-color: rgba(227, 220, 196, 0.13);
    color: #f2f0e8;
}

.comment-form textarea:focus {
    border-color: color-mix(in srgb, var(--tier-color, #d9b35f) 45%, rgba(227,220,196,0.12));
}

/* Match homepage vertical rhythm under the global header/slogan on profile pages */
@media (max-width: 768px) {
    body.profile-page .profile-container {
        padding-top: 10px !important;
    }
}

@media (max-width: 600px) {
    body.profile-page .profile-container {
        padding-top: 8px !important;
    }
}
