/* =============================================
   Heybix – AI-Powered Commerce Chat
   Awwwards-Quality Premium Dark-First Design
   ============================================= */

/* ---- CSS Custom Properties ---- */
:root {
    /* Dark theme (default) */
    --bg-primary: #06060b;
    --bg-secondary: #0c0c18;
    --bg-tertiary: #121228;
    --bg-card: rgba(18, 18, 40, 0.65);
    --bg-card-hover: rgba(28, 28, 58, 0.8);
    --bg-input: rgba(14, 14, 30, 0.8);
    --bg-sidebar: #08081a;
    --bg-glass: rgba(12, 12, 24, 0.72);
    --bg-glass-light: rgba(255, 255, 255, 0.03);
    --bg-glass-strong: rgba(12, 12, 24, 0.9);

    --text-primary: #eaeaf2;
    --text-secondary: #9494b8;
    --text-tertiary: #5e5e7e;
    --text-on-accent: #ffffff;

    /* Heybix brand colors */
    --accent: #a855f7;
    --accent-hover: #9333ea;
    --accent-soft: rgba(168, 85, 247, 0.12);
    --accent-glow: rgba(168, 85, 247, 0.25);
    --accent-gradient: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    --accent-gradient-vivid: linear-gradient(135deg, #a855f7 0%, #f472b6 50%, #fb923c 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);

    --pink: #ec4899;
    --pink-soft: rgba(236, 72, 153, 0.12);

    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.12);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(168, 85, 247, 0.3);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 24px rgba(168, 85, 247, 0.2), 0 0 48px rgba(168, 85, 247, 0.1);
    --shadow-glow-pink: 0 0 24px rgba(236, 72, 153, 0.2);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    --sidebar-width: 280px;
    --input-height: 56px;

    /* Noise/grain overlay */
    --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f8f7fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0eef8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(245, 243, 255, 0.9);
    --bg-input: rgba(255, 255, 255, 0.9);
    --bg-sidebar: #f3f2fa;
    --bg-glass: rgba(255, 255, 255, 0.78);
    --bg-glass-light: rgba(0, 0, 0, 0.03);
    --bg-glass-strong: rgba(255, 255, 255, 0.92);

    --text-primary: #18162e;
    --text-secondary: #5c5a78;
    --text-tertiary: #9896ae;

    --border: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.14);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Animated gradient mesh background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(147, 51, 234, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: bgShift 20s ease-in-out infinite alternate;
}

/* Subtle grain/noise */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--grain);
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

@keyframes bgShift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.05) translate(-2%, 1%);
    }

    100% {
        transform: scale(1) translate(1%, -1%);
    }
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--pink);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: var(--text-primary);
    outline: none;
    border: none;
    background: transparent;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ---- App Layout ---- */
.app-container {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ---- Sidebar ---- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow);
    z-index: 100;
    flex-shrink: 0;
    position: relative;
}

/* Sidebar gradient accent bar */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(168, 85, 247, 0.3) 30%,
            rgba(236, 72, 153, 0.2) 60%,
            transparent 100%);
    z-index: 1;
}

.sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Fallback gradient logo */
.sidebar-logo:not(:has(img)) {
    background: var(--accent-gradient);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Glow effect behind logo */
.sidebar-logo::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent-gradient);
    border-radius: inherit;
    opacity: 0.2;
    filter: blur(8px);
    z-index: -1;
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        opacity: 0.15;
        transform: scale(1);
    }

    50% {
        opacity: 0.25;
        transform: scale(1.05);
    }
}

.sidebar-title {
    font-size: 19px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 500;
}

.new-chat-btn {
    margin: 16px 14px 8px;
    padding: 13px 16px;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on new chat button */
.new-chat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(168, 85, 247, 0.3), 0 0 64px rgba(168, 85, 247, 0.15);
}

.new-chat-btn:hover::before {
    left: 100%;
}

.new-chat-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Chat History */
.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
}

.chat-history-item {
    padding: 11px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
}

.chat-history-item:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    transform: translateX(2px);
}

.chat-history-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
}

.chat-history-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-gradient);
    border-radius: 0 2px 2px 0;
}

.chat-history-item .icon {
    font-size: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.chat-history-item .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 10px 10px 14px;
    border-top: 1px solid var(--border);
}

.sidebar-nav-item {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 450;
}

.sidebar-nav-item:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    transform: translateX(2px);
}

.sidebar-nav-item .icon {
    font-size: 17px;
}

.sidebar-nav-item .badge {
    margin-left: auto;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

/* Theme toggle */
.theme-toggle {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 450;
}

.theme-toggle:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
}

/* ---- Main Content Area ---- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Top Bar */
.top-bar {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    z-index: 10;
}

.menu-toggle {
    display: none;
    font-size: 22px;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-glass-light);
}

.top-bar-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-size: 18px;
    position: relative;
}

.top-bar-btn:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    transform: scale(1.05);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.user-avatar:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.08);
}

/* Status ring on avatar */
.user-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid transparent;
    background: var(--accent-gradient) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.user-avatar:hover::after {
    opacity: 1;
}

/* ---- Chat Area ---- */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: emptyStateIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-state:has(.bento-layout) {
    display: block;
    padding: 0;
}

.empty-state-bento {
    width: 100%;
}

.empty-state.d-none {
    display: none !important;
}

@keyframes emptyStateIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.empty-state-icon {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-glow);
    position: relative;
    animation: iconFloat 4s ease-in-out infinite;
}

/* Orbiting ring animation */
.empty-state-icon::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    border: 2px dashed rgba(168, 85, 247, 0.2);
    animation: orbitSpin 12s linear infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-6px) rotate(1deg);
    }

    66% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.empty-state h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 420px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Suggestion Chips */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 540px;
}

.suggestion-chip {
    padding: 11px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    font-weight: 450;
    position: relative;
    overflow: hidden;
}

/* Gradient border on hover */
.suggestion-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.suggestion-chip:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(168, 85, 247, 0.08);
}

.suggestion-chip:hover::before {
    opacity: 1;
}

.suggestion-chip .chip-icon {
    font-size: 17px;
}

