/* Atatürk Portresi Piksel Projesi - Açık Tema (Light Mode) Tasarımı */
:root {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-hover: #f1f5f9;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-red: #e11d48;
    --accent-red-hover: #be123c;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navbar */
.app-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badge {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: white;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Stats Header Bar */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: "tnum";
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.progress-container {
    width: 140px;
    height: 8px;
    background: var(--bg-hover);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e11d48, #f59e0b);
    border-radius: 999px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Layout */
.main-wrapper {
    flex: 1;
    height: calc(100vh - 64px);
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Canvas Viewport */
.canvas-viewport {
    flex: 1;
    background: #edf2f7;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

#pixelCanvas {
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 0 1px #cbd5e1, var(--shadow-lg);
    background-color: #ffffff;
    border: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    transform-origin: 0 0;
    transition: none;
    z-index: 1;
}

#gridOverlayCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Floating Toolbar (Zoom & Fullscreen Controls) */
.floating-toolbar {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
    z-index: 30;
}

#canvasViewport:fullscreen,
#canvasViewport:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #0f172a;
}

#canvasViewport:fullscreen .floating-toolbar,
#canvasViewport:-webkit-full-screen .floating-toolbar {
    bottom: 32px;
    left: 32px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.tool-btn {
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.tool-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tool-btn.active {
    background: #e0e7ff;
    color: var(--accent-blue);
}

.zoom-level-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 8px;
    min-width: 50px;
    text-align: center;
}

.separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* Coordinates Badge */
.coordinates-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    z-index: 30;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coordinates-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
}

/* Tooltip ve Açılmış Piksel Mini Bilgi Modalı */
.canvas-tooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.4;
    z-index: 100;
    transform: translate(14px, 14px);
    display: none;
    box-shadow: var(--shadow-md);
    max-width: 260px;
    transition: opacity 0.15s ease;
}

.tooltip-title {
    font-weight: 700;
    margin-bottom: 2px;
    color: #f8fafc;
}

.tooltip-desc {
    color: #cbd5e1;
}

/* Daha Önce Alınmış Piksel Mini Modalı (Owner Card) */
.pixel-owner-card {
    position: fixed;
    z-index: 1500;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    width: 290px;
    padding: 16px;
    display: none;
    pointer-events: auto;
    animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Farenin pikselden modala rahatça geçebilmesi için görünmez hover köprüsü */
.pixel-owner-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -1;
    pointer-events: auto;
}

@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translate(14px, 18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(14px, 14px) scale(1);
    }
}

.owner-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.owner-card-close-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.owner-card-close-btn:hover {
    color: var(--text-primary);
}

.owner-card-badge {
    background: #e11d48;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.owner-card-coords {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.owner-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    word-break: break-word;
}

.owner-card-link-row {
    margin-top: 8px;
    margin-bottom: 10px;
}

.owner-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: var(--accent-blue);
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
    transition: all 0.15s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-card-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.owner-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.owner-card-status {
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar / Purchase Panel - Fixed Screen Height */
.sidebar {
    width: 380px;
    height: 100%;
    max-height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 40;
    box-shadow: -4px 0 16px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}

.sidebar-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.sidebar-header p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.sidebar-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

/* Custom Sleek Scrollbar for Sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}
.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection Info Card */
.selection-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.selection-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.selection-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.selection-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Purchase Form */
.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #ffffff;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.price-summary {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-summary .price-label {
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}

.price-summary .price-amount {
    font-size: 18px;
    font-weight: 800;
    color: #047857;
}

