/* Global application theme. The media feed itself deliberately remains black. */
body.allo-light-theme{color-scheme:light;--allo-bg:#f5f7fb;--allo-surface:#fff;--allo-surface-2:#eef3f8;--allo-text:#172033;--allo-muted:#667085;--allo-border:#d6deea;--allo-shadow:0 12px 36px rgba(37,51,75,.14)}

/* Search */
body.allo-light-theme .search-page{background:var(--allo-bg);color:var(--allo-text)}
body.allo-light-theme .search-page-header{background:rgba(245,247,251,.96);border-color:var(--allo-border)}
body.allo-light-theme .search-page-header button,body.allo-light-theme .search-page-submit{color:var(--allo-text)}
body.allo-light-theme .search-page-form{background:var(--allo-surface);border:1px solid var(--allo-border);color:var(--allo-muted)}
body.allo-light-theme .search-page-form input{color:var(--allo-text)}
body.allo-light-theme .search-tag-list button{background:var(--allo-surface-2);color:var(--allo-text)}
body.allo-light-theme .search-history-item{color:var(--allo-text);border-bottom:1px solid var(--allo-border)}
body.allo-light-theme .search-result-label,body.allo-light-theme .search-empty-state{color:var(--allo-muted)}
body.allo-light-theme .search-sort-select{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text)}
body.allo-light-theme .allo-nav{background:rgba(255,255,255,.88);box-shadow:0 -8px 28px rgba(37,51,75,.12)}
body.allo-light-theme .allo-nav button,body.allo-light-theme .allo-nav>a{color:var(--allo-text)}
body.allo-light-theme .allo-nav .allo-nav__publish{color:#fff}

/* Profile */
body.allo-light-theme #profileSection{background:var(--allo-bg);color:var(--allo-text)}
body.allo-light-theme .profile-card,body.allo-light-theme .share-promo-card,body.allo-light-theme .finance-card-modern,body.allo-light-theme .topup-panel,body.allo-light-theme .video-promotion-panel{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;box-shadow:var(--allo-shadow)!important}
body.allo-light-theme .profile-main-info h2,body.allo-light-theme .topup-panel__title,body.allo-light-theme .edit-label{color:var(--allo-text)}
body.allo-light-theme .profile-main-info p,body.allo-light-theme .stat-label,body.allo-light-theme .finance-card-modern p,body.allo-light-theme .video-budget-line,body.allo-light-theme .promotion-field label{color:var(--allo-muted)!important}
body.allo-light-theme .stat-item,body.allo-light-theme .topup-preset,body.allo-light-theme .topup-row input,body.allo-light-theme .promotion-field input,body.allo-light-theme .promotion-field select,body.allo-light-theme .referral-box,body.allo-light-theme .btn-copy{background:var(--allo-surface-2);border-color:var(--allo-border);color:var(--allo-text)}
body.allo-light-theme .stat-value,body.allo-light-theme .ref-input,body.allo-light-theme .topup-status,body.allo-light-theme .promotion-status{color:var(--allo-text)!important}
body.allo-light-theme .btn-back{border-color:var(--allo-border);color:var(--allo-text);background:var(--allo-surface)}
body.allo-light-theme #profileSection [style*="background: #161b22"],body.allo-light-theme #profileSection [style*="background:#161b22"]{background:var(--allo-surface)!important;border-color:var(--allo-border)!important}

/* Upload */
body.allo-light-theme .upload-drawer,body.allo-light-theme .drawer-content,body.allo-light-theme .drawer-header{background:var(--allo-bg);color:var(--allo-text);border-color:var(--allo-border);box-shadow:var(--allo-shadow)}
body.allo-light-theme .drawer-header h3,body.allo-light-theme .marketing-label-title,body.allo-light-theme .placeholder-content p{color:var(--allo-text)}
body.allo-light-theme .section-label,body.allo-light-theme .sub-section-label,body.allo-light-theme .marketing-label-desc{color:var(--allo-muted)}
body.allo-light-theme .form-control-modern,body.allo-light-theme .pill-body,body.allo-light-theme .add-photo-placeholder,body.allo-light-theme .media-upload-wrapper,body.allo-light-theme .marketing-panel-box{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text)}
body.allo-light-theme .pill-hashtag{color:var(--allo-text)}
body.allo-light-theme .pill-body:hover{background:var(--allo-surface-2)}
body.allo-light-theme .upload-drawer [style*="background: #161b22"],body.allo-light-theme .upload-drawer [style*="background:#161b22"],body.allo-light-theme .upload-drawer [style*="background: #0d1117"]{background:var(--allo-surface-2)!important;border-color:var(--allo-border)!important;color:var(--allo-text)!important}
body.allo-light-theme .upload-drawer .form-control-modern,body.allo-light-theme .upload-drawer .phone-field{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;color:var(--allo-text)!important}
body.allo-light-theme .upload-drawer .extra-phones-fade,body.allo-light-theme .upload-drawer .drawer-footer{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;color:var(--allo-text)!important}
body.allo-light-theme .upload-drawer .extra-phones-fade label,body.allo-light-theme .upload-drawer .extra-phones-fade small,body.allo-light-theme .upload-drawer .form-section-modern>.section-label{color:var(--allo-muted)!important}