/* ---- Message Bubbles ---- */
.message-group {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    max-width: 82%;
    animation: messageSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.message-group.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-group.bot {
    align-self: flex-start;
}

.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.message-group.bot .message-avatar {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.message-group.user .message-avatar {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.7;
    position: relative;
    word-break: break-word;
}

.message-group.bot .message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top-left-radius: 6px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.message-group.user .message-bubble {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    border-top-right-radius: 6px;
    box-shadow: var(--shadow-glow);
}

.message-time {
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 0 4px;
    font-weight: 450;
}

.message-group.user .message-time {
    text-align: right;
}

/* TTS button */
.tts-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tts-btn:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

/* ---- Typing Indicator ---- */
.typing-indicator {
    display: none;
    align-self: flex-start;
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: messageSlideIn 0.3s ease;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator .dots {
    display: flex;
    gap: 6px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    border-top-left-radius: 6px;
    backdrop-filter: blur(12px);
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: typingDot 1.6s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(1) {
    background: var(--accent);
    animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
    background: var(--pink);
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    background: var(--accent);
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        transform: translateY(0) scale(0.8);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px) scale(1);
        opacity: 1;
    }
}

/* ---- Result Cards ---- */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    width: 100%;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: all var(--transition-normal);
    animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    cursor: default;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

/* Gradient top border on cards */
.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.result-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card), 0 0 24px rgba(168, 85, 247, 0.08);
    transform: translateY(-3px);
}

.result-card:hover::before {
    opacity: 1;
}

/* Stagger animation for cards */
.result-card:nth-child(1) {
    animation-delay: 0s;
}

.result-card:nth-child(2) {
    animation-delay: 0.08s;
}

.result-card:nth-child(3) {
    animation-delay: 0.16s;
}

.result-card:nth-child(4) {
    animation-delay: 0.24s;
}

.result-card:nth-child(5) {
    animation-delay: 0.32s;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-name {
    font-size: 15px;
    font-weight: 650;
    color: var(--text-primary);
    flex: 1;
    letter-spacing: -0.2px;
}

.card-badge {
    padding: 4px 11px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 10px;
    letter-spacing: 0.2px;
}

.card-badge.discount {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.card-badge.rating {
    background: var(--warning-soft);
    color: var(--warning);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 450;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 14px;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-action-btn {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 550;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-glass-light);
}

.card-action-btn:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.card-action-btn.primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
}

.card-action-btn.primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Multi section */
.multi-section {
    margin-top: 18px;
}

.multi-section-title {
    font-size: 14px;
    font-weight: 650;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Exploration grid */
.exploration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.exploration-item {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.exploration-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient-subtle);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.exploration-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.exploration-item:hover::before {
    opacity: 1;
}

.exploration-item .exp-icon {
    font-size: 30px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.exploration-item .exp-label {
    font-size: 12px;
    font-weight: 550;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* ---- Input Area ---- */
.input-area {
    padding: 14px 24px 18px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-top: 1px solid var(--border);
    position: relative;
}

/* Quick Filter Chips */
.quick-chips {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-chips::-webkit-scrollbar {
    display: none;
}

.quick-chip {
    padding: 7px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    font-weight: 500;
}

.quick-chip:hover,
.quick-chip.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* Input box */
.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px 14px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.input-wrapper:focus-within {
    border-color: var(--border);
    /* Odaklandığında çerçevenin parlamaması için sabit renk */
    box-shadow: var(--shadow-sm);
    /* Glow (yansıma/outline) efekti iptal edildi */
}

.chat-input {
    flex: 1;
    min-height: 24px;
    max-height: 120px;
    resize: none;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
    background: transparent;
    color: var(--text-primary);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.chat-input::placeholder {
    color: var(--text-tertiary);
}

.input-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.input-btn:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.input-btn.send-btn {
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.input-btn.send-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.08);
}

.input-btn.send-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Voice recording animation */
.input-btn.recording {
    color: var(--danger);
    animation: recordPulse 1.5s infinite;
}

@keyframes recordPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.voice-wave {
    display: none;
    align-items: center;
    gap: 3px;
    padding: 0 8px;
}

.voice-wave.active {
    display: flex;
}

.voice-wave-bar {
    width: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: waveBar 1.2s ease-in-out infinite;
}

.voice-wave-bar:nth-child(1) {
    height: 12px;
    animation-delay: 0s;
}

.voice-wave-bar:nth-child(2) {
    height: 20px;
    animation-delay: 0.15s;
}

.voice-wave-bar:nth-child(3) {
    height: 16px;
    animation-delay: 0.3s;
}

.voice-wave-bar:nth-child(4) {
    height: 24px;
    animation-delay: 0.45s;
}

.voice-wave-bar:nth-child(5) {
    height: 12px;
    animation-delay: 0.6s;
}

/* ---- Auth Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px) saturate(0.8);
    -webkit-backdrop-filter: blur(12px) saturate(0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: overlayIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 420px;
    padding: 36px;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(168, 85, 247, 0.06);
    animation: modalReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Modal gradient accent */
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 20px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-glass-light);
    transform: rotate(90deg);
}

.modal h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal .modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 550;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: var(--bg-input);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.form-error.visible {
    display: block;
}

.form-success {
    font-size: 13px;
    color: var(--success, #22c55e);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.5;
}

/* ---- Kupon Kodları ---- */
.coupon-code-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.coupon-code {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(236, 72, 153, 0.12));
    color: var(--accent-primary, #a855f7);
    border: 1px dashed rgba(147, 51, 234, 0.35);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.coupon-copy-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 12px;
    transition: all 0.2s;
}

.coupon-copy-btn:hover {
    background: rgba(147, 51, 234, 0.15);
    color: var(--accent-primary, #a855f7);
    border-color: rgba(147, 51, 234, 0.3);
}

/* Kopyalanan Kuponlar Geçmişi */
.copied-coupons-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.copied-coupons-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.clear-coupons-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted, #666);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.clear-coupons-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.copied-coupon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 6px;
    transition: background 0.2s;
}

.copied-coupon-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.copied-coupon-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.copied-coupon-detail {
    font-size: 11px;
    color: var(--text-muted, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copied-coupon-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* ---- İndirim Geri Sayım ---- */
.discount-countdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.discount-countdown.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.12));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    animation: countdown-pulse 2s ease-in-out infinite;
}

.discount-countdown.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes countdown-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ---- Uzman Paneli ---- */
.expert-filter-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.expert-filter-btn {
    padding: 5px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.expert-filter-btn:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.25);
}

.expert-filter-btn.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(147, 51, 234, 0.4);
    color: var(--accent-primary, #a855f7);
    font-weight: 600;
}

.expert-panel-item {
    cursor: pointer;
    padding: 12px !important;
}

.expert-panel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary, #a855f7), var(--accent-secondary, #ec4899));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.expert-panel-rating {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
}

.expert-panel-meta {
    font-size: 11px;
    color: var(--text-muted, #666);
    margin-top: 2px;
}

.expert-panel-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary, #a855f7);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 3px 8px;
    background: rgba(147, 51, 234, 0.08);
    border-radius: 6px;
}

/* Uzman Detay Modal */
.expert-detail-header {
    text-align: center;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.expert-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary, #a855f7), var(--accent-secondary, #ec4899));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 32px;
}

.expert-detail-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.expert-detail-stats i {
    margin-right: 4px;
}

.expert-detail-body {
    padding: 16px;
}

.expert-detail-section {
    margin-bottom: 16px;
}

.expert-detail-section h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.expert-detail-section h4 i {
    margin-right: 6px;
    color: var(--accent-primary, #a855f7);
}

.expert-detail-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.expert-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.expert-tag {
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: var(--accent-primary, #a855f7);
    font-size: 12px;
    font-weight: 500;
}

.expert-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.expert-detail-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-secondary);
}

.expert-detail-card i {
    color: var(--accent-primary, #a855f7);
    font-size: 14px;
    flex-shrink: 0;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-normal);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    color: var(--pink);
}

/* ---- Panels ---- */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    animation: overlayIn 0.2s ease;
}

