/* ===========================
   evimibul.net - Ana Stil Dosyası
   Google-tarzı beyaz, ferah tasarım
   =========================== */

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --primary-light: #e8f0fe;
    --secondary: #5f6368;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-tertiary: #9aa0a6;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --border: #dadce0;
    --border-light: #e8eaed;
    --success: #0d904f;
    --success-bg: #e6f4ea;
    --error: #d93025;
    --error-bg: #fce8e6;
    --info: #1a73e8;
    --info-bg: #e8f0fe;
    --warning: #f9ab00;
    --warning-bg: #fef7e0;
    --shadow-sm: 0 1px 2px rgba(60, 64, 67, .1);
    --shadow-md: 0 1px 6px rgba(60, 64, 67, .15);
    --shadow-lg: 0 4px 16px rgba(60, 64, 67, .15);
    --shadow-xl: 0 8px 32px rgba(60, 64, 67, .2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* === Navbar === */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-brand:hover {
    color: var(--text-primary);
}

.brand-icon {
    color: var(--primary);
    font-size: 24px;
}

.brand-dot {
    color: var(--primary);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-dd-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.nav-dropdown-btn.active .nav-dd-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    padding: 6px 0;
    animation: navDropFade 0.15s ease;
}

.nav-dropdown-menu.show {
    display: block;
}

@keyframes navDropFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-dropdown-menu a i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #c5221f;
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0b7a43;
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* === User Menu === */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-bell {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.notification-bell:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.user-menu-btn:hover {
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: var(--transition);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--bg-secondary);
}

.user-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--text-secondary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 4px 0;
}

.logout-link {
    color: var(--error) !important;
}

.logout-link i {
    color: var(--error) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
}

/* === Main Content === */
.main-content {
    flex: 1;
    min-height: calc(100vh - 128px);
}

/* === Toast Notifications === */
.toast {
    position: fixed;
    top: 80px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
    max-width: 420px;
}

.toast button {
    background: none;
    border: none;
    cursor: pointer;
    opacity: .6;
    font-size: 14px;
    color: inherit;
    margin-left: 8px;
}

.toast button:hover {
    opacity: 1;
}

.toast-success {
    background: var(--success-bg);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.toast-error {
    background: var(--error-bg);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.toast-info {
    background: var(--info-bg);
    color: var(--info);
    border-left: 4px solid var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* === Footer === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 32px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-brand i {
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* === Form Elements === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%235f6368'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.form-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
}

.field-validation-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.validation-summary-errors {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--error);
    font-size: 14px;
}

.validation-summary-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === Cards === */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === Grid === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === Auth Pages === */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 128px);
    padding: 40px 24px;
    background: var(--bg-secondary);
}

.auth-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.4s ease;
}

.auth-card .btn-lg {
    width: 100%;
}

.auth-card-wide {
    max-width: 640px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-tertiary);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Role Selector === */
.role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.role-option {
    text-align: center;
    padding: 20px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.role-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.role-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.role-option i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.role-option span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* === Privacy Selector === */
.privacy-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.privacy-option:hover {
    border-color: var(--primary);
}

.privacy-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.privacy-option i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 2px;
}

.privacy-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.privacy-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* === Profile Page === */
.profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.profile-avatar-placeholder-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    border: 3px solid var(--border-light);
}

.profile-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info .occupation {
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.profile-info .meta {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-info .meta i {
    color: var(--text-tertiary);
    margin-right: 4px;
}

.profile-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.profile-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section h2 i {
    color: var(--primary);
}

.masked-text {
    color: var(--text-tertiary);
    font-style: italic;
    letter-spacing: 2px;
}

.permission-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.badge-pending {
    background: var(--warning-bg);
    color: #e37400;
}

.badge-locked {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* === Receipt Gallery === */
.receipt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.receipt-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    transition: var(--transition);
}

.receipt-item:hover {
    box-shadow: var(--shadow-md);
}

.receipt-item .month-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.receipt-item .year-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.receipt-item i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

/* === Listing Cards (sahibinden style) === */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.listing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.listing-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.listing-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 48px;
}

.listing-card-body {
    padding: 16px 20px;
}

.listing-card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.listing-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.listing-card-location i {
    color: var(--text-tertiary);
    margin-right: 4px;
}

.listing-card-features {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-secondary);
}

