/* ==========================================================================
   Akvaryumpedia İlanlar - Frontend Styles
   ========================================================================== */

:root {
    --akv-primary: #0e7490;
    --akv-primary-dark: #0a5a6e;
    --akv-primary-light: #06b6d4;
    --akv-secondary: #059669;
    --akv-accent: #f59e0b;
    --akv-danger: #dc2626;
    --akv-warning: #d97706;
    --akv-text: #1e293b;
    --akv-text-light: #64748b;
    --akv-bg: #f8fafc;
    --akv-border: #e2e8f0;
    --akv-card-bg: #ffffff;
    --akv-radius: 10px;
    --akv-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --akv-shadow-lg: 0 4px 14px rgba(0,0,0,0.1);
    --akv-featured-glow: 0 0 0 2px #f59e0b, 0 4px 14px rgba(245,158,11,0.2);
}

/* Buttons */
.akv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.5;
}
.akv-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.akv-btn-primary { background: var(--akv-primary); color: #fff; }
.akv-btn-primary:hover { background: var(--akv-primary-dark); color: #fff; }
.akv-btn-secondary { background: var(--akv-border); color: var(--akv-text); }
.akv-btn-warning { background: var(--akv-warning); color: #fff; }
.akv-btn-danger { background: var(--akv-danger); color: #fff; }
.akv-btn-star { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.akv-btn-lg { padding: 12px 28px; font-size: 16px; }
.akv-btn-sm { padding: 5px 12px; font-size: 12px; }
.akv-btn-block { display: block; width: 100%; text-align: center; }

/* Badges */
.akv-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.akv-badge-featured { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
.akv-badge-sold { background: var(--akv-danger); color: #fff; }
.akv-badge-pending { background: #fef3c7; color: #92400e; border: 1px solid #fbbf24; }

/* ==========================================================================
   FILTERS
   ========================================================================== */
.akv-ilanlar-filters {
    background: var(--akv-card-bg);
    padding: 20px;
    border-radius: var(--akv-radius);
    box-shadow: var(--akv-shadow);
    margin-bottom: 30px;
}
.akv-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.akv-filter-item { flex: 1; min-width: 160px; }
.akv-filter-search { flex: 2; }
.akv-filter-item select,
.akv-filter-item input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--akv-border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
}
.akv-filter-item select:focus,
.akv-filter-item input:focus {
    outline: none;
    border-color: var(--akv-primary);
    box-shadow: 0 0 0 3px rgba(14,116,144,0.1);
}

/* ==========================================================================
   ILAN CARDS GRID
   ========================================================================== */
.akv-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--akv-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.akv-ilanlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.akv-featured-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 24px;
    border-radius: var(--akv-radius);
    margin-bottom: 30px;
    border: 1px solid #fde68a;
}
.akv-featured-section .akv-section-title { color: #92400e; }

/* Card */
.akv-ilan-card {
    background: var(--akv-card-bg);
    border-radius: var(--akv-radius);
    overflow: hidden;
    box-shadow: var(--akv-shadow);
    transition: all 0.25s ease;
}
.akv-ilan-card:hover {
    box-shadow: var(--akv-shadow-lg);
    transform: translateY(-3px);
}
.akv-ilan-featured {
    box-shadow: var(--akv-featured-glow);
}
.akv-ilan-featured:hover {
    box-shadow: 0 0 0 2px #f59e0b, 0 8px 20px rgba(245,158,11,0.25);
}
.akv-ilan-sold { opacity: 0.75; }
.akv-ilan-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.akv-ilan-card-image {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: #f1f5f9;
}
.akv-ilan-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.akv-ilan-card:hover .akv-ilan-card-image img { transform: scale(1.05); }
.akv-ilan-card-image .akv-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.akv-ilan-card-image .akv-badge-sold {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    text-align: center;
    padding: 6px;
    font-size: 13px;
}
.akv-ilan-no-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.akv-ilan-card-body { padding: 14px 16px; }
.akv-ilan-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--akv-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.akv-ilan-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.akv-ilan-meta-cat,
.akv-ilan-meta-loc {
    font-size: 12px;
    color: var(--akv-text-light);
}
.akv-ilan-meta-cat {
    background: #ecfdf5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 4px;
}
.akv-ilan-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--akv-border);
}
.akv-ilan-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--akv-primary);
}
.akv-ilan-date {
    font-size: 12px;
    color: var(--akv-text-light);
}

/* ==========================================================================
   SINGLE ILAN DETAIL
   ========================================================================== */
.akv-ilan-detail {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 20px;
}
.akv-ilan-detail-main { min-width: 0; }

/* Gallery */
.akv-ilan-gallery { margin-bottom: 24px; }
.akv-gallery-main {
    border-radius: var(--akv-radius);
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 10px;
}
.akv-gallery-main img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}
.akv-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.akv-gallery-thumb-item {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.akv-gallery-thumb-item:hover,
.akv-gallery-thumb-item.active { border-color: var(--akv-primary); }

.akv-ilan-content { line-height: 1.7; }
.akv-ilan-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--akv-text);
}

/* Sidebar info boxes */
.akv-ilan-price-box {
    background: var(--akv-card-bg);
    border-radius: var(--akv-radius);
    padding: 20px;
    box-shadow: var(--akv-shadow);
    margin-bottom: 16px;
    text-align: center;
}
.akv-featured-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}
.akv-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--akv-primary);
    display: block;
}
.akv-price-ask { font-size: 20px; color: var(--akv-text-light); }
.akv-sold-banner {
    background: var(--akv-danger);
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    margin-top: 12px;
    font-weight: 600;
}

