/* ═══════════════════════════════════════════════════════════════
   DASHBOARD STYLES — inceden.tr
   dashboard.css — Complete redesign
═══════════════════════════════════════════════════════════════ */

/* Uses design tokens from styles.css :root.
   Import styles.css before this file in HTML. */

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Dashboard body ─────────────────────────────────────────── */
.dashboard-body {
    background: var(--bg);
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT WRAPPER
═══════════════════════════════════════════════════════════════ */
.db-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.db-sidebar-logo {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.db-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.db-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.db-sidebar::-webkit-scrollbar {
    width: 4px;
}

.db-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.db-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* User card */
.db-user-card {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.db-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.db-user-info {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.db-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.1rem;
}

/* Nav */
.db-nav {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
    flex: 1;
}

.db-nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.5rem 0.35rem;
    opacity: 0.6;
}

.db-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    cursor: pointer;
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    position: relative;
}

.db-nav-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.22s ease;
}

.db-nav-item:hover {
    color: var(--primary);
    background: rgba(15, 40, 71, 0.06);
    border-left-color: rgba(15, 40, 71, 0.3);
}

.db-nav-item:hover svg {
    opacity: 1;
}

.db-nav-item.active {
    color: var(--primary);
    background: rgba(15, 40, 71, 0.06);
    border-left-color: var(--primary);
    font-weight: 700;
}

.db-nav-item.active svg {
    opacity: 1;
}

/* Badge on nav items */
.db-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Sidebar footer */
.db-sidebar-footer {
    padding: 1rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.db-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: inherit;
    text-align: left;
}

.db-logout-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.22s ease;
}

