:root {
    /* Light theme */
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary: #94a3b8;
    --accent: #0ea5a4;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --muted-surface: #f1f5f9;
    --text: #1e293b;
    --muted: #64748b;
    --card-bg: #ffffff;
    --accent-hover: #0c8a89;
    --disabled-color: #cbd5e1;
    --secondary-text: #64748b;

    /* Grays for light theme */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* Reset ve Temel Stiller */

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
}



/* Header Styles */
.site-header {
    background-color: #ffffff;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 80px;
}

/* Categories section temporarily removed */

/* Search and Filter Styles */
.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    margin: 0 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--gray-200);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 50px
    ;
}

.search-box:focus-within {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text);
    caret-color: var(--primary);
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

.search-box input:focus {
    outline: none;
}

.search-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.filter-toggle {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
}

.filter-toggle:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Hızlı İlan Verme Butonu */
.post-ad-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-ad-button:hover {
    background: var(--primary-dark);
}

.post-ad-button i {
    font-size: 1rem;
}

/* Modal Styles - Fullscreen */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.97),
        rgba(2, 6, 7, 0.9)
    );
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    height: 85vh;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.03), 
        rgba(52, 211, 153, 0.02)
    );
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.close-modal {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.9), 
        rgba(220, 38, 38, 0.95)
    );
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.close-modal:hover {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.95), 
        rgba(185, 28, 28, 0.98)
    );
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.modal-body {
    padding: 1.5rem 2rem;
    flex: 1;
    overflow-y: auto;
    background: var(--surface);
}

/* Form Styles - Optimized */
.post-ad-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    height: auto;
    align-content: start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.price-group .price-input-group {
    display: flex;
    gap: 0.5rem;
}

.price-input-group input {
    flex: 1;
}

.price-input-group select {
    width: 100px;
}

/* Upload Area Styles - Compact */
.upload-label {
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.upload-label:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.upload-label i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.upload-label span {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.upload-label input[type="file"] {
    display: none;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sayfalama Stilleri */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.03), 
        rgba(52, 211, 153, 0.02)
    );
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 252, 0.8)
    );
    color: var(--text);
    border: 2px solid rgba(16, 185, 129, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(16, 185, 129, 0.1), 
        transparent
    );
    transition: left 0.6s ease;
}

.pagination a:not(.disabled):hover {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.92), 
        rgba(5, 150, 105, 0.88)
    );
    border-color: rgba(16, 185, 129, 0.4);
    color: white;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.3),
        0 5px 15px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.pagination a:not(.disabled):hover::before {
    left: 100%;
}

/* Sayfa numarası butonları için özel tasarım */
.page-number {
    all: unset; /* Browser default stillerini temizle */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 252, 0.8)
    ) !important;
    color: var(--text) !important;
    border: 2px solid rgba(16, 185, 129, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(8px) !important;
    cursor: pointer !important;
}

.page-number::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(16, 185, 129, 0.1), 
        transparent
    ) !important;
    transition: left 0.6s ease !important;
}

.page-number:hover {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.92), 
        rgba(5, 150, 105, 0.88)
    ) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: white !important;
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.3),
        0 5px 15px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    font-weight: 600 !important;
}

.page-number:hover::before {
    left: 100% !important;
}

.pagination .page-number.active {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.9)
    );
    color: white;
    border-color: rgba(16, 185, 129, 0.4);
    font-weight: 700;
    font-size: 1rem;
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.25),
        0 2px 8px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pagination .page-number.active::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent
    );
}

.pagination .page-number.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, 150%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.pagination .prev,
.pagination .next {
    font-weight: 700;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.12), 
        rgba(52, 211, 153, 0.08)
    );
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.25);
    border-radius: 18px;
    border-width: 2px;
    box-shadow: 
        0 3px 10px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pagination .prev:hover,
.pagination .next:hover {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.9)
    );
    color: white;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 
        0 12px 32px rgba(16, 185, 129, 0.35),
        0 6px 18px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.pagination .disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(145deg, 
        rgba(148, 163, 184, 0.08), 
        rgba(203, 213, 225, 0.05)
    );
    color: var(--gray-400);
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 
        0 1px 4px rgba(148, 163, 184, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: none;
}

.pagination i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.pagination .prev:hover i {
    transform: translateX(-1px);
}

.pagination .next:hover i {
    transform: translateX(1px);
}

/* Dark Theme için Pagination */
[data-theme="dark"] .pagination {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.06), 
        rgba(5, 150, 105, 0.04)
    );
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 
        0 4px 20px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pagination a {
    background: linear-gradient(145deg, 
        rgba(31, 41, 55, 0.9), 
        rgba(17, 24, 39, 0.8)
    );
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--text);
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Dark Theme için Sayfa numarası butonları */
[data-theme="dark"] .page-number {
    background: linear-gradient(145deg, 
        rgba(31, 41, 55, 0.9), 
        rgba(17, 24, 39, 0.8)
    ) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: var(--text) !important;
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .page-number:hover {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.92), 
        rgba(5, 150, 105, 0.88)
    ) !important;
    color: white !important;
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.3),
        0 5px 15px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .pagination a:not(.disabled):hover {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.9), 
        rgba(5, 150, 105, 0.95)
    );
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.3),
        0 4px 12px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .pagination .page-number.active {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.9)
    );
    border-color: rgba(16, 185, 129, 0.5);
    color: white;
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.3),
        0 2px 8px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .pagination .disabled {
    background: rgba(55, 65, 81, 0.3);
    border-color: rgba(75, 85, 99, 0.2);
    color: var(--gray-600);
}

/* Dark Theme için Filter Toggle */
[data-theme="dark"] .filter-toggle {
    background: linear-gradient(145deg, 
        rgba(31, 41, 55, 0.95), 
        rgba(17, 24, 39, 0.9)
    );
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--text);
    box-shadow: 
        0 2px 12px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filter-toggle:hover {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.9)
    );
    color: white;
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.3),
        0 4px 12px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
        padding: 1.25rem 1.5rem;
        margin: 2rem 0;
        border-radius: 16px;
    }
    
    .pagination a {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .page-number {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.9rem !important;
        border-radius: 12px !important;
    }
    
    .pagination .prev,
    .pagination .next {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.25rem;
        padding: 1rem;
        margin: 1.5rem 0;
        border-radius: 14px;
    }
    
    .pagination a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .page-number {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }
    
    .pagination .prev,
    .pagination .next {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    
    /* Responsive Filter Toggle */
    .filter-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 10px;
        gap: 0.5rem;
    }
}

/* Mobile specific styles */
@media (max-width: 480px) {
    .filter-toggle {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 8px;
        gap: 0.4rem;
    }
    
    .filter-toggle i {
        font-size: 1rem;
    }
}

/* Message Action Buttons */
.message-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mark-all-read-btn {
    all: unset; /* Browser default stillerini temizle */
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.9)
    );
    color: white;
    border: 2px solid rgba(16, 185, 129, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.25),
        0 2px 8px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none;
    outline: none;
    min-width: 180px;
    justify-content: center;
}

.mark-all-read-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent
    );
    transition: left 0.6s ease;
}

.mark-all-read-btn:hover {
    background: linear-gradient(145deg, 
        rgba(5, 150, 105, 0.98), 
        rgba(4, 120, 87, 0.95)
    );
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.35),
        0 4px 15px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mark-all-read-btn:hover::before {
    left: 100%;
}

.mark-all-read-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.4),
        0 2px 8px rgba(16, 185, 129, 0.3);
}

