/* ============================================================
   NGL — ANONYMOUS Q&A (Original Style)
   Clean, simple, IG Story ready
   ============================================================ */

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

:root {
    --accent: #c9152d;
    --accent-soft: rgba(201,21,45,0.1);
    --pink: #ff3b47;
    --pink-soft: rgba(255,59,71,0.08);
    --green: #00b894;
    --green-soft: rgba(0,184,148,0.08);
    --red: #e17055;
    --text: #2d3436;
    --text-dim: #636e72;
    --text-muted: #b2bec3;
    --bg: #fff1f2;
    --bg-card: #ffffff;
    --border: #f3cbd0;
    --border-light: #fbe1e4;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(201,21,45,0.1);
    --shadow-sm: 0 2px 8px rgba(201,21,45,0.05);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    height: 100%; width: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.app-wrapper {
    max-width: 420px; margin: 0 auto; min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,241,242,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: 420px; margin: 0 auto;
    padding: 12px 20px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: var(--text); text-decoration: none; }
.nav-logo .logo-icon { font-size: 22px; }
.nav-logo .logo-text { background: linear-gradient(135deg, var(--accent), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; gap: 8px; }

.nav-btn {
    padding: 7px 16px; border-radius: 50px;
    font-size: 13px; font-weight: 500; text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-dim);
}
.nav-btn:hover { background: white; color: var(--text); }

.nav-btn-primary { background: linear-gradient(135deg, var(--accent), var(--pink)); color: white; border: none; }
.nav-btn-primary:hover { opacity: 0.9; }

/* ===== USER PAGE (Send Message) ===== */
.user-page {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 16px 40px;
}

.send-card {
    width: 100%; max-width: 380px;
    animation: fadeIn 0.4s ease;
}

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

/* Gradient header */
.send-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 60%, #fdcb6e 100%);
    border-radius: 20px 20px 0 0;
    padding: 36px 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.send-gradient::before {
    content: ''; position: absolute;
    top: -30%; left: -30%; width: 160%; height: 160%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.send-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700; color: white;
    margin: 0 auto 10px;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative; z-index: 1;
}

.send-gradient h2 {
    font-size: 20px; font-weight: 700; color: white;
    position: relative; z-index: 1;
}

.send-gradient .send-bio {
    font-size: 13px; color: rgba(255,255,255,0.7);
    margin-top: 4px; position: relative; z-index: 1;
}

.send-prompt-area { margin-top: 14px; position: relative; z-index: 1; }

.prompt-text {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 18px; border-radius: 50px;
    font-size: 14px; font-weight: 500; color: white;
    cursor: pointer; transition: all 0.2s;
}
.prompt-text:hover { background: rgba(255,255,255,0.25); }

/* Send body */
.send-body {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0 0 20px 20px;
    padding: 16px 20px 20px;
    box-shadow: var(--shadow-sm);
}

.send-input-wrap {
    display: flex; align-items: center;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 50px; padding: 0 14px; margin-bottom: 10px;
}
.send-input-wrap:focus-within { border-color: var(--accent); }
.send-input-icon { font-size: 14px; margin-right: 8px; opacity: 0.3; }
.send-input-wrap input {
    flex: 1; background: none !important; border: none !important;
    padding: 11px 0 !important; font-size: 14px;
    color: var(--text); outline: none; font-family: var(--font);
}
.send-input-wrap input::placeholder { color: var(--text-muted); }

.send-body textarea {
    width: 100%; padding: 12px 14px;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-family: var(--font); font-size: 14px; outline: none;
    resize: vertical; min-height: 90px;
}
.send-body textarea:focus { border-color: var(--accent); }
.send-body textarea::placeholder { color: var(--text-muted); }

.send-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}

.char-count { font-size: 12px; color: var(--text-muted); }

.send-btn {
    padding: 10px 24px; border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: white; border: none; font-family: var(--font);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,21,45,0.25); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.send-footer { text-align: center; margin-top: 12px; }
.send-footer p { font-size: 12px; color: var(--text-muted); }
.send-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* ===== Q&A FEED ===== */
.feed-section { width: 100%; max-width: 380px; margin-top: 28px; }

.feed-title {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--text-dim);
}
.feed-count { background: var(--green-soft); color: var(--green); padding: 2px 10px; border-radius: 50px; font-size: 11px; font-weight: 500; }

.feed-card { background: white; border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.feed-q { display: flex; gap: 12px; padding: 16px 16px 10px; }
.feed-q-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; color: var(--accent); }
.feed-q-body { flex: 1; min-width: 0; }
.feed-q-name { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 3px; }
.feed-q-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); word-wrap: break-word; }
.feed-a { display: flex; gap: 12px; padding: 10px 16px 16px; margin-left: 44px; border-top: 1px solid var(--border-light); }
.feed-a-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--pink)); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; color: white; }
.feed-a-body { flex: 1; min-width: 0; }
.feed-a-name { font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 3px; }
.feed-a-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); word-wrap: break-word; }
.feed-cta { margin-top: 16px; text-align: center; }

/* ===== HOMEPAGE ===== */
.home-page {
    min-height: calc(100vh - 60px); display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 40px 24px; text-align: center;
}
.home-emoji { font-size: 56px; margin-bottom: 12px; }
.home-title { font-size: clamp(32px, 8vw, 42px); font-weight: 800; line-height: 1.1; margin-bottom: 10px; }
.home-title span { background: linear-gradient(135deg, var(--accent), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.home-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; max-width: 300px; }
.home-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 280px; }
.home-divider { display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: 13px; margin: 4px 0; }
.home-divider::before, .home-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== AUTH ===== */
.auth-page { min-height: calc(100vh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: white; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px 24px; width: 100%; max-width: 380px; box-shadow: var(--shadow); animation: fadeIn 0.4s ease; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header .icon { font-size: 40px; margin-bottom: 12px; }
.auth-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-dim); }
.form-group input { width: 100%; padding: 13px 16px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 15px; outline: none; transition: all 0.2s; }
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-muted); }
.form-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.auth-footer { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.auth-footer p { color: var(--text-dim); font-size: 14px; }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Auth Button */
.auth-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 24px; border-radius: 50px;
    font-family: var(--font); font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: white; border: none; margin-top: 4px;
}
.auth-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== FLASH ===== */
.flash-container { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; width: calc(100% - 32px); max-width: 400px; }
.flash-message { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 12px; animation: slideDown 0.3s ease; backdrop-filter: blur(20px); }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.flash-message.success { background: var(--green-soft); border: 1px solid rgba(0,184,148,0.15); color: var(--green); }
.flash-message.error { background: rgba(225,112,85,0.08); border: 1px solid rgba(225,112,85,0.15); color: var(--red); }
.flash-message.info { background: var(--accent-soft); border: 1px solid rgba(201,21,45,0.15); color: var(--accent); }
.flash-close { background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; opacity: 0.4; }

/* ===== INBOX PAGE (Clean NGL Style) ===== */
.inbox-page { padding: 16px; max-width: 420px; margin: 0 auto; }

/* Profile */
.inbox-profile { display: flex; align-items: center; gap: 14px; padding: 16px; background: white; border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.inbox-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--pink)); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; color: white; }
.inbox-info { flex: 1; min-width: 0; }
.inbox-info h2 { font-size: 16px; font-weight: 600; }
.inbox-username { color: var(--text-muted); font-size: 12px; }
.inbox-edit-btn { background: none; border: none; font-size: 18px; cursor: pointer; opacity: 0.3; padding: 4px 8px; transition: opacity 0.2s; }
.inbox-edit-btn:hover { opacity: 1; }

