:root {
    /* ============================================
       Modern Coastal Palette + Typography
       ============================================ */

    --font-body: "Manrope", sans-serif;
    --font-display: "Space Grotesk", sans-serif;

    /* Primary Colors - Deep Teal */
    --primary-color: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #115e59;
    --primary-50: #ecfeff;
    --primary-100: #cffafe;

    /* Secondary Colors - Clear Blue */
    --secondary-color: #2563eb;
    --secondary-light: #60a5fa;
    --secondary-dark: #1e40af;

    /* Accent Colors - Warm Orange */
    --accent-color: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;

    /* Semantic Colors */
    --success-color: #16a34a;
    --success-light: #22c55e;
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --info-color: #0ea5e9;
    --info-light: #38bdf8;

    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --light-color: #f8fafc;
    --dark-color: #0f172a;

/* ============================================
   Core Web Vitals - CLS Prevention
   ============================================ */

/* Image containers with aspect ratio to prevent CLS */
.img-container {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-container--16x9 {
    aspect-ratio: 16 / 9;
}

.img-container--4x3 {
    aspect-ratio: 4 / 3;
}

.img-container--1x1 {
    aspect-ratio: 1 / 1;
}

/* Lazy loaded images placeholder */
img[data-src],
img[data-lazy] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded,
img[data-lazy].loaded {
    opacity: 1;
}

/* Skeleton loading for cards */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fixed dimensions for common elements to prevent CLS */
.card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.user-avatar,
.avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
}

.user-avatar-lg {
    width: 64px;
    height: 64px;
}

/* Font display optimization */
.font-display-block {
    font-display: block;
}

.font-display-swap {
    font-display: swap;
}

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-hero: linear-gradient(135deg, #0f766e 0%, #1e40af 55%, #38bdf8 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fafc 100%);
    --gradient-cta: linear-gradient(135deg, #0f766e 0%, #1e40af 100%);
    --gradient-success: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);

    /* Shadows - Softer */
    --shadow-xs: 0 1px 2px rgba(14, 116, 144, 0.08);
    --shadow-sm: 0 2px 8px rgba(14, 116, 144, 0.12);
    --shadow: 0 4px 16px rgba(14, 116, 144, 0.14);
    --shadow-md: 0 8px 24px rgba(14, 116, 144, 0.16);
    --shadow-lg: 0 12px 40px rgba(14, 116, 144, 0.18);
    --shadow-xl: 0 20px 50px rgba(14, 116, 144, 0.22);

    /* Border Radius */
    --radius-xs: 0.375rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Dark Theme Support */
[data-bs-theme="dark"] {
    --light-color: #0b1120;
    --dark-color: #e2e8f0;
    --gray-50: #0f172a;
    --gray-100: #111827;
    --gray-200: #1f2937;
    --gradient-card: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
}

[data-bs-theme="dark"] body {
    background:
        radial-gradient(1000px 600px at 15% -15%, rgba(20, 184, 166, 0.15), transparent 60%),
        radial-gradient(900px 600px at 95% 5%, rgba(59, 130, 246, 0.12), transparent 55%),
        #0b1120;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .category-card,
[data-bs-theme="dark"] .complaint-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .bg-light {
    background: #0f172a !important;
}

/* Global Styles */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background:
        radial-gradient(1200px 620px at 8% -12%, rgba(14, 116, 144, 0.16), transparent 60%),
        radial-gradient(900px 600px at 92% 0%, rgba(249, 115, 22, 0.14), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Page load + staggered reveals */
.page-animate main {
    animation: pageFadeIn 0.7s ease-out both;
}

.page-animate .row > * {
    --stagger-index: 0;
}

.page-animate .row > *:nth-child(1) { --stagger-index: 1; }
.page-animate .row > *:nth-child(2) { --stagger-index: 2; }
.page-animate .row > *:nth-child(3) { --stagger-index: 3; }
.page-animate .row > *:nth-child(4) { --stagger-index: 4; }
.page-animate .row > *:nth-child(5) { --stagger-index: 5; }
.page-animate .row > *:nth-child(6) { --stagger-index: 6; }
.page-animate .row > *:nth-child(7) { --stagger-index: 7; }
.page-animate .row > *:nth-child(8) { --stagger-index: 8; }
.page-animate .row > *:nth-child(9) { --stagger-index: 9; }
.page-animate .row > *:nth-child(10) { --stagger-index: 10; }
.page-animate .row > *:nth-child(11) { --stagger-index: 11; }
.page-animate .row > *:nth-child(12) { --stagger-index: 12; }

.page-animate .row > * .card,
.page-animate .row > * .category-card,
.page-animate .row > * .complaint-card,
.page-animate .row > * .stat-card,
.page-animate .row > * .stat-card-modern,
.page-animate .row > * .step-card,
.page-animate .row > * .trending-card,
.page-animate .row > * .cta-card,
.page-animate .row > * .value-card,
.page-animate .row > * .team-card,
.page-animate .row > * .search-card,
.page-animate .row > * .result-card,
.page-animate .row > * .tips-card {
    animation: riseIn 0.6s ease-out both;
    animation-delay: calc(var(--stagger-index) * 0.06s);
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-animate main,
    .page-animate .row > * .card,
    .page-animate .row > * .category-card,
    .page-animate .row > * .complaint-card,
    .page-animate .row > * .stat-card,
    .page-animate .row > * .stat-card-modern,
    .page-animate .row > * .step-card,
    .page-animate .row > * .trending-card,
    .page-animate .row > * .cta-card,
    .page-animate .row > * .value-card,
    .page-animate .row > * .team-card,
    .page-animate .row > * .search-card,
    .page-animate .row > * .result-card,
    .page-animate .row > * .tips-card {
        animation: none !important;
        transform: none !important;
    }
}

.min-vh-50 {
    min-height: 50vh;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-lg);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

/* Hover Effects */
.hover-transform {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-transform:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Text Color Utilities */
.text-accent {
    color: var(--accent-color) !important;
}

/* Override Bootstrap text-warning for soft amber color */
.text-warning {
    color: var(--accent-color) !important;
}

/* Override Bootstrap text-primary for soft indigo color */
.text-primary {
    color: var(--primary-color) !important;
}

.text-primary-soft {
    color: var(--primary-color) !important;
}

.text-secondary-soft {
    color: var(--secondary-color) !important;
}

/* Override Bootstrap background colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-warning {
    background: var(--gradient-accent) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 18px rgba(14, 116, 144, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14, 116, 144, 0.35);
}

.btn-warning {
    background: var(--gradient-accent);
    border-color: var(--accent-color);
    color: #1f2937;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border-color: var(--accent-light);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* Outline Buttons */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.28);
}

/* Cards */
.card {
    border: none;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    background: var(--gradient-card);
    transition: all 0.3s cubic-bezier(.4, 2, .3, 1);
}

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

/* Category Cards - modernized */
.category-card {
    border: none;
    border-radius: 14px;
    transition: transform 0.28s cubic-bezier(.2, .9, .3, 1), box-shadow 0.28s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(35, 32, 64, 0.06);
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

.category-card * {
    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(33, 30, 60, 0.12);
}

.category-card .category-icon {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(34, 34, 59, 0.06);
    background: linear-gradient(135deg, rgba(90, 0, 255, 0.12), rgba(0, 201, 167, 0.08));
    color: var(--primary-color);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card .category-content {
    margin-left: 1rem;
    text-align: left;
}

.category-card h5 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
}

category-card p {
    margin: 0;
    color: rgba(17, 24, 39, 0.6);
    font-size: 0.92rem;
    line-height: 1.35;
}

.category-card .badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

.category-card:hover .category-icon {
    transform: translateY(-6px) rotate(-6deg) scale(1.04);
}

@media (max-width: 991px) {
    .category-card {
        min-height: 180px;
    }

    .category-card .category-icon {
        width: 64px;
        height: 64px;
        font-size: 1.3rem;
    }
}

/* Complaint Cards */
.complaint-card {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(.4, 2, .3, 1);
    position: relative;
}

.complaint-card:hover {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.complaint-excerpt {
    color: rgba(17, 24, 39, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Modernized latest complaints card - glass panel with accent */
.complaint-compact {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 255, 0.98));
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(33, 30, 60, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(34, 34, 59, 0.04);
    position: relative;
    overflow: hidden;
}

.complaint-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(33, 30, 60, 0.08);
}

/* avatar column */
.complaint-compact .avatar {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(34, 34, 59, 0.04);
    box-shadow: 0 6px 18px rgba(90, 0, 255, 0.04);
}

.complaint-compact .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* initials avatar style (used when company logo is missing) */
.company-logo.initials {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: rgba(17, 24, 39, 0.88);
    font-size: 1.15rem;
}

.company-logo.initials .initials-text {
    display: inline-block;
    line-height: 1;
    transform: translateY(-1px);
}

.complaint-compact .title {
    font-weight: 700;
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--dark-color);
}

.complaint-compact .company {
    color: rgba(34, 34, 59, 0.65);
    font-weight: 600;
    font-size: 0.86rem;
}

.complaint-compact .meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: rgba(17, 24, 39, 0.56);
    font-size: 0.82rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.24rem 0.5rem;
    background: rgba(90, 0, 255, 0.06);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.badge-populer {
    display: inline-block;
    background: linear-gradient(90deg, #ff8a00, #ff2e63);
    color: #fff;
    padding: 0.26rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 0.3rem;
    box-shadow: 0 6px 18px rgba(255, 46, 99, 0.12);
}

/* excerpt with clamp: default 2 lines for a tighter look */
.complaint-compact .complaint-excerpt {
    /* Clamp to 2 lines with fallback for modern browsers */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* standard property for newer browsers */
    line-clamp: 2;
    overflow: hidden;
    color: rgba(17, 24, 39, 0.58);
    font-size: 0.95rem;
    margin: 6px 0 8px 0;
}

/* responsive: media-first on small screens */
@media (max-width: 767px) {
    .complaint-compact {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .complaint-compact .avatar {
        width: 100%;
        height: 160px;
        border-radius: 10px;
    }

    .complaint-compact .avatar img {
        object-fit: cover;
    }

    .complaint-compact .title {
        font-size: 1.04rem;
    }
}

/* Elegant typography refinements for latest complaints */
.complaint-compact {
    /* subtle typographic smoothing */
    -webkit-font-smoothing: antialiased;
    font-variant-ligatures: common-ligatures;
}

.complaint-compact::before {
    /* very subtle left accent bar to add polish without changing markup */
    content: '';
    position: absolute;
    left: 10px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(91, 33, 182, 0.95), rgba(6, 182, 212, 0.95));
    opacity: 0.03;
    pointer-events: none;
}

.complaint-compact .company {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: none;
    /* less aggressive than full uppercase */
    letter-spacing: 0.01em;
    color: rgba(91, 33, 182, 0.88);
    /* use primary tone but softer */
    margin-bottom: 6px;
}

.complaint-compact .title {
    font-size: 1.06rem;
    font-weight: 600;
    /* slightly lighter for more elegance */
    color: rgba(17, 24, 39, 0.92);
    line-height: 1.18;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* allow a bit more breathing room */
    line-clamp: 3;
    /* modern fallback */
    overflow: hidden;
    letter-spacing: -0.01em;
    transition: color 220ms ease, transform 180ms ease;
}

.complaint-compact .complaint-excerpt {
    color: rgba(17, 24, 39, 0.55);
    font-size: 0.95rem;
    margin-top: 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.complaint-compact:hover .title {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.complaint-compact .text-end .meta {
    background: rgba(17, 24, 39, 0.03);
    color: rgba(17, 24, 39, 0.56);
    font-weight: 600;
    padding: 5px 8px;
    font-size: 0.75rem;
}

.complaint-compact .chip {
    background: rgba(91, 33, 182, 0.06);
    color: rgba(91, 33, 182, 0.92);
    padding: 0.22rem 0.45rem;
    font-weight: 600;
    font-size: 0.78rem;
}

/* header time meta as small pill */
.complaint-compact .text-end .meta {
    display: inline-block;
    background: rgba(17, 24, 39, 0.04);
    color: rgba(17, 24, 39, 0.6);
    padding: 6px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
}

/* title hover accent */
.complaint-compact:hover .title {
    color: var(--primary-color);
    text-decoration: none;
}

.complaint-compact .meta {
    gap: 0.8rem;
    align-items: center;
}

.complaint-compact .chip {
    background: rgba(90, 0, 255, 0.08);
    color: var(--primary-color);
    padding: 0.26rem 0.5rem;
    font-weight: 700;
}

.complaint-compact .complaint-stats {
    display: flex;
    gap: 8px;
    align-items: center;
}

.complaint-compact .complaint-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-weight: 600;
    color: rgba(17, 24, 39, 0.56);
}

.complaint-compact small.text-muted {
    color: rgba(17, 24, 39, 0.56);
}

.complaint-compact .author {
    font-weight: 700;
    color: rgba(17, 24, 39, 0.88);
}

.complaint-compact .meta .badge-populer {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
}

/* Modern card small tweaks */
.modern-card-body .company {
    font-size: 0.82rem;
    color: rgba(34, 34, 59, 0.62);
}

.modern-title a {
    color: var(--dark-color);
    font-weight: 700;
}

.modern-card .modern-excerpt {
    color: rgba(17, 24, 39, 0.58);
}

.modern-card .modern-card-media-overlay .btn-quick,
.modern-card .modern-card-media-overlay .btn-comment {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 8px;
    padding: 6px 8px;
}

.modern-card .modern-card-media-overlay .btn-quick:hover,
.modern-card .modern-card-media-overlay .btn-comment:hover {
    background: var(--primary-color);
}

/* subtle divider */
.complaint-compact+.complaint-compact {
    margin-top: 12px;
}

@media (max-width: 991px) {
    .complaint-compact {
        padding: 0.75rem;
    }
}

/* When latest complaints are displayed as stacked blocks (col-12), ensure good spacing */
.latest-complaints-list .col-12 {
    display: block;
}

.latest-complaints-list .complaint-compact {
    width: 100%;
    box-sizing: border-box;
}

.latest-complaints-list .col-12+.col-12 {
    margin-top: 14px;
}

@media (max-width: 767px) {
    .complaint-compact {
        flex-direction: row;
        gap: 0.75rem;
    }

    .complaint-compact .avatar,
    .complaint-compact .company-logo {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .complaint-compact .title {
        font-size: 1rem;
    }
}

/* Cover image + overlay actions for complaint cards */
.card-cover {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    margin-bottom: 8px;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-cover .cover-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 8px;
    z-index: 6;
}

.btn-quick,
.btn-comment {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-quick i,
.btn-comment i {
    font-size: 0.95rem;
}

.btn-quick:hover,
.btn-comment:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Excerpt clamp utility classes */
.excerpt-2 .complaint-excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.excerpt-4 .complaint-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.complaint-stats i {
    margin-right: 4px;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 116, 144, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-select {
    border-radius: 8px;
    padding: 12px 16px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: var(--warning-color);
}

.alert-info {
    background-color: #cce7f0;
    color: #0c5460;
    border-left-color: var(--info-color);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

/* Footer modern styles */
.footer-custom {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.9) 45%), var(--gradient-primary);
    color: #fff !important;
    position: relative;
    overflow: visible;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 12px 40px rgba(10, 10, 25, 0.25);
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1200px);
    height: 8px;
    border-radius: 8px;
    background: var(--gradient-primary);
    box-shadow: 0 8px 24px rgba(14, 116, 144, 0.2);
}

.footer-custom .footer-desc {
    color: rgba(255, 255, 255, 0.78);
}

.footer-custom h6 {
    color: #fff;
    font-weight: 700;
}

.footer-custom .brand-img {
    width: 44px;
    height: 44px;
}

.footer-newsletter .form-control {
    border-radius: 999px;
    padding: 10px 14px;
}

.footer-newsletter .btn {
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--gradient-accent);
    color: #1f2937;
    border: none;
    font-weight: 600;
}

.footer-custom .footer-list li {
    margin-bottom: 8px;
}

.footer-custom .footer-link {
    color: rgba(255, 255, 255, 0.88);
    transition: color .18s ease;
}

.footer-custom .footer-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: transform .15s ease, background .15s ease;
}

.social-icon:hover {
    transform: translateY(-4px);
    background: var(--gradient-accent);
    color: #1f2937;
}

.footer-mini-menu .footer-link {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 767px) {
    .footer-custom {
        padding: 2rem 0.75rem;
    }

    .footer-newsletter .form-control {
        width: 100%;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1050 !important;
}

.dropdown-item {
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    color: #fff;
}

.hero-section .hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

/* Modern Accent Button */
.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

/* Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* Gradient Accent Badge */
.bg-gradient-accent {
    background: var(--gradient-accent) !important;
    color: #1f2937 !important;
    font-weight: 600;
}

/* Text Gradient Accent */
.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Auth page readability fixes (login/register) */
body.page-giris .text-muted,
body.page-kayit .text-muted {
    color: var(--gray-600) !important;
}

body.page-giris .text-white-50,
body.page-kayit .text-white-50 {
    color: rgba(51, 65, 85, 0.82) !important;
}

body.page-giris .card,
body.page-kayit .card {
    background: #ffffff;
}

[data-bs-theme="dark"] body.page-giris .text-muted,
[data-bs-theme="dark"] body.page-kayit .text-muted {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] body.page-giris .text-white-50,
[data-bs-theme="dark"] body.page-kayit .text-white-50 {
    color: rgba(226, 232, 240, 0.86) !important;
}

/* Auth layout (login/register) */
.auth-layout {
    min-height: calc(100vh - var(--navbar-height));
}

.auth-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.auth-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary-color);
}

[data-bs-theme="dark"] .auth-brand-icon {
    background: rgba(20, 184, 166, 0.16);
    color: #5eead4;
}

.auth-badge {
    background: rgba(14, 116, 144, 0.12);
    color: var(--primary-dark);
    border: 1px solid rgba(14, 116, 144, 0.18);
    font-weight: 600;
    padding: 0.45rem 0.7rem;
    border-radius: 9999px;
}

[data-bs-theme="dark"] .auth-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.14);
}

.auth-input .input-group-text {
    border-radius: 14px 0 0 14px;
}

.auth-input .form-control {
    border-radius: 0 14px 14px 0;
}

.auth-side {
    border-radius: var(--radius-xl);
    background: var(--gradient-hero);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(800px 500px at 15% 10%, rgba(255, 255, 255, 0.22), transparent 55%),
                      radial-gradient(700px 450px at 90% 30%, rgba(255, 255, 255, 0.16), transparent 55%);
    opacity: 0.75;
}

.auth-side-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    color: #fff;
}

.auth-side .lead {
    color: rgba(255, 255, 255, 0.9);
}

.auth-side-list {
    display: grid;
    gap: 0.9rem;
}

.auth-side-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-side-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.auth-side-foot {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Modern Stat Cards */
.stat-card-modern {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-modern:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-card-modern .stat-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--accent-light);
    font-size: 1.5rem;
}

.stat-card-modern .stat-icon-wrapper.text-info {
    background: rgba(6, 182, 212, 0.2);
    color: var(--info-light);
}

.stat-card-modern .stat-icon-wrapper.text-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-light);
}

