:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-color: #F3F4F6;
    --card-bg: #FFFFFF;
    --text-dark: #111827;
    --text-gray: #6B7280;
    --border-color: #E5E7EB;
    --success: #10B981;
    --danger: #EF4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); overflow-x: hidden; }

/* 🌟 GİRİŞ & KAYIT EKRANI 🌟 */
#auth-screen { height: 100vh; width: 100vw; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #818CF8); position: fixed; top: 0; left: 0; z-index: 9999; }
.auth-card { background: white; padding: 40px; border-radius: 24px; width: 90%; max-width: 420px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); animation: fadeInUp 0.5s ease-out; }
.auth-logo { font-size: 36px; font-weight: 900; color: var(--primary); margin-bottom: 10px; letter-spacing: -1px; }
.auth-subtitle { color: var(--text-gray); margin-bottom: 30px; font-size: 15px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.autocomplete { position: relative; display: block; z-index: 50; }
.autocomplete-items { position: absolute; border: 1px solid var(--border-color); border-top: none; z-index: 99; top: 100%; left: 0; right: 0; background: white; border-radius: 0 0 10px 10px; max-height: 160px; overflow-y: auto; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: left; }
.autocomplete-items div { padding: 12px 15px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #F3F4F6; transition: 0.2s; color: var(--text-dark); font-weight: 500;}
.autocomplete-items div:hover { background-color: #EEF2FF; color: var(--primary); }

/* HEADER & NAVBAR */
header { background-color: var(--card-bg); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color);}
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); cursor: pointer; letter-spacing: -0.5px;}
#mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: var(--text-dark); padding: 5px; }

.container { display: grid; grid-template-columns: 250px 1fr 300px; gap: 24px; padding: 24px 5%; max-width: 1400px; margin: 0 auto; position: relative; }

