@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --zather-purple: #6366f1;
    --zather-dark: #0f172a;
    --zather-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --z-sol: #9945ff;
    --z-sol-light: #f5f0ff;
    --z-indigo: #6366f1;
    --z-muted: #94a3b8;
    --z-slate: #1e293b;
    --z-surface: #f8fafc;
    --z-border: #e2e8f0;
}

/* 1. APP CENTERING & RESET */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    font-family: 'Outfit', sans-serif; 
    background-color: #0f172a; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.app-container { 
    width: 100%; 
    max-width: 430px; 
    height: 100dvh; 
    background: #ffffff; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 2. SCREEN SYSTEM */
.screen { 
    display: none; 
    height: 100%; 
    flex: 1;
    overflow-y: auto; 
    padding: calc(20px + env(safe-area-inset-top)) 20px calc(110px + env(safe-area-inset-bottom)) 20px; 
    z-index: 10; 
}

.screen.active { display: flex; flex-direction: column; }

/* 3. BRANDING & UI */
.z-logo { 
    font-weight: 900; 
    font-style: italic; 
    background: var(--zather-gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    display: inline-block;
}

.z-input { 
    width: 100%; 
    padding: 1.2rem 1.2rem 1.2rem 3.5rem; 
    background: #f8fafc; 
    border: 2px solid #f1f5f9; 
    border-radius: 1.5rem; 
    font-weight: 600; 
    outline: none; 
    transition: all 0.2s; 
    font-size: 16px; 
    -webkit-appearance: none; 
}

.z-input:focus { border-color: var(--zather-purple); background: white; }

.btn-primary { 
    background: var(--zather-purple); 
    color: white; 
    font-weight: 800; 
    padding: 1.2rem; 
    border-radius: 1.5rem; 
    border: none; 
    cursor: pointer; 
    active: scale(0.95);
    transition: transform 0.1s;
}

.btn-outline-indigo { 
    background: white; 
    color: var(--zather-purple); 
    border: 2px solid var(--zather-purple); 
    font-weight: 800; 
    padding: 1.2rem; 
    border-radius: 1.5rem; 
    cursor: pointer; 
}

.btn-danger { 
    background: #fef2f2; 
    color: #ef4444; 
    border: 2px solid #fee2e2; 
    font-weight: 800; 
    padding: 1.2rem; 
    border-radius: 1.5rem; 
    cursor: pointer; 
}

/* 4. NAVIGATION */
.bottom-nav { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    background: white; 
    border-top: 1px solid #f1f5f9; 
    display: flex; 
    justify-content: space-around; 
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom)) 0; 
    z-index: 100; 
}

.nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 4px; 
    color: #94a3b8; 
    font-size: 10px; 
    font-weight: 700; 
    background: none; 
    border: none; 
    cursor: pointer; 
}

.nav-item.active { color: var(--zather-purple); }

/* 5. DISCOVERY CARD SYSTEM */
.zathering-card { border-radius: 3rem; background: var(--zather-dark); position: relative; width: 100%; height: 100%; }

.card-desc-scroll { max-height: 300px; overflow-y: auto !important; padding-right: 8px; margin-bottom: 1.5rem; position: relative; z-index: 30; touch-action: pan-y !important; -webkit-overflow-scrolling: touch; }

.card-desc-scroll::-webkit-scrollbar { width: 4px; }
.card-desc-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 10px; }

/* 6. MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-content { background: white; width: 100%; max-width: 350px; border-radius: 2.5rem; position: relative; overflow: hidden; animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes modal-pop {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* 7. UTILS & MAPS */
#host-map { z-index: 1; min-height: 250px; border-radius: 1.5rem; margin-bottom: 1rem; }
#members-list-container { max-height: 400px; overflow-y: auto; }
#members-list-container::-webkit-scrollbar { width: 4px; }
#members-list-container::-webkit-scrollbar-thumb { background: #f1f5f9; border-radius: 10px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
#btn-single-join { background: white !important; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }
.zathering-card img { pointer-events: none; user-select: none; }
.hidden { display: none !important; }

/* 8. CHATROOM */

/* ── Input area ── */
#screen-chatroom .absolute.bottom-0 {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 7px 12px calc(8px + env(safe-area-inset-bottom)) !important;
    background: white !important;
    height: auto !important;
}
#chat-input { font-weight: 400 !important; color: #1e293b !important; }
.up-row-actions { display: flex; gap: 5px; width: 100%; }
.up-row-input   { display: flex; gap: 7px; width: 100%; align-items: center; }
.up-action-btn  {
    height: 2rem; padding: 0 10px; border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #f1f5f9; background: #f8fafc;
    font-weight: 700; font-size: 10px; cursor: pointer;
}