.panel-overlay.active {
    display: block;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 250;
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
   
}

.side-panel.open {
    right: 0;
}

.panel-header {
    padding: 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-header h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.panel-close {
    font-size: 20px;
    color: var(--text-tertiary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.panel-close:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.panel-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.7;
}

.panel-empty .empty-icon {
    font-size: 52px;
    margin-bottom: 14px;
    filter: grayscale(0.3);
}

/* Panel list items */
.panel-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    transition: all var(--transition-fast);
    background: var(--bg-glass-light);
}

.panel-list-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(2px);
}

.panel-list-item .item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.panel-list-item .item-info {
    flex: 1;
    min-width: 0;
}

.panel-list-item .item-name {
    font-size: 14px;
    font-weight: 550;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-list-item .item-detail {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.panel-list-item .item-action {
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.panel-list-item .item-action:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-soft);
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 550;
    color: #fff;
    box-shadow: var(--shadow-lg);
    animation: toastReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1), toastDismiss 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    backdrop-filter: blur(12px);
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@keyframes toastReveal {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastDismiss {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite ease-in-out;
    border-radius: var(--radius-md);
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-card {
    height: 120px;
    margin-bottom: 10px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Friend select */
.friend-select-list {
    max-height: 300px;
    overflow-y: auto;
}

.friend-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.friend-select-item:hover {
    background: var(--accent-soft);
}

.friend-select-item .friend-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.friend-select-item .friend-name {
    font-size: 14px;
    font-weight: 550;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes waveBar {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}

@keyframes typewriter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

/* Voice controls */
.voice-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.voice-toggle {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.voice-toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.voice-toggle.active {
    color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 300;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 299;
        display: none;
    }

    .sidebar-backdrop.active {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .chat-area {
        padding: 14px;
    }

    .message-group {
        max-width: 92%;
    }

    .input-area {
        padding: 10px 14px 14px;
    }

    .suggestion-chips {
        max-width: 100%;
    }

    .exploration-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .top-bar {
        padding: 10px 16px;
    }

    .side-panel {
        max-width: 100%;
    }

    .result-card {
        padding: 14px;
    }

    .empty-state h2 {
        font-size: 24px;
    }

    .empty-state-icon {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .exploration-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal {
        padding: 28px 22px;
        border-radius: var(--radius-xl);
    }

    .empty-state h2 {
        font-size: 22px;
    }

    .empty-state-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .suggestion-chip {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* Touch feedback */
@media (hover: none) {

    .suggestion-chip:active,
    .card-action-btn:active,
    .quick-chip:active,
    .exploration-item:active {
        transform: scale(0.96);
        transition: transform 0.1s;
    }

    .result-card:hover {
        transform: none;
        box-shadow: var(--shadow-card);
    }
}

/* Safe area (iPhone notch etc.) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .input-area {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }
}

/* ---- Focus visible for accessibility ---- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* =============================================
   DETAIL MODAL
   ============================================= */
.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.detail-modal.open {
    opacity: 1;
    pointer-events: all;
}

.detail-modal-content {
    width: 92%;
    max-width: 680px;
    max-height: 88vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.35s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.detail-close {
    position: sticky;
    top: 12px;
    right: 12px;
    float: right;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    margin: 12px;
    transition: background 0.2s;
}

.detail-close:hover {
    background: var(--accent-soft);
}

.detail-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.detail-loading .dots {
    display: flex;
    gap: 6px;
}

.detail-loading .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotPulse 1.2s ease infinite;
}

.detail-loading .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.detail-loading .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Gallery */
.detail-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-main img[src*="no-image"] {
    object-fit: contain;
    padding: 40px;
    opacity: 0.4;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-nav.prev {
    left: 12px;
}

.gallery-nav.next {
    right: 12px;
}

.gallery-nav:hover {
    background: var(--accent-soft);
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--bg-glass-strong);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
}

.thumb {
    width: 56px;
    height: 42px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.2s;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--accent);
}

/* Detail Info */
.detail-info {
    padding: 20px 24px 28px;
}

.detail-head {
    margin-bottom: 16px;
}

.detail-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Rating Hero */
.rating-hero {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(245, 166, 35, 0.02));
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 12px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star-icon {
    font-size: 18px;
    color: var(--border-color);
    transition: color 0.2s;
}

.star-icon.filled {
    color: #f5a623;
    text-shadow: 0 1px 3px rgba(245, 166, 35, 0.3);
}

.rating-score {
    font-size: 20px;
    font-weight: 800;
    color: #f5a623;
}

.rating-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Kategori Etiketleri */
.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.detail-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.rating {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge.cat {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ===== İletişim Bilgi Grid ===== */
.detail-meta {
    margin-bottom: 16px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background: var(--bg-tertiary);
}

.info-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-link {
    color: var(--accent) !important;
    text-decoration: none;
    font-weight: 600;
}

.info-link:hover {
    text-decoration: underline;
}

/* ===== Açıklama ===== */
.detail-desc {
    margin-bottom: 16px;
}

.desc-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

/* ===== Fiyat Kartı ===== */
.detail-price-box {
    margin-bottom: 16px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.price-card-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.price-card-body {
    padding: 14px 16px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.price-line+.price-line {
    border-top: 1px solid var(--border);
}

.price-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-old {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.price-new {
    font-size: 20px;
    font-weight: 800;
    color: var(--success, #27ae60);
}

.price-line.highlight {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(39, 174, 96, 0.02));
    border-radius: 8px;
    padding: 10px 12px;
    margin: 4px -4px;
}

.price-savings {
    text-align: center;
    padding: 10px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(108, 99, 255, 0.05));
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

/* ===== Dealer ===== */
.detail-dealer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.detail-dealer:hover {
    border-color: var(--accent);
}

.dealer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dealer-icon {
    font-size: 22px;
}

.dealer-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.dealer-link-btn {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dealer-link-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== Aksiyon Butonları ===== */
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.action-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.action-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.action-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

.action-btn.request {
    background: var(--warning-soft);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.action-btn.request.sent {
    background: var(--success-soft);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

/* ===== İndirim Kartları ===== */
.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.discount-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.discount-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), #e91e63);
    border-radius: 4px 0 0 4px;
}

.discount-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.1);
}

.discount-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.discount-card .discount-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.discount-card:hover {
    border-color: var(--border-hover);
}

.discount-card.expired {
    opacity: 0.7;
}

.discount-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.discount-pct {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin: 4px 0;
}

.discount-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.discount-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.discount-actions {
    margin-top: 8px;
}

/* Reviews */
.review-form {
    margin-bottom: 20px;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.review-stars .star {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.15s, transform 0.15s;
}

.review-stars .star.active {
    color: var(--warning);
}

.review-stars .star:hover {
    transform: scale(1.2);
}

.review-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 10px;
}

.review-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.review-submit {
    width: 100%;
}

.review-login-msg {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.review-login-msg .login-link {
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

.review-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.review-item.compact {
    padding: 10px 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.review-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-avatar-text {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.review-user {
    flex: 1;
}

.review-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    display: block;
}

.review-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star-sm {
    font-size: 14px;
    color: var(--text-tertiary);
}

.star-sm.active {
    color: var(--warning);
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.no-reviews {
    text-align: center;
    padding: 24px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.load-more-btn {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent);
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.load-more-btn:hover {
    background: var(--accent-soft);
}

.review-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-tertiary);
}

/* =============================================
   PROFILE PANEL
   ============================================= */
.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.profile-username {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.profile-stats .stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid var(--border);
}

.profile-stats .stat:last-child {
    border-right: none;
}

.stat-val {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-form .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-form .optional {
    font-weight: 400;
    color: var(--text-tertiary);
    text-transform: none;
}

.profile-form input,
.profile-form textarea,
.profile-form select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus {
    border-color: var(--accent);
    outline: none;
}

.profile-form select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-with-status {
    position: relative;
}

.nick-status {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* =============================================
   CHAT DELETE BUTTON
   ============================================= */
.chat-history-item {
    position: relative;
}

.chat-delete-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 14px;
    padding: 4px;
    color: var(--text-tertiary);
}

.chat-history-item:hover .chat-delete-btn {
    opacity: 1;
}

.chat-delete-btn:hover {
    color: var(--danger);
}

/* =============================================
   CLICKABLE CARDS
   ============================================= */
.result-card.clickable {
    cursor: pointer;
}

.result-card.clickable:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.12);
}

.card-action-btn.detail-btn {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent) !important;
}

/* =============================================
   BUSINESS PANEL
   ============================================= */
.side-panel.wide {
    max-width: 480px;
}

.biz-profile {
    margin-bottom: 16px;
}

.biz-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.biz-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.biz-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.biz-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.biz-actions .action-btn {
    flex: 1;
}

/* =============================================
   DETAIL PANEL (sağdan açılan geniş panel)
   ============================================= */
.detail-panel {
    max-width: 520px !important;
}

.detail-panel .panel-body {
    padding: 0;
}

.detail-panel .detail-info {
    padding: 16px 20px 24px;
}

/* Fiyat Kutusu */
.detail-price-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 6px;
}

.old-price {
    font-size: 16px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.new-price {
    font-size: 26px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.savings {
    font-size: 14px;
    color: var(--success);
    margin-top: 4px;
}

/* İndirim kartı içi fiyat */
.discount-price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 4px;
}

.disc-old-price {
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.disc-new-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

/* Kupon Kodu */
.coupon-code {
    display: inline-block;
    background: var(--bg-glass);
    border: 1px dashed var(--accent);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    margin: 6px 0;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.coupon-code:hover {
    background: var(--accent-soft);
    border-style: solid;
}

/* Galeri boyutu panel için */
.detail-panel .gallery-main {
    aspect-ratio: 16/10;
    border-radius: 0;
}

.detail-panel .gallery-thumbs {
    padding: 8px 12px;
    background: var(--bg-tertiary);
}

/* ============================================= */
/* Kart Resimleri                                */
/* ============================================= */
.card-image {
    width: 100%;
    height: 160px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-card:hover .card-image img {
    transform: scale(1.05);
}

.card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-soft), var(--bg-tertiary));
}

.card-initial {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
}

/* ============================================= */
/* Uzman Slider                                  */
/* ============================================= */
/* ============================================= */
/* UZMAN KARTLARI — Premium Tasarım              */
/* ============================================= */
.expert-section {
    margin: 16px 0 20px;
    animation: fadeIn 0.4s ease;
}

.expert-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expert-section-title i {
    color: #7c4dff;
    font-size: 17px;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expert-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.expert-slider::-webkit-scrollbar {
    display: none;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.25s;
}

.slider-nav:hover {
    background: linear-gradient(135deg, #7c4dff, #e040fb);
    color: #fff;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: -8px;
}

.slider-next {
    right: -8px;
}

/* --- Uzman Kartı --- */
.expert-card {
    min-width: 280px;
    max-width: 280px;
    background: var(--bg-secondary);
    border-radius: 20px;
    position: relative;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
    border: 1px solid rgba(124, 77, 255, 0.15);
}

.expert-card-glow {
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, #7c4dff, #e040fb, #ff6d00, #7c4dff);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.4s;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.expert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(124, 77, 255, 0.25);
    border-color: rgba(124, 77, 255, 0.4);
}

.expert-card:hover .expert-card-glow {
    opacity: 0.5;
}

/* Badge */
.expert-badge-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.expert-badge {
    background: linear-gradient(135deg, #7c4dff, #e040fb);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(124, 77, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(124, 77, 255, 0.4);
    }

    50% {
        box-shadow: 0 3px 18px rgba(124, 77, 255, 0.7);
    }
}

/* Kart Üst — Avatar + Brief */
.expert-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px 0;
    position: relative;
    z-index: 1;
}

.expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(124, 77, 255, 0.3);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(124, 77, 255, 0.2);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c4dff22, #e040fb22);
}

.expert-avatar-placeholder span {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c4dff, #e040fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expert-brief {
    flex: 1;
    min-width: 0;
}

.expert-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.expert-specialty {
    font-size: 11px;
    color: #7c4dff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expert-specialty i {
    font-size: 10px;
    opacity: 0.7;
}

/* Açıklama */
.expert-desc {
    padding: 8px 16px 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Kart Alt — Rating, Lokasyon, Fiyat */
.expert-card-bottom {
    padding: 10px 16px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.expert-rating-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.expert-stars {
    display: flex;
    gap: 1px;
}

.expert-stars i {
    font-size: 11px;
    color: rgba(255, 193, 7, 0.3);
}

.expert-stars i.filled {
    color: #ffc107;
}

.expert-score {
    font-size: 13px;
    font-weight: 700;
    color: #f5a623;
}

.expert-reviews {
    font-size: 11px;
    color: var(--text-secondary);
}

.expert-loc {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expert-loc i {
    color: #e040fb;
    font-size: 10px;
}

.expert-price {
    font-size: 12px;
    font-weight: 600;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 5px;
}

.expert-price i {
    font-size: 11px;
    opacity: 0.7;
}

/* Kart Aksiyonlar */
.expert-card-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px 16px;
    position: relative;
    z-index: 1;
}

.expert-action-btn {
    flex: 0;
    padding: 7px 12px;
    border: 1px solid rgba(124, 77, 255, 0.25);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.expert-action-btn.primary {
    flex: 1;
    justify-content: center;
    background: linear-gradient(135deg, #7c4dff, #e040fb);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(124, 77, 255, 0.3);
}

.expert-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(124, 77, 255, 0.5);
}

.expert-action-btn:not(.primary):hover {
    background: rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.4);
    color: #7c4dff;
}

/* ============================================= */
/* DETAY PANELİ — Uzman Modu                     */
/* ============================================= */

/* Expert Hero Section (galeri yerine) */
.expert-hero-section {
    position: relative;
    width: 100%;
    padding: 40px 0 24px;
    text-align: center;
    overflow: hidden;
}

.expert-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c4dff15, #e040fb15, #ff6d0010);
    z-index: 0;
}

.expert-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.expert-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(124, 77, 255, 0.4);
    box-shadow: 0 8px 30px rgba(124, 77, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c4dff22, #e040fb22);
}

.expert-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-hero-initials {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c4dff, #e040fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expert-hero-badge {
    background: linear-gradient(135deg, #7c4dff, #e040fb);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 14px rgba(124, 77, 255, 0.4);
    letter-spacing: 0.3px;
}

/* Uzman modunda panel header rengi */
.detail-panel.expert-mode .panel-header {
    background: linear-gradient(135deg, #7c4dff, #9c27b0) !important;
}

.detail-panel.expert-mode .panel-header h3 {
    color: #fff !important;
}

.detail-panel.expert-mode .panel-close {
    color: rgba(255, 255, 255, 0.8) !important;
}

.detail-panel.expert-mode .panel-close:hover {
    color: #fff !important;
}

/* Uzman modunda dealer bölümü */
.detail-panel.expert-mode .detail-dealer {
    background: linear-gradient(135deg, #7c4dff08, #e040fb08);
    border: 1px solid rgba(124, 77, 255, 0.15);
}

.detail-panel.expert-mode .dealer-icon i {
    color: #7c4dff;
}

.detail-panel.expert-mode .dealer-link-btn {
    background: linear-gradient(135deg, #7c4dff, #e040fb);
    border: none;
    color: #fff;
}

.detail-panel.expert-mode .dealer-link-btn:hover {
    box-shadow: 0 4px 16px rgba(124, 77, 255, 0.4);
}

/* Uzman modunda aksiyon butonları */
.detail-panel.expert-mode .action-btn.fav:hover,
.detail-panel.expert-mode .action-btn.follow:hover {
    background: rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.3);
}

/* Uzman modunda kategori badge */
.detail-panel.expert-mode .badge.cat {
    background: linear-gradient(135deg, #7c4dff15, #e040fb15);
    color: #7c4dff;
    border-color: rgba(124, 77, 255, 0.2);
}


/* ============================================= */
/* Daha Fazla Göster Butonu                      */
/* ============================================= */
.show-more-wrap {
    text-align: center;
    margin: 16px 0 8px;
    animation: fadeIn 0.4s ease;
}

.show-more-btn {
    background: var(--bg-secondary);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 24px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.show-more-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
    transform: translateY(-1px);
}

.show-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================= */
/* Fiyat Etiketleri (Detail Panel)               */
/* ============================================= */
.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.price-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 110px;
}

.old-price {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.7;
}

.new-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--success, #27ae60);
}

.savings {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.savings-row {
    background: var(--accent-soft);
    border-radius: 8px;
    padding: 8px 12px !important;
    margin-top: 4px;
}

/* İndirim kartlarındaki fiyat etiketleri */
.disc-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.disc-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 60px;
}

.disc-old-price {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.disc-new-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--success, #27ae60);
}

.disc-savings {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

/* ============================================= */
/* Bayi Panel Detayları                          */
/* ============================================= */
.biz-details {
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 10px 0;
}

.biz-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-primary);
}

.biz-detail-row a {
    color: var(--accent);
    text-decoration: none;
}

.biz-detail-row a:hover {
    text-decoration: underline;
}

.biz-detail-icon {
    font-size: 15px;
    min-width: 22px;
    text-align: center;
}

.biz-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}

.biz-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0 12px;
}

.biz-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.biz-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.biz-gallery-item img:hover {
    transform: scale(1.08);
}

/* ============================================= */
/* Panel Tıklanabilir Öğeler                     */
/* ============================================= */
.clickable-item {
    cursor: pointer;
    transition: background 0.2s;
}

.clickable-item:hover {
    background: var(--bg-tertiary);
}

/* ============================================= */
/* Paylaşılanlar Badge                           */
/* ============================================= */
#sharedBadge {
    display: none;
}

/* Arkadaş Arama Sonuçları */
#friendSearchResults {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

#friendSearchResults .panel-list-item {
    padding: 8px 12px;
}

#friendSearchResults .friend-status-btn {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: default;
}

#friendSearchResults .friend-add-btn {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

#friendSearchResults .friend-add-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Panel öğe thumbnail */
.item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Unread highlight */
.panel-list-item.unread {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
}

/* Animasyonlar */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== İndirim Kartı Fiyat Satırı ===== */
.discount-price-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin: 8px 0;
}

.disc-old {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.disc-arrow {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

.disc-final {
    font-size: 17px;
    font-weight: 800;
    color: var(--success, #27ae60);
}

.discount-pct {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #ff5252);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 16px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.discount-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 6px;
}

.coupon-code {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--accent);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.coupon-code:hover {
    background: var(--accent-soft);
}

.discount-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.discount-actions {
    margin-top: 10px;
}

.discount-card.expired {
    opacity: 0.6;
    border-style: dashed;
}

.discount-card.expired::before {
    background: var(--text-secondary);
}

/* ===== Bayi Panel Stili ===== */
.biz-profile {
    margin-bottom: 20px;
}

.biz-cover-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
}

.biz-cover-wrap img.biz-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.biz-cover-wrap:hover img.biz-cover {
    transform: scale(1.03);
}

.biz-hero-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.biz-hero-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* Bayi Galeri Grid */
.biz-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.biz-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
}

.biz-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.biz-gallery-item:hover img {
    transform: scale(1.08);
}

/* Compact Review Cards */
.review-card-compact {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.review-card-compact:hover {
    border-color: var(--accent);
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-card-header strong {
    font-size: 14px;
    color: var(--text-primary);
}

.review-stars-inline {
    display: flex;
    gap: 1px;
}

.review-card-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Business Panel body padding */
#businessPanelBody {
    padding: 20px 24px 28px;
}

#businessPanelBody .detail-section {
    margin-bottom: 20px;
}

#businessPanelBody .detail-actions {
    margin-bottom: 20px;
}

/* ============================================= */
/* RANDEVU SİSTEMİ                               */
/* ============================================= */

/* Randevu Al Butonu (detay panelinde) */
.action-btn.appointment {
    background: linear-gradient(135deg, #00bcd4, #0097a7) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    order: -1;
}

.action-btn.appointment:hover {
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.4) !important;
    transform: translateY(-1px);
}

/* Uzman modunda randevu buton */
.detail-panel.expert-mode .action-btn.appointment {
    background: linear-gradient(135deg, #7c4dff, #e040fb) !important;
}

.detail-panel.expert-mode .action-btn.appointment:hover {
    box-shadow: 0 4px 16px rgba(124, 77, 255, 0.4) !important;
}

/* --- Randevu Modal --- */
.apt-modal {
    max-width: 440px;
    width: 92%;
}

.apt-modal-header {
    background: linear-gradient(135deg, #00bcd4, #0097a7) !important;
}

.apt-modal-header h3 {
    color: #fff !important;
}

.apt-biz-label {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apt-biz-label i {
    color: var(--accent);
}

.apt-form-group {
    margin-bottom: 16px;
}

.apt-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.apt-form-group label i {
    color: var(--accent);
    margin-right: 4px;
}

.apt-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.apt-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

textarea.apt-input {
    resize: vertical;
    min-height: 70px;
}

select.apt-input {
    cursor: pointer;
}

.apt-error {
    background: #ff5252;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apt-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.apt-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}

.apt-btn.cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.apt-btn.cancel:hover {
    background: var(--border-color);
}

.apt-btn.submit {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 188, 212, 0.3);
}

.apt-btn.submit:hover:not(:disabled) {
    box-shadow: 0 5px 18px rgba(0, 188, 212, 0.5);
    transform: translateY(-1px);
}

.apt-btn.submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Randevularım Paneli --- */
.apt-filters {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.apt-filter-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.apt-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.apt-filter-btn.active {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
    border-color: transparent;
}

/* --- Randevu Kartı --- */
.apt-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    transition: all 0.25s;
}

.apt-card:hover {
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.apt-card.cancelled {
    opacity: 0.6;
}

.apt-card-left {
    flex-shrink: 0;
}

.apt-card-img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.apt-card-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00bcd422, #0097a722);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #00bcd4;
}

.apt-card-content {
    flex: 1;
    min-width: 0;
}

.apt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.apt-card-biz {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apt-card-cat {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.apt-card-cat i {
    color: var(--accent);
    margin-right: 2px;
}

.apt-card-datetime {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.apt-card-datetime i {
    color: #00bcd4;
    margin-right: 3px;
}

.apt-card-notes {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.apt-card-notes i {
    color: #ffc107;
    margin-right: 3px;
}

.apt-card-actions {
    display: flex;
    gap: 8px;
}

.apt-cancel-btn {
    padding: 6px 14px;
    border: 1px solid #ff5252;
    border-radius: 8px;
    background: transparent;
    color: #ff5252;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.apt-cancel-btn:hover {
    background: #ff5252;
    color: #fff;
}

.apt-call-btn {
    padding: 6px 14px;
    border: 1px solid #4caf50;
    border-radius: 8px;
    background: transparent;
    color: #4caf50;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.apt-call-btn:hover {
    background: #4caf50;
    color: #fff;
}

/* --- Randevu Durum Badge --- */
.apt-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.apt-status.pending {
    background: #ff980020;
    color: #ff9800;
}

.apt-status.confirmed {
    background: #4caf5020;
    color: #4caf50;
}

.apt-status.cancelled {
    background: #ff525220;
    color: #ff5252;
}

.apt-status.completed {
    background: #2196f320;
    color: #2196f3;
}

/* --- Toast Bildirim --- */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #fff;
}

.toast-notification.error {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    color: #fff;
}

.toast-notification.info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
}

/* ---- Working Hours Section ---- */
.working-hours-section,
.detail-section .hours-grid {
    margin-top: 12px;
}

.working-hours-section .section-title,
.detail-section>.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.working-hours-section .section-title i,
.detail-section>.section-title i {
    color: var(--accent);
    font-size: 14px;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-glass-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid var(--border);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.hours-day {
    color: var(--text-secondary);
    font-weight: 500;
}

.hours-time {
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 12px;
}

.hours-closed {
    color: var(--danger);
    font-weight: 600;
    font-size: 12px;
}

/* ---- Map Section ---- */
.map-section,
.detail-section .map-container {
    margin-top: 12px;
}

.map-section .section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-section .section-title i {
    color: var(--accent);
    font-size: 14px;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-glass-light);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 200px;
    border: none;
    border-radius: var(--radius-md);
}

/* ---- Card Coupon Badge ---- */
.card-coupon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin: 6px 0;
    background: var(--accent-soft);
    border: 1px dashed var(--border-accent);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.card-coupon i {
    font-size: 14px;
}

.card-coupon .coupon-code {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.card-coupon .coupon-code:hover {
    background: var(--accent);
    -webkit-text-fill-color: #fff;
    border-radius: 4px;
}

/* ========================================= */
/* HEYBIX NEW HERO & STORY STYLES            */
/* ========================================= */
.hero-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUpper 0.8s ease forwards;
}

@keyframes fadeInUpper {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: floatAnim 3s ease-in-out infinite;
}

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
    border-radius: 50%;
    filter: blur(15px);
    animation: pulseGlow 4s infinite alternate;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    min-width: 110px;
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-feature-item .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-feature-item:hover .feature-icon {
    background: var(--accent-gradient);
    color: white;
}

.hero-feature-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Story Bar */
.story-bar-container {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.story-bar-container::-webkit-scrollbar {
    display: none;
}

.story-bar {
    display: flex;
    gap: 16px;
    align-items: center;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-width: 70px;
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 3px;
    position: relative;
    transition: transform 0.2s ease;
}

.story-item:hover .story-ring {
    transform: scale(1.05);
}

.story-ring.viewed {
    background: var(--border-color);
}

.story-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    object-fit: cover;
    background: var(--bg-card);
}

.story-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   KESİN SLIDER VE KART ONARIMLARI (PREMIUM UI)
   ========================================================================== */

.slider-container {
    position: relative !important;
    width: 100% !important;
    margin: 15px 0 25px 0 !important;
    padding: 0 20px !important;
    display: block !important;
}

.horizontal-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 16px !important;
    padding: 10px 5px 20px 5px !important;
    width: 100% !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    scroll-behavior: smooth !important;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none !important;
}

.horizontal-scroll .result-card,
.expert-slider .expert-card,
.campaign-slider .result-card {
    min-width: 320px !important;
    max-width: 320px !important;
    width: 320px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
}

.slider-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #eee !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 50 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    font-size: 16px !important;
}

.slider-prev {
    left: 0 !important;
}

.slider-next {
    right: 0 !important;
}

.expert-section {
    margin: 24px 0 !important;
    position: relative !important;
}

.expert-section-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: var(--text-primary) !important;
}

.expert-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 16px !important;
    padding: 10px 5px !important;
    scrollbar-width: none !important;
}

@media (max-width: 768px) {
    .slider-nav {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
        display: flex !important;
    }

    .slider-prev {
        left: 0 !important;
    }

    .slider-next {
        right: 0 !important;
    }

    .horizontal-scroll .result-card,
    .expert-slider .expert-card,
    .campaign-slider .result-card {
        min-width: 280px !important;
        max-width: 280px !important;
        width: 280px !important;
    }
}

/* ==========================================================================
   BAYİ BİLGİ PANELİ YENİ ÖZELLİKLER (KAPAK, LOGO, GALERİ)
   ========================================================================== */
.biz-profile {
    position: relative !important;
    margin-bottom: 2rem !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-color) !important;
}

.biz-cover-wrap {
    width: 100% !important;
    height: 180px !important;
    background: var(--bg-secondary) !important;
    position: relative !important;
    overflow: hidden !important;
}

.biz-cover-wrap.default-cover {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%) !important;
}

.biz-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.biz-logo-wrap {
    position: absolute !important;
    top: -35px !important;
    left: 20px !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    border: 3px solid var(--bg-card) !important;
    background: #fff !important;
    overflow: hidden !important;
    z-index: 2 !important;
    box-shadow: var(--shadow-sm) !important;
}

.biz-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 3px !important;
}

.biz-hero-info {
    padding: 45px 20px 20px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.biz-hero-info h3 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    line-height: 1.2 !important;
}

.biz-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

.biz-gallery-item {
    aspect-ratio: 1 !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

.biz-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ==========================================================================
   MODERN HERO CANVAS (Karşılama Ekranı)
   ========================================================================== */
/* MODERN HERO KISMI BENTO LAYOUTA TAŞINDI */

.bento-layout {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr 1fr !important;
    gap: 1.2rem !important;
    width: 100% !important;
    max-width: 1100px !important;
    height: 100% !important;
    align-items: stretch !important;
}

@media (max-width: 1024px) {
    .bento-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
    }
}

.bento-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 1.8rem 1.5rem !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.bento-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.bento-bg-glow {
    position: absolute !important;
    width: 250px !important;
    height: 250px !important;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    top: -50px !important;
    right: -50px !important;
    filter: blur(30px) !important;
    z-index: 0 !important;
}

.business-glow {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%) !important;
    left: -50px !important;
    right: auto !important;
    bottom: -50px !important;
    top: auto !important;
}

.bento-header,
.bento-body,
.bento-main-desc,
.bento-action-area {
    position: relative !important;
    z-index: 1 !important;
}

.bento-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 1.5rem !important;
}

.bento-icon {
    width: 40px !important;
    height: 40px !important;
    background: rgba(168, 85, 247, 0.1) !important;
    color: #a855f7 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
}

.bento-business .bento-icon {
    background: rgba(236, 72, 153, 0.1) !important;
    color: #ec4899 !important;
}

.bento-header h2 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 0 !important;
}

.bento-body h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.8rem !important;
    color: var(--text-color) !important;
}

.bento-body p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
    margin-bottom: 1.5rem !important;
}

/* Orta (Ana) Kolon Özellikleri */
.bento-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: linear-gradient(145deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.5) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

.bento-main-desc {
    font-size: 1.05rem !important;
    color: var(--text-muted) !important;
    line-height: 1.5 !important;
    margin-bottom: 2rem !important;
}

.bento-action-area {
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 1.5rem !important;
    border-top: 1px dashed var(--border-color) !important;
}

.bento-action-area p {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 1rem !important;
}

/* Çip Listeleri ve Aksiyonlar (Ufak Etiketler) */
.bento-chip-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: auto !important;
}

.bento-chip-wrapper.justify-center {
    justify-content: center !important;
}

.bento-sm-chip {
    padding: 6px 12px !important;
    background: rgba(168, 85, 247, 0.08) !important;
    color: #a855f7 !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1px solid rgba(168, 85, 247, 0.15) !important;
    pointer-events: none !important;
    /* Tıklanmaz - Statik etiket */
}

.bento-sm-chip.main-chip {
    background: rgba(236, 72, 153, 0.08) !important;
    color: #ec4899 !important;
    border-color: rgba(236, 72, 153, 0.15) !important;
}

.bento-sm-chip i {
    font-size: 0.85rem !important;
}

/* İşletme Özellik Listesi */
.bento-feature-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.2rem 0 !important;
}