/* Link */
.inbox-link { display: flex; gap: 8px; margin-bottom: 10px; }
.inbox-link input { flex: 1; min-width: 0; font-size: 13px; padding: 11px 14px; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-dim); font-family: var(--font); outline: none; }
.inbox-copy { padding: 11px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all 0.2s; }
.inbox-copy:hover { background: var(--accent); color: white; }

/* Custom Prompt */
.inbox-prompt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: white; border: 1px solid var(--border-light); border-radius: var(--radius-sm); margin-bottom: 14px; cursor: pointer; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.inbox-prompt:hover { border-color: var(--accent-soft); }
.inbox-prompt-text { font-size: 13px; color: var(--text-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-prompt-edit { font-size: 14px; opacity: 0.2; transition: opacity 0.2s; }
.inbox-prompt:hover .inbox-prompt-edit { opacity: 0.6; }
.prompt-edit-box { background: white; border: 1px solid var(--accent-soft); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px; animation: slideDown 0.2s ease; }
.prompt-edit-box textarea { width: 100%; min-height: 56px; font-size: 14px; padding: 10px 12px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); outline: none; resize: vertical; margin-bottom: 10px; }
.prompt-edit-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Stats */
.inbox-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: white; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { font-size: 22px; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Title */
.inbox-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.inbox-title h3 { font-size: 16px; font-weight: 600; }
.inbox-badge { background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 50px; font-size: 12px; font-weight: 500; }

/* Message Cards */
.msg { background: white; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.msg.unread { border-color: var(--accent); border-width: 1.5px; background: #fff7f6; }
.msg-head { display: flex; gap: 12px; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; color: var(--accent); }
.msg-info { flex: 1; min-width: 0; }
.msg-name { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.msg-new { background: var(--accent); color: white; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 50px; text-transform: uppercase; }
.msg-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); word-wrap: break-word; }
.msg-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.msg-reply { margin-top: 8px; padding: 10px 12px; background: var(--green-soft); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-dim); border-left: 3px solid var(--green); }
.msg-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-light); }
.msg-btn { background: none; border: none; color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; padding: 6px 14px; border-radius: 6px; font-family: var(--font); transition: all 0.2s; }
.msg-btn:hover { background: var(--bg); color: var(--text-dim); }
.msg-btn-reply { color: var(--accent); font-weight: 600; }
.msg-btn-reply:hover { background: var(--accent-soft); }
.msg-btn-del { color: var(--red); }
.msg-btn-del:hover { background: rgba(225,112,85,0.08); }

/* Reply box */
.reply-box { margin-top: 12px; padding: 12px; background: var(--bg); border-radius: var(--radius-sm); animation: slideDown 0.2s ease; }
.reply-box textarea { min-height: 56px; font-size: 14px; padding: 10px 12px; width: 100%; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); outline: none; resize: vertical; }
.reply-act { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }

/* Empty */
.empty { text-align: center; padding: 60px 20px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn 0.2s ease; }
.modal .modal-box { background: white; border-radius: var(--radius); padding: 28px 24px; width: 100%; max-width: 360px; animation: slideUp 0.3s ease; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 17px; font-weight: 600; }
.modal-x { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; padding: 0 4px; }
.modal-x:hover { color: var(--text); }

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.app-footer { text-align: center; padding: 20px; color: var(--text-muted); font-size: 12px; }

/* Toast notification */
.toast-notif {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    padding: 20px 36px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    z-index: 9999;
    animation: notifPop 2s ease forwards;
    box-shadow: 0 12px 48px rgba(0,184,148,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    text-align: center;
}

.toast-notif .notif-icon {
    font-size: 42px;
}

.toast-notif .notif-text {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes notifPop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    25% { transform: translate(-50%, -50%) scale(1); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9) translateY(-20px); }
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 50px; }

@media (max-width: 480px) {
    .user-page { padding: 16px 12px 30px; }
    .send-gradient { padding: 28px 20px 22px; }
    .send-body { padding: 16px 20px 20px; }
}

/* ===== PUBLIC FEED ===== */
.public-feed { width: 100%; max-width: 380px; margin-top: 24px; }
.pub-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--text-dim); }
.pub-badge { background: var(--green-soft); color: var(--green); padding: 2px 10px; border-radius: 50px; font-size: 11px; font-weight: 500; }
.pub-card { background: white; border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pub-q { display: flex; gap: 12px; padding: 16px 16px 10px; }
.pub-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; color: var(--accent); }
.pub-body { flex: 1; min-width: 0; }
.pub-name { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 3px; }
.pub-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); word-wrap: break-word; }
.pub-a { display: flex; gap: 12px; padding: 10px 16px 16px; margin-left: 44px; border-top: 1px solid var(--border-light); }
.pub-a-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--pink)); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; color: white; }
.pub-a-body { flex: 1; min-width: 0; }
.pub-a-name { font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 3px; }
.pub-a-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); word-wrap: break-word; }
.pub-cta { margin-top: 16px; text-align: center; }
.pub-cta a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.pub-footer { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-muted); padding-bottom: 24px; }
.pub-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* ===== PHOTO UPLOAD ===== */
.send-photo-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.send-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.2s;
}
.send-photo:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.send-photo-info {
    flex: 1;
    min-width: 0;
}
.send-photo-info .send-input-wrap {
    margin-bottom: 0 !important;
}

/* ===== MSG PHOTO ===== */
.msg-photo-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.msg-photo-row textarea {
    flex: 1;
}
.msg-photo-btn {
    width: 44px;
    border-radius: 12px;
    background: var(--bg);
    border: 1.5px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.msg-photo-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.msg-photo-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px;
    background: var(--bg);
    border-radius: 10px;
    width: fit-content;
    position: relative;
}
.msg-photo-del {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -4px;
}

/* ===== HIDDEN UTILITY ===== */
.hidden { display: none !important; }

/* ===== REPLY PHOTO ===== */
.re-photo-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg);
    border: 1.5px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.re-photo-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.re-photo-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px;
    background: var(--bg);
    border-radius: 8px;
    width: fit-content;
    position: relative;
}
.re-photo-del {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -3px;
    right: -3px;
}

/* ===== NEW MODERN DASHBOARD ===== */

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

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

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: opacity 0.2s;
}

.profile-avatar:hover {
    opacity: 0.85;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-initial {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.profile-edit-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    font-size: 11px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* Link Card */
.link-card {
    background: white;
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.link-row input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 13px;
    font-family: var(--font);
    outline: none;
    min-width: 0;
}

.link-copy-btn {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
    transition: opacity 0.2s;
}

.link-copy-btn:hover {
    opacity: 0.9;
}

/* Prompt Card */
.prompt-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-light);
}

.prompt-card:hover {
    border-color: var(--accent-soft);
}

