:root {
    --primary-color: #7c3aed;
    /* Modern Mor */
    --primary-hover: #6d28d9;
    --bg-color: #f3f4f6;
    /* Açık Gri Arkaplan */
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--card-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    /* İçerik genişliği artırıldı */
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .search-bar {
        display: block;
    }
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Modern Icon Button */
.nav-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.icon-btn {
    background: transparent;
    /* Remove white bg to blend better or keep minimal */
    border: none;
    /* Remove border to avoid the 'oval' look if width/height behaves weirdly */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    /* Removed heavy shadows/borders for cleaner look */
}

.icon-btn:hover {
    background: #f3f4f6;
    /* Subtle hover bg */
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Removed the pulse-ring ::before pseudo-element as it was causing visual clutter/misalignment */

/* Badge Style */
.badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    animation: bounce-badge 2s infinite;
}

@keyframes bounce-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* ===== Main Layout System ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 4rem;
    /* Space at bottom of page */
    margin-top: 64px;
    /* Space for fixed navbar */
}

/* Grid Layout for Profile Page */
.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* Sol 320px, Sağ Kalan */
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    align-items: start;
    /* İçerikler yukarı hizalı */
}

@media (max-width: 850px) {
    .profile-layout {
        grid-template-columns: 1fr;
        /* Mobilde tek sütun */
    }

    /* FIX: Mobilde kartın yapışkanlığını kesin olarak kaldır */
    .sidebar-card {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        margin-bottom: 2rem;
        z-index: 1;
        transform: none !important;
    }
}

/* ===== HOME PAGE (FEED) LAYOUT ===== */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 2rem;
    margin-top: calc(64px + 2rem);
    /* Navbar height + spacing */
    align-items: start;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 320px 1fr;
    }

    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    /* .sidebar-left defaults to hidden on mobile in normal flow, 
       but we need it visible when the drawer is active. */
    .sidebar-left {
        display: none;
    }

    /* When active class is added by JS, force it to show as block (because it's a fixed drawer now) */
    .sidebar-left.active {
        display: block;
    }
}

/* Sidebar Navigation (Left) */
.sidebar-left,
.sidebar-right {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-left .menu-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
    margin-bottom: 0.25rem;
}