.akv-ilan-unpublished-banner {
    background: #fef3c7;
    color: #92400e;
    padding: 14px 20px;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.akv-ilan-info-box,
.akv-ilan-contact-box {
    background: var(--akv-card-bg);
    border-radius: var(--akv-radius);
    padding: 20px;
    box-shadow: var(--akv-shadow);
    margin-bottom: 16px;
}
.akv-ilan-info-box h4,
.akv-ilan-contact-box h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--akv-border);
}
.akv-ilan-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.akv-ilan-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--akv-border);
    font-size: 14px;
}
.akv-ilan-info-list li:last-child { border-bottom: none; }
.akv-info-label { color: var(--akv-text-light); }
.akv-info-value { font-weight: 600; color: var(--akv-text); }
.akv-info-value a { color: var(--akv-primary); text-decoration: none; }
.akv-info-value a:hover { text-decoration: underline; }

.akv-contact-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 600;
}
.akv-contact-author img { border-radius: 50%; }
.akv-contact-other {
    margin-top: 10px;
    color: var(--akv-text-light);
    font-size: 14px;
}
.akv-ilan-report {
    text-align: center;
    margin-top: 10px;
    color: var(--akv-text-light);
}
.akv-ilan-report a { color: var(--akv-danger); }

/* ==========================================================================
   FORM
   ========================================================================== */
.akv-ilan-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
}
.akv-ilan-form-wrapper h2 {
    font-size: 24px;
    margin-bottom: 24px;
}
.akv-form-group {
    margin-bottom: 20px;
}
.akv-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--akv-text);
}
.akv-form-group .required { color: var(--akv-danger); }
.akv-form-group .akv-hint { font-weight: 400; color: var(--akv-text-light); font-size: 12px; }
.akv-form-group input[type="text"],
.akv-form-group input[type="number"],
.akv-form-group input[type="tel"],
.akv-form-group input[type="email"],
.akv-form-group select,
.akv-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--akv-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.akv-form-group input:focus,
.akv-form-group select:focus,
.akv-form-group textarea:focus {
    outline: none;
    border-color: var(--akv-primary);
    box-shadow: 0 0 0 3px rgba(14,116,144,0.1);
}
.akv-form-row {
    display: flex;
    gap: 16px;
}
.akv-form-half { flex: 1; }
.akv-form-third { flex: 1; min-width: 0; }
.akv-form-actions { margin-top: 24px; }