.mark-all-read-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.mark-all-read-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

.delete-all-btn {
    all: unset; /* Browser default stillerini temizle */
    background: linear-gradient(145deg, 
        rgba(239, 68, 68, 0.95), 
        rgba(220, 38, 38, 0.9)
    );
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.25),
        0 2px 8px rgba(239, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none;
    outline: none;
    min-width: 150px;
    justify-content: center;
}

.delete-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent
    );
    transition: left 0.6s ease;
}

.delete-all-btn:hover {
    background: linear-gradient(145deg, 
        rgba(220, 38, 38, 0.98), 
        rgba(185, 28, 28, 0.95)
    );
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.35),
        0 4px 15px rgba(239, 68, 68, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.delete-all-btn:hover::before {
    left: 100%;
}

.delete-all-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.4),
        0 2px 8px rgba(239, 68, 68, 0.3);
}

.delete-all-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.delete-all-btn:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Dark Theme için Message Action Buttons */
[data-theme="dark"] .mark-all-read-btn {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.92), 
        rgba(5, 150, 105, 0.88)
    );
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.3),
        0 2px 8px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .mark-all-read-btn:hover {
    background: linear-gradient(145deg, 
        rgba(5, 150, 105, 0.95), 
        rgba(4, 120, 87, 0.92)
    );
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.4),
        0 4px 15px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .delete-all-btn {
    background: linear-gradient(145deg, 
        rgba(239, 68, 68, 0.92), 
        rgba(220, 38, 38, 0.88)
    );
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.3),
        0 2px 8px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .delete-all-btn:hover {
    background: linear-gradient(145deg, 
        rgba(220, 38, 38, 0.95), 
        rgba(185, 28, 28, 0.92)
    );
    box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.4),
        0 4px 15px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Responsive Message Action Buttons */
@media (max-width: 768px) {
    .message-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .mark-all-read-btn,
    .delete-all-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        border-radius: 10px;
        gap: 0.5rem;
        min-width: 100%;
        width: 100%;
    }
    
    .mark-all-read-btn i,
    .delete-all-btn i {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .mark-all-read-btn,
    .delete-all-btn {
        padding: 0.55rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 8px;
        gap: 0.4rem;
    }
    
    .mark-all-read-btn i,
    .delete-all-btn i {
        font-size: 0.9rem;
    }
}

/* Favorites Search Styling */
.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.favorites-search {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(248, 250, 252, 0.9)
    );
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 0.01em;
}

.favorites-search::placeholder {
    color: var(--muted);
    opacity: 0.8;
    font-weight: 500;
}

.favorites-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(16, 185, 129, 0.15),
        0 4px 15px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(248, 250, 252, 0.95)
    );
    transform: translateY(-1px);
}