.listing-card-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-card-features i {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* === Tenant Search Card === */
.tenant-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-bottom: 16px;
}

.tenant-card:hover {
    box-shadow: var(--shadow-md);
}

.tenant-card-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.tenant-card-info {
    flex: 1;
}

.tenant-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tenant-card-occupation {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.tenant-card-details {
    font-size: 13px;
    color: var(--text-secondary);
}

/* === Settings Page === */
.settings-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px;
}

.settings-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h2 i {
    color: var(--primary);
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.setting-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

/* === Delete Account === */
.danger-zone {
    border-color: var(--error) !important;
}

.danger-zone h2 {
    color: var(--error);
}

.danger-zone h2 i {
    color: var(--error) !important;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* === Page Header === */
.page-header {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.page-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* === Tag/Badge === */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.tag-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.tag-success {
    background: var(--success-bg);
    color: var(--success);
}

.tag-warning {
    background: var(--warning-bg);
    color: #e37400;
}

.tag-info {
    background: var(--info-bg);
    color: var(--info);
}

/* === Detail Page === */
.detail-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px;
}

.detail-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.detail-gallery img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.detail-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.detail-main h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-main .location {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.detail-feature i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.detail-sidebar {
    position: sticky;
    top: 88px;
}

.detail-price-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.detail-price-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.detail-price-card .price-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.detail-price-card .owner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 16px;
}

.detail-price-card .owner-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* === Responsive === */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
    }

    .navbar-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .user-name {
        display: none;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-info {
        grid-template-columns: 1fr;
    }

    .detail-features {
        grid-template-columns: 1fr;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 16px;
    }

    .auth-card {
        padding: 24px 16px;
    }
}

/* === Loading Spinner === */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Upload Area === */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-area i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.upload-area p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* === Receipt Upload Inline === */
.receipt-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.receipt-upload-row select,
.receipt-upload-row input {
    flex: 1;
}

/* ===================================
   LANDLORD REQUEST CARDS
   =================================== */
.request-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.request-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.request-card .request-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.request-card .request-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.request-card .request-user-info {
    flex: 1;
}

.request-card .request-user-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.request-card .request-user-role {
    font-size: 12px;
    color: #666;
}

.request-card .request-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.request-card .request-rent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}

.request-card .request-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.request-card .request-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    color: #555;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.request-card .request-date {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ===================================
   RELIABILITY BADGE
   =================================== */
.reliability-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.reliability-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 13px;
}

.reliability-bar {
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.reliability-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* ===================================
   FAVORITE TENANT CARDS
   =================================== */
.favorite-tenant-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.favorite-tenant-card:hover {
    box-shadow: var(--shadow-md);
}

.favorite-tenant-card .tenant-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.favorite-tenant-card .tenant-info {
    flex: 1;
}

.favorite-tenant-card .tenant-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.favorite-tenant-card .tenant-occupation {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.favorite-tenant-card .tenant-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    padding: 16px 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
}

.page-btn:hover {
    background: #f5f5f5;
    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;
}

/* ===================================
   LANDLORD REQUEST DETAIL PAGE
   =================================== */
.request-detail-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.request-detail-header .request-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.request-detail-header .request-detail-location {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.request-detail-header .request-detail-rent {
    font-size: 24px;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 12px;
}

.request-detail-prefs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.request-detail-pref {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.request-detail-pref .pref-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.request-detail-pref .pref-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .request-detail-header {
        padding: 24px;
    }
    .request-detail-header .request-detail-title {
        font-size: 22px;
    }
    .request-detail-prefs {
        grid-template-columns: repeat(2, 1fr);
    }
    .favorite-tenant-card {
        flex-direction: column;
        text-align: center;
    }
    .favorite-tenant-card .tenant-actions {
        justify-content: center;
    }
}