/* ── Messages container ── */
#chat-messages {
    padding-bottom: 180px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    width: 100% !important;
    overflow-y: auto !important;
}
#chat-messages::-webkit-scrollbar { width: 3px; }
#chat-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* ── Message rows ── */
#chat-messages > div {
    padding: 3px 6px !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 6px !important;
}
#chat-messages > div.justify-end { background: #eef2ff !important; }
#chat-messages div.flex-col { display: block !important; width: 100% !important; max-width: 100% !important; }

/* Strip bubble styling — flat inline layout */
#chat-messages div.bg-indigo-600,
#chat-messages div.bg-white {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: inline !important;
}

/* Username: indigo for self, muted for others */
#chat-messages > div.justify-end   p.cursor-pointer { color: #6366f1 !important; }
#chat-messages > div.justify-start p.cursor-pointer { color: #94a3b8 !important; }
#chat-messages p.cursor-pointer {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    margin-right: 5px !important;
    padding: 0 !important;
    vertical-align: baseline;
}

/* Message text */
#chat-messages p.text-sm {
    display: inline !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    font-weight: 400 !important;
    word-break: break-word !important;
    vertical-align: baseline;
}

/* ── Media ── */
.up-chat-img {
    width: 100px !important;
    max-width: 100px !important;
    border-radius: 10px;
    display: inline-block !important;
    cursor: pointer;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    vertical-align: top;
}

/* ── Toast ── */
#z-toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #0f172a; color: white;
    padding: 12px 22px; border-radius: 9999px;
    font-size: 13px; font-weight: 800;
    z-index: 2000; pointer-events: none;
    opacity: 0; transition: opacity 0.25s, transform 0.25s;
    white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
#z-toast.active { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Event type pills (create screen) ── */
.type-pill {
    padding: 6px 12px; border-radius: 9999px;
    font-size: 11px; font-weight: 800;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc; color: #64748b;
    cursor: pointer; transition: all 0.15s;
    white-space: nowrap;
}
.type-pill.selected {
    background: #6366f1; color: white;
    border-color: #6366f1;
}
.type-pill:active { transform: scale(0.94); }

/* ── Category filter pills (discover screen) ── */
.cat-pill {
    padding: 6px 13px; border-radius: 9999px;
    font-size: 11px; font-weight: 800;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc; color: #64748b;
    cursor: pointer; transition: all 0.15s;
    white-space: nowrap; flex-shrink: 0;
}
.cat-pill.active {
    background: #0f172a; color: white;
    border-color: #0f172a;
}
.cat-pill:active { transform: scale(0.94); }