.stat-card-modern .stat-icon-wrapper.text-primary {
    background: rgba(14, 116, 144, 0.2);
    color: var(--primary-light);
}

.stat-card-modern .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-card-modern .stat-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.hero-section .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--light-color);
    z-index: 1;
}

[data-bs-theme="dark"] .hero-section .hero-wave {
    color: #1a1a2e;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-search .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px 0 0 50px;
}

.hero-search .btn {
    border-radius: 0 50px 50px 0;
    font-size: 1.1rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

/* Stat Cards */
.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Section Styling */
.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.section-badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards - New Style */
.category-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-bs-theme="dark"] .category-card {
    background: #2d2d44;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card .category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--cat-color, var(--primary-color));
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.category-card .category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.category-card .category-desc {
    font-size: 0.875rem;
    line-height: 1.5;
}

.category-card .category-meta {
    margin-top: auto;
}

.category-card .category-arrow {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cat-color, var(--primary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Trending Cards */
.trending-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent-color, var(--primary-color));
}

[data-bs-theme="dark"] .trending-card {
    background: #2d2d44;
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trending-card.featured {
    background: var(--gradient-primary);
    color: #fff;
    border-left: none;
}

.trending-card.featured .trending-company,
.trending-card.featured .trending-stats {
    color: rgba(255, 255, 255, 0.8);
}

.trending-card.featured .trending-title {
    color: #fff;
}

.trending-rank {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.trending-company {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color, var(--primary-color));
    margin-bottom: 0.5rem;
    display: block;
}

.trending-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.trending-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: auto;
}

.trending-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Complaint Cards - New Style */
.complaint-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .complaint-card {
    background: #2d2d44;
}

.complaint-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.complaint-card a {
    display: block;
    padding: 1.25rem;
    color: inherit;
}

.complaint-card .complaint-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.complaint-card .company-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.complaint-card .complaint-meta {
    flex: 1;
    min-width: 0;
}

.complaint-card .company-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    display: block;
}