/* Profile publication cards contain legacy inline dark colors. */
body.allo-light-theme #profileSection .my-videos-section>h4{color:var(--allo-text)!important}
body.allo-light-theme #profileSection .my-video-card{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;box-shadow:var(--allo-shadow)!important}
body.allo-light-theme #profileSection .video-preview-wrapper{background:var(--allo-surface-2)!important}
body.allo-light-theme #profileSection .card-body-modern{background:var(--allo-surface)!important;color:var(--allo-text)!important}
body.allo-light-theme #profileSection .card-body-modern h5{color:var(--allo-text)!important}
body.allo-light-theme #profileSection .card-body-modern small{color:var(--allo-muted)!important}
body.allo-light-theme #profileSection .video-meta-stats{background:var(--allo-surface-2)!important;border-color:var(--allo-border)!important}

/* Auth */
body.allo-light-theme .auth-modern-panel{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text);box-shadow:var(--allo-shadow)}
body.allo-light-theme .auth-modern-panel h2,body.allo-light-theme .auth-modern-panel .text-white{color:var(--allo-text)!important}
body.allo-light-theme .auth-modern-panel .text-gray-300,body.allo-light-theme .auth-modern-panel .text-gray-400,body.allo-light-theme .auth-modern-panel .text-gray-500{color:var(--allo-muted)!important}
body.allo-light-theme .auth-telegram-copy h3{color:var(--allo-text)}body.allo-light-theme .auth-telegram-copy p,body.allo-light-theme .auth-telegram-wait{color:var(--allo-muted)}
body.allo-light-theme .auth-modern-panel input[type="tel"],body.allo-light-theme .auth-modern-panel input[type="text"],body.allo-light-theme .auth-modern-panel input[type="password"]{background:var(--allo-surface-2);border-color:var(--allo-border);color:var(--allo-text)}

/* Contact, gift and share sheets */
body.allo-light-theme .feed-sheet,body.allo-light-theme .share-panel{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;color:var(--allo-text)!important}
body.allo-light-theme .feed-sheet h3,body.allo-light-theme .share-panel h3{color:var(--allo-text)!important}
body.allo-light-theme .feed-sheet-option,body.allo-light-theme .share-copy-button,body.allo-light-theme .share-url{background:var(--allo-surface-2)!important;border-color:var(--allo-border)!important;color:var(--allo-text)!important}
body.allo-light-theme .share-panel>a,body.allo-light-theme .share-panel span{color:inherit}