.prompt-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.prompt-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prompt-edit-icon {
    font-size: 14px;
    opacity: 0.25;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.prompt-card:hover .prompt-edit-icon {
    opacity: 0.7;
}

/* Prompt Editor */
.prompt-editor-box {
    background: white;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    animation: slideDown 0.2s ease;
}

.prompt-editor-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.prompt-editor-row textarea {
    flex: 1;
    min-height: 56px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    resize: vertical;
}

.dice-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.dice-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.prompt-editor-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-primary-sm {
    padding: 8px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: white;
    border: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-primary-sm:hover { opacity: 0.9; }

.btn-ghost-sm {
    padding: 8px 20px;
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-ghost-sm:hover { background: var(--bg); color: var(--text-dim); }

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.stat-item {
    background: white;
    border-radius: var(--radius);
    padding: 16px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-num {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Messages Section Header */
.msg-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.msg-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.msg-count {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* Message Cards */
.msg-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.unread-card {
    border-color: var(--accent) !important;
    border-width: 1.5px !important;
    background: #fff9f8 !important;
}

.msg-header {
    display: flex;
    gap: 12px;
}

.msg-sender-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--accent);
}

.msg-sender-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.msg-sender-initial {
    font-weight: 700;
    font-size: 15px;
    color: var(--accent);
}

.msg-sender-emoji {
    font-size: 18px;
}

.msg-content-wrap {
    flex: 1;
    min-width: 0;
}

.msg-sender-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.msg-sender-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.msg-badge-new {
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.msg-photo-thumb {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    display: block;
    margin-bottom: 4px;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.msg-body-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
    word-wrap: break-word;
}

.msg-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.msg-reply-box {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--green-soft);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--green);
}

.msg-reply-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
}

/* Actions */
.msg-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.action-btn {
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.action-reply {
    color: var(--accent);
    font-weight: 600;
}
.action-reply:hover { background: var(--accent-soft); }

.action-delete {
    color: var(--red);
}
.action-delete:hover { background: rgba(225,112,85,0.08); }

/* Reply Section */
.reply-section {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    animation: slideDown 0.2s ease;
}

.reply-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.reply-input-row textarea {
    flex: 1;
    min-height: 56px;
    padding: 10px 12px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    resize: vertical;
}

.reply-photo-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: white;
    border: 1.5px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.reply-photo-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.re-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px;
    background: white;
    border-radius: 8px;
    width: fit-content;
    position: relative;
}

.re-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.re-preview-del {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -3px;
    right: -3px;
}

.reply-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== SEND PAGE (CLEAN REDESIGN) ===== */
.send-header {
    border-radius: 20px 20px 0 0;
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.send-header::before {
    content: '';
    position: absolute;
    top: -30%; left: -30%; width: 160%; height: 160%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.header-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    border: 2px solid rgba(255,255,255,0.2);
    overflow: hidden;
    position: relative; z-index: 1;
}

.header-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.header-avatar-txt { font-size: 24px; font-weight: 700; color: white; }
.header-name { font-size: 18px; font-weight: 700; color: white; position: relative; z-index: 1; }
.header-bio { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; position: relative; z-index: 1; }

.header-prompt {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 7px 16px; border-radius: 50px;
    margin-top: 14px; cursor: pointer;
    position: relative; z-index: 1;
    transition: background 0.2s;
}
.header-prompt:hover { background: rgba(255,255,255,0.25); }
.header-prompt-dice { font-size: 16px; }
.header-prompt-text { font-size: 13px; font-weight: 500; color: white; }

/* Form */
.send-form {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0 0 20px 20px;
    padding: 18px 20px 20px;
    box-shadow: var(--shadow-sm);
}

/* Sender row */
.sender-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.sender-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px dashed var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer; flex-shrink: 0;
    overflow: hidden; transition: all 0.2s;
}
.sender-avatar:hover { border-color: var(--accent); background: var(--accent-soft); }

.sender-input {
    flex: 1;
    display: flex; align-items: center;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 50px; padding: 0 14px;
}
.sender-input:focus-within { border-color: var(--accent); }
.sender-at { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-right: 4px; }
.sender-input input {
    flex: 1; background: none !important; border: none !important;
    padding: 10px 0 !important; font-size: 14px;
    color: var(--text); outline: none; font-family: var(--font);
}
.sender-input input::placeholder { color: var(--text-muted); }

/* Message area */
.message-area {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.message-area textarea {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 80px;
}
.message-area textarea:focus { border-color: var(--accent); }
.message-area textarea::placeholder { color: var(--text-muted); }

.photo-btn {
    width: 42px;
    border-radius: 12px;
    background: var(--bg);
    border: 1.5px dashed var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer; flex-shrink: 0;
    transition: all 0.2s;
}
.photo-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Photo preview */
.photo-preview {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px; padding: 6px;
    background: var(--bg); border-radius: 10px;
    width: fit-content; position: relative;
}
.photo-preview-img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.photo-preview-del {
    background: rgba(0,0,0,0.5); color: white; border: none;
    width: 20px; height: 20px; border-radius: 50%; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    position: absolute; top: -4px; right: -4px;
}

/* Send actions */
.send-actions {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.send-count { font-size: 12px; color: var(--text-muted); }
.send-submit {
    padding: 10px 28px; border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: white; border: none; font-family: var(--font);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.send-submit:hover { box-shadow: 0 4px 16px rgba(201,21,45,0.25); }
.send-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Public feed */
.public-feed { width: 100%; max-width: 380px; margin-top: 24px; }
.feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.feed-head span:first-child { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.feed-head-badge { background: var(--green-soft); color: var(--green); padding: 2px 10px; border-radius: 50px; font-size: 11px; font-weight: 500; }

.feed-msg {
    background: white; border: 1px solid var(--border-light);
    border-radius: 14px; margin-bottom: 10px; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.feed-msg-q { display: flex; gap: 12px; padding: 14px 14px 8px; }
.feed-msg-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0; overflow: hidden;
}
.feed-msg-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.feed-msg-txt { font-weight: 700; color: var(--accent); font-size: 14px; }
.feed-msg-body { flex: 1; min-width: 0; }
.feed-msg-name { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 2px; }
.feed-photo-thumb { max-width: 150px; max-height: 150px; border-radius: 10px; display: block; margin-bottom: 4px; cursor: pointer; }
.feed-msg-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); word-wrap: break-word; }

.feed-msg-a {
    display: flex; gap: 12px;
    padding: 8px 14px 14px; margin-left: 44px;
    border-top: 1px solid var(--border-light);
}
.feed-a-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0; overflow: hidden;
}
.feed-a-body { flex: 1; min-width: 0; }
.feed-a-name { font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.feed-a-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); word-wrap: break-word; }

.feed-cta { margin-top: 16px; text-align: center; }
.feed-cta a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }

.pub-footer { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-muted); padding-bottom: 24px; }
.pub-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* ===== SEARCH BOX ===== */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 0 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-icon {
    font-size: 14px;
    opacity: 0.4;
    flex-shrink: 0;
}
.search-input {
    flex: 1;
    border: none !important;
    background: none !important;
    padding: 11px 0 !important;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
}
.search-input::placeholder {
    color: var(--text-muted);
}

/* ===== DELETE ACCOUNT ===== */
.delete-account-row {
    text-align: center;
    margin-bottom: 14px;
    padding-top: 4px;
}
.delete-account-btn {
    background: none;
    border: 1px solid rgba(225,112,85,0.2);
    color: var(--red);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.5;
}
.delete-account-btn:hover {
    opacity: 1;
    background: rgba(225,112,85,0.05);
    border-color: var(--red);
}