.complaint-card .complaint-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.complaint-card .category-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--cat-color, var(--primary-color));
    font-weight: 500;
    white-space: nowrap;
}

.complaint-card .complaint-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.complaint-card .complaint-excerpt {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.complaint-card .complaint-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .complaint-card .complaint-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.complaint-card .complaint-stats {
    display: flex;
    gap: 1rem;
}

.complaint-card .stat-item {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.complaint-card .author {
    font-size: 0.8rem;
    color: #6c757d;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #fff;
}

.cta-card .cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--warning-color);
    margin-bottom: 1.5rem;
}

.cta-card .cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card .cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* How It Works / Steps */
.step-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .step-card {
    background: #2d2d44;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-card .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card .step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.step-card .step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.step-card .step-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Back to Top Button - Updated */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent a {
    color: var(--warning-color);
}

/* Footer Heading */
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

/* Trust Badges */
.trust-badge {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid var(--gray-200);
    color: var(--primary-color);
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

/* Comments */
.comment-item {
    border-left: 3px solid var(--gray-200);
    padding-left: 15px;
    margin-bottom: 20px;
}

.comment-reply {
    margin-left: 30px;
    border-left: 3px solid var(--primary-color);
}

.comment-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-content {
    margin: 10px 0;
    line-height: 1.6;
}

.comment-actions {
    font-size: 0.875rem;
}

.comment-actions a {
    color: #6c757d;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.comment-actions a:hover {
    color: var(--primary-color);
}

/* User Profile */
.profile-header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 0;
    border-radius: 12px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.profile-stats {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-box {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Admin Panel */

/* Modern CTA (glass) */
.cta-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
}

.cta-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-radius: 1.25rem;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(22, 23, 24, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.cta-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cta-card p.lead {
    color: rgba(34, 34, 59, 0.8);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.btn-cta-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 0.9rem 1.6rem;
    font-size: 1.05rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(90, 0, 255, 0.12);
}

.btn-cta-secondary {
    background: transparent;
    border: 1px solid rgba(34, 34, 59, 0.08);
    color: rgba(34, 34, 59, 0.9);
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(90, 0, 255, 0.12), rgba(255, 214, 0, 0.08));
    margin-right: 1rem;
    font-size: 1.5rem;
}

@media (max-width: 767px) {
    .cta-card {
        padding: 1.25rem;
    }

    .cta-actions {
        flex-direction: column;
    }
}

/* CTA typography polish */
.cta-heading {
    font-weight: 800;
    line-height: 1.05;
    font-size: 1.6rem;
}

.cta-heading span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-sub {
    font-size: 0.8rem;
    color: rgba(34, 34, 59, 0.65);
    margin-top: 6px;
}

.cta-desc {
    margin-top: 0.35rem;
    color: rgba(34, 34, 59, 0.9);
    font-size: 1rem;
}

.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 30px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 500;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: var(--gray-200);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* Status Badges */
.status-pending {
    background-color: #ffc107;
    color: #856404;
}

.status-approved {
    background-color: #28a745;
    color: white;
}

.status-rejected {
    background-color: #dc3545;
    color: white;
}

/* Search Results */
.search-results {
    margin-top: 30px;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Profil Sayfası Stilleri */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px 15px 0 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

/* Contact page specific styles */
.contact-page .card-header {
    padding: 1rem 1.25rem;
}

.contact-page .card-body {
    padding: 1.25rem;
}

.contact-page .sticky-map {
    position: sticky;
    top: 100px;
}

.contact-page .map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 991px) {
    .contact-page .sticky-map {
        position: static;
    }

    .contact-page .map-container iframe {
        height: 320px;
    }
}

/* About page styles */
.about-page .hero-section {
    background: var(--gradient-hero);
    color: #fff;
}

.about-page .hero-section .display-4 {
    color: #fff;
}

.about-page .icon-circle {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.about-page .bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.about-page .bg-gradient-success {
    background: var(--gradient-success);
}

.about-page .value-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.about-page .value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.about-page .value-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.about-page .process-step {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.about-page .process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.about-page .team-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.about-page .stat-item .display-4 {
    font-weight: 800;
}

@media (max-width: 767px) {
    .about-page .icon-circle {
        width: 64px;
        height: 64px;
    }

    .about-page .value-icon {
        width: 52px;
        height: 52px;
    }
}

/* Index page color modernizations (scoped) */
.index-page .hero-section {
    background: var(--gradient-hero);
}

.index-page .btn-warning {
    background: var(--gradient-accent);
    border: none;
    color: #1f2937;
    font-weight: 600;
}

.index-page .btn-warning:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.index-page .stat-item .h2 {
    color: var(--primary-color);
}

.index-page .stat-item .h2.text-warning {
    color: var(--accent-color);
}

.index-page .complaint-compact::before {
    opacity: 0.05;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.index-page .complaint-compact .chip {
    background: rgba(14, 116, 144, 0.1);
    color: var(--primary-color);
}

.index-page .hero-image i {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 767px) {
    .index-page .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Complaints page styling (scoped) */
.complaints-page .bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.complaints-page .card-header.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.complaints-page .list-group-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.complaints-page .list-group-item {
    transition: background .18s ease, transform .18s ease;
}

.complaints-page .list-group-item:hover {
    transform: translateY(-3px);
}

.complaints-page .btn-warning {
    background: var(--gradient-accent);
    border: none;
    color: #1f2937;
    font-weight: 600;
}

.complaints-page .btn-outline-primary {
    border-color: rgba(14, 116, 144, 0.2);
    color: var(--primary-color);
}

.complaints-page .complaint-card {
    border-left: 4px solid rgba(14, 116, 144, 0.15);
}

.complaints-page .complaint-card:hover {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-6px);
}

.complaints-page .badge {
    font-weight: 700;
}

.complaints-page .pagination .page-link {
    border: none;
    background: transparent;
    color: var(--dark-color);
}

.complaints-page .pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .complaints-page .complaint-card {
        padding: 1rem;
    }
}

.profile-stats .stat-box {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.profile-stats .stat-box:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* İletişim Sayfası Stilleri */
.contact-icon {
    width: 40px;
    text-align: center;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link i {
    width: 20px;
    margin-right: 10px;
}

.social-link.facebook {
    color: #1877f2;
}

.social-link.facebook:hover {
    background-color: rgba(24, 119, 242, 0.1);
}

.social-link.twitter {
    color: #1da1f2;
}

.social-link.twitter:hover {
    background-color: rgba(29, 161, 242, 0.1);
}

.social-link.instagram {
    color: #e4405f;
}

.social-link.instagram:hover {
    background-color: rgba(228, 64, 95, 0.1);
}

.social-link.linkedin {
    color: #0077b5;
}

.social-link.linkedin:hover {
    background-color: rgba(0, 119, 181, 0.1);
}

.quick-help {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.help-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.help-link i {
    width: 20px;
    margin-right: 10px;
}

.map-container {
    position: relative;
    height: 400px;
}

.map-container iframe {
    border-radius: 0 0 10px 10px;
}

/* Hakkımızda Sayfası Stilleri */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.value-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.process-step {
    position: relative;
    padding: 20px;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step-icon {
    margin-top: 20px;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.counter {
    font-weight: bold;
}

/* Footer Custom Styles - modernized */
.footer-custom {
    background: linear-gradient(180deg, rgba(34, 34, 59, 0.96) 0%, rgba(34, 34, 59, 0.9) 45%), var(--gradient-primary);
    color: #fff !important;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 12px 40px rgba(10, 10, 25, 0.25);
}

.footer-custom .container {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}

.footer-custom .brand-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
}

.footer-custom h5,
.footer-custom h6 {
    color: var(--warning-color) !important;
    font-weight: 700;
}

.footer-custom .text-muted,
.footer-custom small,
.footer-custom .trust-badge {
    color: rgba(255, 255, 255, 0.82) !important;
    opacity: 1;
}

.footer-custom .footer-desc,
.footer-custom .footer-contact li,
.footer-custom .footer-list li {
    color: rgba(255, 255, 255, 0.88) !important;
}

.footer-custom .footer-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer-custom .footer-newsletter input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.footer-custom .footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-custom .footer-newsletter .btn {
    white-space: nowrap;
}

.footer-custom .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--dark-color);
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.footer-custom .social-links a i {
    color: var(--primary-color);
}

.footer-custom .social-links a:hover {
    transform: translateY(-4px);
    opacity: 0.98;
    background: var(--warning-color);
}

.footer-custom .footer-link {
    color: rgba(255, 255, 255, 0.92) !important;
    transition: color 0.18s ease, transform 0.18s ease;
}

.footer-custom .footer-link:hover {
    color: var(--warning-color) !important;
    transform: translateX(4px);
}

.footer-custom hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.footer-custom .footer-list {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    padding-left: 0;
}

.footer-custom .footer-list li {
    margin-bottom: 6px;
    line-height: 1.6;
    word-break: break-word;
}

.footer-custom .footer-list a {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    text-decoration: none;
}

.footer-custom .footer-list a:hover {
    text-decoration: underline;
    color: var(--warning-color) !important;
}

@media (max-width: 991px) {
    .footer-custom .row-cols-md-4>.col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .footer-custom .row-cols-md-4>.col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-custom .footer-list {
        font-size: 0.95rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stat-item {
        padding: 10px 0;
    }

    .category-card {
        margin-bottom: 15px;
    }

    .complaint-card {
        margin-bottom: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .admin-sidebar {
        min-height: auto;
    }

    .admin-content {
        padding: 20px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .comment-reply {
        margin-left: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .complaint-compact .title {
        font-size: 0.98rem;
    }

    .btn-lg {
        padding: 8px 20px;
        font-size: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 6px 12px !important;
    }

    .admin-content {
        padding: 15px;
    }

    .admin-card {
        padding: 20px;
    }

    .table-responsive {
        border-radius: 8px;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .back-to-top,
    .btn,
    .alert {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ============================================
   Complaint Detail Page Styles
   ============================================ */

/* Hero Section */
.complaint-hero {
    background: var(--gradient-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.complaint-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.complaint-hero .breadcrumb {
    background: transparent;
}

.complaint-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.complaint-hero-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Action Bar */
.action-bar {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .action-bar {
    background: var(--bs-dark) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.action-bar .btn {
    border-radius: 50px;
}

.action-bar .reaction-btn.active {
    font-weight: 600;
}

.action-bar .reaction-btn[data-reaction="like"].active {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}

.action-bar .reaction-btn[data-reaction="dislike"].active {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

/* Complaint Article */
.complaint-article {
    border-radius: var(--radius-lg);
}

.complaint-content {
    white-space: pre-line;
    word-wrap: break-word;
}

/* Comments Section */
.comment-card {
    background: var(--bs-body-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.comment-card:hover {
    box-shadow: var(--shadow-sm);
}

[data-bs-theme="dark"] .comment-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.comment-content {
    word-wrap: break-word;
    white-space: pre-line;
}

.comment-actions .btn.active {
    font-weight: 600;
}

.comment-actions .btn-outline-success.active {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}

.comment-actions .btn-outline-danger.active {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

/* Replies */
.replies {
    border-color: var(--primary-color) !important;
}

.reply-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

[data-bs-theme="dark"] .reply-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.reply-content {
    word-wrap: break-word;
    white-space: pre-line;
}

/* Reply Form */
.reply-form {
    background: rgba(var(--bs-primary-rgb), 0.03);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

[data-bs-theme="dark"] .reply-form {
    background: rgba(255, 255, 255, 0.03);
}

/* Comment Form */
.comment-form textarea {
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 100px;
}

.comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.char-counter {
    font-size: 0.8rem;
    color: var(--bs-secondary);
}

/* Empty State */
.empty-state-icon {
    opacity: 0.5;
}

/* Sidebar Sticky */
.sticky-sidebar {
    position: sticky;
    top: calc(var(--navbar-height, 72px) + 1rem);
}

/* CTA Cards */
.cta-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.cta-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Related Complaints */
.list-group-item {
    transition: background 0.2s ease;
}

.list-group-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
}

[data-bs-theme="dark"] .list-group-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .complaint-hero h1 {
        font-size: 1.5rem;
    }

    .action-bar {
        flex-direction: column;
        gap: 1rem !important;
    }

    .action-bar>* {
        width: 100%;
    }

    .action-bar .vr {
        display: none;
    }

    .action-bar .ms-auto {
        margin-left: 0 !important;
    }

    .sticky-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .comment-card {
        padding: 1rem;
    }

    .comment-card img[width="48"] {
        width: 40px !important;
        height: 40px !important;
    }

    .reply-item img {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ============================================
   Mobile Responsive Improvements
   ============================================ */

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-modern {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-radius: 8px;
        margin-bottom: 4px;
    }

    .search-form {
        width: 100%;
        margin: 1rem 0;
    }

    .search-form .form-control,
    .search-form .form-control:focus {
        width: 100%;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Cards */
@media (max-width: 767.98px) {
    .card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

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

    /* Mobile Table Responsive */
    .table-responsive {
        border-radius: 8px;
        box-shadow: none;
        overflow-x: auto;
    }

    .table {
        width: 100%;
        margin-bottom: 0;
    }

    /* Optional stacked layout for tables that provide data-label attributes */
    .table.table-stacked thead {
        display: none;
    }

    .table.table-stacked tbody tr {
        display: block;
        padding: 1rem;
        margin-bottom: 0.5rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        background: #fff;
    }

    .table.table-stacked tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }

    .table.table-stacked tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        margin-right: 1rem;
    }
}

/* Mobile Hero Section */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search .form-control {
        border-radius: 50px;
        margin-bottom: 0.5rem;
    }

    .hero-search .btn {
        border-radius: 50px;
        width: 100%;
    }
}

/* Mobile Category Cards */
@media (max-width: 575.98px) {
    .category-card {
        min-height: auto;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
    }

    .category-card .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .category-card .category-content {
        margin-left: 0.75rem;
    }

    .category-card h5 {
        font-size: 0.95rem;
    }
}

/* Mobile Complaint Cards */
@media (max-width: 575.98px) {
    .complaint-compact {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .complaint-compact .avatar {
        width: 100%;
        height: 120px;
        border-radius: 8px;
    }

    .complaint-compact .title {
        font-size: 0.95rem;
    }

    .complaint-compact .meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Mobile Forms */
@media (max-width: 575.98px) {

    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group .form-control {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }

    .input-group .btn {
        border-radius: 8px !important;
        width: 100%;
    }
}

/* Mobile Profile */
@media (max-width: 767.98px) {
    .profile-header {
        padding: 1.5rem;
        text-align: center;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-stats .stat-box {
        padding: 10px;
    }

    .stat-number {
        font-size: 1.25rem;
    }
}

/* Mobile Sidebar */
@media (max-width: 991.98px) {

    .profile-sidebar,
    .sidebar,
    .firma-sidebar {
        margin-bottom: 1.5rem;
    }

    .sidebar .list-group-item {
        padding: 10px 15px;
    }
}

/* Mobile Footer */
@media (max-width: 767.98px) {
    .footer-custom {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer-custom .col-lg-4,
    .footer-custom .col-lg-2,
    .footer-custom .col-md-3 {
        margin-bottom: 1.5rem;
    }

    .footer-newsletter {
        flex-direction: column;
    }

    .footer-newsletter .form-control {
        margin-bottom: 0.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile Buttons */
@media (max-width: 575.98px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        border-radius: 8px !important;
        margin-bottom: 0.25rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
    }

    .d-flex.gap-2>* {
        width: 100%;
    }
}

/* Mobile Modals */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Touch-friendly elements */
@media (max-width: 991.98px) {

    .btn,
    .nav-link,
    .dropdown-item,
    .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-item {
        padding: 12px 16px;
    }
}

/* Mobile Pagination */
@media (max-width: 575.98px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-link {
        padding: 8px 12px;
        margin: 2px;
    }
}

/* Mobile Alerts */
@media (max-width: 575.98px) {
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .flash-container {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
}

/* Hide on mobile */
@media (max-width: 767.98px) {
    .d-mobile-none {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 768px) {
    .d-mobile-only {
        display: none !important;
    }
}

/* Mobile Cookie Consent */
@media (max-width: 575.98px) {
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Firma Panel Mobile */
@media (max-width: 991.98px) {
    .firma-sidebar {
        margin-bottom: 1.5rem;
    }

    .firma-sidebar .card-body {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .firma-sidebar .list-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .firma-sidebar .list-group-item {
        flex: 1 1 calc(50% - 0.5rem);
        border-radius: 8px !important;
        margin: 0;
        text-align: center;
        padding: 10px;
    }

    .firma-sidebar .list-group-item i {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
}

/* Improved touch scrolling */
.table-responsive,
.overflow-auto {
    -webkit-overflow-scrolling: touch;
}

/* Better tap targets */
a,
button,
.btn,
input,
select,
textarea {
    touch-action: manipulation;
}

/* Responsive media */
img,
svg,
video,
iframe,
canvas {
    max-width: 100%;
    height: auto;
}

.firma-messages {
    max-height: 400px;
    overflow-y: auto;
}

.firma-messages .message-bubble {
    max-width: 70%;
}

@media (max-width: 575.98px) {
    .breadcrumb {
        flex-wrap: wrap;
        word-break: break-word;
    }

    .complaint-hero h1,
    .complaint-title,
    .complaint-compact .title,
    .result-card .title-link {
        overflow-wrap: anywhere;
    }

    .complaints-hero form[style*="min-width"] {
        min-width: 0 !important;
        width: 100%;
    }

    .firma-messages {
        height: auto !important;
        max-height: 60vh;
    }

    .firma-messages .message-bubble {
        max-width: 100% !important;
    }
}

/* Prevent text selection on buttons */
.btn {
    user-select: none;
    -webkit-user-select: none;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   User Dropdown Menu - Enhanced Styling
   ============================================ */

.user-dropdown-toggle {
    transition: all 0.2s ease;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.user-dropdown-menu {
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    padding: 0 !important;
    z-index: 1050 !important;
    margin-top: 0.5rem !important;
}

.user-account-dropdown {
    position: relative;
}

.user-account-dropdown:focus-within > .user-dropdown-menu,
.user-account-dropdown:hover > .user-dropdown-menu,
.user-account-dropdown.show > .user-dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.user-dropdown-menu.show {
    display: block !important;
    animation: userDropdownFadeIn 0.2s ease-out forwards !important;
}

@keyframes userDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-dropdown-header {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
}

.user-stat-link {
    transition: all 0.2s ease;
}

.user-stat-link:hover {
    background: rgba(245, 158, 11, 0.1);
}

.user-stat-link:hover .text-accent {
    transform: scale(1.1);
}

.user-dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1rem;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.user-dropdown-menu .dropdown-item:hover,
.user-dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    color: #f59e0b;
    transform: translateX(5px);
}

.user-dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

.user-dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0;
}

.user-dropdown-menu .btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: #1f2937;
    font-weight: 600;
}

.user-dropdown-menu .btn-accent:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.user-dropdown-menu .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.user-dropdown-menu .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.user-dropdown-menu .btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.user-dropdown-menu .btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ff6b6b;
}

/* Mobile adjustments for user dropdown */
@media (max-width: 767.98px) {
    .user-dropdown-menu {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        bottom: 10px !important;
        width: calc(100% - 20px) !important;
        max-height: 80vh;
        overflow-y: auto;
        transform: none !important;
        border-radius: 20px !important;
    }

    .user-dropdown-menu::before {
        display: none;
    }

    .user-dropdown-header {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

/* Category page modernization */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-top-4 {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.rounded-pill {
    border-radius: 50px !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.text-xs {
    font-size: 0.75rem;
}

.hover-bg-light:hover {
    background-color: #f9fafb;
    border-radius: 0.75rem;
}

/* ============================================
   Search Results Page - Modern Styles
   ============================================ */

/* Breadcrumb Modern */
.breadcrumb-modern {
    background: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-modern .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: var(--gray-600);
}

/* Search Header */
.search-header {
    animation: slideInDown 0.5s ease-out;
}

.search-header h1 {
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Search Form */
.search-form-wrapper {
    animation: slideInUp 0.5s ease-out 0.1s both;
}

.search-card {
    background: var(--gradient-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

.search-input-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
}

.search-input-group .form-control {
    border: none;
    background: transparent;
    font-size: 1rem;
}

.search-input-group .form-control:focus {
    background: transparent;
    box-shadow: none;
    border: none;
}

.search-input-group .input-group-text {
    border: none;
    background: white !important;
}

.search-input-group .btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.search-input-group .btn-primary:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow-md);
}

/* Sort Buttons - Modern */
.btn-group-modern {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-group-modern .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.btn-group-modern .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-group-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-group-modern .btn-outline-secondary {
    color: var(--gray-600);
    border-color: var(--gray-300);
    background: white;
}

.btn-group-modern .btn-outline-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Search Results Wrapper */
.search-results-wrapper {
    animation: fadeIn 0.5s ease-out 0.2s both;
}

/* Result Card - Modern Design */
.result-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-4px);
}

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

.result-card .card-footer {
    padding: 1rem 1.5rem;
}

/* Result Title */
.result-card .title-link {
    transition: all 0.2s ease;
    font-size: 1.125rem;
    line-height: 1.5;
}

.result-card .title-link:hover {
    color: var(--primary-color) !important;
}

/* Company Highlight */
.company-highlight {
    color: var(--dark-color);
    font-weight: 600;
}

/* Excerpt Text */
.excerpt-text {
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--gray-600);
}

/* Mark highlight for search terms */
mark {
    background: rgba(255, 193, 7, 0.3);
    color: inherit;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Meta Items */
.meta-item {
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.meta-item:hover {
    color: var(--primary-color) !important;
}

/* Empty State Card */
.empty-state-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.5s ease-out;
}

.empty-state-card .text-primary-subtle {
    color: var(--primary-100) !important;
    font-size: 4rem;
    opacity: 0.8;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

/* Pagination - Modern */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border: 1px solid var(--gray-200);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* Category Filter Card */
.category-filter-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.category-list {
    max-height: 400px;
    overflow-y: auto;
}

.category-filter-item {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.category-filter-item:hover {
    background: var(--primary-50);
    padding-left: 1.25rem !important;
    color: var(--primary-color) !important;
}

.category-filter-item:last-child {
    border-bottom: none;
}

/* Trending Card */
.trending-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
}

.trending-card .search-tag {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
    padding: 0.5rem 0.875rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    background: var(--gray-50) !important;
}

.trending-card .search-tag:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Tips Card */
.tips-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
}

.tips-card .fa-check {
    color: var(--success-color);
}

/* Badge Styles */
.bg-primary-subtle {
    background-color: var(--primary-50) !important;
}

.text-primary-emphasis {
    color: var(--primary-dark) !important;
}

.bg-primary-subtle.text-primary-emphasis {
    font-weight: 600;
}

/* Transitions and Animations */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .search-header h1 {
        font-size: 1.5rem;
    }

    .btn-group-modern {
        gap: 0.25rem;
    }

    .btn-group-modern .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .result-card .card-body {
        padding: 1rem;
    }

    .result-card .card-footer {
        padding: 0.75rem 1rem;
    }

    .meta-item {
        gap: 0.5rem;
        flex: 0 0 auto;
    }

    .pagination {
        justify-content: center;
        gap: 0.125rem;
    }

    .pagination .page-link {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .category-list {
        max-height: none;
    }
}

/* Dark Theme Support for Search Page */
[data-bs-theme="dark"] .search-card {
    background: #1e293b;
}

[data-bs-theme="dark"] .search-card:hover {
    background: #334155;
}

[data-bs-theme="dark"] .result-card {
    background: #1e293b;
}

[data-bs-theme="dark"] .result-card .title-link {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .result-card .title-link:hover {
    color: var(--primary-light) !important;
}

[data-bs-theme="dark"] .empty-state-card {
    background: #1e293b;
}

[data-bs-theme="dark"] .category-filter-card,
[data-bs-theme="dark"] .trending-card,
[data-bs-theme="dark"] .tips-card {
    background: #1e293b;
}

[data-bs-theme="dark"] .category-filter-item:hover {
    background: rgba(14, 116, 144, 0.1) !important;
}

[data-bs-theme="dark"] .trending-card .search-tag {
    background: #334155 !important;
    border-color: #475569;
}

[data-bs-theme="dark"] .trending-card .search-tag:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color);
}