/* Comment/details panel */
body.allo-light-theme .comment-panel,body.allo-light-theme .comment-panel-header,body.allo-light-theme .comment-panel-footer{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;color:var(--allo-text)}
body.allo-light-theme .comment-panel-header .text-white,body.allo-light-theme .comment-summary h3{color:var(--allo-text)!important}
body.allo-light-theme .comment-summary,body.allo-light-theme .comment-panel [class~="bg-[#161b22]"],body.allo-light-theme .comment-panel [class~="bg-[#0d1117]"],body.allo-light-theme .comment-panel-footer{background:var(--allo-surface-2)!important;border-color:var(--allo-border)!important}
body.allo-light-theme .comment-panel .text-gray-100,body.allo-light-theme .comment-panel [class~="text-[#f0f6fc]"],body.allo-light-theme .comment-panel [class~="text-[#c9d1d9]"]{color:var(--allo-text)!important}
body.allo-light-theme .comment-panel .text-gray-400,body.allo-light-theme .comment-panel [class~="text-[#8b949e]"]{color:var(--allo-muted)!important}
body.allo-light-theme .comment-published-date{color:var(--allo-muted)}
body.allo-light-theme .comment-panel input,body.allo-light-theme .comment-panel textarea{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text)}

/* Report dialog */
.report-overlay{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.68);backdrop-filter:blur(7px)}
.report-panel{width:min(100%,420px);padding:20px;border:1px solid #30363d;border-radius:18px;background:#161b22;color:#f0f6fc;box-shadow:0 20px 60px rgba(0,0,0,.48)}
.report-panel__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.report-panel__header h2{font-size:18px;font-weight:800}.report-panel__header button{font-size:26px;color:#8b949e}
.report-label{display:block;margin:11px 0 6px;color:#aeb8c7;font-size:13px;font-weight:700}
.report-control{width:100%;padding:11px 12px;border:1px solid #30363d;border-radius:10px;background:#0d1117;color:#f0f6fc;resize:vertical}
.report-status{margin-top:10px;color:#f85149;font-size:13px}.report-submit{width:100%;margin-top:16px;padding:12px;border:0;border-radius:10px;background:#e5484d;color:#fff;font-weight:800}.report-submit:disabled{opacity:.55}
body.allo-light-theme .report-panel{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text);box-shadow:var(--allo-shadow)}
body.allo-light-theme .report-control{background:var(--allo-surface-2);border-color:var(--allo-border);color:var(--allo-text)}
body.allo-light-theme .report-label,body.allo-light-theme .report-panel__header button{color:var(--allo-muted)}

@media(prefers-reduced-motion:reduce){.catalog-page,.upload-drawer{transition:none!important}}
.notification-message-text{display:block;margin:3px 0;padding:9px 11px;border-radius:9px;background:rgba(37,99,235,.14);color:inherit;font-style:normal;line-height:1.4;white-space:pre-wrap}.notification-reply{align-self:flex-start;padding:7px 11px;border:0;border-radius:8px;background:#229ed9;color:#fff;font-weight:800}.notification-item{cursor:pointer}
.message-history{display:flex;max-height:300px;flex-direction:column;gap:7px;margin:0 0 12px;padding:10px;overflow-y:auto;border:1px solid #263244;border-radius:12px;background:#0b1220}.message-history-empty{text-align:center;color:#94a3b8!important}.message-bubble{align-self:flex-start;max-width:82%;padding:9px 11px;border-radius:13px 13px 13px 3px;background:#263244;color:#f8fafc}.message-bubble.mine{align-self:flex-end;border-radius:13px 13px 3px 13px;background:#229ed9;color:#fff}.message-bubble span{display:block;white-space:pre-wrap;overflow-wrap:anywhere}.message-bubble small{display:block;margin-top:4px;text-align:right;color:rgba(255,255,255,.68);font-size:10px}.allo-light-theme .message-history{border-color:#dbe3ee;background:#f1f5f9}.allo-light-theme .message-bubble:not(.mine){background:#fff;color:#111827}.allo-light-theme .message-bubble:not(.mine) small{color:#64748b}
.message-compose-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.72);backdrop-filter:blur(7px)}.message-compose-panel{width:min(100%,440px);padding:18px;border:1px solid #334155;border-radius:18px;background:#111827;color:#f8fafc;box-shadow:0 20px 60px rgba(0,0,0,.5)}.message-compose-panel header{display:grid;grid-template-columns:42px 1fr 34px;gap:10px;align-items:center;margin-bottom:14px}.message-compose-panel header>span{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#229ed9;color:#fff}.message-compose-panel h2{font-size:18px;font-weight:900}.message-compose-panel small{color:#94a3b8}.message-compose-panel header button{border:0;background:transparent;color:#94a3b8;font-size:26px}.message-compose-panel textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #334155;border-radius:12px;background:#0b1220;color:#fff;resize:vertical}.message-compose-count{text-align:right;color:#64748b;font-size:11px}.message-compose-panel p{margin:8px 0;color:#22c55e}.message-compose-send{width:100%;margin-top:10px;padding:12px;border:0;border-radius:11px;background:#229ed9;color:#fff;font-weight:900}.message-compose-send:disabled{opacity:.5}.allo-light-theme .message-compose-panel{border-color:#cbd5e1;background:#fff;color:#111827}.allo-light-theme .message-compose-panel textarea{border-color:#cbd5e1;background:#f8fafc;color:#111827}
.notifications-page{position:fixed;inset:0;z-index:9500;overflow-y:auto;background:#080a0e;color:#f8fafc}.notifications-page header{position:sticky;top:0;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:10px;border-bottom:1px solid #303846;background:#11161e}.notifications-page header h2{text-align:center;font-size:18px;font-weight:800}.notifications-page header button{height:40px;border:0;background:transparent;color:inherit}.notifications-page header span{text-align:center;color:#60a5fa}.notifications-page main{width:min(100%,680px);margin:auto;padding:14px}.notification-item{display:flex;width:100%;gap:12px;margin-bottom:9px;padding:13px;border:1px solid #303846;border-radius:12px;background:#11161e;color:inherit;text-align:left}.notification-item.unread{border-color:#2563eb;background:#10213d}.notification-item>i{margin-top:3px;color:#60a5fa}.notification-item span{display:flex;flex-direction:column;gap:5px}.notification-item small{color:#94a3b8}.notifications-empty{text-align:center;padding:50px 15px;color:#94a3b8}.allo-nav-notifications{position:relative}.allo-nav-notifications b{position:absolute;top:4px;right:20%;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#ef4444;color:#fff;font-size:9px;line-height:17px}.allo-light-theme .notifications-page{background:#f4f7fb;color:#111827}.allo-light-theme .notifications-page header,.allo-light-theme .notification-item{border-color:#dbe3ee;background:#fff}.allo-light-theme .notification-item.unread{border-color:#60a5fa;background:#eff6ff}
.notification-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.notification-tabs button{padding:10px;border:1px solid #334155;border-radius:10px;background:#111827;color:#94a3b8;font-weight:800}.notification-tabs button.active{border-color:#229ed9;background:#12354a;color:#fff}.conversation-item{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:11px;align-items:center;margin-bottom:8px;padding:11px;border:1px solid #303846;border-radius:13px;background:#11161e;cursor:pointer}.conversation-item>img{width:52px;height:52px;border-radius:50%;object-fit:cover}.conversation-item>span{min-width:0}.conversation-item strong,.conversation-item span>small,.conversation-item p{display:block}.conversation-item span>small{color:#64748b;font-size:11px}.conversation-item p{margin:4px 0 0;overflow:hidden;color:#cbd5e1;white-space:nowrap;text-overflow:ellipsis}.conversation-item>aside{display:flex;max-width:95px;flex-direction:column;align-items:flex-end;gap:6px}.conversation-item>aside>b{display:grid;min-width:20px;height:20px;place-items:center;border-radius:10px;background:#229ed9;color:#fff;font-size:10px}.conversation-item>aside small{color:#64748b;font-size:9px;text-align:right}.allo-light-theme .notification-tabs button,.allo-light-theme .conversation-item{border-color:#dbe3ee;background:#fff;color:#111827}.allo-light-theme .notification-tabs button.active{background:#e0f2fe;color:#0369a1}.allo-light-theme .conversation-item p{color:#475569}