.bento-feature-list li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    color: var(--text-color) !important;
    margin-bottom: 8px !important;
}

.bento-feature-list li i {
    color: #10b981 !important;
    font-size: 0.9rem !important;
}

/* İşletme/Uzman CTA Butonu */
.bento-cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #a855f7, #ec4899) !important;
    color: #fff !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    margin-top: auto !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3) !important;
}

.bento-cta-btn:hover {
    transform: scale(1.02) !important;
    opacity: 0.9 !important;
    color: #fff !important;
}

/* Arka plan renk animasyonları (Breathing Glows) */
.hero-glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    left: 20%;
    filter: blur(40px);
    animation: pulse-glow 6s infinite alternate ease-in-out;
    z-index: 0;
    opacity: 0.6;
}

.hero-glow-bg-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: 15%;
    filter: blur(50px);
    animation: pulse-glow 8s infinite alternate-reverse ease-in-out;
    z-index: 0;
    opacity: 0.5;
}

@keyframes pulse-glow {
    0% {
        transform: scale(0.8) translate(0, 0);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2) translate(30px, -20px);
        opacity: 0.7;
    }
}

.hero-center {
    text-align: center;
    z-index: 10;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Avatar ve Göz Yansıması */
.hero-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar-inner {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
    padding: 10px;
}

.hero-avatar-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-avatar-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #a855f7, #ec4899, #f59e0b, #a855f7);
    animation: rotate-ring 4s linear infinite;
    z-index: 1;
    filter: blur(4px);
    opacity: 0.8;
}