/* ── @ Mention picker ── */
#up-mention-picker {
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    background: white;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 220px;
    overflow-y: auto;
    z-index: 300;
    padding: 6px 8px;
}
#up-mention-picker::-webkit-scrollbar { width: 3px; }
#up-mention-picker::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
.up-mention-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.12s;
}
.up-mention-item:active { background: #f1f5f9; }
.up-mention-avatar { flex-shrink: 0; width: 32px; height: 32px; }
.up-mention-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1.5px solid #e2e8f0; }
.up-mention-avatar-placeholder { width: 32px; height: 32px; border-radius: 50%; background: #eef2ff; border: 1.5px solid #e2e8f0; }
.up-mention-name { flex: 1; font-size: 12px; font-weight: 900; color: #1e293b; }
.up-mention-host-pill {
    font-size: 8px; font-weight: 900;
    background: #eef2ff; color: #6366f1;
    padding: 2px 7px; border-radius: 9999px;
}

/* ── Mention chip (in messages) ── */
.mention-chip {
    display: inline;
    color: #6366f1;
    font-weight: 900;
    background: #eef2ff;
    border-radius: 4px;
    padding: 0 3px;
    font-size: inherit;
}

/* ── Members bottom sheet ── */
.members-sheet-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.members-sheet-overlay.active { display: flex; }
.members-sheet {
    width: 100%; max-width: 430px;
    background: white;
    border-radius: 2rem 2rem 0 0;
    padding: 12px 20px calc(28px + env(safe-area-inset-bottom));
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    animation: membersSheetUp 0.32s cubic-bezier(0.32, 1.25, 0.64, 1);
}
@keyframes membersSheetUp {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1;   }
}
.members-sheet-handle {
    width: 40px; height: 4px;
    background: #e2e8f0; border-radius: 9999px;
    margin: 0 auto 16px;
    flex-shrink: 0;
}
.members-list-scroll {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.members-list-scroll::-webkit-scrollbar { width: 3px; }
.members-list-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
.members-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.members-row:last-child { border-bottom: none; }
.members-row-avatar {
    position: relative; flex-shrink: 0;
    width: 44px; height: 44px;
    cursor: pointer;
}
.members-avatar-img {
    width: 44px; height: 44px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid #e2e8f0;
}
.members-avatar-placeholder {
    width: 44px; height: 44px;
    border-radius: 50%; background: #eef2ff;
    border: 2px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
}
.members-checkin-badge {
    position: absolute; bottom: 0; right: 0;
    width: 16px; height: 16px;
    background: #16a34a; color: white;
    border-radius: 50%; border: 2px solid white;
    font-size: 7px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.members-row-info {
    flex: 1; min-width: 0; cursor: pointer;
}
.members-name {
    font-size: 13px; font-weight: 900;
    color: #1e293b; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.members-host-badge {
    display: inline-block;
    background: #eef2ff; color: #6366f1;
    font-size: 8px; font-weight: 900;
    padding: 2px 7px; border-radius: 9999px;
    letter-spacing: 0.05em; margin-top: 3px;
}
.members-you-badge {
    display: inline-block;
    background: #f0fdf4; color: #16a34a;
    font-size: 8px; font-weight: 900;
    padding: 2px 7px; border-radius: 9999px;
    letter-spacing: 0.05em; margin-top: 3px;
}
.members-boot-btn {
    flex-shrink: 0;
    height: 28px; padding: 0 12px;
    background: #fff1f2; color: #f43f5e;
    border: 1px solid #fecdd3;
    border-radius: 0.75rem;
    font-size: 10px; font-weight: 900;
    cursor: pointer;
    transition: transform 0.1s, background 0.15s;
}
.members-boot-btn:active { transform: scale(0.93); background: #ffe4e6; }

/* ── Details map ── */
#details-map {
    height: 180px; width: 100%; border-radius: 1.25rem;
    margin-bottom: 12px; border: 2px solid #f1f5f9;
    background: #f8fafc; overflow: hidden;
}

/* ── Check-in badge ── */
.up-checkin-dot {
    display: inline-block;
    color: #16a34a;
    font-size: 8px;
    font-weight: 900;
    margin: 0 4px 0 1px;
    vertical-align: baseline;
}

/* ── GIF picker tiles ── */
.up-gif-tile { width: 100%; height: 90px; border-radius: 0.75rem; cursor: pointer; background: #f8fafc; overflow: hidden; }
.up-gif-tile img { width: 100%; height: 100%; object-fit: cover; }


.up-chat-img {
    max-width: 100px;
    border-radius: 4px !important;
}

/* 9. WALLET SCREEN */
#screen-wallet.active { padding: 0 !important; overflow-y: auto !important; display: flex; flex-direction: column; }

.wallet-hero { background: linear-gradient(135deg, #3730a3 0%, #6366f1 60%, #818cf8 100%); padding: 48px 28px 44px; position: relative; overflow: hidden; flex-shrink: 0; }
.wallet-hero-watermark { font-size: 220px; font-weight: 900; font-style: italic; color: rgba(255,255,255,0.05); position: absolute; right: -10px; top: -30px; line-height: 1; pointer-events: none; user-select: none; }
.wallet-hero-eyebrow { font-size: 10px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 10px; position: relative; }
.wallet-hero-row { display: flex; align-items: flex-end; gap: 6px; line-height: 1; position: relative; }
.wallet-hero-number { font-size: 84px; font-weight: 900; font-style: italic; color: white; line-height: 1; letter-spacing: -2px; }
.wallet-hero-unit { font-size: 28px; font-weight: 900; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.wallet-hero-sub { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; margin-top: 10px; position: relative; }
.wallet-body { padding: 24px 18px 100px; flex: 1; }
.wallet-section-title { font-size: 18px; font-weight: 900; color: #1e293b; margin-bottom: 14px; letter-spacing: 0.01em; }
.wallet-divider { height: 1px; background: #e2e8f0; margin: 22px 0; }

/* Reward cards */
.reward-card { display:flex; align-items:center; gap:14px; background:white; border:1.5px solid #e2e8f0; border-radius:20px; padding:16px 18px; margin-bottom:10px; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.reward-icon { font-size:20px; width:44px; height:44px; background:#f8fafc; border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; border:1px solid #e2e8f0; }
.reward-body { flex:1; }
.reward-title { font-weight:900; font-size:13px; color:#1e293b; }
.reward-desc { font-size:11px; color:#94a3b8; margin-top:2px; font-weight:500; }
.reward-amount { font-size:22px; font-weight:900; font-style:italic; text-align:right; flex-shrink:0; line-height:1; }
.reward-unit { font-size:13px; opacity:0.55; }

/* Transaction cards */
.tx-loading { text-align:center; padding:24px; color:#94a3b8; font-weight:700; font-size:13px; }
.tx-card { display:flex; align-items:center; gap:14px; background:white; border:1.5px solid #e2e8f0; border-radius:20px; padding:16px 18px; margin-bottom:10px; box-shadow:0 2px 8px rgba(0,0,0,0.04); animation:txSlideUp 0.38s ease both; }
@keyframes txSlideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.tx-icon-wrap { width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:20px; }
.tx-body { flex:1; min-width:0; }
.tx-label { font-weight:900; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:#1e293b; }
.tx-desc { font-size:11px; color:#94a3b8; margin-top:3px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tx-time { font-size:10px; color:#cbd5e1; font-weight:700; text-transform:uppercase; margin-top:4px; }
.tx-amount { font-size:28px; font-weight:900; font-style:italic; text-align:right; flex-shrink:0; line-height:1; }
.tx-unit { font-size:14px; opacity:0.45; }

/* Solana section */
.sol-card { background:white; border:1.5px solid #e2e8f0; border-radius:24px; padding:20px 18px 16px; box-shadow:0 2px 12px rgba(153,69,255,0.06); }
.sol-key-display { display:flex; align-items:center; gap:8px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:10px 14px; }
.sol-key-text { flex:1; font-size:13px; font-weight:700; color:#1e293b; font-family:monospace; letter-spacing:0.03em; }
.sol-icon-btn { background:none; border:none; cursor:pointer; color:#94a3b8; padding:4px; border-radius:6px; display:flex; align-items:center; transition:color 0.15s; }
.sol-icon-btn:hover { color:#1e293b; }
.sol-hint { font-size:12px; color:#94a3b8; font-weight:500; line-height:1.5; margin-bottom:14px; }
.sol-inline-form { display:flex; align-items:center; background:#f8fafc; border:2px solid #f1f5f9; border-radius:1.5rem; overflow:hidden; transition:border-color 0.2s,background 0.2s; }
.sol-inline-form:focus-within { border-color:#6366f1; background:white; }
.sol-inline-input { flex:1; min-width:0; font-size:15px; font-family:monospace; font-weight:600; padding:1.1rem 0.8rem 1.1rem 1.2rem; border:none; background:transparent; color:#1e293b; outline:none; letter-spacing:0.02em; }
.sol-inline-input::placeholder { color:#94a3b8; font-family:'Outfit',sans-serif; font-size:15px; letter-spacing:0; font-weight:600; }
.sol-inline-save { background:#6366f1; color:white; font-weight:800; font-size:13px; letter-spacing:0.02em; border:none; padding:11px 22px; margin:6px; border-radius:1.1rem; cursor:pointer; white-space:nowrap; transition:opacity 0.15s; flex-shrink:0; }
.sol-inline-save:active { opacity:0.8; }
.sol-input { width:100%; font-size:13px; font-family:monospace; padding:11px 14px; border:1.5px solid #e2e8f0; border-radius:12px; background:#f8fafc; color:#1e293b; outline:none; transition:border-color 0.15s; }
.sol-input:focus { border-color:#9945ff; }
.sol-divider { height:1px; background:#e2e8f0; margin:18px 0; }
.sol-actions { display:flex; gap:10px; }
.sol-action-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:13px 16px; border-radius:14px; font-weight:800; font-size:14px; cursor:pointer; border:none; transition:opacity 0.15s,transform 0.1s; }
.sol-action-btn:active { opacity:0.8; transform:scale(0.98); }
.sol-action-btn.deposit { background:#ecfdf5; color:#059669; }
.sol-action-btn.withdraw { background:#fffbeb; color:#d97706; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* Wallet modals */
.modal-box { background:white; border-radius:2.5rem; padding:0; width:100%; max-width:360px; opacity:0; transform:scale(0.92) translateY(16px); transition:opacity 0.25s ease,transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.modal-box--open { opacity:1; transform:scale(1) translateY(0); }
.modal-handle-row { display:flex; align-items:center; justify-content:flex-end; padding:16px 16px 0; }
.modal-x-btn { width:32px; height:32px; border-radius:50%; background:#f8fafc; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#94a3b8; transition:background 0.15s; }
.modal-x-btn:active { background:#e2e8f0; }
.modal-content { padding:4px 28px 28px; }
.modal-icon-wrap { width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.modal-title { font-family:'Outfit',sans-serif; font-size:26px; font-weight:900; font-style:italic; color:#1e293b; margin-bottom:8px; }
.modal-body { font-size:14px; color:#94a3b8; font-weight:500; line-height:1.6; margin-bottom:8px; }
.modal-label { font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:0.1em; color:#94a3b8; margin:14px 0 8px; }
.modal-address-box { display:flex; align-items:center; gap:8px; background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:14px; padding:12px 14px; margin-bottom:12px; }
.modal-address-text { flex:1; font-family:monospace; font-size:12px; font-weight:700; color:#1e293b; word-break:break-all; }
.modal-note { font-size:11px; color:#d97706; font-weight:600; background:#fffbeb; border-radius:10px; padding:10px 12px; margin:12px 0 18px; line-height:1.5; }
.modal-close-btn { width:100%; padding:1.1rem; background:#6366f1; color:white; font-weight:900; font-size:15px; border:none; border-radius:1.5rem; cursor:pointer; margin-top:10px; transition:opacity 0.15s; }
.modal-close-btn:active { opacity:0.85; }
.modal-btn-row { display:flex; gap:10px; margin-top:16px; }
.modal-cancel-btn { flex:1; padding:1.1rem; background:#f1f5f9; color:#94a3b8; font-weight:800; font-size:14px; border:none; border-radius:1.5rem; cursor:pointer; transition:opacity 0.15s; }
.modal-cancel-btn:active { opacity:0.8; }
.modal-confirm-btn { flex:1; padding:1.1rem; background:#d97706; color:white; font-weight:900; font-size:14px; border:none; border-radius:1.5rem; cursor:pointer; transition:opacity 0.15s; }
.modal-confirm-btn:active { opacity:0.85; }

/* 10. CONVERSATIONAL CREATE */
.conv-msg-row {
    display: flex; align-items: flex-end; gap: 8px;
    margin-bottom: 10px;
    animation: convFadeIn 0.28s ease both;
}
.conv-zather { justify-content: flex-start; }
.conv-user   { justify-content: flex-end; }
.conv-avatar {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-style: italic; font-size: 13px;
}
.conv-bubble {
    padding: 10px 14px; border-radius: 18px;
    font-size: 14px; font-weight: 600; max-width: 82%; line-height: 1.5;
}
.conv-bubble-zather {
    background: white; color: #1e293b;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.conv-bubble-user {
    background: #6366f1; color: white;
    border-bottom-right-radius: 4px;
}
@keyframes convFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.conv-typing {
    display: flex; gap: 5px; align-items: center; padding: 14px 16px !important;
}
.conv-typing span {
    width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
    animation: convDot 1.2s infinite; flex-shrink: 0;
}
.conv-typing span:nth-child(2) { animation-delay: 0.2s; }
.conv-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes convDot {
    0%,80%,100% { transform: scale(0.6); opacity: 0.4; }
    40%          { transform: scale(1);   opacity: 1; }
}
.conv-chip {
    padding: 7px 14px; background: white; border: 1.5px solid #e2e8f0;
    border-radius: 9999px; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.12s; color: #475569; white-space: nowrap;
}
.conv-chip:active { background: #6366f1; color: white; border-color: #6366f1; transform: scale(0.94); }
.conv-cap-btn {
    width: 54px; height: 54px; border-radius: 16px;
    background: white; border: 2px solid #e2e8f0;
    font-size: 18px; font-weight: 900; color: #1e293b;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.12s;
}
.conv-cap-btn:active { background: #6366f1; color: white; border-color: #6366f1; transform: scale(0.94); }

/* Toast */
.zather-toast { position:fixed; bottom:90px; left:50%; transform:translateX(-50%) translateY(20px); background:#1e293b; color:white; font-size:13px; font-weight:700; padding:12px 22px; border-radius:100px; z-index:9999; opacity:0; transition:opacity 0.25s,transform 0.25s; white-space:nowrap; box-shadow:0 4px 20px rgba(0,0,0,0.2); }
.zather-toast.success { background:#059669; }
.zather-toast.error { background:#ef4444; }
.zather-toast--visible { opacity:1; transform:translateX(-50%) translateY(0); }