/* Strong red visual theme */
html, body { background: #ffffff; background-image: none; }
.navbar { background: rgba(255,241,242,.9); border-bottom-color: rgba(201,21,45,.12); }
.nav-btn-primary, .story-btn-primary, .send-submit, .pub-send {
    background: linear-gradient(135deg, #b80f2a 0%, #e11d3f 55%, #ff3b47 100%);
    box-shadow: 0 7px 20px rgba(201,21,45,.24);
}
.home-kocok { border-color: rgba(201,21,45,.18); background: linear-gradient(145deg, #fff 0%, #fff0f2 100%); }
.home-kocok-btn { background: linear-gradient(135deg, #c9152d, #ff3b47); color:#fff; border-color:transparent; }
.send-card, .auth-card, .profile-card, .message-card, .pub-feed-card { border-color:rgba(201,21,45,.1); }

/* Square story card with message form underneath */
.send-card {
    width:100%;
    max-width:380px;
    display:flex;
    flex-direction:column;
    gap:14px;
    background:transparent;
    border:0;
    box-shadow:none;
    overflow:visible;
}
.send-header {
    width:100%;
    aspect-ratio:1 / 1;
    min-height:0;
    padding:30px 26px;
    border-radius:24px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    box-shadow:0 16px 36px rgba(160,15,39,.22);
}
.send-header::after {
    content:'MBG • MESSAGE BLIND GUEST';
    position:absolute;
    left:0; right:0; bottom:18px;
    color:rgba(255,255,255,.55);
    font-size:9px;
    font-weight:700;
    letter-spacing:1.4px;
    z-index:1;
}
.header-avatar { width:72px; height:72px; margin-bottom:12px; border:3px solid rgba(255,255,255,.38); }
.header-avatar-txt { font-size:28px; }
.header-name { font-size:20px; }
.header-bio { max-width:280px; font-size:13px; color:rgba(255,255,255,.75); }
.header-prompt {
    max-width:300px;
    margin-top:18px;
    padding:10px 17px;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.16);
    text-align:center;
}
.header-prompt-text { line-height:1.4; }
.send-form {
    width:100%;
    padding:20px;
    border:1px solid rgba(201,21,45,.11);
    border-radius:20px;
    background:#fff;
    box-shadow:0 8px 24px rgba(91,23,35,.07);
}
@media (max-width:420px) {
    .user-page { padding:12px 12px 36px; }
    .send-card { gap:12px; }
    .send-header { border-radius:21px; padding:24px 20px; }
    .send-form { border-radius:18px; padding:17px; }
    .header-avatar { width:66px; height:66px; }
}

/* Instagram Story-style profile and prompt */
.send-header { justify-content:center; padding:84px 28px 58px; }
.story-user-row {
    position:absolute;
    top:20px;
    left:20px;
    right:20px;
    z-index:2;
    display:flex;
    align-items:center;
    gap:11px;
    text-align:left;
}
.story-user-row .header-avatar {
    width:46px;
    height:46px;
    margin:0;
    flex:none;
    border:2px solid rgba(255,255,255,.85);
    box-shadow:0 2px 10px rgba(72,0,12,.18);
}
.story-user-row .header-avatar-txt { font-size:18px; }
.story-user-info { min-width:0; }
.story-user-row .header-name {
    font-size:15px;
    line-height:1.25;
    font-weight:700;
    color:#fff;
    text-shadow:0 1px 3px rgba(70,0,12,.2);
}
.story-user-row .header-bio {
    max-width:260px;
    margin-top:2px;
    overflow:hidden;
    color:rgba(255,255,255,.76);
    font-size:11px;
    line-height:1.25;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.send-header .header-prompt {
    width:100%;
    max-width:330px;
    min-height:130px;
    margin:0;
    padding:22px 18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:20px;
    background:rgba(255,255,255,.13);
    box-shadow:0 8px 28px rgba(92,0,17,.12);
}
.send-header .header-prompt-dice { font-size:20px; line-height:1; }
.send-header .header-prompt-text {
    color:#fff;
    font-size:25px;
    line-height:1.22;
    font-weight:750;
    letter-spacing:-.45px;
    text-wrap:balance;
    text-shadow:0 2px 8px rgba(80,0,14,.18);
}
@media (max-width:420px) {
    .send-header { padding:76px 22px 52px; }
    .story-user-row { top:17px; left:17px; right:17px; gap:9px; }
    .story-user-row .header-avatar { width:42px; height:42px; }
    .send-header .header-prompt { min-height:118px; padding:18px 14px; }
    .send-header .header-prompt-text { font-size:22px; }
}

/* MBG landing page */
.nav-inner { max-width:900px; }
.landing {
    width:min(900px, 100%);
    min-height:calc(100vh - 110px);
    margin:0 auto;
    padding:64px 24px 42px;
    display:grid;
    grid-template-columns:minmax(0, 1.08fr) minmax(300px, .92fr);
    align-items:center;
    gap:64px;
}
.landing-hero { text-align:left; }
.landing-badge {
    width:max-content;
    display:flex; align-items:center; gap:8px;
    margin-bottom:24px; padding:7px 12px;
    border:1px solid rgba(201,21,45,.14); border-radius:999px;
    background:rgba(255,255,255,.7); color:#8f2335;
    font-size:11px; font-weight:700;
}
.landing-badge span { color:#e11d3f; font-size:10px; }
.landing-mark {
    width:58px; height:58px; margin-bottom:18px;
    display:flex; align-items:center; justify-content:center;
    border-radius:17px;
    background:linear-gradient(145deg,#a80f27,#e11d3f 58%,#ff4655);
    color:#fff; font-size:17px; font-weight:850; letter-spacing:.5px;
    box-shadow:0 12px 28px rgba(201,21,45,.25);
    transform:rotate(-3deg);
}
.landing h1 { margin:0; color:#27181c; font-size:clamp(42px,6vw,64px); line-height:1.02; font-weight:850; letter-spacing:-2.7px; }
.landing h1 span { background:linear-gradient(100deg,#b60e2a,#f02d46); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.landing-copy { max-width:500px; margin:20px 0 0; color:#77666a; font-size:16px; line-height:1.7; }
.landing-actions { margin-top:28px; display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.landing-primary {
    min-width:184px; height:50px; padding:0 19px;
    display:flex; align-items:center; justify-content:space-between; gap:20px;
    border-radius:14px; background:linear-gradient(135deg,#b80f2a,#ed2745);
    color:#fff; text-decoration:none; font-size:14px; font-weight:750;
    box-shadow:0 10px 24px rgba(201,21,45,.23); transition:.2s;
}
.landing-primary:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(201,21,45,.3); }
.landing-primary span { font-size:19px; font-weight:400; }
.landing-login { color:#75666a; font-size:12px; text-decoration:none; }
.landing-login b { color:#bd1831; }
.landing-features { margin-top:30px; display:flex; gap:10px; flex-wrap:wrap; }
.landing-features span { padding:7px 10px; border:1px solid #f1dadd; border-radius:9px; background:rgba(255,255,255,.65); color:#806d71; font-size:10px; font-weight:650; }
.prompt-demo {
    position:relative; padding:24px;
    border:1px solid rgba(201,21,45,.11); border-radius:26px;
    background:rgba(255,255,255,.84);
    box-shadow:0 24px 60px rgba(92,23,35,.11);
    backdrop-filter:blur(15px);
}
.prompt-demo::before { content:''; position:absolute; width:120px; height:120px; top:-32px; right:-25px; border-radius:50%; background:rgba(255,70,85,.1); filter:blur(2px); z-index:-1; }
.prompt-demo-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.prompt-demo-top small { color:#c9152d; font-size:9px; font-weight:850; letter-spacing:1.4px; }
.prompt-demo-top h2 { margin:4px 0 0; color:#34262a; font-size:17px; letter-spacing:-.3px; }
.prompt-dice { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:13px; background:#fff0f2; font-size:19px; }
.prompt-bubble { min-height:150px; padding:22px; display:flex; align-items:center; justify-content:center; border-radius:20px; background:linear-gradient(145deg,#a90e28,#df1938 55%,#ff4655); color:#fff; text-align:center; font-size:21px; line-height:1.4; font-weight:750; letter-spacing:-.35px; box-shadow:0 12px 28px rgba(201,21,45,.2); transition:.2s; }
.prompt-demo .home-kocok-btn { width:100%; height:46px; margin-top:14px; border:0; border-radius:13px; font-family:var(--font); font-size:13px; font-weight:750; cursor:pointer; transition:.2s; }
.prompt-demo .home-kocok-btn:hover { transform:translateY(-1px); box-shadow:0 8px 18px rgba(201,21,45,.2); }
@media (max-width:700px) {
 .landing { min-height:auto; padding:42px 18px 34px; grid-template-columns:1fr; gap:42px; }
 .landing-hero { text-align:center; display:flex; flex-direction:column; align-items:center; }
 .landing-mark { width:54px; height:54px; }
 .landing h1 { font-size:44px; letter-spacing:-2px; }
 .landing-copy { max-width:360px; font-size:14px; }
 .landing-actions { flex-direction:column; width:100%; gap:14px; }
 .landing-primary { width:100%; max-width:310px; }
 .landing-features { justify-content:center; margin-top:24px; }
 .prompt-demo { width:100%; max-width:390px; margin:0 auto; padding:18px; border-radius:22px; }
 .prompt-bubble { min-height:135px; font-size:19px; }
}

/* First-visit welcome modal */
body.modal-open { overflow:hidden; }
.welcome-overlay {
    position:fixed; inset:0; z-index:2000;
    padding:20px;
    display:flex; align-items:center; justify-content:center;
    background:rgba(35,10,16,.58);
    backdrop-filter:blur(8px);
    opacity:0; visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
}
.welcome-overlay.show { opacity:1; visibility:visible; }
.welcome-modal {
    position:relative;
    width:min(390px, 100%);
    padding:30px 24px 20px;
    border:1px solid rgba(255,255,255,.7);
    border-radius:26px;
    background:linear-gradient(155deg,#fff 0%,#fff7f8 100%);
    box-shadow:0 28px 80px rgba(55,5,15,.3);
    text-align:center;
    transform:translateY(18px) scale(.96);
    transition:transform .3s cubic-bezier(.2,.8,.2,1);
    overflow:hidden;
}
.welcome-overlay.show .welcome-modal { transform:translateY(0) scale(1); }
.welcome-modal::before {
    content:''; position:absolute; width:190px; height:190px;
    top:-115px; left:50%; transform:translateX(-50%);
    border-radius:50%; background:rgba(225,29,63,.1);
}
.welcome-close {
    position:absolute; top:13px; right:13px; z-index:2;
    width:34px; height:34px; border:0; border-radius:50%;
    background:#f7e9eb; color:#8e5360;
    font-size:21px; line-height:1; cursor:pointer;
}
.welcome-icon {
    position:relative; z-index:1;
    width:64px; height:64px; margin:0 auto 16px;
    display:flex; align-items:center; justify-content:center;
    border-radius:20px;
    background:linear-gradient(145deg,#b00e29,#ed2745);
    box-shadow:0 12px 26px rgba(201,21,45,.25);
    font-size:28px;
}
.welcome-label { color:#c9152d; font-size:9px; font-weight:850; letter-spacing:1.5px; }
.welcome-modal h2 { margin:7px 0 9px; color:#2d1d21; font-size:23px; line-height:1.25; letter-spacing:-.55px; }
.welcome-modal > p { max-width:310px; margin:0 auto; color:#806e72; font-size:13px; line-height:1.6; }
.welcome-telegram {
    margin-top:22px; padding:13px 14px;
    display:flex; align-items:center; gap:11px;
    border-radius:15px;
    background:linear-gradient(135deg,#168bd2,#27a7e7);
    color:#fff; text-align:left; text-decoration:none;
    box-shadow:0 9px 20px rgba(32,156,219,.22);
    transition:.2s ease;
}
.welcome-telegram:hover { transform:translateY(-2px); box-shadow:0 13px 25px rgba(32,156,219,.3); }
.telegram-icon { width:37px; height:37px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:12px; background:rgba(255,255,255,.18); font-size:20px; transform:rotate(-25deg); }
.welcome-telegram > span:nth-child(2) { flex:1; min-width:0; }
.welcome-telegram b { display:block; font-size:13px; }
.welcome-telegram small { display:block; margin-top:2px; color:rgba(255,255,255,.76); font-size:9px; }
.welcome-telegram strong { font-size:18px; font-weight:400; }
.welcome-later { margin-top:13px; padding:7px 14px; border:0; background:transparent; color:#9a858a; font-family:var(--font); font-size:11px; cursor:pointer; }
.welcome-later:hover { color:#c9152d; }
@media (max-width:420px) {
    .welcome-overlay { padding:15px; align-items:flex-end; }
    .welcome-modal { padding:28px 18px 18px; border-radius:24px; }
    .welcome-modal h2 { font-size:21px; }
}

/* Keep welcome popup centered on every screen size */
@media (max-width:420px) {
    .welcome-overlay { align-items:center; }
}

/* Newly sent message appears instantly */
.feed-msg-new { animation:newMessageIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes newMessageIn {
    from { opacity:0; transform:translateY(-12px) scale(.98); }
    to { opacity:1; transform:translateY(0) scale(1); }
}

/* Refined message success notification */
.toast-notif {
    position:fixed;
    top:22px; left:50%;
    width:min(390px, calc(100% - 28px));
    min-width:0;
    padding:13px 42px 13px 13px;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:12px;
    overflow:hidden;
    border:1px solid rgba(201,21,45,.12);
    border-radius:17px;
    background:rgba(255,255,255,.96);
    color:#332327;
    text-align:left;
    box-shadow:0 16px 45px rgba(67,12,24,.18), 0 2px 8px rgba(67,12,24,.06);
    backdrop-filter:blur(18px);
    z-index:9999;
    transform:translateX(-50%);
    animation:toastEnter .38s cubic-bezier(.2,.8,.2,1) both;
}
.notif-check {
    width:42px; height:42px; flex:none;
    display:flex; align-items:center; justify-content:center;
    border-radius:13px;
    background:linear-gradient(145deg,#b40e29,#ed2745);
    box-shadow:0 7px 16px rgba(201,21,45,.22);
}
.notif-check svg { width:22px; height:22px; fill:none; stroke:#fff; stroke-width:2.7; stroke-linecap:round; stroke-linejoin:round; }
.notif-content { min-width:0; display:flex; flex-direction:column; gap:3px; }
.notif-content strong { color:#2f2024; font-size:13px; line-height:1.25; font-weight:750; }
.notif-content span { color:#8c777c; font-size:10px; line-height:1.35; }
.notif-close {
    position:absolute; top:10px; right:10px;
    width:25px; height:25px;
    border:0; border-radius:50%; background:#f8ecee;
    color:#a16d78; font-size:17px; line-height:1; cursor:pointer;
}
.notif-progress {
    position:absolute; left:0; bottom:0;
    width:100%; height:3px;
    background:linear-gradient(90deg,#b40e29,#ff4655);
    transform-origin:left;
    animation:toastProgress 3.2s linear forwards;
}
.toast-notif.leaving { animation:toastLeave .28s ease forwards; }
@keyframes toastEnter {
    from { opacity:0; transform:translate(-50%,-18px) scale(.97); }
    to { opacity:1; transform:translate(-50%,0) scale(1); }
}
@keyframes toastLeave {
    from { opacity:1; transform:translate(-50%,0) scale(1); }
    to { opacity:0; transform:translate(-50%,-14px) scale(.98); }
}
@keyframes toastProgress { from { transform:scaleX(1); } to { transform:scaleX(0); } }
@media (max-width:480px) { .toast-notif { top:14px; border-radius:15px; } }

/* Message date and time */
.feed-msg-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:4px; }
.feed-msg-meta .feed-msg-name { margin-bottom:0; }
.feed-msg-time { flex:none; color:#b29da2; font-size:9px; font-weight:500; white-space:nowrap; }
@media (max-width:380px) {
    .feed-msg-meta { align-items:flex-start; flex-direction:column; gap:2px; }
}

/* Social-style message layout: caption first, photo underneath */
.feed-msg-text, .feed-a-text, .msg-body-text, .msg-reply-text { margin-bottom:7px; }
.feed-photo-thumb, .msg-photo-thumb { margin-top:3px; margin-bottom:0; }

/* Dashboard story theme picker */
.theme-card { margin:14px 0; padding:18px; border:1px solid rgba(201,21,45,.1); border-radius:18px; background:#fff; box-shadow:0 6px 20px rgba(65,20,30,.05); }
.theme-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; }
.theme-eyebrow { color:#c9152d; font-size:8px; font-weight:850; letter-spacing:1.3px; }
.theme-card-head h3 { margin:4px 0; color:#34262a; font-size:16px; }
.theme-card-head p { margin:0; color:#9b898d; font-size:10px; line-height:1.45; }
.theme-palette-icon { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:#fff0f2; font-size:18px; }
.theme-preview { position:relative; height:156px; padding:16px; display:flex; align-items:center; justify-content:center; border-radius:16px; overflow:hidden; color:#fff; text-align:center; box-shadow:0 10px 24px rgba(33,20,25,.14); transition:background .3s ease; }
.theme-preview::after { content:''; position:absolute; inset:0; background:radial-gradient(circle at 20% 10%,rgba(255,255,255,.2),transparent 42%); }
.theme-preview-profile { position:absolute; top:12px; left:13px; z-index:1; display:flex; align-items:center; gap:7px; }
.theme-preview-profile span { width:25px; height:25px; display:flex; align-items:center; justify-content:center; border:1.5px solid rgba(255,255,255,.75); border-radius:50%; background:rgba(255,255,255,.18); font-size:10px; font-weight:800; }
.theme-preview-profile b { font-size:9px; }
.theme-preview > strong { position:relative; z-index:1; max-width:245px; font-size:18px; line-height:1.25; text-shadow:0 2px 8px rgba(0,0,0,.16); }
.theme-options { margin-top:14px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.theme-option { padding:7px 5px; display:flex; align-items:center; gap:6px; border:1.5px solid #eee5e7; border-radius:11px; background:#fff; color:#79686c; font-family:var(--font); font-size:9px; font-weight:650; cursor:pointer; transition:.18s; }
.theme-option i { width:23px; height:23px; flex:none; border-radius:7px; background:linear-gradient(135deg,var(--c1),var(--c2),var(--c3)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); }
.theme-option:hover { border-color:#dcaab2; transform:translateY(-1px); }
.theme-option.selected { border-color:#d21a37; background:#fff3f5; color:#b3112b; box-shadow:0 0 0 2px rgba(201,21,45,.08); }
.theme-save-btn { width:100%; height:41px; margin-top:12px; border:0; border-radius:11px; background:linear-gradient(135deg,#b80f2a,#ed2745); color:#fff; font-family:var(--font); font-size:12px; font-weight:750; cursor:pointer; box-shadow:0 7px 16px rgba(201,21,45,.18); }
.theme-save-btn:disabled { background:#ded7d9; color:#9d9295; box-shadow:none; cursor:default; }
.theme-status { min-height:14px; margin-top:7px; color:#2f9b6c; font-size:9px; text-align:center; }
@media(max-width:360px){.theme-options{grid-template-columns:repeat(2,1fr)}}

/* Simple admin area */
.admin-body { min-height:100%; background:#f6f7f9; color:#272329; }
.admin-login-wrap { min-height:100vh; padding:24px; display:flex; align-items:center; justify-content:center; }
.admin-login-card { width:min(390px,100%); padding:30px 26px; border:1px solid #ebe7e9; border-radius:22px; background:#fff; box-shadow:0 18px 50px rgba(38,24,29,.1); text-align:center; }
.admin-brand { width:58px; height:58px; margin:0 auto 18px; display:flex; align-items:center; justify-content:center; border-radius:17px; background:linear-gradient(145deg,#a80f27,#ed2745); color:#fff; font-weight:850; box-shadow:0 10px 24px rgba(201,21,45,.22); }
.admin-kicker { color:#c9152d; font-size:9px; font-weight:850; letter-spacing:1.4px; }
.admin-login-card h1 { margin:7px 0 6px; font-size:24px; }
.admin-login-card > p { color:#8f858a; font-size:12px; }
.admin-login-form { margin-top:23px; text-align:left; }
.admin-login-form label { display:block; margin-top:12px; color:#5d5458; font-size:11px; font-weight:700; }
.admin-login-form input { width:100%; height:45px; margin-top:6px; padding:0 13px; border:1.5px solid #e4dfe1; border-radius:11px; outline:none; font:14px var(--font); }
.admin-login-form input:focus { border-color:#d5223e; box-shadow:0 0 0 3px rgba(201,21,45,.08); }
.admin-login-form button { width:100%; height:46px; margin-top:18px; padding:0 16px; display:flex; justify-content:space-between; align-items:center; border:0; border-radius:12px; background:linear-gradient(135deg,#b60e29,#ed2745); color:#fff; font:700 13px var(--font); cursor:pointer; }
.admin-back { display:inline-block; margin-top:18px; color:#97888c; font-size:10px; text-decoration:none; }
.admin-alert { margin:14px 0; padding:10px 12px; border-radius:10px; font-size:11px; }
.admin-alert.error { background:#fff0f2; color:#b2102a; border:1px solid #f4d2d8; }
.admin-alert.success { background:#edf9f3; color:#18734d; border:1px solid #ccebdc; }
.admin-nav { height:60px; padding:0 max(20px,calc((100% - 920px)/2)); display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #e8e4e6; background:#fff; }
.admin-nav-brand { display:flex; align-items:center; gap:9px; color:#292328; text-decoration:none; }
.admin-nav-brand b { padding:7px 9px; border-radius:9px; background:#c9152d; color:#fff; font-size:11px; }
.admin-nav-brand span { font-size:13px; font-weight:700; }
.admin-nav button { padding:7px 12px; border:1px solid #e3dddf; border-radius:9px; background:#fff; color:#756a6e; font:600 10px var(--font); cursor:pointer; }
.admin-main { width:min(920px,calc(100% - 32px)); margin:0 auto; padding:38px 0 60px; }
.admin-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.admin-head h1 { margin:5px 0; font-size:27px; letter-spacing:-.7px; }
.admin-head p { color:#91858a; font-size:11px; }
.admin-total { min-width:100px; padding:13px 18px; display:flex; flex-direction:column; border:1px solid #e9e4e6; border-radius:14px; background:#fff; text-align:center; }
.admin-total strong { color:#c9152d; font-size:23px; }.admin-total span{color:#998e92;font-size:9px}
.admin-search { margin:24px 0 14px; padding:7px 8px 7px 14px; display:flex; align-items:center; gap:9px; border:1px solid #e5e0e2; border-radius:13px; background:#fff; }
.admin-search input { flex:1; min-width:0; border:0; outline:0; font:12px var(--font); }
.admin-search button,.admin-search a { padding:8px 13px; border:0; border-radius:9px; background:#292328; color:#fff; font:650 10px var(--font); text-decoration:none; cursor:pointer; }
.admin-search a { background:#f0edef;color:#776b70; }
.admin-users { overflow:hidden; border:1px solid #e7e2e4; border-radius:17px; background:#fff; }
.admin-list-head { padding:15px 17px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #eee9eb; }
.admin-list-head h2 { font-size:14px; }.admin-list-head span{color:#9d9296;font-size:9px}
.admin-user-row { padding:13px 16px; display:grid; grid-template-columns:40px minmax(0,1fr) auto auto; align-items:center; gap:12px; border-bottom:1px solid #f1edef; }
.admin-user-row:last-child{border-bottom:0}.admin-user-avatar{width:40px;height:40px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background:#fff0f2;color:#c9152d;font-size:13px;font-weight:800}.admin-user-avatar img{width:100%;height:100%;object-fit:cover}
.admin-user-info{min-width:0;display:flex;flex-direction:column;gap:3px}.admin-user-info strong{font-size:12px}.admin-user-info span{overflow:hidden;color:#9b9094;font-size:9px;white-space:nowrap;text-overflow:ellipsis}
.admin-view,.admin-delete{padding:7px 10px;border-radius:8px;font:650 9px var(--font);text-decoration:none;cursor:pointer}.admin-view{background:#f3f1f2;color:#6f6569}.admin-delete{border:1px solid #f0ccd2;background:#fff3f5;color:#bd112d}.admin-empty{padding:45px;text-align:center;color:#a1979a;font-size:12px}
.admin-modal{position:fixed;inset:0;z-index:3000;padding:20px;display:flex;align-items:center;justify-content:center;background:rgba(28,15,19,.58);backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:.2s}.admin-modal.show{opacity:1;visibility:visible}.admin-modal-box{width:min(370px,100%);padding:25px;border-radius:20px;background:#fff;text-align:center;box-shadow:0 25px 70px rgba(20,5,10,.3)}.admin-danger-icon{width:48px;height:48px;margin:0 auto 13px;display:flex;align-items:center;justify-content:center;border-radius:15px;background:#fff0f2;color:#ca1431;font-size:22px;font-weight:850}.admin-modal-box h2{font-size:19px}.admin-modal-box>p{margin:7px 0;color:#897b80;font-size:11px;line-height:1.5}.admin-confirm-hint{padding-top:8px}.admin-modal-box input[type=text]{width:100%;height:42px;padding:0 12px;border:1.5px solid #e4dfe1;border-radius:10px;outline:0;text-align:center;font:700 13px var(--font)}.admin-modal-actions{margin-top:13px;display:flex;gap:8px}.admin-modal-actions button{flex:1;height:40px;border:0;border-radius:10px;font:700 10px var(--font);cursor:pointer}.admin-cancel{background:#f1eef0;color:#6f6368}.admin-confirm-delete{background:#c9152d;color:#fff}.admin-confirm-delete:disabled{background:#ddd6d8;color:#9b9194;cursor:default}
@media(max-width:600px){.admin-main{width:min(100% - 20px,920px);padding-top:25px}.admin-head{align-items:flex-end}.admin-head h1{font-size:22px}.admin-total{min-width:82px;padding:10px}.admin-user-row{grid-template-columns:36px minmax(0,1fr) auto;gap:9px}.admin-user-avatar{width:36px;height:36px}.admin-view{display:none}.admin-delete{padding:7px 8px}}

/* Multiple replies */
.msg-reply-box + .msg-reply-box { margin-top:7px; }
.msg-reply-head, .feed-reply-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:5px; }
.msg-reply-head strong { color:#b5142e; font-size:9px; }
.msg-reply-head time, .feed-reply-meta time { color:#aa999e; font-size:8px; white-space:nowrap; }
.feed-reply-meta .feed-a-name { margin-bottom:0; }

/* Verified account badge */
.verified-badge { width:17px; height:17px; margin-left:4px; display:inline-flex; vertical-align:-3px; filter:drop-shadow(0 1px 2px rgba(0,102,204,.2)); }
.verified-badge svg { width:100%; height:100%; overflow:visible; }
.verified-badge svg > path:first-child { fill:#1689ed; }
.verified-badge .verified-check { fill:none; stroke:#fff; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.verified-badge-dashboard { width:18px; height:18px; vertical-align:-4px; }
.admin-user-row { grid-template-columns:40px minmax(0,1fr) auto auto auto; }
.admin-user-info strong { display:flex; align-items:center; gap:4px; }
.admin-verified-dot { width:15px; height:15px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#1689ed; color:#fff; font-size:9px; line-height:1; }
.admin-verify-form { margin:0; }
.admin-verify { padding:7px 9px; border:1px solid #b9dfff; border-radius:8px; background:#eef8ff; color:#0875cf; font:650 9px var(--font); cursor:pointer; white-space:nowrap; }
.admin-verify.active { border-color:#d8dce1; background:#f4f5f6; color:#6d747c; }
@media(max-width:600px){.admin-user-row{grid-template-columns:36px minmax(0,1fr) auto auto}.admin-view{display:none}}

/* Refined verified rosette */
.verified-badge { width:18px; height:18px; margin-left:5px; flex:none; filter:drop-shadow(0 1px 2px rgba(0,90,190,.24)); }
.verified-badge .verified-shape { fill:#1d9bf0; }
.verified-badge .verified-check { fill:#fff; stroke:none; }

/* Social-media white public template with theme-aware borders */
body.public-page-body {
    background:#fff;
}
.public-page-body .app-wrapper,
.public-page-body .user-page {
    background:#fff;
}
.public-page-body .send-header {
    border:2px solid var(--story-c2);
    box-shadow:0 14px 34px color-mix(in srgb, var(--story-c2) 22%, transparent);
}
.public-page-body .send-form,
.public-page-body .feed-msg {
    background:#fff;
    border-color:color-mix(in srgb, var(--story-c2) 34%, #fff);
    box-shadow:0 5px 18px color-mix(in srgb, var(--story-c2) 8%, transparent);
}
.public-page-body .sender-avatar,
.public-page-body .sender-input,
.public-page-body .message-area textarea,
.public-page-body .photo-btn {
    border-color:color-mix(in srgb, var(--story-c2) 28%, #e6e6e6);
    background:color-mix(in srgb, var(--story-c3) 5%, #fff);
}
.public-page-body .sender-input:focus-within,
.public-page-body .message-area textarea:focus,
.public-page-body .sender-avatar:hover,
.public-page-body .photo-btn:hover {
    border-color:var(--story-c2);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--story-c2) 12%, transparent);
}
.public-page-body .send-submit {
    background:linear-gradient(135deg,var(--story-c1),var(--story-c2),var(--story-c3));
    box-shadow:0 7px 18px color-mix(in srgb, var(--story-c2) 22%, transparent);
}
.public-page-body .feed-head-badge {
    background:color-mix(in srgb, var(--story-c2) 10%, #fff);
    color:var(--story-c1);
}
.public-page-body .feed-msg-avatar {
    background:color-mix(in srgb, var(--story-c2) 10%, #fff);
    color:var(--story-c1);
}
.public-page-body .feed-msg-a {
    border-top-color:color-mix(in srgb, var(--story-c2) 16%, #eee);
}
.public-page-body .feed-a-avatar {
    background:linear-gradient(135deg,var(--story-c1),var(--story-c2),var(--story-c3));
}
.public-page-body .feed-a-name,
.public-page-body .feed-cta a,
.public-page-body .pub-footer a {
    color:var(--story-c1);
}

/* Enforce a neutral pure-white canvas on public profiles */
html.public-page-html,
html.public-page-html body,
html.public-page-html .app-wrapper,
html.public-page-html .user-page,
html.public-page-html .send-card,
html.public-page-html .public-feed,
html.public-page-html .pub-footer {
    background:#fff !important;
    background-image:none !important;
}
html.public-page-html .send-form,
html.public-page-html .feed-msg,
html.public-page-html .sender-input,
html.public-page-html .sender-avatar,
html.public-page-html .message-area textarea,
html.public-page-html .photo-btn,
html.public-page-html .photo-preview {
    background:#fff !important;
}

/* Verified badge beside owner name on every reply */
.feed-a-name { display:flex; align-items:center; gap:4px; }
.verified-badge-reply { width:14px; height:14px; margin-left:1px; vertical-align:0; }

/* Facebook-like reply username */
.public-page-body .feed-a-name {
    color:#1c1e21 !important;
    font-weight:700;
}

/* Dashboard username changer */
.username-card { margin:10px 0; overflow:hidden; border:1px solid #eee8ea; border-radius:15px; background:#fff; box-shadow:0 3px 12px rgba(45,25,31,.04); }
.username-card-trigger { width:100%; padding:13px 14px; display:flex; align-items:center; gap:11px; border:0; background:#fff; color:#393035; text-align:left; font-family:var(--font); cursor:pointer; }
.username-setting-icon { width:35px; height:35px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:11px; background:#fff0f2; color:#c9152d; font-size:16px; font-weight:800; }
.username-card-trigger > span:nth-child(2) { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.username-card-trigger b { font-size:12px; }.username-card-trigger small{overflow:hidden;color:#a09297;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.username-card-trigger i{color:#b3a8ac;font-size:22px;font-style:normal}
.username-editor { padding:15px; border-top:1px solid #f0ebed; background:#fdfcfc; }
.username-editor label { display:block; margin:0 0 6px; color:#5f5559; font-size:10px; font-weight:700; }
.username-field { height:42px; margin-bottom:5px; padding:0 12px; display:flex; align-items:center; border:1.5px solid #e5dfe1; border-radius:10px; background:#fff; }
.username-field:focus-within { border-color:#d5203d; box-shadow:0 0 0 3px rgba(201,21,45,.07); }
.username-field span { color:#a28f94; font-size:13px; font-weight:700; }.username-field input{flex:1;min-width:0;padding-left:4px;border:0;outline:0;background:transparent;font:13px var(--font)}
.username-hint { display:block; margin-bottom:12px; color:#aaa0a3; font-size:8px; }
.username-password { width:100%; height:42px; padding:0 12px; border:1.5px solid #e5dfe1; border-radius:10px; background:#fff; outline:0; font:13px var(--font); }
.username-password:focus { border-color:#d5203d; box-shadow:0 0 0 3px rgba(201,21,45,.07); }
.username-error { min-height:15px; margin-top:6px; color:#c3132e; font-size:9px; }
.username-actions { display:flex; gap:8px; margin-top:4px; }.username-actions button{height:38px;padding:0 13px;border:0;border-radius:9px;font:700 10px var(--font);cursor:pointer}.username-save{flex:1;background:linear-gradient(135deg,#b70e29,#ed2745);color:#fff}.username-save:disabled{opacity:.65}.username-cancel{background:#f0edef;color:#74686d}

/* Separate profile settings page */
.dashboard-settings-link { margin-bottom:12px; padding:13px 14px; display:flex; align-items:center; gap:11px; border:1px solid #e9e4e6; border-radius:14px; background:#fff; color:#3a3135; text-decoration:none; box-shadow:0 3px 12px rgba(45,25,31,.04); }
.dashboard-settings-link>span { width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#fff0f2;font-size:17px}.dashboard-settings-link>div{flex:1;display:flex;flex-direction:column;gap:3px}.dashboard-settings-link b{font-size:12px}.dashboard-settings-link small{color:#9e9095;font-size:9px}.dashboard-settings-link i{color:#b5aaae;font-size:22px;font-style:normal}
.settings-page { padding:20px 16px 55px; }
.settings-head { margin-bottom:18px; display:flex; align-items:flex-start; gap:12px; }.settings-head>a{width:35px;height:35px;display:flex;align-items:center;justify-content:center;border:1px solid #e8e2e4;border-radius:11px;background:#fff;color:#5f5559;text-decoration:none;font-size:17px}.settings-head span{color:#c9152d;font-size:8px;font-weight:850;letter-spacing:1.3px}.settings-head h1{margin:3px 0;font-size:22px}.settings-head p{color:#96898e;font-size:10px}
.settings-section { margin-bottom:12px; padding:17px; border:1px solid #ebe6e8; border-radius:16px; background:#fff; box-shadow:0 4px 15px rgba(45,25,31,.04); }.settings-section>h2{margin:0 0 13px;font-size:14px}.settings-profile{display:flex;align-items:center;gap:14px}.settings-profile .profile-avatar{margin:0}.settings-profile strong{display:flex;align-items:center;gap:5px;font-size:13px}.settings-profile p{margin-top:4px;color:#9c9094;font-size:9px}.settings-editor-static{padding:0;border:0;background:transparent}.settings-prompt{width:100%;min-height:80px;padding:11px;border:1.5px solid #e5dfe1;border-radius:11px;outline:0;resize:vertical;font:13px var(--font)}.settings-prompt:focus{border-color:#d5203d}.settings-inline-actions{margin-top:9px;display:flex;gap:8px;justify-content:flex-end}.settings-main-btn,.settings-ghost-btn{height:38px;padding:0 14px;border:0;border-radius:9px;font:700 10px var(--font);cursor:pointer}.settings-main-btn{background:linear-gradient(135deg,#b70e29,#ed2745);color:#fff}.settings-ghost-btn{background:#f1edef;color:#71666a}.settings-theme-card{margin:0 0 12px}.settings-danger{border-color:#f0d7db}.settings-danger p{margin:-5px 0 12px;color:#98898e;font-size:10px;line-height:1.5}.settings-danger button{padding:9px 13px;border:1px solid #efc7ce;border-radius:9px;background:#fff2f4;color:#bd112d;font:700 10px var(--font);cursor:pointer}

/* Clickable dice button */
button.prompt-dice {
    padding:0;
    border:1px solid rgba(201,21,45,.08);
    font-family:var(--font);
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}
button.prompt-dice:hover { background:#ffe4e8; transform:translateY(-2px); box-shadow:0 7px 16px rgba(201,21,45,.14); }
button.prompt-dice:active { transform:scale(.94); }
button.prompt-dice:focus-visible { outline:3px solid rgba(201,21,45,.18); outline-offset:2px; }