.btn-purchase {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #be123c, #9f1239);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

.btn-purchase:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Recent Buyers Section */
.recent-section {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.recent-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.recent-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recent-name {
    font-weight: 600;
    color: var(--text-primary);
}

.recent-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 11px;
}

.recent-link:hover {
    text-decoration: underline;
}

.recent-badge {
    background: #e2e8f0;
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 400px;
    background: #0f172a;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 100001 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #065f46;
}

.toast.error {
    background: #991b1b;
}

/* Header User & Auth Controls */
.header-user-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.auth-guest-group,
.auth-user-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-auth {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-auth-outline {
    background: transparent;
    border-color: #cbd5e1;
    color: var(--text-primary);
}

.btn-auth-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-auth-primary {
    background: #e11d48;
    color: #ffffff;
}

.btn-auth-primary:hover {
    background: #be123c;
}

.btn-user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 12px 4px 6px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-user-profile-badge:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.user-name-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-auth-logout {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-auth-logout:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

/* Mobile Sidebar Toggle Button in Header */
.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-count-pill {
    background: #e11d48;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    z-index: 45;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    justify-content: space-between;
    align-items: center;
}

.mobile-bottom-stat {
    display: flex;
    flex-direction: column;
}

.mobile-bottom-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-bottom-price {
    font-size: 12px;
    color: #e11d48;
    font-weight: 700;
}

.btn-mobile-open-panel {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

/* Sidebar Backdrop on Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Auth & Profile Modals */
.auth-modal-card {
    max-width: 440px;
}

.profile-modal-card {
    max-width: 520px;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    margin: 16px 20px 0 20px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-tab.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Profile Modal Details */
.profile-summary-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: white;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    flex-shrink: 0;
}

.profile-info-block h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.profile-email-sub {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.profile-join-date {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 20px 0 20px;
}

.profile-stat-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.profile-stat-num {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.profile-stat-txt {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-pixels-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-pixel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.profile-pixel-coords {
    font-weight: 700;
    color: #0f172a;
}

.profile-pixel-date {
    color: #94a3b8;
    font-size: 11px;
}

.btn-locate-pixel {
    background: #eff6ff;
    color: var(--accent-blue);
    border: 1px solid #bfdbfe;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-locate-pixel:hover {
    background: #dbeafe;
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1100px) {
    .brand-subtitle {
        display: none;
    }
    .stats-bar {
        gap: 14px;
    }
}

@media (max-width: 992px) {
    .app-header {
        padding: 0 14px;
        height: 60px;
    }

    .brand-title {
        font-size: 15px;
    }

    .stats-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-wrapper {
        height: calc(100vh - 60px);
    }

    /* Sidebar transforms into a slide-over mobile drawer */
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 88vw;
        max-width: 390px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: block;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    /* Floating toolbar adjusted so bottom bar doesn't cover it */
    .floating-toolbar {
        bottom: 74px;
        left: 14px;
    }

    #canvasViewport:fullscreen .floating-toolbar,
    #canvasViewport:-webkit-full-screen .floating-toolbar {
        bottom: 24px;
        left: 24px;
    }

    .coordinates-badge {
        top: 14px;
        left: 14px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .modal-card {
        width: 94%;
        margin: 12px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .btn-auth-outline {
        padding: 6px 10px;
        font-size: 12px;
    }
    .btn-auth-primary {
        padding: 6px 10px;
        font-size: 12px;
    }
    .user-name-text {
        max-width: 70px;
    }
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Yeni Eklenen Stiller: Silüet, Fırça ve Seçim */
.badge-separator {
    color: #cbd5e1;
    margin: 0 4px;
}

.toolbar-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 4px;
}

.size-btn {
    width: auto !important;
    padding: 0 9px !important;
    font-size: 12px !important;
}

.selection-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-clear-selection {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-clear-selection:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.silhouette-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0f172a;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #334155;
}

.silhouette-info-box .info-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.help-card {
    background: #f1f5f9;
    padding: 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
}

.help-list {
    margin-left: 18px;
    margin-top: 6px;
}

.help-list li {
    margin-bottom: 4px;
}

/* İmleç Durumları - Donanım Hızlandırmalı & Kesin Merkezli Crosshair */
.canvas-viewport,
.canvas-viewport.brush-mode,
#pixelCanvas,
#gridOverlayCanvas {
    cursor: crosshair !important;
}

.canvas-viewport.eraser-mode,
.canvas-viewport.eraser-mode #pixelCanvas,
.canvas-viewport.eraser-mode #gridOverlayCanvas {
    cursor: cell !important;
}

.canvas-viewport.pan-mode,
.canvas-viewport.pan-mode #pixelCanvas,
.canvas-viewport.pan-mode #gridOverlayCanvas {
    cursor: grab !important;
}

.canvas-viewport.pan-mode:active,
.canvas-viewport.pan-mode:active #pixelCanvas,
.canvas-viewport.pan-mode:active #gridOverlayCanvas {
    cursor: grabbing !important;
}

/* Satın Alma Modal Penceresi */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin: auto;
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Resmî Katılım Sertifikası Modalı - Ekrana Tam Sığma & Butonların Görünürlüğü */
.cert-modal-card {
    max-width: 920px !important;
    width: 96% !important;
    max-height: 94vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: auto !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.15) !important;
}

.cert-modal-card .modal-header {
    flex-shrink: 0 !important;
    padding: 14px 20px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.cert-modal-card .modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 14px 20px !important;
    max-height: calc(94vh - 130px) !important;
}

.cert-canvas-wrap {
    background: #05070c !important;
    padding: 10px !important;
    border-radius: 12px !important;
    border: 1px solid #d4af37 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-height: 48vh !important;
    overflow: hidden !important;
    margin: 0 auto 12px !important;
}

#certCanvas {
    max-width: 100% !important;
    max-height: 46vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6) !important;
}

.cert-modal-card .modal-actions {
    flex-shrink: 0 !important;
    position: sticky !important;
    bottom: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 12px 20px !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
    align-items: center !important;
    z-index: 30 !important;
}

/* Doğrudan İndirme Butonu (Sosyal Medya Alanında) */
.btn-social-download {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    color: #ffffff !important;
}
.btn-social-download:hover {
    background: linear-gradient(135deg, #b45309, #92400e) !important;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45) !important;
}

@media (max-width: 640px) {
    .cert-modal-card {
        max-height: 96vh !important;
        width: 98% !important;
    }
    .cert-modal-card .modal-body {
        padding: 10px 12px !important;
    }
    .cert-canvas-wrap {
        max-height: 36vh !important;
        padding: 6px !important;
    }
    #certCanvas {
        max-height: 34vh !important;
    }
    .cert-modal-card .modal-actions {
        padding: 10px 14px !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }
    .cert-modal-card .modal-actions button {
        width: 100% !important;
        justify-content: center !important;
    }
}

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

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.modal-badge {
    background: #e11d48;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    margin-left: 10px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-summary-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-value.highlight {
    color: #e11d48;
}

.summary-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.modal-info-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #166534;
    margin: 16px 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-modal-cancel {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-modal-cancel:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-modal-submit {
    flex: 2;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.btn-modal-submit:hover {
    background: linear-gradient(135deg, #1e293b, #334155);
    transform: translateY(-1px);
}

.btn-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

/* Görsel Yükleme ve 200px Önizleme */
.form-input-file {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
}

.form-input-file:hover {
    border-color: var(--accent-blue);
    background: #eff6ff;
}

.image-preview-wrapper {
    margin-top: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.image-preview-wrapper img {
    width: 200px; /* Genişlik tam 200px! */
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    display: block;
    background: #ffffff;
}

.preview-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 200px;
    max-width: 100%;
}

.preview-badge {
    background: #e2e8f0;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-remove-image {
    background: transparent;
    border: none;
    color: #e11d48;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-remove-image:hover {
    text-decoration: underline;
}

/* Mini Bilgi Modalı İçindeki 200px Görsel */
.owner-card-image-box {
    margin-bottom: 10px;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px;
    border: 1px solid #f1f5f9;
}

.owner-card-image-box img {
    width: 200px; /* Tam 200px genişlik! */
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========================================================
   ÜST KISMA SABİT CTA DUYURU ÇUBUĞU (TOP CTA BANNER)
   ======================================================== */
.top-cta-banner {
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
    color: #ffffff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    position: relative;
    z-index: 60;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    flex-shrink: 0;
}

.top-cta-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.top-cta-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-cta-message {
    color: #ffffff;
    font-size: 13px;
}

.top-cta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-top-cta-primary {
    background: #ffffff;
    color: #dc2626;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-top-cta-primary:hover {
    background: #fef2f2;
    transform: translateY(-1px);
}

.btn-top-cta-secondary {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-top-cta-secondary:hover {
    background: rgba(0, 0, 0, 0.35);
}

.top-cta-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.top-cta-close:hover {
    color: #ffffff;
}

/* ========================================================
   STICKY TELEFON & CANLI DESTEK CTA (BOTTOM-LEFT)
   ======================================================== */
.sticky-phone-cta {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
}

.btn-sticky-trigger {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #334155;
    padding: 10px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-sticky-trigger:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.sticky-badge-ping {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
    animation: stickyPulse 2s infinite;
}

@keyframes stickyPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sticky-phone-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    animation: popupFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sticky-phone-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-phone-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.sticky-phone-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.sticky-phone-close:hover {
    color: #0f172a;
}

.sticky-phone-body {
    padding: 16px;
}

.sticky-phone-body p {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-support-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.2s;
}

.btn-support-action:hover {
    border-color: #cbd5e1;
    transform: translateX(2px);
}

.btn-support-action .icon {
    font-size: 20px;
}

.btn-support-action .action-text {
    display: flex;
    flex-direction: column;
}

.btn-support-action .action-text .title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.btn-support-action .action-text .subtitle {
    font-size: 11px;
    color: #64748b;
}

.btn-whatsapp-chat:hover {
    border-color: #25d366;
    background: #f0fdf4;
}

.btn-phone-call:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.sticky-phone-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 8px 16px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

/* ========================================================
   YAN PANEL İÇ LİNKLEME KARTI (SIDEBAR LINKS CARD)
   ======================================================== */
.sidebar-links-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-top: 16px;
}

.sidebar-links-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sidebar-links-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link-btn,
.sidebar-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    width: 100%;
}

.sidebar-link-btn:hover,
.sidebar-link-item:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

/* ========================================================
   KAPSAMLI BİLGİ, VAKA, SSS, EKİP MODALI (INFO MODAL)
   ======================================================== */
.info-modal-card {
    width: 900px;
    max-width: 94vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.modal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.modal-breadcrumb a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.info-nav-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0 16px;
    overflow-x: auto;
    flex-shrink: 0;
    gap: 4px;
}

.info-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.info-tab-btn:hover {
    color: #0f172a;
}

.info-tab-btn.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
    font-weight: 700;
    background: #ffffff;
}

.info-modal-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.info-tab-content {
    display: none;
}

.info-tab-content.active {
    display: block;
}

.section-intro {
    margin-bottom: 20px;
}

.section-intro h4 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.section-intro p {
    font-size: 13px;
    color: #64748b;
}

/* 5 Adet SSS Akordeon */
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item.open {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    font-size: 16px;
    color: #94a3b8;
    transition: transform 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #dc2626;
}

.faq-answer {
    display: none;
    padding: 0 18px 16px 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Vaka Çalışmaları Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.case-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.case-badge {
    align-self: flex-start;
    background: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.case-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.case-card p {
    font-size: 12px;
    line-height: 1.6;
    color: #475569;
    flex: 1;
    margin-bottom: 14px;
}

.case-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.metric-chip {
    font-size: 11px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Katılımcı Yorumları Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.review-quote {
    font-size: 12px;
    font-style: italic;
    line-height: 1.6;
    color: #334155;
    flex: 1;
    margin-bottom: 14px;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.reviewer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.reviewer-title {
    font-size: 11px;
    color: #64748b;
}

/* Ekip Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.team-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
}

.team-avatar-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    background: #000000;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h5 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.team-role {
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
}

/* Harita ve Adres */
.location-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.location-item {
    display: flex;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.location-item .icon {
    font-size: 20px;
}

.location-item strong {
    font-size: 12px;
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

.location-item p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* İç Linkleme Grid */
.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.internal-link-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.internal-link-card:hover {
    border-color: #dc2626;
    background: #fef2f2;
    transform: translateY(-2px);
}

.internal-link-card .icon {
    font-size: 22px;
}

.internal-link-card h6 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.internal-link-card p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .top-cta-banner {
        font-size: 11px;
        padding: 6px 10px;
    }
    .top-cta-actions {
        margin-top: 4px;
    }
    .sticky-phone-cta {
        bottom: 74px; /* Mobil alt çubuğun üstünde dursun */
        left: 12px;
    }
    .sticky-phone-popup {
        width: 280px;
    }
}

/* ========================================================
   CANVAS SAĞ HARİTA & RADAR (MINIMAP / NAVİGATÖR)
   ======================================================== */
.canvas-minimap-card {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999 !important;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.3);
    padding: 10px;
    width: 160px;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    isolation: isolate;
    transform: translateZ(0);
}

.minimap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.minimap-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.minimap-radar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: radarPulse 2s infinite ease-in-out;
}

@keyframes radarPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.minimap-title {
    font-size: 10px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.minimap-zoom-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.minimap-preview-wrapper {
    position: relative;
    width: 140px;
    height: 208px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    cursor: crosshair;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

#minimapCanvas {
    width: 140px;
    height: 208px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.minimap-viewport-box {
    position: absolute;
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.18);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 14px rgba(239, 68, 68, 0.6);
    border-radius: 2px;
    pointer-events: none;
    box-sizing: border-box;
    will-change: left, top, width, height;
}

/* Viewfinder köşe çerçeveleri */
.viewfinder-corner {
    position: absolute;
    width: 5px;
    height: 5px;
    pointer-events: none;
}
.viewfinder-corner.tl { top: -2px; left: -2px; border-top: 2px solid #ffffff; border-left: 2px solid #ffffff; }
.viewfinder-corner.tr { top: -2px; right: -2px; border-top: 2px solid #ffffff; border-right: 2px solid #ffffff; }
.viewfinder-corner.bl { bottom: -2px; left: -2px; border-bottom: 2px solid #ffffff; border-left: 2px solid #ffffff; }
.viewfinder-corner.br { bottom: -2px; right: -2px; border-bottom: 2px solid #ffffff; border-right: 2px solid #ffffff; }

.minimap-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.minimap-pixel-info {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}

.btn-minimap-recenter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-minimap-recenter:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .canvas-minimap-card {
        top: 60px;
        right: 12px;
        width: 124px;
        padding: 6px;
    }
    .minimap-preview-wrapper,
    #minimapCanvas {
        width: 110px;
        height: 164px;
    }
    .minimap-title {
        font-size: 9px;
    }
    .minimap-zoom-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* ==============================================================================
   SERTİFİKA SOSYAL MEDYA PAYLAŞIM ALANI & BUTONLARI (X, INSTAGRAM, FACEBOOK)
   ============================================================================== */
.cert-share-box {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cert-share-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.cert-share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cert-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    outline: none;
}

.btn-cert-social:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.btn-cert-social:active {
    transform: translateY(0) scale(0.98);
}

.btn-cert-social svg {
    flex-shrink: 0;
}

/* X (Twitter) */
.btn-social-x {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.btn-social-x:hover {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.45);
}

/* Instagram */
.btn-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.btn-social-instagram:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.45);
}

/* Facebook */
.btn-social-facebook {
    background: #1877f2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.btn-social-facebook:hover {
    background: #166fe5;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

/* Link Kopyala */
.btn-social-copy {
    background: #334155;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}
.btn-social-copy:hover {
    background: #475569;
}

/* ==============================================================================
   AÇILIŞTA EKRANIN ALTINDA ÇEREZ VE YASAL ŞARTLAR MODALI / BANNERI
   ============================================================================== */
.legal-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    width: 92%;
    max-width: 1080px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 18px 24px;
    color: #f8fafc;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(225, 29, 72, 0.2);
    z-index: 999999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.legal-consent-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.legal-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-consent-info {
    flex: 1;
    min-width: 280px;
}

.legal-consent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(225, 29, 72, 0.2);
    border: 1px solid rgba(225, 29, 72, 0.4);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.legal-consent-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

.legal-consent-text a {
    color: #60a5fa;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.15s ease;
}

.legal-consent-text a:hover {
    color: #93c5fd;
}

.legal-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-consent-accept {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    transition: all 0.2s ease;
}

.btn-consent-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
}

.btn-consent-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-consent-details:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-consent-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.btn-consent-close:hover {
    color: #ffffff;
}

.legal-consent-reopen-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    z-index: 40;
    display: none;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.legal-consent-reopen-btn:hover {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(225, 29, 72, 0.4);
}

@media (max-width: 768px) {
    .legal-consent-banner {
        bottom: 74px;
        padding: 14px 16px;
    }
    .legal-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .legal-consent-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
