:root {
    --primary: #00A896;
    --primary-light: #00C2AE;
    --primary-dark: #028090;
    --secondary: #F3F7F7;
    --accent: #FF5A5F;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --bg-main: #FFFFFF;
    --bg-card: #F9FAFB;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --safe-area-bottom: env(safe-area-inset-bottom, 16px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Fredoka', sans-serif;
}

/* Hide scrollbars globally */
::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    color: var(--text-main);
    line-height: 1.5;
    user-select: none;
    font-family: 'Fredoka', sans-serif;
}

#app {
    width: 100%;
    max-width: 500px;
    height: 100%;
    position: relative;
    background: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-card);
    /* Add a base background */
}

.screen {
    flex: 1;
    display: none;
    padding-bottom: 90px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f9f9fb;
}

.screen.active {
    display: block;
    opacity: 1;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.p-16 {
    padding: 16px;
}

.p-20 {
    padding: 20px;
}

.m-16 {
    margin: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Skeleton Loading Transitions */
.skeleton {
    background: #e2e8f0;
    background: linear-gradient(110deg, #f1f5f9 8%, #e2e8f0 18%, #f1f5f9 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.pulse-active {
    animation: pulseActive 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseActive {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.slide-up-fade {
    animation: slideUpFade 0.5s ease forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    transform: scale(0.95);
    background: var(--primary-dark);
}

/* Header */
header {
    display: none;
    /* Hidden by default, shown via app.js */
    flex-shrink: 0;
    padding: 16px 20px;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Fredoka', sans-serif;
}

.logo-text {
    font-weight: 800;
    color: var(--text-main);
}

.logo-text b {
    color: var(--primary);
    font-weight: 800;
}

.grid-layout {
    padding-bottom: 20px;
    /* Subtle extra space to ensure cutoff is visible */
}

/* Category Bar & Scroll */
.category-scroll-container {
    position: relative;
    margin-bottom: 16px;
}

.category-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-main));
    pointer-events: none;
    z-index: 2;
}

.category-bar {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 16px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    -webkit-overflow-scrolling: touch;
    /* Momentum scroll for iOS */
    scroll-snap-type: x mandatory;
    /* Snapping effect */
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    /* Each pill snaps to the start of the container */
    flex-shrink: 0;
}

.category-pill i {
    font-size: 1.15rem;
    /* Slightly smaller icon */
    margin-bottom: 4px;
    color: var(--text-muted);
}

.category-pill span {
    font-size: 0.65rem;
    /* Smaller font for long titles like 'Bilgisayar & Tablet' */
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 168, 150, 0.2);
}

.category-pill.active i,
.category-pill.active span {
    color: white;
}

.category-pill:active {
    transform: scale(0.95);
}

/* Category Selection Modal & Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: #F8FAFC;
    border-radius: 20px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.category-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.category-item span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}

.category-item:active {
    transform: scale(0.95);
    background: white;
    border-color: var(--primary);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    /* Controlled by JS but good to have base */
}

.modal-content {
    background: white;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    border-radius: 30px 30px 0 0;
    animation: modalSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translate(-50%, 100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

.brand-slogan {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: lowercase;
    font-family: 'Outfit', sans-serif;
    opacity: 0.9;
}

.nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    /* Hidden by default */
    justify-content: space-evenly;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-bottom: var(--safe-area-bottom);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-add {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -40px;
    box-shadow: 0 4px 12px rgba(0, 168, 150, 0.3);
    border: 4px solid white;
}

/* Animations & Transitions */
/* Animations removed for stabilization */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:active {
    transform: scale(0.97);
}

/* Custom Toast System */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: fadeInOut 3s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success {
    background: var(--primary);
}

.toast-error {
    background: var(--accent);
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Onboarding & New High-Contrast Login Styles */
.onboarding-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: white;
}

.onboarding-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100%;
}


.onboarding-image {
    width: 310px;
    /* Slightly smaller for better padding */
    height: auto;
    max-height: 310px;
    margin-bottom: 24px;
    animation: slideInUp 0.6s ease-out, float 4s infinite ease-in-out;
    filter: drop-shadow(0 20px 30px rgba(0, 168, 150, 0.15)) saturate(0.8) blur(0.4px);
    /* Extra softness */
    border-radius: 60px;
    /* More rounded to blend with UI */
    transition: all 0.5s ease;
}

.onboarding-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.onboarding-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 300px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.onboarding-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 40px 100px;
    /* Reduced top, increased bottom to shift up */
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

.onboarding-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #EDF2F7;
    transition: all 0.4s;
}

.dot.active {
    width: 28px;
    background: var(--primary);
}

.login-fresh {
    background: url('login_bg.png') no-repeat center center;
    background-size: cover;
    display: none;
    /* Let .screen.active handle visibility */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 100%;
    overflow-y: auto;
}

.screen.active.login-fresh {
    display: flex;
}

.login-fresh::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    /* Reduced overlay for better image visibility */
    z-index: 1;
}

