/* Karanlık tema — yalnızca html[data-theme="dark"] altında etkin. Açık tema kuralları değişmez. */
html[data-theme="dark"]{color-scheme:dark;
  --ui-bg:#1a1a1a;--ui-card:#222222;--ui-ink:#fff5ef;--ui-ink-2:#f4cdc5;--ui-muted:#b0b0b0;
  --ui-line:#363636;--ui-brand-soft:#4a231c;--ui-brand-line:#404040;--ui-brand:#ff7c62;--ui-brand-strong:#ffb6a7;
  --ui-shadow:0 12px 34px rgba(0,0,0,.45);--ui-shadow-sm:0 2px 8px rgba(0,0,0,.35)}
html[data-theme="dark"]{--d-surface:#222222;--d-raised:#2b2b2b;--d-hover:#323232;--d-line:#363636}
html[data-theme="dark"] body{background:#1a1a1a!important;color:var(--ui-ink)}
/* Yüzeyler */
html[data-theme="dark"] :is(.topbar,.sidebar,.stories-panel,.online-panel,.premium-panel,.strengthen-panel,.referral-panel,.profile-strength-panel,.mfeed-post,.mfeed-composer,.online-card,.recent-card,.discover-view,.visitors-view,.rooms-view,.likes-view,.profile-view,.public-member-view,.messages-view,.messages-layout,.messages-thread,.messages-thread-header,.messages-compose-bar,.messages-inbox,.profile-card,.profile-public-card,.rooms-card,.rooms-safe-note,.discover-card,.likes-card,.visitors-card,.strength-panel,.side-panel,.modal-card,.social-auth-card,.social-modal-card){background:var(--d-surface)!important;border-color:var(--d-line)!important;color:var(--ui-ink)}
html[data-theme="dark"] .topbar{background:rgba(34,34,34,.82)!important;backdrop-filter:blur(14px)}
/* Kontroller */
html[data-theme="dark"] :is(.discover-sort,.discover-filter,.rooms-category,.visitors-period,.likes-tab,.rooms-filter-button,.rooms-search,.profile-tabs,textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=range]),.discover-card-action,.discover-interest-tag,.mfeed-ellipsis){background-color:var(--d-raised)!important;border-color:var(--d-line)!important;color:var(--ui-ink)}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#929292}
html[data-theme="dark"] :is(.discover-sort,.visitors-period){background-image:var(--ui-chevron);filter:none}
html[data-theme="dark"] :is(.rooms-category.active,.likes-tab.is-selected,.discover-filter.is-active,.profile-tab.is-active){background:#602b21!important;border-color:#b96f3f!important;color:#ffe0cc!important}
html[data-theme="dark"] :is(.discover-interest-tag,.profile-preview-interests span){background:#58291f!important;color:#ffe0cc!important;border-color:#8b4032!important}
/* Metin */
html[data-theme="dark"] :is(h1,h2,h3,h4,strong,.brand-label,.discover-card-name,.likes-name,.mfeed-author-link,.mfeed-post-body,.rooms-card h2,.messages-thread-name,#messagesThreadName,.visitors-card-info strong,.profile-card h2,.side-link,.recent-card strong){color:var(--ui-ink)!important}
html[data-theme="dark"] :is(p,small,.recent-card-location,.recent-time,.mfeed-meta,.rooms-card-description,.rooms-card-online,.legal-links a,.visitors-card-status,.messages-day-divider,.messages-thread-presence,#messagesThreadPresence,.profile-preview-caption,.profile-public-about,.discover-city-label,.likes-city,.visitors-city,.visitors-time,.gt-label){color:var(--ui-muted)!important}
html[data-theme="dark"] .gt-tab{color:#f4cdc5;text-shadow:none}
html[data-theme="dark"] .gt-tab.is-active,html[data-theme="dark"] .gt-tab.is-lens{color:#ffcaa6}
html[data-theme="dark"] .gt-glass{background:rgba(46,46,46,.62)!important;border-color:rgba(253,176,124,.22)!important}
html[data-theme="dark"] .side-link.is-active{background:#602b21!important;color:#ffe0cc!important}
html[data-theme="dark"] .side-link{background:transparent}
/* Mesajlar */
html[data-theme="dark"] .messages-bubble-row:not(.mine) .messages-bubble{background:#2e2e2e!important;border-color:#3c3c3c!important;color:var(--ui-ink)}
html[data-theme="dark"] .messages-bubble-footer{color:#dfb2aa}
/* Boş/bilgi kartları */
html[data-theme="dark"] :is(.ui-empty-icon){background:#58291f;color:#ffcaa6}
html[data-theme="dark"] :is(.discover-card-action.discover-visit,.likes-action,.discover-card-action.discover-message){color:#ffcaa6!important}
html[data-theme="dark"] .discover-card:hover,html[data-theme="dark"] .likes-card:hover,html[data-theme="dark"] .visitors-card:hover{border-color:#b96f3f!important;box-shadow:0 8px 26px rgba(242,123,44,.25)}
html[data-theme="dark"] .discover-cover,html[data-theme="dark"] .likes-avatar{box-shadow:0 0 0 3px var(--d-surface),0 0 0 5px rgba(253,176,124,.5),0 10px 26px rgba(0,0,0,.5)}
html[data-theme="dark"] .likes-corner{background:var(--d-raised)!important}
html[data-theme="dark"] .strength-track,html[data-theme="dark"] .profile-progress-track{background:#582a21!important}
html[data-theme="dark"] .legal-links a:hover{color:#ffcaa6}
html[data-theme="dark"] .theme-toggle{border-color:var(--d-line)}
html[data-theme="dark"] :is(.mfeed-composer-title,.discover-reset,.profile-public-city,#profilePublicCity,.profile-online-text,.side-link span){color:var(--ui-ink)!important}
html[data-theme="dark"] :is(.mfeed-subtitle){color:var(--ui-muted)!important}
html[data-theme="dark"] .rooms-card-icon{background:#58291f!important;color:#ffcaa6}
html[data-theme="dark"] .rooms-join,html[data-theme="dark"] .likes-action.likes-message{background:var(--d-raised)!important;border-color:var(--d-line)!important;color:#ffcaa6!important}

html[data-theme="dark"] :is(.icon-button,.account-button,.top-search svg,.mobile-menu-button) {color:var(--ui-ink-2)}
html[data-theme="dark"] .icon-button svg,html[data-theme="dark"] .top-search svg{color:var(--ui-ink-2);stroke:currentColor}
html[data-theme="dark"] .top-search{background:var(--d-raised)!important;border-color:var(--d-line)!important}
html[data-theme="dark"] .gt-glass{border:1px solid rgba(253,176,124,.38)!important;background:linear-gradient(180deg,rgba(253,176,124,.30),rgba(245,112,85,.18))!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.25),0 6px 20px rgba(182,89,27,.4)!important}
html[data-theme="dark"] .gt-glass:before{opacity:.15}
html[data-theme="dark"] .glass-tabbar{background:rgba(34,34,34,.78)}
html[data-theme="dark"] .profile-main-portrait{background:linear-gradient(145deg,#58291f,#2b2b2b)}
html[data-theme="dark"] .profile-portrait-art:before{background:radial-gradient(circle,rgba(253,176,124,.35) 2%,transparent 67%)}
html[data-theme="dark"] .profile-main-portrait .profile-portrait-art svg{stroke:#fdb07c;fill:none}
html[data-theme="dark"] .profile-portrait-art *{--x:0}
html[data-theme="dark"] .profile-avatar-illustration{border-color:var(--d-surface)!important}
html[data-theme="dark"] .profile-main-portrait[data-avatar-profile-id]:not(.has-member-photo){background:linear-gradient(145deg,#58291f,#2b2b2b)!important}
html[data-theme="dark"] .gt-glass:before,html[data-theme="dark"] .gt-glass:after{display:none}
html[data-theme="dark"] :is(.messages-compose-bar input,.messages-compose-bar textarea){background:var(--d-raised)!important;border-color:var(--d-line)!important}
html[data-theme="dark"] :is(.messages-back,.messages-thread-menu,.messages-more-button,.messages-thread-header button){color:var(--ui-ink-2)!important}
html[data-theme="dark"] .messages-thread-header svg{stroke:currentColor}
/* Sohbet sayfası */
html[data-theme="dark"] :is(.chat-app,.chat-people,.chat-header,.chat-input-box,.chat-more-menu,.chat-guest-dialog,.chat-room-dialog,.chat-profile-dialog,.chat-transcript,.chat-composer){background:var(--d-surface)!important;border-color:var(--d-line)!important;color:var(--ui-ink)}
html[data-theme="dark"] .chat-app{background:#1a1a1a!important}
html[data-theme="dark"] :is(.chat-room-icon,#peopleCount,.chat-invite,.chat-guest-dialog .chat-dialog-close,.chat-dialog-close,#chatSwitchButton,.chat-more-menu a,.chat-more-menu button){background:var(--d-raised)!important;color:#ffcaa6!important;border-color:var(--d-line)!important}
html[data-theme="dark"] :is(.chat-header h1,.chat-people-heading strong,.chat-guest-dialog h2,.chat-guest-dialog label,.chat-line strong,.chat-user-copy strong){color:var(--ui-ink)!important}
html[data-theme="dark"] :is(.chat-date,#chatRoomCount,.chat-room-heading span,.chat-guest-sub,.chat-guest-alt,.chat-status,.chat-loading,.chat-user-empty,.chat-people-heading span,.chat-line time,.chat-user-copy small){color:var(--ui-muted)!important}
html[data-theme="dark"] .chat-input-box input{background:transparent!important;border:0!important;color:var(--ui-ink)}
html[data-theme="dark"] .chat-guest-dialog input{background:var(--d-raised)!important;border-color:var(--d-line)!important;color:var(--ui-ink)}
html[data-theme="dark"] :is(.chat-header-button,.chat-mobile-back,.chat-emoji-button,.chat-clip-button){color:var(--ui-ink-2)!important;background:transparent!important}
html[data-theme="dark"] .chat-line:not(.me) .chat-bubble{background:#4a231c!important;color:var(--ui-ink)!important;border-color:#6a3328!important}
html[data-theme="dark"] .chat-dialog-backdrop{background:rgba(14,10,8,.72)}
/* Giriş / üyelik penceresi */
html[data-theme="dark"] :is(.social-auth-dialog,.social-auth-card){background:var(--d-surface)!important;color:var(--ui-ink)!important;border:1px solid var(--d-line)}
html[data-theme="dark"] :is(.social-auth-dialog h2,.social-auth-dialog label,.social-auth-field,.social-auth-brand b,.social-auth-dialog b,.social-auth-dialog p,.social-auth-dialog a,.social-auth-dialog span){color:inherit}
html[data-theme="dark"] .social-auth-dialog :is(input){background:var(--d-raised)!important;border-color:var(--d-line)!important;color:var(--ui-ink)!important}
html[data-theme="dark"] :is(.social-auth-password,.social-google-button,.social-auth-close){background:var(--d-raised)!important;border-color:var(--d-line)!important;color:var(--ui-ink)!important}
html[data-theme="dark"] .social-auth-dialog :is(.social-auth-password button,.social-auth-password svg){color:var(--ui-ink-2);stroke:currentColor}
html[data-theme="dark"] .social-auth-dialog a{color:#fea896!important}
html[data-theme="dark"] .social-auth-brand .brand-accent{color:#fdb07c}
html[data-theme="dark"] :is(.chat-main,.chat-typing,.chat-status,.chat-search-bar,.chat-emojis,.chat-room-option){background:var(--d-surface)!important;border-color:var(--d-line)!important;color:var(--ui-ink)}
html[data-theme="dark"] .chat-main{background:#1a1a1a!important}
html[data-theme="dark"] :is(.chat-typing,.chat-status){background:transparent!important;color:var(--ui-muted)!important}
html[data-theme="dark"] :is(.chat-brand,.chat-people-brand){color:var(--ui-ink)!important;background:transparent!important}
html[data-theme="dark"] .chat-search-bar input{background:transparent!important;color:var(--ui-ink)!important}
html[data-theme="dark"] .chat-line:not(.me) .chat-bubble{background:#4a231c!important}
html[data-theme="dark"] .chat-line.me .chat-bubble{background:var(--ui-grad)!important;color:#fff!important;border-color:transparent!important}
html[data-theme="dark"] :is(.mfeed-post,.stories-panel,.strengthen-panel,.profile-strength-panel,.online-panel,.referral-panel,.premium-panel) :is(span,a,small):not([class*="liked"]):not(.is-liked):not(.premium-button *):not(.referral-share-button *){color:var(--ui-muted)}
html[data-theme="dark"] :is(.mfeed-post,.stories-panel,.strengthen-panel,.online-panel) :is(.is-liked,.is-liked *,.story-add span){color:#ffcaa6}
html[data-theme="dark"] .glass-tabbar{background:linear-gradient(180deg,rgba(58,39,31,.82),rgba(38,26,21,.82));box-shadow:0 14px 36px rgba(0,0,0,.55),inset 0 1px 1px rgba(253,176,124,.25)}
html[data-theme="dark"] .glass-tabbar::before{background:linear-gradient(135deg,rgba(255,202,166,.55),rgba(253,176,124,.08) 40%,rgba(253,176,124,.08) 60%,rgba(255,202,166,.4))}
html[data-theme="dark"] :is(.messages-compose-field,.messages-compose-bar .messages-compose-field){background:var(--d-raised)!important;border-color:var(--d-line)!important}
html[data-theme="dark"] :is(.messages-compose-field input,.messages-compose-field textarea){background:transparent!important;color:var(--ui-ink)!important}
html[data-theme="dark"] .discover-like.liked svg{fill:#fff;stroke:#fff}
/* Profil düzenleme */
html[data-theme="dark"] :is(.profile-section,.profile-edit-card,.profile-completion-card,.profile-progress-card,.profile-question-option,.profile-interest-chip,.profile-interest-add,.profile-section-icon,.profile-photo-card,.profile-privacy-row){background:var(--d-surface)!important;border-color:var(--d-line)!important;color:var(--ui-ink)}
html[data-theme="dark"] :is(.profile-question-option,.profile-interest-chip,.profile-interest-add){background:var(--d-raised)!important}
html[data-theme="dark"] :is(.profile-section-icon){background:#58291f!important;color:#ffcaa6}
html[data-theme="dark"] :is(.profile-section-header,.profile-section-title,legend,.profile-field,.profile-question-option span,.profile-privacy-row strong,.profile-progress-title){color:var(--ui-ink)!important}
html[data-theme="dark"] :is(.profile-char-counter,#profilePhotoCount,#profileAboutCount,.profile-privacy-row small,.profile-photo-hint,.profile-section-desc,.profile-progress-text){color:var(--ui-muted)!important}
html[data-theme="dark"] .profile-question-option input:checked+span{color:#ffe0cc!important}
html[data-theme="dark"] .profile-view :is(details summary){color:var(--ui-ink)}
html[data-theme="dark"] .profile-progress{background:var(--d-raised)!important;border-color:var(--d-line)!important}
html[data-theme="dark"] :is(.profile-progress-heading strong,.profile-progress-percent){color:var(--ui-ink)!important}
html[data-theme="dark"] .profile-progress-heading small{color:var(--ui-muted)!important}
html[data-theme="dark"] .profile-section-content{border-color:var(--d-line)!important;background:transparent}
html[data-theme="dark"] .profile-section-header{background:transparent!important}

/* v2.7 alt çubuk: seçili sekme ikonu turuncu dolu */
html[data-theme="dark"] .gt-tab.is-active svg,html[data-theme="dark"] .gt-tab.is-lens svg{fill:#ff8a4d;fill-opacity:.95;stroke:#ff8a4d}
html[data-theme="dark"] .glass-tabbar .gt-tab.is-active :is(#_gt,.gt-label),html[data-theme="dark"] .glass-tabbar .gt-tab.is-lens :is(#_gt,.gt-label){color:#ff8a4d!important}

/* v3.2.1 hesap menüsü ve bildirim paneli (karanlık) */
html[data-theme="dark"] .account-menu{background:var(--d-surface)!important;border:1px solid var(--d-line)!important;box-shadow:0 14px 34px rgba(0,0,0,.55)!important}
html[data-theme="dark"] .account-menu :is(button,a){color:var(--ui-ink)!important;background:transparent}
html[data-theme="dark"] .account-menu :is(button,a):hover{background:var(--d-raised)!important;color:#ffcaa6!important}
html[data-theme="dark"] :is(.mfeed-notify-panel){background:var(--d-surface)!important;border:1px solid var(--d-line)!important;color:var(--ui-ink)}
html[data-theme="dark"] .mfeed-notify-entry{background:var(--d-raised)!important;color:var(--ui-ink)!important}
html[data-theme="dark"] .mfeed-notify-none{color:var(--ui-muted)}
html[data-theme="dark"] .mfeed-notify-entry span{color:var(--ui-ink)!important}
html[data-theme="dark"] .mfeed-notify-entry small{color:var(--ui-muted)!important}
html[data-theme="dark"] .mfeed-notify-entry:hover,html[data-theme="dark"] .mfeed-notify-entry.is-unread{background:#2b2b2b!important}