/* Image upload */
.akv-image-upload-area {
    position: relative;
    border: 2px dashed var(--akv-border);
    border-radius: var(--akv-radius);
    padding: 30px;
    text-align: center;
    transition: border-color 0.2s;
    background: var(--akv-bg);
}
.akv-image-upload-area:hover,
.akv-image-upload-area.dragover {
    border-color: var(--akv-primary);
    background: #ecfeff;
}
.akv-file-input {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.akv-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--akv-text-light);
}
.akv-upload-icon { font-size: 36px; }
.akv-image-previews {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    justify-content: center;
}
.akv-image-previews .akv-preview-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.akv-image-previews .akv-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form messages */
#akv-form-messages .akv-msg-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}
#akv-form-messages .akv-msg-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Login required */
.akv-login-required {
    text-align: center;
    padding: 60px 20px;
}
.akv-login-box {
    max-width: 400px;
    margin: 0 auto;
    background: var(--akv-card-bg);
    padding: 40px;
    border-radius: var(--akv-radius);
    box-shadow: var(--akv-shadow-lg);
}
.akv-login-box h3 { margin-bottom: 12px; }
.akv-login-box p { color: var(--akv-text-light); margin-bottom: 20px; }
.akv-login-box .akv-btn { margin: 0 5px; }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.akv-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.akv-stat-card {
    background: var(--akv-card-bg);
    padding: 20px;
    border-radius: var(--akv-radius);
    box-shadow: var(--akv-shadow);
    text-align: center;
    border-top: 3px solid var(--akv-border);
}
.akv-stat-active { border-top-color: var(--akv-secondary); }
.akv-stat-sold { border-top-color: var(--akv-danger); }
.akv-stat-featured { border-top-color: var(--akv-accent); }
.akv-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--akv-text);
}
.akv-stat-label {
    font-size: 13px;
    color: var(--akv-text-light);
    margin-top: 4px;
}
.akv-dashboard-actions { margin-bottom: 24px; }

/* My ilan items */
.akv-my-ilan-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--akv-card-bg);
    border-radius: var(--akv-radius);
    box-shadow: var(--akv-shadow);
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.akv-my-ilan-item:hover { box-shadow: var(--akv-shadow-lg); }
.akv-my-ilan-featured { border-left: 3px solid var(--akv-accent); }
.akv-my-ilan-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.akv-my-ilan-thumb img { width: 100%; height: 100%; object-fit: cover; }
.akv-my-ilan-info { flex: 1; min-width: 0; }
.akv-my-ilan-info h4 {
    font-size: 15px;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.akv-my-ilan-info h4 a { color: var(--akv-text); text-decoration: none; }
.akv-my-ilan-info h4 a:hover { color: var(--akv-primary); }
.akv-my-ilan-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--akv-text-light);
}
.akv-my-ilan-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Modal */
.akv-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.akv-modal-content {
    background: #fff;
    padding: 32px;
    border-radius: var(--akv-radius);
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.akv-modal-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--akv-text-light);
}
.akv-featured-price {
    font-size: 18px;
    text-align: center;
    padding: 12px;
    background: #fefce8;
    border-radius: 6px;
    margin: 16px 0;
}

/* Pagination */
.akv-pagination {
    text-align: center;
    padding: 20px 0;
}
.akv-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 6px;
    background: var(--akv-card-bg);
    color: var(--akv-text);
    text-decoration: none;
    box-shadow: var(--akv-shadow);
    font-size: 14px;
    transition: all 0.2s;
}
.akv-pagination .page-numbers:hover { background: var(--akv-primary); color: #fff; }
.akv-pagination .page-numbers.current { background: var(--akv-primary); color: #fff; }

/* No results */
.akv-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--akv-text-light);
}
.akv-no-results p { font-size: 16px; margin-bottom: 16px; }