.favorites-search:focus + .search-input-wrapper i,
.search-input-wrapper:focus-within i {
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.favorites-search:hover {
    border-color: var(--primary);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Dark Theme için Favorites Search */
[data-theme="dark"] .favorites-search {
    background: linear-gradient(145deg, 
        rgba(31, 41, 55, 0.95), 
        rgba(17, 24, 39, 0.9)
    );
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text);
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .favorites-search::placeholder {
    color: var(--muted);
    opacity: 0.9;
}

[data-theme="dark"] .favorites-search:focus {
    background: linear-gradient(145deg, 
        rgba(31, 41, 55, 0.98), 
        rgba(17, 24, 39, 0.95)
    );
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(16, 185, 129, 0.2),
        0 4px 15px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-input-wrapper i {
    color: var(--primary-light);
}

/* Responsive Favorites Search */
@media (max-width: 768px) {
    .search-input-wrapper {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .favorites-search {
        padding: 0.75rem 0.875rem 0.75rem 2.75rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .search-input-wrapper i {
        left: 0.875rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .favorites-search {
        padding: 0.625rem 0.75rem 0.625rem 2.5rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .search-input-wrapper i {
        left: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Form Actions - Compact */
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.submit-ad,
.cancel-ad {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.submit-ad {
    background: var(--primary);
    color: white;
    flex: 2;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.submit-ad:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.cancel-ad {
    background: var(--gray-200);
    color: var(--text);
    flex: 1;
}

.cancel-ad:hover {
    background: var(--gray-300);
    transform: translateY(-1px);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 90vh;
        max-height: 90vh;
        border-radius: 12px;
    }

    .post-ad-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1rem 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }

    .upload-label {
        padding: 1rem;
    }

    .upload-label i {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .submit-ad,
    .cancel-ad {
        flex: none;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .close-modal {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}
.header-main {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.site-logo:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.site-logo:visited {
    color: inherit;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    font-family: 'Inter', Arial, sans-serif;
    letter-spacing: -1px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Dark Theme for Logo */
[data-theme="dark"] .logo-icon {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

[data-theme="dark"] .logo-text {
    color: var(--primary-light);
}

/* Logo Hover Animation */
.site-logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .site-logo:hover .logo-icon {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5);
}

/* Search Container */
.search-container {
    flex: 1;
    display: flex;
    gap: 1rem;
    max-width: 800px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

    /* Kategori Sistemi */
    .categories-section {
        padding: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Collapsible categories */
    .categories-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 0.75rem;
    }

    .categories-toggle {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.04);
        color: var(--text);
        padding: 0.4rem 0.75rem;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .categories-toggle:hover {
        background: rgba(255,255,255,0.02);
        border-color: rgba(255,255,255,0.08);
    }

    .categories-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 2px var(--primary-dark);
    }

    .categories-toggle.active {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }

    .categories-toggle.active:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }

    .categories-toggle i { 
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .categories-content {
        overflow: hidden;
        transition: max-height 0.32s ease, padding 0.32s ease;
    }

    /* Collapsed state: show a compact icon-only row */
    .categories-content.collapsed {
        max-height: 72px; /* compact single icon row */
        padding: 0.25rem 0;
    }

    /* Layout: make the grid a horizontal scroller when collapsed (polished) */
    .categories-content.collapsed .category-grid {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        overflow-x: auto;
        padding: 0 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    /* Compact circular cards showing only the icon */
    .categories-content.collapsed .category-card {
        padding: 0;
        width: 64px;
        height: 64px;
        min-width: 64px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        flex-direction: column;
        background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
        box-shadow: 0 6px 18px rgba(2,6,7,0.5);
        scroll-snap-align: start;
        position: relative;
    }

    /* Hide text and subcategories in collapsed mode */
    .categories-content.collapsed .category-card h3,
    .categories-content.collapsed .category-card .subcategories {
        display: none !important;
    }

    /* hide quick access when collapsed for a cleaner look */
    .categories-content.collapsed + .quick-access,
    .categories-content.collapsed .quick-access {
        display: none !important;
    }

    /* tooltip above icon on hover (collapsed mode) */
    .categories-content.collapsed .category-card::after {
        content: attr(data-title);
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        background: rgba(0,0,0,0.75);
        color: var(--text);
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 0.85rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.12s ease, transform 0.12s ease;
        z-index: 30;
    }

    .categories-content.collapsed .category-card:hover::after,
    .categories-content.collapsed .category-card:focus::after {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }


    .categories-section h2 {
        font-size: 1.5rem;
        color: var(--text);
        margin-bottom: 1.5rem;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
        margin-bottom: 2rem;
        align-items: start;
    }

    .category-card {
        background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
        border-radius: 12px;
        padding: 1.2rem;
        box-shadow: 0 6px 18px rgba(2,6,7,0.55);
        transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
        border: 1px solid rgba(255,255,255,0.03);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        min-height: 120px;
    }

    .category-card:hover,
    .category-card:focus {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(2,6,7,0.6);
        background: linear-gradient(180deg, rgba(16,185,129,0.06), rgba(14,165,164,0.02));
        outline: none;
    }

    .cat-icon {
        width: 56px;
        height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(14,165,164,0.04));
        color: var(--primary);
        font-size: 1.25rem;
        box-shadow: 0 6px 18px rgba(2,6,7,0.45);
    }

    .cat-title {
        font-size: 1.125rem;
        color: var(--text);
        margin: 0;
        font-weight: 600;
    }

    .category-card .subcategories {
        margin-top: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-card .subcategories a {
        font-size: 0.85rem;
        color: var(--muted);
        text-decoration: none;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        background: rgba(255,255,255,0.01);
    }

    .category-card .subcategories a:hover {
        background: rgba(16,185,129,0.06);
        color: var(--primary);
    }

    .subcategories {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .subcategories a {
        color: var(--muted);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s;
    }

    .subcategories a:hover {
        color: var(--primary);
    }

    /* Quick access section temporarily removed */
        /* İlan Detay Sayfası */
        .ad-detail-page {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        .ad-container {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        /* Galeri Stili */
        .ad-gallery {
            background: var(--surface);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        .main-image {
            width: 100%;
            aspect-ratio: 4/3;
            overflow: hidden;
        }

        .main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thumbnail-list {
            display: flex;
            gap: 0.5rem;
            padding: 1rem;
            background: transparent;
        }

        .thumb {
            width: 80px;
            height: 80px;
            border: 2px solid transparent;
            border-radius: 6px;
            padding: 0;
            cursor: pointer;
            overflow: hidden;
            background: none;
        }

        .thumb.active {
            border-color: var(--primary);
        }

        .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* İlan Bilgileri */
        .ad-info {
            background: var(--surface);
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
        }

        .ad-header h1 {
            font-size: 1.5rem;
            color: var(--text);
            margin-bottom: 1rem;
        }

        .ad-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }

        .price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }

        .location, .date {
            color: var(--muted);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* İlan Açıklaması */
        .ad-description h2 {
            font-size: 1.25rem;
            color: var(--text);
            margin-bottom: 1rem;
        }

        .ad-description p {
            color: var(--muted);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .features-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .feature {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem;
            background: var(--muted-surface);
            border-radius: 8px;
            color: var(--muted);
        }

        .feature i {
            color: var(--primary);
        }

        /* Satıcı Profili */
        .seller-profile {
            background: var(--surface);
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 1.5rem;
        }

        .seller-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .seller-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }

        .seller-details h3 {
            font-size: 1.1rem;
            color: var(--text);
            margin-bottom: 0.25rem;
        }

        .member-since {
            font-size: 0.9rem;
            color: var(--muted);
        }

        .seller-actions {
            display: flex;
            gap: 1rem;
        }

        .contact-seller,
        .show-phone {
            flex: 1;
            padding: 0.75rem;
            border-radius: 6px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .contact-seller {
            background: var(--primary);
            color: white;
            border: none;
        }

        .contact-seller:hover {
            background: var(--primary-dark);
        }

        .show-phone {
            background: var(--muted-surface);
            color: var(--text);
            border: 1px solid rgba(255,255,255,0.03);
        }

        .show-phone:hover {
            background: rgba(255,255,255,0.02);
        }

        /* Benzer İlanlar */
        .similar-ads {
            margin-top: 3rem;
        }

        .similar-ads h2 {
            font-size: 1.5rem;
            color: var(--text);
            margin-bottom: 1.5rem;
        }

        .similar-ads-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .ad-card {
            background: var(--surface);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s;
        }

        .ad-card:hover {
            transform: translateY(-2px);
        }

        .ad-card img {
            width: 100%;
            aspect-ratio: 3/2;
            object-fit: cover;
        }

        .ad-card-content {
            padding: 1rem;
        }

        .ad-card-content h3 {
            font-size: 1.1rem;
            color: var(--text);
            margin-bottom: 0.5rem;
        }

        .ad-card-content .price {
            display: block;
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .ad-card-content .location {
            font-size: 0.9rem;
        }

        /* Responsive Tasarım */
        @media (max-width: 768px) {
            .ad-container {
                grid-template-columns: 1fr;
            }

            .seller-actions {
                flex-direction: column;
            }

            .similar-ads-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
        }
.filter-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    margin-left: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.filter-toggle:hover {
    background: var(--primary-dark);
}

.advanced-filters {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    margin-top: 0.5rem;
    padding: 1.5rem;
    display: none;
    z-index: 100;
}

.advanced-filters.active {
    display: block;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.location-select,
.district-select,
.currency-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    width: 40%;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    font-size: 0.9rem;
}

.property-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.property-filters label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.apply-filters,
.clear-filters {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-filters {
    background: var(--primary);
    color: white;
    border: none;
    flex: 1;
}

.apply-filters:hover {
    background: var(--primary-dark);
}

.clear-filters {
    background: var(--muted-surface);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.03);
}

.clear-filters:hover {
    background: rgba(255,255,255,0.03);
}
.filter-button {
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(255,255,255,0.03);
    border-radius: 8px;
    background: var(--muted-surface);
    color: var(--text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.header-icon {
    color: var(--muted);
    font-size: 1.25rem;
    position: relative;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon:hover {
    color: var(--primary);
    background: var(--gray-100);
    transform: translateY(-1px);
}

.header-icon:active,
.header-icon.active {
    color: var(--primary);
    background: var(--gray-200);
}

/* Dark theme for header icons */
[data-theme="dark"] .header-icon:hover {
    background: var(--gray-700);
}

[data-theme="dark"] .header-icon:active,
[data-theme="dark"] .header-icon.active {
    background: var(--gray-600);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
}

/* Auth Buttons for Logged Out Users */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-btn, .signup-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.login-btn {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.login-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.signup-btn {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.signup-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Responsive auth buttons */
@media (max-width: 768px) {
    .auth-buttons {
        gap: 0.5rem;
    }
    
    .login-btn, .signup-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .login-btn span, .signup-btn span {
        display: none;
    }
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.user-button:hover {
    background: rgba(255,255,255,0.02);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.notification-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mark-all-read:hover {
    background: var(--gray-100);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s;
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--primary);
}

.notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.notification-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.notification-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Dark Theme for Notifications */
[data-theme="dark"] .notification-dropdown {
    background: var(--gray-800);
    border-color: var(--gray-700);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-header {
    border-color: var(--gray-700);
}

[data-theme="dark"] .notification-item {
    border-color: var(--gray-700);
}

[data-theme="dark"] .notification-item:hover {
    background: var(--gray-700);
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .notification-icon {
    background: var(--gray-700);
}

[data-theme="dark"] .mark-all-read:hover {
    background: var(--gray-700);
}

[data-theme="dark"] .notification-footer {
    border-color: var(--gray-700);
}

/* Header Actions Responsive */
@media (max-width: 768px) {
    .header-actions {
        gap: 1rem;
    }
    
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-icon {
        font-size: 1.1rem;
    }
    
    .notification-dropdown {
        width: 280px;
        right: -80px;
    }
}

/* Filter Panel */
.filter-panel {
    background: var(--surface);
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    display: none;
}

.filter-panel.active {
    display: block;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.location-picker,
.price-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.select-box {
    padding: 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    min-width: 150px;
}

.price-input {
    padding: 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    width: 120px;
}

.feature-filters {
    display: flex;
    gap: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--muted-surface);
    color: var(--text);
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--gray-50);
}

/* Main Content */
.main-content {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--surface);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: left;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 60px;
}

.category-card:hover,
.category-card:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

.category-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.category-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.category-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.2;
}

.category-card p {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1;
}

/* Dark Theme for Category Cards */
[data-theme="dark"] .category-card {
    border-color: var(--primary-light);
}

[data-theme="dark"] .category-card:hover,
[data-theme="dark"] .category-card:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

/* Listings */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-button {
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.03);
    background: var(--muted-surface);
    border-radius: 6px;
    cursor: pointer;
    color: var(--muted);
}

.view-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.listings-grid.grid-view-verde {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.listings-grid.list-view-sahibinden {
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--gray-200);
}

/* Listing Card */
.listing-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-header {
    position: relative;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.listing-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.listing-badge.urgent {
    background: var(--danger);
    color: white;
}

.listing-badge.featured {
    background: var(--warning);
    color: white;
}

.favorite-button {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--muted-surface);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.2s;
}

.favorite-button:hover,
.favorite-button.active {
    color: var(--danger);
    transform: scale(1.1);
}

.card-gallery {
    height: 250px;
    background: var(--gray-100);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-gallery:hover {
    transform: scale(1.02);
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-image:hover {
    transform: scale(1.05);
}

.photo-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.image-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.image-count {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-count i {
    font-size: 0.7rem;
}

/* List View Image Styles */
.row-listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.row-listing-image:hover {
    transform: scale(1.05);
}

.row-image-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.row-image-count i {
    font-size: 0.65rem;
}

.card-content {
    padding: 1rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location {
    color: var(--gray-500);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.description {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    opacity: 0.9;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 2.8em;
}

.features {
    display: flex;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.875rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.features span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* User Info Styles */
.user-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.user-details .user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.user-details .name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.verified-badge {
    color: var(--primary);
    font-size: 0.85rem;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.listings-count {
    font-weight: 500;
    color: var(--primary);
}

.user-rating {
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.user-rating i {
    color: var(--warning);
}

.member-since {
    color: var(--gray-500);
}

/* Row View User Info */
.row-user-info {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.row-user-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.row-user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.row-user-stats {
    font-size: 0.75rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.row-user-stats i {
    color: var(--warning);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.contact-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.contact-button:hover {
    background: var(--primary-dark);
}

/* Sahibinden Tarzı İnce Liste Görünümü */
.listing-row-sahibinden {
    background: var(--surface);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 15px 18px;
    min-height: 120px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.listing-row-sahibinden:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.listing-row-sahibinden:last-child {
    border-bottom: none;
}

/* Sol taraf - Logo/Image */
.row-image-container {
    position: relative;
    width: 160px;
    height: 110px;
    min-width: 160px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    overflow: hidden;
}

.verde-logo-thin {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', Arial, sans-serif;
    letter-spacing: -1px;
}

.row-badge-thin {
    position: absolute;
    top: -6px;
    right: -6px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    background: var(--danger);
    color: white;
    line-height: 1;
}

.row-badge-thin.featured {
    background: var(--warning);
}

.row-badge-thin.yeni {
    background: var(--success);
}

/* Orta kısım - İçerik */
.row-content-main {
    flex: 1;
    min-width: 0;
}

.row-title-section {
    margin-bottom: 4px;
}

.row-title-main {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-features-inline {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-location-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row-location-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-location-text i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

.row-date-text {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-left: 12px;
    white-space: nowrap;
}

.row-description {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.description-text {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    max-height: 1.3em;
    opacity: 0.8;
}

/* Sağ taraf - Fiyat ve butonlar */
.row-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.row-price-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
}

.row-actions-thin {
    display: flex;
    gap: 6px;
}

.favorite-btn-thin,
.contact-btn-thin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.favorite-btn-thin {
    background: var(--gray-100);
    color: var(--gray-500);
}

.favorite-btn-thin:hover,
.favorite-btn-thin.active {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.contact-btn-thin {
    background: var(--primary);
    color: white;
}

.contact-btn-thin:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Dark Theme */
[data-theme="dark"] .listing-row-sahibinden {
    border-color: var(--gray-700);
}

[data-theme="dark"] .listing-row-sahibinden:hover {
    background: var(--gray-800);
}

[data-theme="dark"] .row-image-container {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

[data-theme="dark"] .verde-logo-thin {
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .image-overlay,
[data-theme="dark"] .image-count,
[data-theme="dark"] .row-image-count {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .card-gallery {
    background: var(--gray-800);
}

[data-theme="dark"] .favorite-btn-thin {
    background: var(--gray-700);
    color: var(--gray-300);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .listing-row-sahibinden {
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    
    .row-image-container {
        width: 140px;
        height: 95px;
        min-width: 140px;
        margin-right: 14px;
        border-radius: 10px;
    }
    
    .verde-logo-thin {
        font-size: 1.5rem;
    }
    
    .row-content-main {
        flex: 1;
        min-width: 0;
    }
    
    .row-price-section {
        min-width: 100px;
    }
    
    .row-title-main {
        font-size: 0.95rem;
    }
    
    .row-features-inline {
        font-size: 0.75rem;
    }
    
    .row-location-text {
        font-size: 0.75rem;
    }
    
    .row-date-text {
        font-size: 0.7rem;
    }
    
    .row-price-main {
        font-size: 1rem;
    }
    
    .favorite-btn-thin,
    .contact-btn-thin {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .listing-row-sahibinden {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .row-image-container {
        margin-right: 0;
        align-self: flex-start;
    }
    
    .row-content-main {
        width: 100%;
    }
    
    .row-price-section {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .row-actions-thin {
        margin-top: 0;
    }
    
    .card-gallery {
        height: 200px;
    }
    
    .row-image-container {
        width: 110px;
        height: 75px;
        min-width: 110px;
        border-radius: 8px;
    }
}

/* Header Responsive Design */
@media (max-width: 768px) {
    .header-main {
        padding: 1rem;
        gap: 1rem;
    }
    
    .site-logo {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        border-radius: 6px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        gap: 0.4rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

/* Floating Action Button */
.post-ad-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s;
    z-index: 50;
}

.post-ad-fab:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .header-main {
        padding: 1rem;
        gap: 1rem;
    }

    .search-container {
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .main-content {
        padding: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .post-ad-fab span {
        display: none;
    }
}

/* User Dropdown Menu Styles */
.user-menu {
    position: relative;
}

.user-menu-btn {
    all: unset; /* Browser default stillerini temizle */
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(248, 250, 252, 0.9)
    );
    color: var(--text);
    border: 2px solid rgba(16, 185, 129, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 12px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    text-decoration: none;
    outline: none;
    min-width: 140px;
    justify-content: space-between;
}

.user-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(16, 185, 129, 0.1), 
        transparent
    );
    transition: left 0.6s ease;
}

.user-menu-btn:hover {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.9)
    );
    border-color: rgba(16, 185, 129, 0.4);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.25),
        0 4px 12px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-menu-btn:hover::before {
    left: 100%;
}

.user-menu-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.3),
        0 2px 8px rgba(16, 185, 129, 0.2);
}

.user-menu-btn i:first-child {
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.user-menu-btn:hover i:first-child {
    color: white;
    transform: scale(1.1);
}

.user-menu-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.user-menu-btn:hover i:last-child {
    transform: rotate(180deg);
    opacity: 1;
}

.user-menu-btn span {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Dark Theme için User Menu Button */
[data-theme="dark"] .user-menu-btn {
    background: linear-gradient(145deg, 
        rgba(31, 41, 55, 0.95), 
        rgba(17, 24, 39, 0.9)
    );
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--text);
    box-shadow: 
        0 2px 12px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .user-menu-btn:hover {
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.95), 
        rgba(5, 150, 105, 0.9)
    );
    color: white;
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.3),
        0 4px 12px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .user-menu-btn i:first-child {
    color: var(--primary);
}

[data-theme="dark"] .user-menu-btn:hover i:first-child {
    color: white;
}

/* Responsive User Menu Button */
@media (max-width: 768px) {
    .user-menu-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 10px;
        gap: 0.5rem;
        min-width: 120px;
    }
    
    .user-menu-btn i:first-child {
        font-size: 1.1rem;
    }
    
    .user-menu-btn i:last-child {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .user-menu-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 8px;
        gap: 0.4rem;
        min-width: 100px;
    }
    
    .user-menu-btn span {
        display: none; /* Mobilde sadece ikon göster */
    }
    
    .user-menu-btn {
        min-width: 44px;
        justify-content: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.5rem;
    }
    
    .category-card {
        padding: 0.625rem;
        min-height: 55px;
    }
    
    .category-card i {
        font-size: 1.25rem;
        margin-bottom: 0;
        width: 20px;
    }
    
    .category-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .category-card p {
        font-size: 0.75rem;
        margin: 0;
    }
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
}

.user-menu:hover .user-dropdown,
.user-dropdown:hover,
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.user-email {
    font-size: 12px;
    color: var(--muted);
}

.dropdown-divider {
    border: 0;
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 12px;
    position: relative;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-item i {
    width: 16px;
    font-size: 14px;
    color: var(--muted);
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item span {
    font-size: 14px;
    font-weight: 500;
}

.notification-count {
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.dropdown-item.logout i {
    color: var(--danger);
}

/* Responsive adjustments for dropdown */
@media (max-width: 768px) {
    .user-dropdown {
        min-width: 250px;
        right: -20px;
    }
}

/* Profile Page Styles */
.profile-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
}

.change-avatar-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-avatar-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.profile-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.nav-item i {
    width: 20px;
    font-size: 16px;
}

.profile-main {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.edit-btn,
.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-btn:hover,
.add-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.info-group input,
.info-group select,
.bio-section textarea {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface);
    color: var(--text);
}

.info-group input:focus,
.info-group select:focus,
.bio-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.info-group input[readonly],
.info-group select[disabled] {
    background: var(--gray-50);
    color: var(--muted);
    cursor: not-allowed;
}

.bio-section {
    margin-bottom: 2rem;
}

.bio-section label {
    display: block;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.bio-section textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.verification-section h3 {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.verification-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--gray-50);
}

.verification-item.verified {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.verification-item.verified i {
    color: var(--success);
}

.verification-item.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.verification-item.pending i {
    color: var(--warning);
}

.ads-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.filter-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.ads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ad-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.ad-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.ad-item img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.ad-details {
    flex: 1;
}

.ad-details h4 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ad-price {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ad-location {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ad-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ad-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.ad-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.ad-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.edit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.action-btn.stats {
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Responsive Design for Profile Page */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .ads-filter {
        flex-wrap: wrap;
    }
    
    .ad-item {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-actions {
        justify-content: center;
    }
}

/* My Ads Page Styles */
.my-ads-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: var(--background);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.header-subtitle {
    color: var(--muted);
    font-size: 1rem;
}

.add-ad-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.add-ad-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.ads-controls {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    background: var(--gray-50);
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--gray-50);
}

.search-sort {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.ads-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface);
}

.ads-search:focus {
    outline: none;
    border-color: var(--primary);
}

.sort-select {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

.ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ad-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.ad-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.ad-card:hover .ad-image img {
    transform: scale(1.05);
}

.ad-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-badge.active {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.ad-badge.inactive {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.ad-badge.expired {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.ad-views {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ad-content {
    padding: 1.5rem;
}

.ad-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ad-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.ad-location {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.ad-date,
.ad-expires,
.ad-status-reason,
.ad-expired {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted);
}

.ad-expires {
    color: var(--success);
}

.ad-expired {
    color: var(--danger);
}

.ad-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.primary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.action-btn.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.action-btn.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.action-btn.info {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.action-btn.secondary {
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
}

.action-menu {
    position: relative;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: scale(1.1);
}

.menu-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 180px;
    margin-bottom: 8px;
}

.action-menu:hover .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.menu-item i {
    width: 16px;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-200);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.page-btn:hover:not([disabled]) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 0.5rem;
    color: var(--muted);
}

/* Responsive Design for My Ads Page */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-sort {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .ads-container {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .ad-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* Favorites Page Styles */
.favorites-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: var(--background);
}

.favorites-controls {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.view-toggle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-200);
    background: var(--surface);
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.view-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.favorites-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.favorite-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.favorite-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.favorite-card:hover .favorite-image img {
    transform: scale(1.05);
}

.price-change {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-change.down {
    background: rgba(34, 197, 94, 0.9);
}

.price-change.up {
    background: rgba(239, 68, 68, 0.9);
}

.favorite-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-remove:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.favorite-content {
    padding: 1.5rem;
}

.favorite-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.favorite-price {
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 1rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.favorite-location {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorite-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.favorite-details span {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.favorite-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.added-date {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.seller-badge,
.urgency-badge,
.condition-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.seller-badge.verified {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.urgency-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.condition-badge.new {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.condition-badge.used {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.favorite-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Messages Page Styles */
.messages-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: var(--background);
}

.messages-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    height: 70vh;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.conversations-list {
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.conversations-header h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.conversation-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

.conversation-search {
    position: relative;
}

.conversation-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.conversation-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.9rem;
}

.conversations {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-100);
}

.conversation-item:hover {
    background: var(--gray-50);
}

.conversation-item.active {
    background: var(--primary-light);
    border-right: 3px solid var(--primary);
}

.conversation-avatar {
    position: relative;
}

.conversation-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid var(--surface);
    border-radius: 50%;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.conversation-header-info h4 {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.message-time {
    font-size: 0.7rem;
    color: var(--muted);
}

.last-message {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-title {
    font-size: 0.7rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.conversation-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unread-count {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.favorite-conversation {
    color: var(--warning);
}

.message-detail {
    display: flex;
    flex-direction: column;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.contact-details h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.contact-status {
    font-size: 0.8rem;
    color: var(--success);
}

.message-actions-header {
    display: flex;
    gap: 0.5rem;
}

.header-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-action-btn:hover {
    background: var(--primary);
    color: white;
}

.ad-reference {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-bottom: 1px solid var(--gray-200);
}

.ad-reference img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.ad-info {
    flex: 1;
}

.ad-info h5 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.ad-info p {
    font-size: 0.9rem;
    color: var(--muted);
}

.view-ad-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-ad-btn:hover {
    background: var(--primary-dark);
}

.messages-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.unread {
    animation: highlight 2s ease-out;
}

.message-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.message-bubble {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 20px;
    position: relative;
}

.message.sent .message-bubble {
    background: var(--primary);
    color: white;
}

.message-bubble p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.message-bubble .message-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.message-status {
    margin-left: 0.5rem;
    font-size: 0.7rem;
}

.message-status.read {
    color: var(--primary);
}

.typing-indicator {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    max-width: 70%;
}

.typing-animation {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.typing-animation span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
    animation: typing 1.5s infinite;
}

.typing-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

.message-input-area {
    border-top: 1px solid var(--gray-200);
    background: var(--surface);
}

.input-tools {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem 0.5rem;
}

.input-tool {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-tool:hover {
    background: var(--primary);
    color: white;
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
}

.input-container textarea {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    resize: none;
    max-height: 100px;
    font-family: inherit;
}

.input-container textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.send-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.quick-replies {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
    flex-wrap: wrap;
}

.quick-reply {
    background: var(--gray-100);
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.quick-reply:hover {
    background: var(--primary);
    color: white;
}

.empty-messages {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Settings Page Styles */
.settings-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: var(--background);
}

.settings-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.settings-sidebar {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.settings-nav .nav-item:hover,
.settings-nav .nav-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.settings-nav .nav-item i {
    width: 20px;
    font-size: 16px;
}

.settings-content {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.settings-section {
    display: none;
    padding: 2rem;
}

.settings-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--muted);
}

.settings-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.settings-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
}

.picture-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.input-note {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.input-note.verified {
    color: var(--success);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 25%;
    background: var(--danger);
}

.strength-fill.medium {
    width: 50%;
    background: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.toggle-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.toggle-setting:last-child {
    border-bottom: none;
}

.setting-info h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.setting-info p {
    color: var(--muted);
    font-size: 0.9rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.session-item.current {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.session-device {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.current-badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.session-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-item input[type="radio"] {
    width: auto;
    margin: 0;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.theme-option {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.theme-option:hover {
    border-color: var(--primary);
}

.theme-option.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    margin: 0 auto 0.75rem;
    position: relative;
    overflow: hidden;
}

.theme-preview.light {
    background: #ffffff;
    border: 1px solid var(--gray-200);
}

.theme-preview.dark {
    background: #1e293b;
}

.theme-preview.auto {
    background: linear-gradient(90deg, #ffffff 50%, #1e293b 50%);
}

.preview-header {
    height: 8px;
    background: var(--primary);
}

.preview-content {
    height: 24px;
    background: var(--gray-100);
    margin: 4px;
    border-radius: 2px;
}

.theme-preview.dark .preview-content {
    background: #374151;
}

.premium-card {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.premium-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.premium-header i {
    font-size: 2rem;
    color: var(--warning);
}

.premium-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.premium-benefits {
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.benefit-item i {
    color: var(--warning);
}

.premium-info {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.premium-actions {
    display: flex;
    gap: 1rem;
}

.danger-zone {
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.danger-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-warning,
.btn-danger-outline {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.btn-danger-outline:hover {
    background: var(--danger);
    color: white;
}

/* Animations */
@keyframes highlight {
    0% { background: rgba(16, 185, 129, 0.3); }
    100% { background: transparent; }
}

@keyframes typing {
    0%, 60%, 100% { transform: scale(1); }
    30% { transform: scale(1.5); }
}

/* Chat Responsive Design & Scaling Optimization */

/* Large Tablets - 1024px */
@media (max-width: 1024px) {
    .messages-container {
        grid-template-columns: 350px 1fr;
        gap: 1.5rem;
        height: 75vh;
    }
    
    .conversations-header {
        padding: 1.25rem;
    }
    
    .conversation-item {
        padding: 0.875rem 1.25rem;
    }
    
    .messages-content {
        padding: 0.875rem 1.25rem;
    }
    
    .message-header {
        padding: 1.25rem;
    }
}

/* Standard Tablets - 768px */
@media (max-width: 768px) {
    .messages-page {
        padding: 1rem 0;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 80vh;
        gap: 0;
        border-radius: 12px;
    }
    
    .conversations-list {
        border-right: none;
        border-bottom: 2px solid var(--gray-200);
        max-height: 40vh;
        min-height: 300px;
    }
    
    .conversations-header {
        padding: 1rem;
        background: linear-gradient(135deg, var(--gray-50), var(--surface));
    }
    
    .conversations-header h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .conversation-filters {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 16px;
    }
    
    .conversation-search input {
        padding: 0.6rem 0.8rem 0.6rem 2.5rem;
        font-size: 0.85rem;
        border-radius: 16px;
    }
    
    .conversation-search i {
        left: 0.8rem;
        font-size: 0.9rem;
    }
    
    .conversation-item {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .conversation-avatar img {
        width: 45px;
        height: 45px;
    }
    
    .conversation-header-info h4 {
        font-size: 0.85rem;
    }
    
    .last-message {
        font-size: 0.75rem;
    }
    
    .message-time {
        font-size: 0.65rem;
    }
    
    .message-detail {
        min-height: 50vh;
    }
    
    .message-header {
        padding: 1rem;
        background: linear-gradient(135deg, var(--gray-50), var(--surface));
    }
    
    .contact-info img {
        width: 35px;
        height: 35px;
    }
    
    .contact-details h4 {
        font-size: 0.9rem;
    }
    
    .contact-status {
        font-size: 0.75rem;
    }
    
    .header-action-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .ad-reference {
        padding: 0.875rem 1rem;
    }
    
    .ad-reference img {
        width: 50px;
        height: 50px;
    }
    
    .view-ad-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .messages-content {
        padding: 0.875rem 1rem;
        gap: 0.875rem;
    }
    
    .message {
        gap: 0.6rem;
        max-width: 85%;
    }
    
    .message-avatar img {
        width: 28px;
        height: 28px;
    }
    
    .message-bubble {
        padding: 0.875rem;
        border-radius: 16px;
        font-size: 0.9rem;
    }
    
    .message-bubble .message-time {
        font-size: 0.65rem;
    }
    
    .input-container {
        padding: 0 1rem 0.875rem;
        gap: 0.75rem;
    }
    
    .input-container textarea {
        padding: 0.875rem;
        border-radius: 16px;
        font-size: 0.9rem;
    }
    
    .send-btn {
        width: 40px;
        height: 40px;
    }
    
    .input-tools {
        padding: 0.875rem 1rem 0.4rem;
        gap: 0.4rem;
    }
    
    .input-tool {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .quick-replies {
        padding: 0 1rem 0.875rem;
        gap: 0.4rem;
    }
    
    .quick-reply {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 12px;
    }
    
    .favorites-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape - 640px */
@media (max-width: 640px) {
    .messages-container {
        height: auto;
        min-height: 85vh;
        border-radius: 8px;
    }
    
    .conversations-list {
        max-height: 35vh;
        min-height: 280px;
    }
    
    .conversations-header {
        padding: 0.875rem;
    }
    
    .conversations-header h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .conversation-filters {
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }
    
    .filter-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        border-radius: 14px;
    }
    
    .conversation-item {
        padding: 0.6rem 0.875rem;
        gap: 0.6rem;
    }
    
    .conversation-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .message-detail {
        min-height: 55vh;
    }
    
    .message-header {
        padding: 0.875rem;
    }
    
    .ad-reference {
        padding: 0.75rem 0.875rem;
    }
    
    .messages-content {
        padding: 0.75rem 0.875rem;
        gap: 0.75rem;
    }
    
    .message {
        max-width: 90%;
    }
    
    .message-bubble {
        padding: 0.75rem;
        border-radius: 14px;
        font-size: 0.85rem;
    }
    
    .input-container {
        padding: 0 0.875rem 0.75rem;
    }
    
    .input-tools {
        padding: 0.75rem 0.875rem 0.3rem;
    }
    
    .quick-replies {
        padding: 0 0.875rem 0.75rem;
    }
}

/* Mobile Portrait - 480px */
@media (max-width: 480px) {
    .messages-page {
        padding: 0.5rem 0;
    }
    
    .messages-container {
        height: auto;
        min-height: 90vh;
        border-radius: 6px;
        margin: 0 0.5rem;
    }
    
    .conversations-list {
        max-height: 30vh;
        min-height: 250px;
    }
    
    .conversations-header {
        padding: 0.75rem;
    }
    
    .conversations-header h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .conversation-filters {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }
    
    .filter-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        border-radius: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .conversation-search input {
        padding: 0.5rem 0.7rem 0.5rem 2.2rem;
        font-size: 0.8rem;
        border-radius: 14px;
    }
    
    .conversation-search i {
        left: 0.7rem;
        font-size: 0.85rem;
    }
    
    .conversation-item {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .conversation-avatar {
        flex-shrink: 0;
    }
    
    .conversation-avatar img {
        width: 36px;
        height: 36px;
    }
    
    .online-indicator {
        width: 10px;
        height: 10px;
        bottom: 1px;
        right: 1px;
    }
    
    .conversation-header-info h4 {
        font-size: 0.8rem;
    }
    
    .last-message {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .message-time {
        font-size: 0.6rem;
    }
    
    .ad-title {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        border-radius: 8px;
    }
    
    .unread-count {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        border-radius: 8px;
        min-width: 16px;
    }
    
    .message-detail {
        min-height: 60vh;
    }
    
    .message-header {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .contact-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .contact-info img {
        width: 32px;
        height: 32px;
    }
    
    .contact-details h4 {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }
    
    .contact-status {
        font-size: 0.7rem;
    }
    
    .message-actions-header {
        gap: 0.35rem;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }
    
    .header-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .ad-reference {
        padding: 0.6rem 0.75rem;
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-start;
    }
    
    .ad-reference img {
        width: 100%;
        height: 120px;
        max-width: 200px;
        align-self: center;
    }
    
    .ad-info {
        text-align: center;
        width: 100%;
    }
    
    .ad-info h5 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .ad-info p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .view-ad-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
        border-radius: 6px;
        align-self: center;
        gap: 0.4rem;
    }
    
    .messages-content {
        padding: 0.6rem 0.75rem;
        gap: 0.6rem;
    }
    
    .message {
        max-width: 95%;
        gap: 0.4rem;
    }
    
    .message-avatar img {
        width: 24px;
        height: 24px;
    }
    
    .message-bubble {
        padding: 0.6rem;
        border-radius: 12px;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .message-bubble p {
        margin-bottom: 0.3rem;
    }
    
    .message-bubble .message-time {
        font-size: 0.6rem;
    }
    
    .typing-indicator {
        gap: 0.4rem;
    }
    
    .typing-animation {
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .typing-animation span {
        width: 6px;
        height: 6px;
    }
    
    .message-input-area {
        background: var(--gray-50);
    }
    
    .input-tools {
        padding: 0.6rem 0.75rem 0.25rem;
        gap: 0.3rem;
        overflow-x: auto;
    }
    
    .input-tool {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .input-container {
        padding: 0 0.75rem 0.6rem;
        gap: 0.5rem;
    }
    
    .input-container textarea {
        padding: 0.6rem;
        border-radius: 12px;
        font-size: 0.8rem;
        max-height: 80px;
        min-height: 36px;
        border-width: 1px;
    }
    
    .send-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .quick-replies {
        padding: 0 0.75rem 0.6rem;
        gap: 0.3rem;
    }
    
    .quick-reply {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 10px;
        border: 1px solid var(--gray-200);
    }
    
    .quick-reply:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }
}

/* Ultra Small Mobile - 360px and below */
@media (max-width: 360px) {
    .messages-container {
        margin: 0 0.25rem;
        min-height: 92vh;
        border-radius: 4px;
    }
    
    .conversations-list {
        max-height: 28vh;
        min-height: 220px;
    }
    
    .conversations-header {
        padding: 0.6rem;
    }
    
    .conversation-item {
        padding: 0.4rem 0.6rem;
    }
    
    .conversation-avatar img {
        width: 32px;
        height: 32px;
    }
    
    .message-header {
        padding: 0.6rem;
    }
    
    .messages-content {
        padding: 0.5rem 0.6rem;
    }
    
    .message-bubble {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .input-container {
        padding: 0 0.6rem 0.5rem;
    }
    
    .input-container textarea {
        padding: 0.5rem;
        font-size: 0.75rem;
        min-height: 32px;
    }
    
    .send-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .input-tools {
        padding: 0.5rem 0.6rem 0.2rem;
    }
    
    .input-tool {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}

/* Landscape Orientation Specific */
@media (max-width: 768px) and (orientation: landscape) {
    .messages-container {
        height: 90vh;
    }
    
    .conversations-list {
        max-height: 100%;
        min-height: auto;
    }
    
    .message-detail {
        min-height: auto;
    }
}
    
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .theme-options {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }


/* Chat Performance Optimizations */

/* Optimize scrolling performance */
.conversations,
.messages-content {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    -webkit-overflow-scrolling: touch;
}

.conversations::-webkit-scrollbar,
.messages-content::-webkit-scrollbar {
    width: 6px;
}

.conversations::-webkit-scrollbar-track,
.messages-content::-webkit-scrollbar-track {
    background: transparent;
}

.conversations::-webkit-scrollbar-thumb,
.messages-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    opacity: 0.7;
}

.conversations::-webkit-scrollbar-thumb:hover,
.messages-content::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

/* Optimize image loading */
.conversation-avatar img,
.contact-info img,
.message-avatar img,
.ad-reference img {
    loading: lazy;
    will-change: transform;
    backface-visibility: hidden;
}

/* Optimize transitions for better performance */
.conversation-item,
.message,
.header-action-btn,
.input-tool,
.send-btn,
.quick-reply {
    will-change: transform, background-color;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize text rendering */
.message-bubble,
.conversation-item,
.last-message {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animations */
.typing-animation span {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce paint complexity */
.messages-container {
    contain: layout style paint;
    isolation: isolate;
}

.conversations-list,
.message-detail {
    contain: layout style;
}

/* Touch optimization for mobile */
@media (hover: none) and (pointer: coarse) {
    .conversation-item {
        padding: 0.875rem 1rem;
        min-height: 64px;
        touch-action: manipulation;
    }
    
    .header-action-btn,
    .input-tool,
    .send-btn {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .quick-reply {
        min-height: 36px;
        touch-action: manipulation;
    }
    
    .filter-btn {
        min-height: 32px;
        touch-action: manipulation;
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .conversation-avatar img,
    .contact-info img,
    .message-avatar img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .conversation-item,
    .message,
    .header-action-btn,
    .input-tool,
    .send-btn,
    .quick-reply,
    .typing-animation span {
        transition: none !important;
        animation: none !important;
    }
    
    .conversations,
    .messages-content {
        scroll-behavior: auto;
    }
}

/* Dark theme performance optimizations */
[data-theme="dark"] .conversations::-webkit-scrollbar-thumb,
[data-theme="dark"] .messages-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
}

/* Chat Focus States for Accessibility */
.conversation-item:focus,
.header-action-btn:focus,
.input-tool:focus,
.send-btn:focus,
.quick-reply:focus,
.filter-btn:focus,
.view-ad-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.input-container textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Chat Loading States */
.conversation-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.message.sending {
    opacity: 0.7;
}

.message.sending .message-bubble {
    background: var(--gray-200);
    color: var(--muted);
}

/* Message Status Indicators */
.message-status.sending::after {
    content: "⏳";
}

.message-status.sent::after {
    content: "✓";
}

.message-status.delivered::after {
    content: "✓✓";
    color: var(--muted);
}

.message-status.read::after {
    content: "✓✓";
    color: var(--primary);
}

/* ================================
   SETTINGS PAGES STYLES
   ================================ */

/* Settings Pages Layout */
.settings-page {
    padding: 20px 0;
    min-height: calc(100vh - 80px);
    background-color: #f8f9fa;
}

.page-header {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--verde-green);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 12px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--verde-green);
}

.header-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.settings-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.settings-nav {
    background: white;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.settings-nav .nav-item:hover {
    background-color: #f3f4f6;
    color: var(--verde-green);
}

.settings-nav .nav-item.active {
    background-color: #f0fdf4;
    color: var(--verde-green);
    border-left-color: var(--verde-green);
    font-weight: 500;
}

.settings-nav .nav-item i {
    width: 18px;
    text-align: center;
}

.settings-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.settings-section {
    padding: 30px;
}

.settings-card {
    margin-bottom: 30px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
}

.settings-card:last-child {
    margin-bottom: 0;
}

.settings-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card h3 i {
    color: var(--verde-green);
}

.settings-card p {
    color: #6b7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group small {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-warning {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--verde-green);
    color: white;
}

.btn-primary:hover {
    background-color: #059669;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-secondary-sm {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-secondary-sm:hover {
    background-color: #4b5563;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    display: block;
    width: 44px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-input:checked + .toggle-label {
    background-color: var(--verde-green);
}

.toggle-input:checked + .toggle-label::after {
    transform: translateX(20px);
}

/* Card Headers */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
}

.security-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #16a34a;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #16a34a;
}

.status-indicator.good {
    background-color: #16a34a;
}

.status-indicator.warning {
    background-color: #f59e0b;
}

.status-indicator.error {
    background-color: #dc3545;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
}

.toggle-password:hover {
    color: #374151;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background-color: #ddd;
    transition: all 0.3s;
}

.strength-text {
    font-size: 12px;
    color: #6b7280;
}

.password-requirements {
    margin-top: 16px;
}

.password-requirements h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #374151;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 13px;
    color: #6b7280;
    padding: 2px 0;
    position: relative;
    padding-left: 20px;
}

.password-requirements li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: #d1d5db;
}

.password-requirements li.valid {
    color: #16a34a;
}

.password-requirements li.valid::before {
    content: '●';
    color: #16a34a;
}

/* Profile Photo Section */
.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.current-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
}

.current-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-actions button {
    width: fit-content;
}

.photo-actions small {
    color: #6b7280;
    font-size: 12px;
}

/* Privacy Settings */
.privacy-setting {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.privacy-setting:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
    margin-right: 20px;
}

.setting-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #1f2937;
}

.setting-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.setting-select {
    min-width: 150px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
}

.notification-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.frequency-select {
    min-width: 100px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .settings-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .settings-sidebar {
        position: static;
    }
    
    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding: 15px 0;
    }
    
    .settings-nav .nav-item {
        white-space: nowrap;
        min-width: 120px;
        justify-content: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .settings-nav .nav-item.active {
        border-left: none;
        border-bottom-color: var(--verde-green);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .settings-section {
        padding: 20px;
    }
    
    .settings-card {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .profile-photo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-setting {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .notification-controls {
        justify-content: space-between;
    }
}

/* Responsive styles for new search bar design */
@media (max-width: 768px) {
    .search-container {
        margin: 0 0.5rem;
        max-width: none;
    }
    
    .search-box {
        padding: 0.625rem 1rem;
        border-radius: 20px;
        gap: 0.5rem;
    }
    
    .search-button,
    .filter-toggle {
        padding: 0.375rem 1rem;
        font-size: 0.8rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin: 0 0.25rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 16px;
    }
    
    .search-box input {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .search-button,
    .filter-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        border-radius: 12px;
    }
}

/* İlan Verme Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.modal.active {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--surface);
    border-radius: 20px;
    width: 95%;
    max-width: 800px;
    min-height: auto;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px 20px 0 0;
    color: white;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h2 i {
    font-size: 1.25rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.quick-post-form {
    padding: 2.5rem;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.form-row {
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.price-input-group {
    display: flex;
    gap: 0.5rem;
}

.price-input-group input {
    flex: 1;
}

.price-input-group select {
    width: 100px;
    flex-shrink: 0;
}

.file-input-wrapper {
    position: relative;
    cursor: pointer;
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.file-input-wrapper:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-text {
    color: var(--muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-input-text i {
    font-size: 2rem;
    color: var(--primary);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 1.5rem;
}

.cancel-ad,
.submit-ad {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-size: 1rem;
}

.cancel-ad {
    background: var(--gray-200);
    color: var(--text);
}

.cancel-ad:hover {
    background: var(--gray-300);
    transform: translateY(-1px);
}

.submit-ad {
    background: var(--primary);
    color: white;
}

.submit-ad:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: none;
        margin: 1rem auto;
        max-height: 90vh;
        min-height: 400px;
        border-radius: 16px;
    }

    .modal-header {
        padding: 1rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .quick-post-form {
        padding: 1.5rem;
    }

    .form-row {
        margin-bottom: 1.25rem;
    }

    .file-input-wrapper {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cancel-ad,
    .submit-ad {
        width: 100%;
        justify-content: center;
    }

    .price-input-group {
        flex-direction: column;
    }

    .price-input-group select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0.25rem;
    }
    
    .modal-content {
        margin: 0.5rem auto;
        max-height: 95vh;
        min-height: 350px;
        border-radius: 12px;
    }

    .modal-header {
        padding: 0.875rem 1.25rem;
        border-radius: 12px 12px 0 0;
    }

    .modal-header h2 {
        font-size: 1.125rem;
    }

    .quick-post-form {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .file-input-wrapper {
        padding: 1.25rem;
    }

    .file-input-text {
        font-size: 0.85rem;
    }

    .file-input-text i {
        font-size: 1.5rem;
    }
}

/* Kategori Seçim Stilleri */
.category-selection {
    text-align: center;
    padding: 2rem;
}

.category-selection h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 600;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px solid var(--gray-300);
    border-radius: 16px;
    background: var(--surface);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    min-height: 150px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--primary-light);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.category-btn:active {
    transform: translateY(-2px);
}

.category-btn i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.category-btn:hover i {
    color: white;
}

.category-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .category-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-btn {
        min-width: 100%;
        min-height: 120px;
        padding: 1.5rem;
    }
    
    .category-btn i {
        font-size: 2.5rem;
    }
    
    .category-selection {
        padding: 1rem;
    }
}

/* Step Container Stilleri */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.back-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: var(--gray-100);
}

.form-header h3 {
    margin-left: 1rem;
    color: var(--text);
    font-weight: 600;
}

/* Araba Formu Stilleri */
.car-form {
    padding: 1rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: var(--surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.photo-upload {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: var(--gray-50);
    transition: all 0.3s ease;
}

.photo-upload:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.photo-upload i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.photo-upload p {
    color: var(--muted);
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1rem 2rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--text);
}

.btn-secondary:hover {
    background-color: var(--gray-300);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .car-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        padding: 1rem;
    }
}