@keyframes rotate-ring {
    100% {
        transform: rotate(360deg);
    }
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-main-title span {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.hero-main-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* İpucu Kartları (Suggestion Chips) */
.hero-suggestion-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.hero-suggestions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    z-index: 10;
    width: 100%;
    max-width: 800px;
}

.hero-suggestion-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.hero-suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.hero-suggestion-card .sc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-suggestion-card .sc-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-suggestion-card .sc-text strong {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 600;
}

.hero-suggestion-card .sc-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-suggestion-card .sc-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.hero-suggestion-card:hover .sc-arrow {
    transform: translateX(3px);
    opacity: 1;
    color: #a855f7;
}

@media (max-width: 900px) {
    .hero-suggestions {
        grid-template-columns: 1fr;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .hero-business-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

/* İşletme (Dealer) CTA Banner */
.hero-business-cta {
    margin-top: 3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 800px;
    width: 100%;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-business-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.15);
}

.hero-business-cta .cta-content {
    flex: 1;
    text-align: left;
}

.hero-business-cta .cta-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.hero-business-cta .cta-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.hero-business-cta .cta-button {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.hero-business-cta .cta-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* --- BENTO LOGO VE BAŞLIK OPTİMİZASYONU --- */
.hero-avatar {
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-avatar-inner {
    width: 50px !important;
    height: 50px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    overflow: hidden !important;
    padding: 8px !important;
}

.hero-avatar-inner img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.hero-avatar-ring {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: conic-gradient(from 0deg, #a855f7, #ec4899, #f59e0b, #a855f7) !important;
    animation: rotate-ring 4s linear infinite !important;
    z-index: 1 !important;
    filter: blur(4px) !important;
    opacity: 0.8 !important;
}

.hero-main-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    color: var(--text-color) !important;
    letter-spacing: -0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.hero-main-title span {
    background: linear-gradient(135deg, #a855f7, #ec4899) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: shine 3s infinite linear !important;
}

/* ============================================ */
/* STORY (HİKAYELER) BARI                       */
/* ============================================ */
.story-bar-container {
    width: 100%;
    flex-shrink: 0;
    overflow: visible;
    padding: 10px 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.story-bar {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 0 10px 10px 10px;
    /* Scrollbar Gizleme */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.story-bar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    width: 72px;
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    position: relative;
    transition: transform 0.2s ease;
}

.story-item:hover .story-ring {
    transform: scale(1.05);
}

.story-ring.viewed {
    background: var(--border-color);
    /* İzlenenler için sönük gri halka */
}

.story-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    /* İç aralık yaratmak için sayfa arka planı */
    background: #fff;
}

.story-name {
    font-size: 0.75rem;
    color: var(--text-color);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* ============================================ */
/* STORY FULLSCREEN MODAL (NEW DESIGN)          */
/* ============================================ */
.story-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: #111;
    flex-direction: column;
}

.story-fullscreen-modal.active {
    display: flex !important;
}

/* PROGRESS BAR */
.story-progress-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 20;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.story-progress-fill {
    width: 0%;
    height: 100%;
    background: #fff;
}

.story-progress-fill.completed {
    width: 100%;
}

.story-progress-fill.active {
    width: 100%;
    animation: storyProgressAnim 10s linear forwards;
    /* Ortalama resim/video süresi */
}

@keyframes storyProgressAnim {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* HEADER (Logo & Name) */
.story-header {
    position: absolute;
    top: 25px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.story-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-header-left img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(#111, #111) padding-box, linear-gradient(45deg, #a855f7, #ec4899) border-box;
    object-fit: cover;
}

.story-header-info {
    display: flex;
    flex-direction: column;
}

.story-header-info h4 {
    color: #fff;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.story-header-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.story-header-right {
    display: flex;
    gap: 10px;
}

.story-btn-icon {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: all;
}

/* MEDIA & NAV */
.story-media-layer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #000;
}

.story-media-layer img,
.story-media-layer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ekrana tam sığması için */
}

.story-nav-area {
    position: absolute;
    top: 80px;
    bottom: 80px;
    width: 40%;
    z-index: 15;
    cursor: pointer;
}

.story-nav-left {
    left: 0;
}

.story-nav-right {
    right: 0;
    width: 60%;
}

/* FOOTER (Actions) */
.story-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

.story-footer-text {
    color: #fff;
    font-size: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    margin-bottom: 5px;
    text-align: center;
}

.story-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.story-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.story-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.story-link-btn {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    border: none;
    border-radius: 25px;
    height: 48px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    pointer-events: all;
    transition: 0.2s ease;
}

.story-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

/* STORY DESC READ MORE */
.story-desc-collapse {
    margin: 5px 0 0 0;
    font-size: 13px;
    max-height: 38px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.8);
    transition: max-height 0.3s ease;
    line-height: 1.4;
}

.story-desc-collapse.expanded {
    max-height: 200px;
    overflow-y: auto;
}

/* ---- MOBIL KAYDIRMA (SLIDER) OKLARI FIX ---- */
.slider-container {
    position: relative;
    width: 100%;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 12px;
    padding: 10px 0 15px 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll .result-card,
.horizontal-scroll .expert-card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 310px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.1));
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

body.dark-theme .slider-nav {
    background: var(--glass-bg, rgba(30, 30, 30, 0.9));
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}

.slider-nav:hover {
    background: var(--accent-primary, #a855f7);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 5px;
}

.slider-next {
    right: 5px;
}

@media (max-width: 768px) {
    .slider-nav {
        width: 32px;
        height: 32px;
        font-size: 14px;
        /* Mobilde parmak üstünde kaldığı için biraz içe alalım */
    }
    .slider-prev {
        left: 2px;
    }
    .slider-next {
        right: 2px;
    }
}