/* Widget styles */
.akv-widget-ilan-list { list-style: none; padding: 0; margin: 0; }
.akv-widget-ilan-item { margin-bottom: 10px; }
.akv-widget-ilan-item a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: var(--akv-text);
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}
.akv-widget-ilan-item a:hover { background: var(--akv-bg); }
.akv-widget-ilan-thumb { width: 50px; height: 50px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.akv-widget-ilan-thumb img { width: 100%; height: 100%; object-fit: cover; }
.akv-widget-ilan-info { display: flex; flex-direction: column; }
.akv-widget-ilan-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.akv-widget-ilan-price { font-size: 12px; color: var(--akv-primary); font-weight: 700; }

.akv-widget-kat-list { list-style: none; padding: 0; margin: 0; }
.akv-widget-kat-list > li { margin-bottom: 4px; }
.akv-widget-kat-list a { text-decoration: none; color: var(--akv-text); font-size: 14px; padding: 4px 0; display: block; }
.akv-widget-kat-list a:hover { color: var(--akv-primary); }
.akv-kat-count { color: var(--akv-text-light); font-size: 12px; }
.akv-widget-kat-children { list-style: none; padding: 0 0 0 16px; margin: 2px 0 6px; }
.akv-widget-kat-children a { font-size: 13px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .akv-ilan-detail {
        grid-template-columns: 1fr;
    }
    .akv-filter-row {
        flex-direction: column;
    }
    .akv-filter-item { min-width: 100%; }
    .akv-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .akv-my-ilan-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .akv-my-ilan-thumb {
        width: 100%;
        height: 160px;
    }
    .akv-my-ilan-actions {
        width: 100%;
    }
    .akv-form-row {
        flex-direction: column;
        gap: 0;
    }
    .akv-ilanlar-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

/* =========================================================================
   MESSAGING & NOTIFICATIONS — v2
   ========================================================================= */

/* ─── Tab badge ──────────────────────────────────────────────────────── */
.akv-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
    margin-left: 6px; line-height: 1;
}

/* ─── Inbox container ────────────────────────────────────────────────── */
.akv-inbox-container {
    min-height: 420px; background: #fff; border-radius: 14px;
    border: 1px solid #e2e8f0; overflow: hidden;
}
.akv-inbox-loading {
    text-align: center; padding: 60px 20px; color: #94a3b8; font-size: 14px;
}

/* ─── Conversation list (inbox) ──────────────────────────────────────── */
.akv-conv-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background .15s;
    position: relative; text-decoration: none; color: inherit;
}
.akv-conv-item:hover { background: #f8fafc; }
.akv-conv-unread { background: #f0fdfa; border-left: 3px solid #0891b2; }
.akv-conv-unread .akv-conv-item-top strong { color: #0891b2; font-weight: 700; }
.akv-conv-item-avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid #e2e8f0;
}
.akv-conv-item-info { flex: 1; min-width: 0; }
.akv-conv-item-top {
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
    margin-bottom: 2px;
}
.akv-conv-item-top strong { font-size: 14px; color: #1e293b; font-weight: 600; }
.akv-conv-item-time { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.akv-conv-item-ilan {
    font-size: 12px; color: #0891b2; margin-bottom: 3px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akv-conv-item-preview {
    font-size: 13px; color: #64748b; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akv-conv-item-preview em { color: #94a3b8; font-style: normal; font-weight: 500; }
.akv-conv-item-badge {
    display: flex; align-items: center; justify-content: center;
    background: #0891b2; color: #fff; font-size: 11px; font-weight: 700;
    min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
    flex-shrink: 0;
}

/* ─── Conversation thread ────────────────────────────────────────────── */
.akv-conv-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.akv-conv-back {
    background: none; border: 1px solid #e2e8f0; color: #0891b2; font-weight: 600;
    cursor: pointer; font-size: 13px; padding: 6px 12px; border-radius: 8px;
    transition: all .2s;
}
.akv-conv-back:hover { background: #f0fdfa; border-color: #0891b2; }
.akv-conv-info {
    display: flex; align-items: center; gap: 10px; flex: 1;
}
.akv-conv-info img.akv-conv-avatar {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
    border: 2px solid #e2e8f0;
}
.akv-conv-info strong { font-size: 14px; color: #1e293b; display: block; }
.akv-conv-info small { font-size: 12px; color: #0891b2; font-weight: 500; }

/* Messages area */
.akv-conv-messages {
    padding: 20px; min-height: 300px; max-height: 450px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 8px;
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 100%);
}

/* Chat bubbles — WhatsApp style */
.akv-msg-bubble {
    display: flex; align-items: flex-end; gap: 8px; max-width: 75%;
    animation: akvMsgFadeIn .2s ease;
}
@keyframes akvMsgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.akv-msg-mine { align-self: flex-end; flex-direction: row-reverse; }
.akv-msg-other { align-self: flex-start; }
.akv-msg-avatar {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 1px solid #e2e8f0;
}
.akv-msg-body {
    padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5;
    position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.akv-msg-mine .akv-msg-body {
    background: linear-gradient(135deg, #0891b2, #06b6d4); color: #fff;
    border-bottom-right-radius: 6px;
}
.akv-msg-other .akv-msg-body {
    background: #fff; color: #1e293b; border: 1px solid #e2e8f0;
    border-bottom-left-radius: 6px;
}
.akv-msg-body p { margin: 0; word-wrap: break-word; }
.akv-msg-footer {
    display: flex; align-items: center; gap: 4px; margin-top: 4px;
    justify-content: flex-end;
}
.akv-msg-time {
    font-size: 10px; opacity: .65;
}
.akv-msg-mine .akv-msg-time { text-align: right; }

/* Read/sent ticks */
.akv-msg-tick {
    display: inline-flex; align-items: center; margin-left: 2px;
}
.akv-msg-tick svg { width: 14px; height: 14px; }
.akv-msg-tick--sent svg { stroke: rgba(255,255,255,.5); }
.akv-msg-tick--read svg { stroke: #a5f3fc; }

/* Reply bar */
.akv-conv-reply {
    display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid #e2e8f0;
    background: #fff; align-items: flex-end;
}
.akv-conv-reply textarea {
    flex: 1; padding: 10px 14px; border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 14px; font-family: inherit; resize: none; transition: border-color .2s;
    min-height: 42px; max-height: 120px;
}
.akv-conv-reply textarea:focus {
    outline: none; border-color: #0891b2;
}
.akv-conv-reply .akv-btn {
    padding: 10px 24px; white-space: nowrap; border-radius: 12px;
    background: linear-gradient(135deg, #0891b2, #06b6d4); color: #fff;
    border: none; font-weight: 600; font-size: 14px; cursor: pointer;
    transition: all .2s; min-height: 42px;
}
.akv-conv-reply .akv-btn:hover { filter: brightness(1.08); }
.akv-conv-reply .akv-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── Single ilan message form ───────────────────────────────────────── */
.akv-msg-form-wrap textarea {
    width: 100%; padding: 10px 12px; border: 2px solid #ccfbf1; border-radius: 10px;
    font-size: 14px; resize: vertical; font-family: inherit; transition: border-color .2s;
}
.akv-msg-form-wrap textarea:focus { outline: none; border-color: #0891b2; }
.akv-msg-form-wrap .akv-btn {
    margin-top: 8px; background: linear-gradient(135deg,#0891b2,#06b6d4); color: #fff;
    border: none; padding: 10px; border-radius: 10px; font-weight: 600; cursor: pointer;
    width: 100%; font-size: 14px; transition: all .2s;
}
.akv-msg-form-wrap .akv-btn:hover { filter: brightness(1.08); }
.akv-msg-form-wrap .akv-btn:disabled { opacity: .6; cursor: not-allowed; }
#akv-msg-status .akv-msg-success {
    background: #ecfdf5; color: #065f46; padding: 10px 14px; border-radius: 10px;
    font-size: 13px; margin-bottom: 10px; border-left: 4px solid #10b981;
}
#akv-msg-status .akv-msg-error {
    background: #fef2f2; color: #991b1b; padding: 10px 14px; border-radius: 10px;
    font-size: 13px; margin-bottom: 10px; border-left: 4px solid #ef4444;
}

/* ─── Notifications page ─────────────────────────────────────────────── */
.akv-notif-header-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.akv-notif-header-bar h3 { margin: 0; font-size: 18px; color: #1e293b; }
.akv-btn-link {
    background: none; border: none; color: #0891b2; font-size: 13px;
    cursor: pointer; font-weight: 600;
}
.akv-btn-link:hover { text-decoration: underline; }

.akv-notif-list {
    background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; overflow: hidden;
}
.akv-notif-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9; text-decoration: none; transition: background .15s;
    color: inherit;
}
.akv-notif-item:hover { background: #f8fafc; color: inherit; text-decoration: none; }
.akv-notif-unread { background: #f0fdfa; border-left: 3px solid #0891b2; }
.akv-notif-unread::before { display: none; }
.akv-notif-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid #e2e8f0;
}
.akv-notif-icon {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; background: #f0fdfa; border-radius: 50%; flex-shrink: 0;
    border: 2px solid #ccfbf1;
}
.akv-notif-body { flex: 1; }
.akv-notif-body p { margin: 0; font-size: 13px; line-height: 1.5; color: #334155; }
.akv-notif-body strong { color: #0891b2; }
.akv-notif-time { font-size: 11px; color: #94a3b8; margin-top: 3px; display: block; }

/* ─── Empty state ────────────────────────────────────────────────────── */
.akv-empty-state {
    text-align: center; padding: 50px 20px; color: #94a3b8;
}
.akv-empty-state span { font-size: 36px; display: block; margin-bottom: 10px; }
.akv-empty-state p { margin: 0 0 12px; font-size: 14px; }
.akv-empty-state small { font-size: 12px; color: #cbd5e1; display: block; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .akv-conv-messages { max-height: 340px; padding: 14px; }
    .akv-msg-bubble { max-width: 88%; }
    .akv-conv-reply { flex-direction: column; }
    .akv-conv-reply .akv-btn { align-self: stretch; }
    .akv-conv-item { padding: 12px 14px; gap: 10px; }
    .akv-conv-item-avatar { width: 40px; height: 40px; }
}

/* ====== İlan Plugin Mobile Overhaul ====== */
@media(max-width:768px){
    /* #9: İlan grid 2 columns */
    .akv-ilanlar-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px}
    .akv-ilan-card-image{padding-top:75%}
    .akv-ilan-card-body{padding:10px 12px}
    .akv-ilan-card-title{font-size:13px;-webkit-line-clamp:2;margin-bottom:4px}
    .akv-ilan-card-meta{gap:4px;margin-bottom:6px}
    .akv-ilan-meta-cat,.akv-ilan-meta-loc{font-size:11px}
    .akv-ilan-card-footer{padding-top:6px}
    .akv-ilan-price{font-size:15px}
    .akv-ilan-date{font-size:10px}
    
    /* Featured section compact */
    .akv-featured-section{padding:14px;margin-bottom:20px}
    .akv-featured-section .akv-section-title{font-size:16px;margin-bottom:12px}
    
    /* Single ilan detail */
    .akv-ilan-detail{grid-template-columns:1fr;gap:16px}
    .akv-gallery-main img{max-height:300px}
    .akv-gallery-thumb-item{width:56px;height:56px}
    .akv-price-amount{font-size:24px}
    
    /* Dashboard stats 2-col */
    .akv-dashboard-stats{grid-template-columns:repeat(2,1fr);gap:10px}
    .akv-stat-number{font-size:22px}
    
    /* My ilan items compact */
    .akv-my-ilan-item{flex-direction:column;align-items:stretch;gap:10px;padding:12px}
    .akv-my-ilan-thumb{width:100%;height:140px}
    .akv-my-ilan-actions{width:100%;justify-content:flex-end}
    
    /* Form */
    .akv-form-row{flex-direction:column;gap:0}
    .akv-ilan-form-wrapper{padding:0}
    .akv-ilan-form-wrapper h2{font-size:20px}
    
    /* Filter */
    .akv-filter-row{flex-direction:column}
    .akv-filter-item{min-width:100%}
    
    /* Touch targets */
    .akv-btn{min-height:44px}
    .akv-btn-sm{min-height:36px}
    .akv-widget-ilan-item a{padding:10px 6px;min-height:44px}
}
@media(max-width:480px){
    .akv-ilanlar-grid{gap:8px}
    .akv-ilan-card-title{font-size:12px}
    .akv-ilan-price{font-size:14px}
}