.menu-item:hover,
.menu-item.active {
    background: #f3f4f6;
    color: var(--primary-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* Filter Tags Widget */
.filter-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.filter-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(124, 58, 237, 0.08);
    /* Hafif mor */
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
}

/* FEED SECTION (Middle) */
.feed {
    min-width: 0;
}

/* Share Box */
.share-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.share-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar-medium {
    width: 40px;
    height: 40px;
}

.user-avatar-medium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.share-input-wrapper input {
    flex: 1;
    border: none;
    background: var(--bg-color);
    padding: 0.75rem 1rem;
    border-radius: 20px;
    outline: none;
}

.share-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Feed Tabs */
.feed-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab {
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}

.tab.active {
    color: var(--text-main);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* POST CARD Styles */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
}

.more-options {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.more-options:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    font-size: 1rem;
}

.user-role {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    width: fit-content;
    margin-top: 2px;
}

.user-role.seeker {
    background: #e0f2fe;
    color: #0369a1;
}

.user-role.experienced {
    background: #dcfce7;
    color: #15803d;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    /* For anchors */
    display: inline-block;
    /* Helps with clickable area */
}

a.post-time:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-btn {
    border: 1px solid var(--border-color);
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.post-context-badge i {
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-content p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hashtag {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.read-more-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.read-more-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Post Images in Feed */
.image-grid {
    display: flex;
    gap: 0.5rem;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.post-img {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
}

.img-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.interaction-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s;
}

.interaction-btn:hover {
    color: var(--primary-color);
}

/* Comments */
.comments-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.comment {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment.reply {
    margin-left: 3rem;
    margin-top: -0.5rem;
    position: relative;
}

.comment.reply::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: -10px;
    width: 20px;
    height: 20px;
    border-left: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 0 0 0 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-content {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.comment-user {
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 2px;
}

/* Right Sidebar (Trends) */
.widget-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.trend-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.trend-item:last-child {
    border: none;
    margin: 0;
}

.trend-rank {
    font-weight: 700;
    color: #9ca3af;
}

.trend-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.trend-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.story-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.story-user {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.story-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.btn-sm {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    z-index: 1000;
}

.nav-item {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.add-post {
    color: var(--primary-color);
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

/* ===== Left Sidebar (Identity Card) ===== */
.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 84px;
    /* Navbar altından başlar */
}

.sidebar-header {
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    padding: 2rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.doctor-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.doctor-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verified-badge {
    color: #3b82f6;
    font-size: 1rem;
}

.doctor-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rank-pill {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sidebar-info {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-row i {
    color: var(--text-muted);
    margin-top: 4px;
    width: 16px;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ===== Right Content Area ===== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--primary-color);
}

/* About Text */
.about-text {
    color: #374151;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Tags & Chips */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chip i {
    color: var(--green-success, #10b981);
}

/* Certificate Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.cert-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-icon {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== MOBILE APP ONBOARDING SCREENS ===== */
.onboarding-container {
    display: none !important;
    /* USER REQUEST: Disable Onboarding */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    /* En üstte durmasını sağlar */
    display: flex;
    /* Flex ama görünürlük JS ile kontrol edilecek */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.onboarding-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.onboarding-slide.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.slide-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.slide-content {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
}

.slide-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.slide-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.onboarding-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 30px;
    background: var(--primary-color);
    border-radius: 10px;
}

.btn-next {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s;
}

.btn-next:active {
    transform: scale(0.95);
}

.btn-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
}

.btn-start-app {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== INTERACTIVE POST ELEMENTS ===== */

/* 1. Dropdown Menu (3 Dots) */
.options-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default */
    z-index: 100;
    width: 160px;
    overflow: hidden;
}

.options-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item.danger {
    color: #ef4444;
}

.dropdown-item.danger:hover {
    background: #fef2f2;
}

/* 2. Inline Comment Box */
.inline-comment-area {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: none;
    /* Hidden by default */
}

.inline-comment-area.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.comment-input-wrapper img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-input-wrapper input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    outline: none;
    background: #f9fafb;
    transition: all 0.2s;
}

.comment-input-wrapper input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-send-comment {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-send-comment:hover {
    transform: scale(1.1);
}

/* Rating Bars */
.rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.r-label {
    width: 140px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.r-bar-bg {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.r-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

.r-val {
    font-weight: 700;
    width: 30px;
    text-align: right;
    font-size: 0.9rem;
}

/* Review Card Minimal */
.review-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.r-user {
    font-weight: 600;
    font-size: 0.9rem;
}

.r-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.r-stars {
    color: #f59e0b;
    font-size: 0.8rem;
}


/* ===== SHARE POPUP MODAL ===== */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.share-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal-overlay.active .share-modal {
    transform: translateY(0);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.share-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-share {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.close-share:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.share-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.2s;
}

.share-opt:hover .share-icon-circle {
    transform: scale(1.1);
}

.share-opt span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.bg-whatsapp {
    background: #25D366;
}

.bg-twitter {
    background: #1DA1F2;
}

.bg-facebook {
    background: #1877F2;
}

.bg-copy {
    background: var(--text-muted);
}

.copy-link-area {
    display: flex;
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.copy-link-area input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem;
}

.copy-btn {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: var(--primary-hover) !important;
    opacity: 0.9;
}

/* ===== MODERN TREND ITEM ===== */
.trend-item.modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.trend-item.modern:last-child {
    border-bottom: none;
}

.trend-rank-badge {
    position: absolute;
    top: 5px;
    left: -5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 2;
}

.trend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.trend-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-icon {
    color: #3b82f6;
    font-size: 0.8rem;
}

.trend-category {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.trend-stats {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== MODERN CATEGORIES SIDEBAR ===== */
.modern-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
}

.cat-item:hover {
    background: #f3e8ff;
    /* Light purple tint similar to active states */
    transform: translateX(5px);
}

.cat-icon-box {
    width: 36px;
    height: 36px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.2s;
}

.cat-item:hover .cat-icon-box {
    background: var(--primary-color);
    color: white;
}

.cat-info {
    display: flex;
    flex-direction: column;
}

.cat-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== MOBILE RESPONSIVE SIDEBAR ===== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.25rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    /* Sidebar Drawer Style */
    .sidebar-left {
        position: fixed;
        top: 0;
        left: -280px;
        /* Hide off-screen */
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 2000;
        padding-top: 1rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .sidebar-left.active {
        left: 0;
    }

    /* Adjust content inside sidebar for mobile if needed */
    .sidebar-left .menu-card,
    .sidebar-left .filter-card {
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 0;
    }

    .sidebar-left .menu-card {
        padding-top: 3rem;
        /* Space for close button if added, or just spacing */
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;

}

/* ===== FORMS & AUTH PAGES ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: white;
    color: var(--text-main);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Auth Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background blobs */
.auth-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.auth-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.social-btn:hover {
    background: #f9fafb;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

.check-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.check-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.forgot-pass {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Doctor Register Specific */
.doc-reg-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 100vh;
    background: white;
}

.doc-info-side {
    background: var(--primary-color);
    padding: 4rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.doc-form-side {
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.doc-benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.doc-benefit-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .doc-reg-layout {
        grid-template-columns: 1fr;
    }

    .doc-info-side {
        padding: 2rem;
        min-height: auto;
    }

    .doc-form-side {
        padding: 2rem;
    }

}

/* ACTION HUB (New Dynamic Buttons) */
.action-hub-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-hub-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.25rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.action-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.hub-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hub-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.hub-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.hub-arrow {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.action-hub-card:hover .hub-arrow {
    transform: translateX(4px);
    background: white;
}

/* Card Specific Styles */
.question-card {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
}

.question-card .hub-icon-box {
    background: white;
    color: #4f46e5;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}

.question-card .hub-arrow {
    color: #4f46e5;
}

.experience-card {
    background: linear-gradient(135deg, #fae8ff 0%, #f5d0fe 100%);
    border-color: #f0abfc;
}

.experience-card .hub-icon-box {
    background: white;
    color: #c026d3;
    box-shadow: 0 4px 6px -1px rgba(192, 38, 211, 0.1);
}

.experience-card .hub-arrow {
    color: #c026d3;
}

@media (max-width: 600px) {
    .action-hub-container {
        grid-template-columns: 1fr;
    }
}

/* User Profile Dropdown */
.user-menu-container {
    position: relative;
    z-index: 50;
    /* Ensure it's above other things */
}

.user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.user-dropdown.active {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
}

.dropdown-item.text-danger i {
    color: #ef4444;
}

/* ===== APP DOWNLOAD MODAL ===== */
.app-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.app-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.app-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.app-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.app-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.app-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.get-app-btn {
    background: #f3f4f6;
    color: #1f2937;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.5rem;
    height: 36px;
}

.get-app-btn:hover {
    background: #e5e7eb;
}

.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: inline-block;
    margin: 1.5rem 0;
}

.qr-container img {
    width: 150px;
    height: 150px;
    display: block;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.store-badge {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.store-badge:hover {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .d-none-mobile {
        display: none;
    }

    .get-app-btn {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }
}

/* ===== COMPLAINT MODAL (POPUP) ===== */
.complaint-modal-overlay,
.complaint-modal-overlay.active {
    display: flex;
    /* Always flex if active, controlled by display none by default */
}

/* Ensure overlay is hidden by default and on top when active */
.complaint-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    /* Higher than other modals */
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.complaint-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.complaint-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.complaint-header h3 {
    font-size: 1.25rem;
    color: #ef4444;
    /* Red for warning/complaint */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-complaint {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.close-complaint:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

.complaint-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.complaint-form label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.complaint-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.radio-item:hover {
    background: #f9fafb;
}

.radio-item input[type="radio"] {
    accent-color: #ef4444;
}

.btn-submit-complaint {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.btn-submit-complaint:hover {
    background: #dc2626;
}

/* ===== BLURRED CONTENT (Privacy) ===== */
.blurred-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.privacy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10;
    border-radius: 12px;
}

.privacy-card {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-color);
}

.privacy-card p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ===== SHARED MODAL STYLES (If used elsewhere) ===== */
.share-modal-overlay,
.share-modal-overlay.active {
    display: flex;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.share-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.share-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.close-share {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-opt {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.share-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: transform 0.2s;
}

.share-opt:hover .share-icon-circle {
    transform: translateY(-3px);
}

.share-opt span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bg-whatsapp {
    background: #25D366;
}

.bg-twitter {
    background: #1DA1F2;
}

.bg-facebook {
    background: #1877F2;
}

.bg-copy {
    background: #6b7280;
}

.copy-link-area {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    padding: 0.5rem;
    border-radius: 8px;
}

.copy-link-area input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

.copy-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #f9fafb;
}

/* ===== DROPDOWN MENU (For Posts) ===== */
.options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    width: 160px;
    display: none;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
}

.options-dropdown.active {
    display: flex;
    animation: fadeIn 0.15s ease;
}

.options-dropdown .dropdown-item {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    /* Just in case */
}

.options-dropdown .dropdown-item:hover {
    background: #f3f4f6;
}

.options-dropdown .dropdown-item.danger {
    color: #ef4444;
}

.options-dropdown .dropdown-item.danger:hover {
    background: #fef2f2;
}

/* ===== INLINE COMMENT AREA ===== */
.inline-comment-area {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: none;
    /* Hidden strictly by default */
}

.inline-comment-area.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.comment-input-wrapper img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-input-field {
    flex: 1;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.comment-input-field:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.btn-send-comment {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-send-comment:hover {
    background: #eef2ff;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== AI SCANNING & PREVIEW STYLES ===== */
.image-preview-container {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.preview-wrapper {
    position: relative;
    width: 100%;
    /* Max height for preview to avoid huge images */
    max-height: 400px;
    display: flex;
    justify-content: center;
    background: #f3f4f6;
}

.preview-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.remove-img-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s;
}

.remove-img-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* AI Overlay */
.ai-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.6);
    z-index: 10;
    display: none;
    /* JS ile açılacak */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.ai-scan-overlay.active {
    display: flex;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #10b981;
    box-shadow: 0 0 15px #10b981, 0 0 30px #10b981;
    animation: scanMove 2s infinite linear;
    z-index: 11;
}

@keyframes scanMove {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.scan-text {
    color: #fff;
    font-family: 'Courier New', monospace;
    /* Tech feel */
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #10b981;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 12;
}

.scan-subtext {
    font-size: 0.8rem;
    color: #a7f3d0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Verified Badge */
.ai-verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    display: none;
    /* JS ile açılacak */
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 15;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #34d399;
}

.ai-verified-badge.active {
    display: flex;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Action Left */
.action-left {
    display: flex;
    gap: 1rem;
}

/* ===== AI DANGER / WARNING STYLES ===== */

/* Red Scan Line for Danger */
.ai-scan-overlay.danger .scan-line {
    background: #ef4444;
    box-shadow: 0 0 15px #ef4444, 0 0 30px #ef4444;
}

.ai-scan-overlay.danger .scan-text {
    border-color: #ef4444;
    color: #fee2e2;
}

.ai-scan-overlay.danger .scan-text i {
    color: #ef4444;
}

.ai-scan-overlay.danger .scan-subtext {
    color: #fca5a5;
    text-transform: uppercase;
}

/* Warning Badge */
.ai-warning-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.95);
    /* Red */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 15;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    border: 1px solid #f87171;
}

.ai-warning-badge.active {
    display: flex;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Disable Share Button if Fake */
.post-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== AI NOSE SIMULATION MODAL ===== */
.ai-sim-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.ai-sim-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.ai-sim-modal {
    background: #111827;
    /* Dark Mode Theme */
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.2);
    border: 1px solid #374151;
}

.ai-sim-header {
    background: #1f2937;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
}

.ai-sim-header h3 {
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-sim-close {
    background: #374151;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.ai-sim-close:hover {
    background: #ef4444;
}

.ai-sim-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.ai-sim-canvas-area {
    flex: 1;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-sim-canvas-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: clip-path 0.1s;
}

/* Compare Slider Line */
.compare-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    cursor: ew-resize;
    z-index: 10;
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ai-sim-controls {
    width: 300px;
    background: #1f2937;
    border-left: 1px solid #374151;
    padding: 1.5rem;
    overflow-y: auto;
}

.sim-control-group {
    margin-bottom: 2rem;
}

.sim-label {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sim-range {
    width: 100%;
    accent-color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.model-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.model-btn {
    flex: 1;
    background: #374151;
    border: 1px solid #4b5563;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.model-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-generate-sim {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s;
}

.btn-generate-sim:hover {
    transform: scale(1.02);
}

.btn-generate-sim:disabled {
    opacity: 0.7;
    cursor: wait;
}



/* ===== MOBILE FAB & QUICK ACCESS BOTTOM SHEET ===== */
.mobile-fab {
    display: flex;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    border: none;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.mobile-fab:active {
    transform: translateY(-50%) scale(0.95);
}

.mobile-fab i {
    transition: transform 0.3s ease;
}

.mobile-fab.active i {
    transform: rotate(45deg);
}

/* Hide on desktop where sidebar is visible */
@media (min-width: 1025px) {
    .mobile-fab {
        display: none;
    }
}

.quick-access-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-access-overlay.active {
    display: block;
    opacity: 1;
}

.quick-access-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 1003;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.quick-access-sheet.active {
    transform: translateY(0);
}

.quick-access-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.quick-access-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-access-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.quick-access-content {
    padding: 15px;
}

.quick-access-content .menu-item {
    margin-bottom: 10px;
}

/* ===== MOBILE APP DOWNLOAD BANNER ===== */
.mobile-app-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    z-index: 1000;
    padding: 12px 15px;
    padding-right: 45px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-app-banner {
        display: block;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.banner-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.banner-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

.banner-btn {
    background: white;
    color: #7c3aed;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.banner-btn:active {
    transform: scale(0.95);
}

.banner-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 8px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ===== HEADER USER MENU STYLES ===== */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 4px;
    padding-right: 12px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: white;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-menu-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.user-badge {
    font-size: 0.7rem;
    color: #f59e0b;
    font-weight: 700;
}

.user-menu-chevron {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* ===== HEADER USER MENU RESPONSIVE ===== */
@media (max-width: 900px) {

    .user-menu-text,
    .user-menu-chevron,
    #header-user-area .user-menu-text,
    #header-user-area .user-menu-chevron,
    div.user-menu-text,
    i.user-menu-chevron {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .user-menu-btn,
    #header-user-area .user-menu-btn,
    div.user-menu-btn {
        padding: 4px !important;
        padding-right: 4px !important;
        padding-left: 4px !important;
        gap: 0 !important;
        min-width: 40px !important;
    }
}

/* ===== BLUR STYLES FOR GUESTS ===== */
.blur-container {
    position: relative;
    overflow: hidden;
}

.blur-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
}

.blur-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 85%;
    max-width: 280px;
    border: 1px solid var(--border-color);
}

.blur-overlay i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.blur-overlay p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blur-overlay .login-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.blur-overlay .login-link:hover {
    transform: scale(1.05);
}

/* Specific for comments */
.comment-blur-overlay {
    padding: 8px 12px;
    max-width: 180px;
    border-radius: 10px;
}

.comment-blur-overlay i {
    font-size: 1rem;
    margin-bottom: 4px;
}

.comment-blur-overlay p {
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.comment-blur-overlay .login-link {
    padding: 4px 10px;
    font-size: 0.7rem;
}