.sidebar { background: var(--card-bg); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); height: fit-content; display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 95px; }
.sidebar h3 { margin-bottom: 15px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; color: var(--text-gray); }
.menu-item { padding: 12px 16px; margin-bottom: 6px; border-radius: 10px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--text-dark); position: relative; z-index: 10;}
.menu-item:hover, .menu-item.active { background-color: #EEF2FF; color: var(--primary); }
.sidebar-bottom { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.mobile-only-communities { display: none; }

.right-panel { display: flex; flex-direction: column; gap: 20px; }
.sticky-card { position: sticky; top: 95px; }
.community-list { list-style: none; }
.community-list li { padding: 12px 0; border-bottom: 1px solid #F3F4F6; cursor: pointer; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; transition: 0.2s;}
.community-list li:hover { color: var(--primary); transform: translateX(5px); }

.main-feed { display: flex; flex-direction: column; gap: 24px; min-height: 80vh; overflow: hidden; }
.card { background: var(--card-bg); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card h2 { font-size: 20px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; flex-wrap: wrap; gap: 10px;}

.btn-primary, .action-btn, .btn-danger { display: inline-flex; justify-content: center; align-items: center; text-align: center; border: none; padding: 12px 20px; border-radius: 10px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.2s; font-size: 14px; position: relative; z-index: 10; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); } 
.action-btn { background: #EEF2FF; color: var(--primary); }
.action-btn:hover { background: #E0E7FF; transform: translateY(-1px); }
.action-btn:active { transform: scale(0.98); } 
.btn-danger { background: #FEF2F2; color: #DC2626; border: 1px solid #FCA5A5; }
.btn-danger:hover { background: #FEE2E2; }
.btn-danger:active { transform: scale(0.98); } 
.btn-primary *, .action-btn *, .btn-danger * { pointer-events: none; }

.form-group { margin-bottom: 16px; text-align: left; width: 100%;}
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #D1D5DB; border-radius: 10px; outline: none; font-size: 15px; transition: 0.2s; background: #F9FAFB; font-family: inherit;}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

.upload-btn-wrapper { position: relative; overflow: hidden; display: inline-block; width: 100%; margin-bottom:15px; }
.upload-btn-wrapper .btn { border: 2px dashed #D1D5DB; color: var(--text-gray); background-color: #F9FAFB; padding: 20px 20px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.2s;}
.upload-btn-wrapper .btn:hover { border-color: var(--primary); color: var(--primary); background: #EEF2FF; }
.preview-container { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.preview-box { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); position: relative; background: #F3F4F6;}
.preview-box img { width: 100%; height: 100%; object-fit: cover; }

.image-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; height: 100%; scrollbar-width: none; -ms-overflow-style: none; }
.image-gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 100%; scroll-snap-align: start; width: 100%; height: 100%; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-indicators { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none;}
.gallery-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.gallery-dot.active { background: white; }

.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;}

.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 20px;}
@media (max-width: 600px) {
    .market-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

.match-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; }
.match-card { border: 1px solid var(--border-color); padding: 20px; border-radius: 16px; text-align: center; background: white; transition: 0.2s; }
.match-card:hover { border-color: var(--primary); box-shadow: 0 4px 6px rgba(0,0,0,0.05); transform: translateY(-2px); }
.avatar { width: 60px; height: 60px; background-color: #F3F4F6; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; border: 1px solid var(--border-color); }
.match-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.match-card p { font-size: 13px; color: var(--text-gray); margin-bottom: 12px; }

.item-card { cursor: pointer; border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; background: var(--card-bg); display: flex; flex-direction: column; transition: 0.2s;}
.item-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transform: translateY(-3px); border-color: var(--primary); }
.item-img-large { height: 150px; background-color: #F9FAFB; display: flex; align-items: center; justify-content: center; font-size: 48px; border-bottom: 1px solid var(--border-color); overflow: hidden; position: relative;}
@media (max-width: 600px) { .item-img-large { height: 130px; } }

.item-details { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: flex-start;}
.item-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.item-price-large { color: #059669; font-weight: 800; font-size: 16px; }

.local-search-bar { width: 100%; padding: 14px 20px; border: 1px solid var(--border-color); border-radius: 12px; font-size: 15px; outline: none; margin-bottom: 24px; transition: 0.2s; background: #F9FAFB; font-weight: 500;}
.local-search-bar:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

.confessions-feed { display: grid; gap: 12px; width: 100%; margin-top: 20px;}
@media (max-width: 600px) { .confessions-feed { grid-template-columns: 1fr 1fr; } }
@media (min-width: 601px) { .confessions-feed { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

.confess-card { border-radius: 16px; padding: 16px; color: white; box-shadow: 0 4px 15px -5px rgba(0,0,0,0.3); position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; display: flex; flex-direction: column; }
.confess-card:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.4); }
.theme-midnight { background: linear-gradient(135deg, #111827, #374151); }
.theme-love { background: linear-gradient(135deg, #4c1d95, #be185d); }
.theme-drama { background: linear-gradient(135deg, #7f1d1d, #ea580c); }
.confess-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%); pointer-events: none; }

.cc-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; position: relative; z-index: 2; }
.cc-avatar { font-size: 18px; background: rgba(255, 255, 255, 0.1); width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.cc-meta { display: flex; flex-direction: column; gap: 2px; }
.cc-author { font-weight: 800; font-size: 13px; letter-spacing: 0.2px; line-height: 1.1; }
.cc-time { font-size: 10px; color: rgba(255,255,255,0.6); font-weight: 500; }
.cc-tag { font-size: 9px; background: rgba(0,0,0,0.3); padding: 3px 8px; border-radius: 12px; font-weight: 700; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1); display: inline-block; width: fit-content; margin-top: 2px; }
.cc-body { font-size: 13px; line-height: 1.4; font-weight: 500; margin-bottom: 16px; position: relative; z-index: 2; font-style: italic; color: #f9fafb; flex: 1; word-wrap: break-word;}
.cc-footer { display: flex; gap: 6px; position: relative; z-index: 2; flex-wrap: wrap; }
.cc-action-btn { display: flex; align-items: center; justify-content: center; flex: 1; gap: 4px; font-weight: 700; font-size: 11px; color: white; background: rgba(255, 255, 255, 0.1); padding: 8px 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; text-align: center; }

.qa-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; width: 100%; }
.qa-filter-btn { background: #F3F4F6; border: 1px solid transparent; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--text-gray); cursor: pointer; transition: 0.2s; }
.qa-filter-btn.active, .qa-filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qa-card { background: white; border: 1px solid var(--border-color); border-radius: 16px; padding: 16px; margin-bottom: 16px; transition: 0.2s; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 1px 3px rgba(0,0,0,0.02);}
.qa-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1); transform: translateY(-2px); }
.qa-left-stats { display: flex; flex-direction: column; align-items: center; min-width: 60px; flex-shrink: 0; } 
.qa-stat-box { text-align: center; padding: 8px 4px; border-radius: 12px; width: 100%; font-size: 11px; font-weight: 600; color: var(--text-gray); background: #F9FAFB; border: 1px solid var(--border-color);}
.qa-stat-box.answered { background: #D1FAE5; color: #059669; border-color: #34D399; }
.qa-right-content { flex: 1; min-width: 0; }
.qa-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; word-wrap: break-word; overflow-wrap: break-word;}
.qa-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-gray); flex-wrap: wrap; gap: 5px;}
.qa-tag { background: #EEF2FF; color: var(--primary); padding: 4px 10px; border-radius: 12px; font-weight: 700; white-space: nowrap;}

.chat-layout { display: flex; height: 75vh; background: var(--card-bg); border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.chat-sidebar { width: 340px; border-right: 1px solid var(--border-color); overflow-y: auto; background: #FFFFFF; display: flex; flex-direction: column; }
.chat-sidebar-header { padding: 20px; font-weight: 800; font-size: 18px; border-bottom: 1px solid var(--border-color); background: #FFFFFF; position: sticky; top:0; z-index: 10; }
.chat-contact { padding: 16px 20px; border-bottom: 1px solid #F9FAFB; cursor: pointer; display: flex; gap: 16px; align-items: center; transition: 0.2s; position: relative; }
.chat-contact:hover { background: #F9FAFB; }
.chat-contact.active { background: #EEF2FF; border-left: 4px solid var(--primary); padding-left: 16px; }
.chat-contact .avatar { width: 48px; height: 48px; font-size: 22px; margin: 0; flex-shrink: 0; border: none; background: #F3F4F6;}
.chat-contact-info { flex: 1; overflow: hidden; }
.chat-contact-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.chat-contact-name { font-weight: 700; font-size: 15px; color: var(--text-dark); }
.chat-contact-time { font-size: 11px; color: var(--text-gray); font-weight: 600; }
.chat-contact-last { font-size: 13px; color: var(--text-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

.chat-main { flex: 1; display: flex; flex-direction: column; background: #F4F5F7; position: relative; }
.chat-header { padding: 12px 24px; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 16px; z-index: 10; }
.back-btn { display: none; background: none; border: none; font-size: 24px; font-weight: bold; cursor: pointer; color: var(--text-gray); }
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 700; font-size: 16px; color: var(--text-dark); }
.chat-header-status { font-size: 12px; color: #10B981; font-weight: 600; } 
.chat-messages { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,0.05); display: flex; flex-direction: column; word-wrap: break-word; }
.bubble.received { background: #FFFFFF; align-self: flex-start; border-bottom-left-radius: 4px; color: var(--text-dark); }
.bubble.sent { background: #E0E7FF; align-self: flex-end; border-bottom-right-radius: 4px; color: var(--text-dark); }
.msg-text { margin-bottom: 4px; }
.msg-time { font-size: 10px; color: #9CA3AF; align-self: flex-end; font-weight: 600; display: flex; align-items: center; gap: 4px;}
.msg-time .ticks { color: #3B82F6; font-size: 12px;}

.chat-input-area { padding: 16px 24px; background: #FFFFFF; border-top: 1px solid var(--border-color); display: flex; gap: 12px; align-items: center; z-index: 10;}
.chat-input-wrapper { flex: 1; background: #F3F4F6; border-radius: 24px; padding: 8px 16px; display: flex; align-items: center; border: 1px solid transparent; transition: 0.2s;}
.chat-input-wrapper:focus-within { border-color: var(--primary); background: #FFFFFF; }
.chat-input-wrapper input { width: 100%; border: none; background: transparent; outline: none; font-size: 15px; color: var(--text-dark); }
.chat-send-btn { background: var(--primary); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 16px; transition: 0.2s; box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3); }

.community-banner { background: linear-gradient(135deg, #1E3A8A, #4F46E5); padding: 40px 30px; border-radius: 16px; margin-bottom: 24px; color: white; display: flex; justify-content: space-between; align-items: flex-end; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.comm-banner-left h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.comm-banner-left p { font-size: 15px; font-weight: 500; opacity: 0.9; }
.comm-banner-right { text-align: right; }
.member-avatars { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.member-avatars .avatar { width: 36px; height: 36px; font-size: 16px; border: 2px solid white; margin: 0 0 0 -12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.member-avatars .avatar:first-child { margin-left: 0; }
.online-dot { display: inline-block; width: 10px; height: 10px; background: #10B981; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }

.create-post-box { background: var(--card-bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.cp-top { display: flex; gap: 15px; align-items: center; margin-bottom: 16px; }
.cp-top .avatar { width: 44px; height: 44px; margin: 0; font-size: 18px; border: none; }
.cp-top input { flex: 1; background: #F3F4F6; border: 1px solid transparent; border-radius: 24px; padding: 12px 20px; font-size: 15px; outline: none; transition: 0.2s; cursor: pointer;}
.cp-top input:hover { background: #E5E7EB; }
.cp-top input:focus { background: white; border-color: var(--primary); cursor: text; }

.join-faculty-box { text-align: center; padding: 60px 20px; background: white; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.join-faculty-box .icon { font-size: 70px; margin-bottom: 20px; }
.join-faculty-box h2 { font-size: 24px; margin-bottom: 10px; font-weight: 800;}
.join-faculty-box p { color: var(--text-gray); margin-bottom: 25px; line-height: 1.6; font-size: 15px; max-width: 400px; margin-left: auto; margin-right: auto;}

/* AÇILIR PENCERE (MODAL) ESTETİK DÜZELTMESİ */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh; background-color: rgba(17, 24, 39, 0.7); backdrop-filter: blur(4px); overflow-y: auto; padding: 20px; }
.modal.active { display: flex; align-items: flex-start; justify-content: center; }
.modal-content { margin: auto; background-color: #fff; padding: 30px; border-radius: 20px; width: 100%; max-width: 500px; animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #F3F4F6; padding-bottom: 16px; margin-bottom: 24px; }
.modal-header h3 { font-size: 20px; font-weight: 800; color: var(--text-dark);}
.close-btn { font-size: 28px; font-weight: bold; cursor: pointer; color: #9CA3AF; line-height: 1; transition: 0.2s; }
.close-btn:hover { color: var(--text-dark); }
@keyframes slideDown { from { transform: translateY(-20px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* 🌟 YENİ EKLENEN: TAM EKRAN FOTOĞRAF GALERİSİ (LIGHTBOX) 🌟 */
.lightbox { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; touch-action: none; }
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 8px; user-select: none; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 10001; }
.lightbox-prev, .lightbox-next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: auto; padding: 16px; color: white; font-weight: bold; font-size: 24px; transition: 0.3s; background: rgba(0,0,0,0.5); border: none; border-radius: 50%; user-select: none; z-index: 10001; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: rgba(255,255,255,0.2); }
.lightbox-counter { position: absolute; top: 25px; left: 30px; color: white; font-size: 16px; font-weight: bold; z-index: 10001; letter-spacing: 2px; }

@media (max-width: 1024px) {
    .container { grid-template-columns: 1fr; padding: 16px; gap: 16px; overflow-x: hidden; } 
    .right-panel { display: none; }
    .mobile-only-communities { display: block; } 
    header { gap: 15px; padding: 12px 16px;}
    #mobile-menu-btn { display: block; }
    .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 85%; max-width: 320px; z-index: 999; transform: translateX(-100%); border-radius: 0; border:none; box-shadow: 4px 0 24px rgba(0,0,0,0.15); background: white; padding: 24px; transition: transform 0.3s ease;}
    .sidebar.open { transform: translateX(0); }
    .grid-2col { grid-template-columns: 1fr; }
    .chat-layout { height: 82vh; border:none; border-radius: 12px; }
    .chat-sidebar { width: 100%; border-right: none; }
    .chat-main { display: none; width: 100%; }
    .chat-layout.chat-active .chat-sidebar { display: none; }
    .chat-layout.chat-active .chat-main { display: flex; }
    .back-btn { display: block !important; }
    .community-banner { flex-direction: column; align-items: flex-start; gap: 15px; padding: 30px 20px;}
    .comm-banner-right { text-align: left; }
    .member-avatars { justify-content: flex-start; }
}

/* 🌟 YENİ: MESAJ BİLDİRİM BALONU (BADGE) VE OTP GİRİŞ ALANI 🌟 */
.badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: auto;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#verify-code-input {
    text-align: center;
    font-size: 24px !important;
    letter-spacing: 8px;
    font-weight: 900;
    color: var(--primary);
    border: 2px solid var(--primary);
    background: #EEF2FF;
    border-radius: 12px;
    margin: 15px 0;
}

/* 💬 UNI-LOOP TEAM ÖZEL MESAJ STİLİ */
.chat-contact[data-id*="system"] .avatar {
    background: linear-gradient(135deg, #FFD700, #FFA500); 
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.chat-contact[data-id*="system"] .chat-contact-name {
    color: #B45309; 
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}