.login-fresh>div {
    position: relative;
    z-index: 2;
}

.login-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.login-tab {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding: 8px 4px;
    transition: all 0.3s;
}

.login-tab.active {
    color: var(--primary);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.login-card-refined {
    width: 100%;
    background: transparent;
    padding: 20px 0;
    border-radius: 32px;
}


.input-container-refined {
    margin-bottom: 16px;
    text-align: left;
}

.input-label-refined {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

.input-field-refined {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1.5px solid #F1F5F9;
    border-radius: 14px;
    padding: 10px 14px;
    transition: all 0.3s;
}

.input-field-refined:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 168, 150, 0.1);
}

/* Scrollbar Refinement */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* Interactive Elements */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 168, 150, 0.1);
}

.nav-item i {
    transition: transform 0.2s;
}

.nav-item:active i {
    transform: scale(1.2);
}

/* Logo Styles (Based on user image) */
.logo-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper i {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: -4px;
    animation: pinBounce 2s infinite;
}

.logo-base {
    width: 18px;
    height: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
    z-index: 1;
}

.logo-large .logo-wrapper i {
    font-size: 3.5rem;
    margin-bottom: -10px;
}

.logo-large .logo-base {
    width: 44px;
    height: 12px;
    border-width: 4px;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Brand Identity Styles */
.brand-section {
    margin-bottom: 48px;
    /* Increased margin for better spacing */
}

.brand-emblem {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 168, 150, 0.35);
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.logo-header-emblem {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 168, 150, 0.2);
}

.brand-emblem i {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.brand-title {
    font-size: 3.2rem;
    /* Key change: Bigger and bolder */
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.brand-title span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

/* Switch Toggle UI */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Admin Dashboard Specifics */
.admin-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

/* --- Desktop Layout & Sidebar Styles --- */
.desktop-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    overflow: hidden;
    position: relative;
}

#app {
    width: 100%;
    max-width: 500px;
    height: 100%;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.desktop-sidebar {
    display: none;
    /* Mobile first: hide sidebars */
    flex: 1;
    height: 100%;
    padding: 40px;
    overflow-y: auto;
    z-index: 5;
    background-color: transparent;
}

/* Desktop Styles (1024px and above) */
@media (min-width: 1024px) {
    .desktop-sidebar {
        display: flex;
        flex-direction: column;
    }

    .desktop-layout {
        background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
    }

    /* Sol Panel Efektleri */
    .desktop-sidebar.left {
        background: linear-gradient(to right, rgba(248, 250, 252, 0.9), transparent);
        border-right: 1px solid rgba(0, 0, 0, 0.03);
        animation: fadeInLeft 0.8s ease-out;
    }

    /* Sağ Panel Efektleri */
    .desktop-sidebar.right {
        background: linear-gradient(to left, rgba(248, 250, 252, 0.9), transparent);
        border-left: 1px solid rgba(0, 0, 0, 0.03);
        animation: fadeInRight 0.8s ease-out;
    }
}

.sidebar-content {
    max-width: 360px;
    margin: 40px auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sidebar-header .logo-icon {
    font-size: 3rem;
    color: var(--primary);
    filter: drop-shadow(0 4px 10px rgba(0, 168, 150, 0.2));
}

.sidebar-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Fredoka', sans-serif;
}

.sidebar-slogan {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Bilgi Kartları */
.sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 168, 150, 0.08);
    border-color: rgba(0, 168, 150, 0.1);
}

.info-card i {
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: 4px;
    width: 30px;
    text-align: center;
}

.info-text h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
}

.info-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Özellikler Listesi */
.sidebar-features h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
}

.sidebar-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.sidebar-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
}

.sidebar-features li i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Banner */
.sidebar-ad-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #00897B 100%);
    padding: 24px;
    border-radius: 24px;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 168, 150, 0.2);
}

.banner-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.sidebar-ad-banner h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.sidebar-ad-banner p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Footer */
.sidebar-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrollbar adjustment for sidebar */
.desktop-sidebar::-webkit-scrollbar {
    width: 4px;
}

.desktop-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

/* --- Safe Points & Map Styles --- */
#detail-map {
    background: #f8fafc;
    margin-bottom: 12px;
}

.safe-point-item {
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 8px;
}

.safe-point-item:hover {
    border-color: var(--primary);
    background: #f0fdfa;
}

.safe-point-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.safe-point-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 2px;
}

.safe-point-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.suggest-btn {
    background: #f0fdfa;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.safe-point-card {
    background: #f0fdfa;
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    width: 100%;
}

/* --- Partner Business Styles --- */
.safe-point-item.is-partner {
    border: 1.5px solid #fbbf24;
    background: linear-gradient(to right, #fffdf2, #ffffff);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

.partner-badge {
    background: #fbbf24;
    color: #92400e;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.partner-icon {
    background: #fbbf24 !important;
    color: #92400e !important;
}

.partner-map-icon i {
    color: #fbbf24 !important;
    font-size: 1.6rem !important;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.8)) !important;
}