.db-logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.db-logout-btn:hover svg {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
═══════════════════════════════════════════════════════════════ */
.db-main {
    padding: 2rem 2.5rem;
    background: var(--bg);
    min-height: calc(100vh - 64px);
    overflow-y: auto;
}

/* ─── Section visibility ────────────────────────────────────── */
.db-section {
    display: none;
    animation: fadeInUp 0.3s ease backwards;
}

.db-section.active {
    display: block;
}

/* ─── Section header ─────────────────────────────────────────── */
.db-section-header {
    margin-bottom: 2rem;
}

.db-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.db-section-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   STATS GRID
═══════════════════════════════════════════════════════════════ */
.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.db-stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.db-stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.db-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-stat-icon.--blue,
.db-stat-icon--blue {
    background: rgba(15, 40, 71, 0.1);
    color: var(--primary);
}

.db-stat-icon.--gold,
.db-stat-icon--gold {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.db-stat-icon.--green,
.db-stat-icon--green {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.db-stat-info {
    flex: 1;
    min-width: 0;
}

.db-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.db-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.db-stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

.db-stat-trend.up   { color: var(--success); }
.db-stat-trend.down { color: var(--error); }

/* ═══════════════════════════════════════════════════════════════
   WELCOME BANNER
═══════════════════════════════════════════════════════════════ */
.db-welcome-banner {
    background: var(--primary);
    color: #1a1a1a;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.db-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: 180px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.db-welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.db-welcome-text {
    position: relative;
    z-index: 1;
}

.db-welcome-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.db-welcome-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.25rem;
    max-width: 380px;
    line-height: 1.6;
}

.db-welcome-illustration {
    flex-shrink: 0;
    opacity: 0.65;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.db-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.db-card--danger {
    border-color: #fee2e2;
}

.db-card--danger .db-card-header {
    background: #fff5f5;
}

.db-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.db-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.db-card-body {
    padding: 1.5rem;
}

/* ─── Empty state ────────────────────────────────────────────── */
.db-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 0.75rem;
    text-align: center;
}

.db-empty-state svg {
    opacity: 0.3;
}

.db-empty-state p {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.db-empty-state span {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE SECTION
═══════════════════════════════════════════════════════════════ */
.db-profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.db-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(15, 40, 71, 0.25);
}

.db-profile-info {
    flex: 1;
    min-width: 0;
}

.db-profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.db-profile-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.db-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    background: var(--success-bg);
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════ */
.db-form {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.db-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.db-form-group {
    display: flex;
    flex-direction: column;
}

.db-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.db-form-group input,
.db-form-group select,
.db-form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: var(--transition);
}

.db-form-group input:focus,
.db-form-group select:focus,
.db-form-group textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(39, 86, 168, 0.12);
}

.db-form-group input:disabled,
.db-form-group select:disabled {
    background: var(--bg);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.db-form-group input.db-input-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.db-form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.db-form-error {
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 0.25rem;
}

/* Input with eye toggle */
.db-input-wrap {
    position: relative;
}

.db-input-wrap input {
    padding-right: 2.5rem;
}

.db-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    transition: var(--transition);
    border-radius: 4px;
}

.db-eye-btn:hover {
    color: var(--primary);
}

/* Password strength meter */
.db-strength-meter {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.db-strength-bar {
    flex-grow: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.db-strength-fill {
    height: 100%;
    transition: width 0.4s ease, background-color 0.4s ease;
    border-radius: 3px;
    width: 0%;
}

.db-strength-fill[data-strength="weak"]    { background: var(--error); }
.db-strength-fill[data-strength="fair"]    { background: var(--accent); }
.db-strength-fill[data-strength="good"]    { background: #3b82f6; }
.db-strength-fill[data-strength="strong"]  { background: var(--success); }

.db-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 50px;
    color: var(--text-muted);
}

/* Form actions */
.db-form-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.db-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    line-height: 1.3;
}

/* Primary button (in welcome banner and general use) */
.db-btn--primary {
    background: var(--primary);
    color: #1a1a1a;
    border: none;
}

.db-btn--primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(15, 40, 71, 0.3);
}

/* Accent (used in welcome banner CTA) */
.db-welcome-banner .db-btn--primary {
    background: var(--accent);
    color: #1a202c;
    padding: 0.6rem 1.4rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.db-welcome-banner .db-btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.db-btn--outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.db-btn--outline:hover {
    background: var(--primary);
    color: #1a1a1a;
}

.db-btn--ghost {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.db-btn--ghost:hover {
    background: var(--border);
    color: var(--text);
}

.db-btn--danger {
    background: #dc2626;
    color: white;
    border: none;
}

.db-btn--danger:hover {
    background: #b91c1c;
}

.db-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.db-btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════════
   SETTINGS LIST
═══════════════════════════════════════════════════════════════ */
.db-settings-list {
    display: flex;
    flex-direction: column;
}

.db-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.db-settings-item:last-child {
    border-bottom: none;
}

.db-settings-text {
    flex: 1;
    min-width: 0;
}

.db-settings-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.db-settings-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ─── Toggle switch ──────────────────────────────────────────── */
.db-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.db-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.db-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.db-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    left: 2px;
    top: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.db-toggle input:checked + .db-toggle-slider {
    background: var(--primary);
}

.db-toggle input:checked + .db-toggle-slider::before {
    transform: translateX(20px);
}

.db-toggle input:focus + .db-toggle-slider {
    box-shadow: 0 0 0 3px rgba(39, 86, 168, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════ */
.db-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.db-modal-overlay.active,
.db-modal-overlay.open {
    display: flex;
}

.db-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInUp 0.28s ease;
}

.db-modal-icon {
    width: 64px;
    height: 64px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.db-modal-icon svg {
    color: #dc2626;
}

.db-modal h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.db-modal p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.db-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   AD LISTING TABLE (in dashboard)
═══════════════════════════════════════════════════════════════ */
.db-ad-list {
    display: flex;
    flex-direction: column;
}

.db-ad-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.db-ad-item:last-child {
    border-bottom: none;
}

.db-ad-item:hover {
    background: var(--surface-alt);
}

.db-ad-thumb {
    width: 72px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--border);
    flex-shrink: 0;
}

.db-ad-info {
    flex: 1;
    min-width: 0;
}

.db-ad-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-ad-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    display: flex;
    gap: 0.75rem;
}

.db-ad-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.db-ad-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.db-ad-status.active   { background: var(--success-bg); color: var(--success); }
.db-ad-status.pending  { background: #fef3c7; color: #92400e; }
.db-ad-status.inactive { background: var(--bg); color: var(--text-muted); }
.db-ad-status.rejected { background: var(--error-bg); color: var(--error); }

.db-ad-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MESSAGES (in dashboard)
═══════════════════════════════════════════════════════════════ */
.db-message-list {
    display: flex;
    flex-direction: column;
}

.db-message-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.db-message-item:last-child {
    border-bottom: none;
}

.db-message-item:hover {
    background: var(--surface-alt);
}

.db-message-item.unread {
    background: rgba(15, 40, 71, 0.03);
}

.db-message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-message-body {
    flex: 1;
    min-width: 0;
}

.db-message-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.db-message-preview {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.db-message-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 0.35rem;
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATIONS
═══════════════════════════════════════════════════════════════ */
.db-notif-list {
    display: flex;
    flex-direction: column;
}

.db-notif-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.db-notif-item:last-child {
    border-bottom: none;
}

.db-notif-item:hover {
    background: var(--surface-alt);
}

.db-notif-item.unread {
    background: rgba(15, 40, 71, 0.03);
}

.db-notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.db-notif-icon.info    { background: rgba(15, 40, 71, 0.1);   color: var(--primary); }
.db-notif-icon.success { background: var(--success-bg);         color: var(--success); }
.db-notif-icon.warning { background: #fef3c7;                   color: #d97706; }
.db-notif-icon.error   { background: var(--error-bg);           color: var(--error); }

.db-notif-body {
    flex: 1;
    min-width: 0;
}

.db-notif-text {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.db-notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* ─── 1100px ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .db-main {
        padding: 1.75rem 2rem;
    }

    .db-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── 900px: sidebar becomes overlay ────────────────────────── */
@media (max-width: 900px) {
    .db-wrapper {
        grid-template-columns: 1fr;
    }

    .db-sidebar {
        position: fixed;
        left: -280px;
        top: 64px;
        z-index: 800;
        height: calc(100vh - 64px);
        width: 260px;
        border-right: 1px solid var(--border);
        box-shadow: var(--shadow-hover);
        transition: left 0.3s ease;
        padding: 1rem 0;
    }

    .db-sidebar.open {
        left: 0;
    }

    .db-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 790;
    }

    .db-sidebar-backdrop.open {
        display: block;
    }

    .db-main {
        padding: 1.25rem 1rem;
        grid-column: 1;
    }

    .db-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .db-welcome-banner {
        padding: 1.5rem;
    }

    .db-mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.9rem;
        background: var(--surface);
        border: 1.5px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-muted);
        cursor: pointer;
        transition: var(--transition);
        margin-bottom: 1.25rem;
    }

    .db-mobile-sidebar-toggle:hover {
        color: var(--primary);
        border-color: var(--primary);
    }
}

/* ─── 640px ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .db-stats-grid {
        grid-template-columns: 1fr;
    }

    .db-form-row {
        grid-template-columns: 1fr;
    }

    .db-welcome-illustration {
        display: none;
    }

    .db-welcome-banner {
        padding: 1.25rem;
    }

    .db-welcome-text h2 {
        font-size: 1.05rem;
    }

    .db-form {
        padding: 0 1rem 1rem;
    }

    .db-form-actions {
        padding: 0 1rem 1rem;
    }

    .db-settings-item {
        padding: 1rem;
    }

    .db-card-header {
        padding: 1rem;
    }

    .db-modal {
        padding: 1.5rem;
    }

    .db-ad-item {
        padding: 0.9rem 1rem;
    }

    .db-message-item,
    .db-notif-item {
        padding: 0.9rem 1rem;
    }
}

/* ─── 480px ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .db-main {
        padding: 1rem 0.75rem;
    }

    .db-section-title {
        font-size: 1.2rem;
    }

    .db-stat-card {
        padding: 1rem;
    }

    .db-modal-actions {
        flex-direction: column;
    }

    .db-modal-actions .db-btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SIDEBAR TOGGLE BUTTON (in site-header)
═══════════════════════════════════════════════════════════════ */
.db-sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0.45rem;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.db-sidebar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.db-sidebar-toggle:hover {
    border-color: var(--primary);
    background: rgba(15, 40, 71, 0.05);
}

.db-sidebar-toggle:hover span {
    background: var(--primary);
}

@media (max-width: 900px) {
    .db-sidebar-toggle { display: flex; }
}

/* Overlay behind open sidebar on mobile */
.db-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 790;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}

.db-overlay.open {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   WELCOME BANNER UPDATES
═══════════════════════════════════════════════════════════════ */
.db-welcome-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.35rem;
}

.db-welcome-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e2436 100%);
}

.db-welcome-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.db-btn--accent {
    background: var(--accent);
    color: #1a1a1a;
    border: none;
}

.db-btn--accent:hover {
    background: var(--accent-hover);
    color: #1a1a1a;
}

.db-btn--ghost-white {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.db-btn--ghost-white:hover {
    background: rgba(255,255,255,0.22);
    color: white;
    border-color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE COMPLETION CARD
═══════════════════════════════════════════════════════════════ */
.db-completion-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.db-completion-card.complete {
    display: none;
}

.db-completion-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.db-completion-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 0.2rem;
}

.db-completion-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.db-completion-pct {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.db-completion-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.db-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4a90e2);
    border-radius: 99px;
    transition: width 0.8s ease;
}

.db-completion-fill.full {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARD TOP ACCENT (colored top borders)
═══════════════════════════════════════════════════════════════ */
.db-stat-card--blue   { border-top: 3px solid var(--primary); }
.db-stat-card--gold   { border-top: 3px solid #f05a00; }
.db-stat-card--green  { border-top: 3px solid #16a34a; }
.db-stat-card--purple { border-top: 3px solid #7c3aed; }

.db-stat-icon--purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.db-stat-value--active {
    font-size: 1rem !important;
    color: #7c3aed !important;
    font-weight: 800;
}

.db-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* ═══════════════════════════════════════════════════════════════
   WELCOME BANNER DECO
═══════════════════════════════════════════════════════════════ */
.db-welcome-deco {
    flex-shrink: 0;
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .db-welcome-deco { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   CARD BADGE (small tag in card header)
═══════════════════════════════════════════════════════════════ */
.db-card-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITY TIMELINE
═══════════════════════════════════════════════════════════════ */
.db-activity {
    display: flex;
    flex-direction: column;
}

.db-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.db-activity-item:last-child { border-bottom: none; }
.db-activity-item:hover { background: var(--surface-alt); }

.db-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-activity-icon.blue   { background: rgba(15, 40, 71, 0.1);   color: var(--primary); }
.db-activity-icon.gold   { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.db-activity-icon.green  { background: rgba(22, 163, 74, 0.1);   color: #16a34a; }
.db-activity-icon.purple { background: rgba(124, 58, 237, 0.1);  color: #7c3aed; }

.db-activity-body { flex: 1; min-width: 0; }

.db-activity-text {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.db-activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE HERO (profil.html)
═══════════════════════════════════════════════════════════════ */
.db-profile-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.db-profile-hero .db-profile-avatar {
    width: 84px;
    height: 84px;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(15, 40, 71, 0.28);
}

.db-profile-hero-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.db-profile-hero-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.db-profile-avatar-sm {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .db-profile-hero { padding: 1.25rem; gap: 1rem; }
    .db-profile-hero .db-profile-avatar { width: 64px; height: 64px; font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════════════
   INFO LIST (güvenlik, hesap bilgileri)
═══════════════════════════════════════════════════════════════ */
.db-info-list { display: flex; flex-direction: column; }

.db-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.db-info-item:last-child { border-bottom: none; }
.db-info-item:hover { background: var(--surface-alt); }

.db-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-info-icon.blue  { background: rgba(15, 40, 71, 0.1);   color: var(--primary); }
.db-info-icon.green { background: rgba(22, 163, 74, 0.1);   color: #16a34a; }
.db-info-icon.gold  { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.db-info-body { flex: 1; min-width: 0; }

.db-info-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.db-info-value {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.db-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.db-status-badge.green { background: var(--success-bg); color: var(--success); }
.db-status-badge.blue  { background: rgba(15, 40, 71, 0.08); color: var(--primary); }
.db-status-badge.red   { background: rgba(220, 38, 38, 0.08); color: #c62828; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE (improved)
═══════════════════════════════════════════════════════════════ */
.db-empty-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.db-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.db-empty-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 320px;
    text-align: center;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   INFO BANNER (ipucu / yardım şeridi)
═══════════════════════════════════════════════════════════════ */
.db-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.db-info-banner--blue {
    background: rgba(15, 40, 71, 0.05);
    border-color: rgba(15, 40, 71, 0.15);
}

.db-info-banner--blue .db-info-banner-icon { color: var(--primary); }

.db-info-banner-icon {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.db-info-banner-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.db-info-banner-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   FILTER BAR (mesajlarim)
═══════════════════════════════════════════════════════════════ */
.db-filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.db-filter-btn {
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.db-filter-btn:hover, .db-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #1a1a1a;
}

/* ═══════════════════════════════════════════════════════════════
   ŞIFRE SAYFASI LAYOUT (sifre-degistir)
═══════════════════════════════════════════════════════════════ */
.db-pw-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.db-tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.85rem;
}

.db-tips-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.db-tips-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .db-pw-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   SETTINGS PAGE ICONS
═══════════════════════════════════════════════════════════════ */
.db-settings-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-settings-icon.blue  { background: rgba(15, 40, 71, 0.1);   color: var(--primary); }
.db-settings-icon.gold  { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.db-settings-icon.green { background: rgba(22, 163, 74, 0.1);   color: #16a34a; }

/* ═══════════════════════════════════════════════════════════════
   DANGER ZONE ITEM (hesap-ayarlari)
═══════════════════════════════════════════════════════════════ */
.db-danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.db-danger-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.db-danger-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 420px;
}

/* ═══════════════════════════════════════════════════════════════
   STANDALONE INPUT (modal vb. için)
═══════════════════════════════════════════════════════════════ */
.db-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.db-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(39, 86, 168, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   QUICK ACTIONS GRID
═══════════════════════════════════════════════════════════════ */
.db-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.db-quick-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.db-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.db-quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.db-quick-card--blue  .db-quick-icon { background: rgba(15, 40, 71, 0.1);  color: var(--primary); }
.db-quick-card--blue:hover            { border-color: var(--primary); }

.db-quick-card--gold  .db-quick-icon { background: rgba(240,90,0,0.10); color: #c94800; }
.db-quick-card--gold:hover            { border-color: #f05a00; }

.db-quick-card--red   .db-quick-icon { background: rgba(239,68,68,0.1);   color: #dc2626; }
.db-quick-card--red:hover             { border-color: #ef4444; }

.db-quick-card--green .db-quick-icon { background: rgba(22,163,74,0.1);   color: #16a34a; }
.db-quick-card--green:hover           { border-color: #22c55e; }

.db-quick-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.db-quick-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .db-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .db-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .db-quick-card { padding: 1rem; }
    .db-quick-icon { width: 38px; height: 38px; border-radius: 10px; }
}