:root {
    --main-nav-height: 0px;
    --topbar-height: 58px;
    --optionsbar-height: 46px;
    --sidebar-width: 78px;
    --panel-width: 320px;
    --accent: #ff5604;
    --accent-l: #ff8a4c;
    --bg: #08080a;
    --surface: rgba(24, 24, 28, 0.92);
    --surface-strong: #202026;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f5f5f7;
    --text-dim: #f5f5f79e;
    
}



/* Tarayıcı varsayılanlarını dengeler. */
* {
    box-sizing: border-box;
}

html,
/* Uygulamanın ana sayfa zemini. */
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 86, 4, 0.1), transparent 28%),
        linear-gradient(135deg, #060608 0%, #101014 50%, #060608 100%);
    font-family: "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}




/* Üst cetvel alanı. */
#ruler-top {
    position: absolute;
    top: 0;
    left: 20px;
    height: 20px;
    right: 0;
    background: #3a3a3a;
    z-index: 2;
}

/* Sol cetvel alanı. */
#ruler-left {
    position: absolute;
    top: 20px;
    left: 0;
    width: 20px;
    bottom: 0;
    background: #3a3a3a;
    z-index: 2;
}



/* Cam efektli ortak yüzey stili. */
.glass {
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

/* En üstteki ana araç çubuğu. */
.topbar {
    position: fixed;
    left: 0;
    width: 100%;
    inset: var(--main-nav-height) 0 auto 0;
    height: var(--topbar-height);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

/* Üst araç çubuğunun altındaki hızlı seçenekler alanı. */
.options-bar {
    position: fixed;
    inset: var(--topbar-height) 0 auto 0;
    height: var(--optionsbar-height);
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

.option-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.option-label {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.option-select {
    width: 150px;
    min-height: 32px;
    padding: 5px 9px;
}

.option-btn {
    min-height: 32px;
    padding: 0 11px;
}

.contour-wrap {
    position: relative;
}

.contour-menu {
    position: absolute;
    top: 40px;
    left: 0;
    width: 300px;
    height: 200px;
    display: none;
    grid-template-rows: auto auto auto auto 1fr auto;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    z-index: 80;
}

.contour-menu.open {
    display: grid;
}

.contour-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.contour-label,
.contour-grid label {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 800;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 170px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.segmented label {
    min-height: 28px;
    display: grid;
    place-items: center;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
    font-weight: 800;
}

.segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented label:has(input:checked) {
    color: #fff;
    background: rgba(255, 86, 4, 0.5);
}

.contour-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.contour-grid input[type="number"],
.contour-grid input[type="color"] {
    width: 100%;
    height: 30px;
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.28);
    padding: 4px 7px;
}

.contour-grid input[type="color"] {
    padding: 3px;
}

.contour-check {
    display: flex;
    align-items: end;
    gap: 7px;
    padding-bottom: 5px;
}

.contour-check input {
    accent-color: var(--accent);
}

.contour-alert {
    min-height: 14px;
    color: #ff7777;
    font-size: 11px;
    font-weight: 700;
}

.contour-apply {
    width: 100%;
    min-height: 30px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.brand.home-link,
.brand.home-link:visited {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    color: #ddd;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, .25);
    background: rgba(255, 255, 255, .03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand.home-link:hover {
    transform: translateY(-3px);
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
    text-shadow: 0 0 10px #00f2ff, 0 0 20px #00f2ff, 0 0 30px #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5), inset 0 0 8px rgba(0, 242, 255, 0.3);
}

.topbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 6px;
    background: var(--line);
}

.icon-btn,
.zm-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.icon-btn:hover,
.zm-btn:hover,
.btn-secondary:hover,
.tool-card:hover,
.icon-grid button:hover,
.font-list button:hover {
    border-color: rgba(255, 86, 4, 0.55);
    color: #fff;
    background: rgba(255, 86, 4, 0.14);
    box-shadow: 0 0 15px rgba(255, 86, 4, 0.35);
}

.zm-slider {
    width: 150px;
    accent-color: var(--accent);
}

.zm-val {
    min-width: 48px;
    color: var(--text-dim);
    font-size: 12px;
}

.btn-primary,
.btn-secondary {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 0 13px;
    border: 1px solid transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.btn-primary {
    background: var(--accent);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--line);
}

.neon-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 800;
    user-select: none;
}

.neon-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    width: 38px;
    height: 20px;
    position: relative;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.18s ease;
}

.switch-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s ease;
}

.neon-switch input:checked + .switch-track {
    background: var(--accent);
    box-shadow: 0 0 14px rgba(255, 86, 4, 0.55);
}

.neon-switch input:checked + .switch-track .switch-thumb {
    transform: translateX(18px);
}

.full {
    width: 100%;
    margin-top: 10px;
}

.app-body {
    position: fixed;
    inset: calc(var(--topbar-height) + var(--optionsbar-height)) 0 0 0;
    display: grid;
    grid-template-columns: var(--sidebar-width) var(--panel-width) 1fr;
    min-width: 0;
}

/* Sol taraftaki ana araç menüsü. */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-top: 0;
    border-left: 0;
    border-bottom: 0;
    z-index: 20;
}

.sb-item {
    width: 42px;
    position: relative;
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    color: var(--text-dim);
    background: transparent;
    font-size: 10px;
    line-height: 1.1;
}

.sb-item i {
    font-size: 20px;
}

.sb-item:hover,
.sb-item.active {
    color: #fff;
    background: rgba(255, 86, 4, 0.14);
}

/* Sidebar Rozeti (Badge) Stili */
.sb-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--accent);
    pointer-events: none;
    z-index: 10;
}

/* Seçilen araca ait kontrol paneli. */
.control-panel {
    overflow: auto;
    padding: 18px;
    border-top: 0;
    border-bottom: 0;
    z-index: 15;
}

/* Panel içerikleri varsayılan olarak gizlenir. */
.panel-section {
    display: none;
}

.panel-section.active {
    display: block;
}

.panel-header {
    margin-bottom: 18px;
}

/* Panel Kapatma Butonu (Mobil için) */
.panel-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    z-index: 50;
    cursor: pointer;
}

/* Mobil cihazlarda etkileşim kalitesini artırır */
/* Çakışmayı önlemek için genel seçiciler optimize edildi */
a, button, .sb-item, .tool-card, .color-dot {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Araçlara tıklandığında fiziksel geri bildirim (basılma hissi) */
.sb-item:active, .icon-btn:active, .btn-primary:active, .btn-secondary:active, .tool-card:active, .zm-btn:active, .option-select:active {
    transform: scale(0.94);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.panel-header p {
    margin: 0 0 5px;
    color: var(--accent-l);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.field-label {
    display: block;
    margin: 14px 0 7px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
}

.inline-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.tool-input,
.color-input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--text);
    background: rgba(0, 0, 0, 0.28);
    padding: 9px 10px;
}

.color-input {
    padding: 4px;
}

/* Araç ve ikon butonlarını grid halinde dizer. */
.tool-grid,
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tool-card,
.icon-grid button,
.font-list button {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card i,
.icon-grid i {
    color: var(--accent-l);
    font-size: 18px;
    transition: text-shadow 0.25s ease;
}

.tool-card:hover i,
.icon-grid button:hover i {
    text-shadow: 0 0 10px var(--accent-l);
}

.tool-card span,
.icon-grid span {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}

.tool-card.danger {
    border-color: rgba(255, 80, 80, 0.3);
    background: rgba(255, 80, 80, 0.08);
}

.tool-card.danger:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: #ff5050;
    box-shadow: 0 0 20px rgba(255, 80, 80, 0.25);
}

.tool-card.danger i {
    color: #ff6868;
    text-shadow: 0 0 10px rgba(255, 104, 104, 0.5);
}

.font-list {
    display: grid;
    gap: 9px;
}

.font-list button {
    min-height: 48px;
    align-items: flex-start;
    padding: 0 14px;
    font-size: 20px;
}

/* Neon renk paletlerini düzenler. */
.color-grid,
.mini-color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 10px;
}

.color-grid.compact {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.22);
    margin: 0 auto;
    box-shadow: 0 0 18px currentColor;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.color-dot:hover {
    transform: scale(1.16);
    border-color: #fff;
}

.color-name {
    display: block;
    margin-top: 5px;
    color: var(--text-dim);
    font-size: 9px;
    text-align: center;
    white-space: nowrap;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
    font-weight: 700;
}

.check-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.quote-box {
    min-height: 110px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.25);
    font-size: 13px;
    line-height: 1.5;
}

/* Tasarımın çizildiği ana çalışma alanı. */
#canvas-container {
    position: relative;
    min-width: 0;
    overflow: hidden;
    /* Mobil tarayıcılarda canvas üzerinde çizim yaparken sayfanın kaymasını önler */
    touch-action: none;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
    background-size: 28px 28px;
}

#canvas-container.bg-wall {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        #171515;
    background-size: 80px 46px;
}

#canvas-container.bg-dark {
    background: #030306;
}

#canvas-container.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Fabric.js canvas elemanı. */
#mainCanvas {
    display: block;
}

/* İleride kullanılacak yüzen mini panel alanı. */
#floating-panel {
    position: absolute;
    display: none;
    width: 238px;
    padding: 13px;
    border-radius: 8px;
    z-index: 30;
}

.panel-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}












/* Neon render panelindeki slider kontrolleri. */
[data-panel-content="neon-render"] .control-group {
    margin-bottom: 20px;
    padding: 0 10px;
}

[data-panel-content="neon-render"] label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

[data-panel-content="neon-render"] label span {
    color: var(--accent);
}

[data-panel-content="neon-render"] input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    height: 6px;
    -webkit-appearance: none;
}

[data-panel-content="neon-render"] input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--text);
    border-radius: 50%;
    border: 2px solid var(--accent);
}

/* Render sonucu için ayrı canvas katmanı. */
#renderCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    display: none;
}



/* Canvas çizimlerinin net görünmesini sağlar. */
canvas {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

[data-panel-content="neon-render"] input[type="range"] {
    accent-color: #ff5604; /* N10 turuncusu */
}



















/* Küçük ekranlarda panel ve üst bar yerleşimini sadeleştirir. */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
        --panel-width: 100%;
    }

    .topbar {
        padding: 0 8px;
        height: auto;
        min-height: var(--topbar-height);
        gap: 5px;
    }

    .brand.home-link {
        min-width: 40px;
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 10px;
    }
    .brand:not(.home-link),
    .topbar-right span {
        display: none;
    }

    .topbar-divider {
        margin: 0 2px;
    }

    .topbar-right {
        gap: 5px;
    }

    .options-bar {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 8px;
        gap: 12px;
        -webkit-overflow-scrolling: touch; /* Momentum kaydırma */
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain; /* Kenara gelince sayfa kaymasını engeller */
    }
    .options-bar::-webkit-scrollbar { display: none; }

    .option-group {
        gap: 6px;
        scroll-snap-align: start;
    }

    .option-label {
        display: none;
    }

    .zm-slider {
        display: none;
    }

    .zm-val {
        min-width: auto;
        font-size: 11px;
    }

    .app-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        inset: calc(var(--topbar-height) + var(--optionsbar-height)) 0 0 0;
    }

    .sidebar {
        flex-direction: row;
        width: 100%;
        height: 64px;
        padding: 0 5px;
        justify-content: space-around;
        order: 2;
        background: var(--surface-strong);
        border-top: 1px solid var(--line);
        z-index: 60;
    }

    .sb-item {
        width: auto;
        flex: 1;
        min-height: 50px;
        gap: 2px;
        font-size: 9px;
    }

    .sb-item i {
        font-size: 18px;
    }

    .control-panel {
        position: fixed;
        bottom: 64px;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 50vh;
        z-index: 55;
        background: var(--surface-strong);
        border-radius: 20px 20px 0 0;
        padding: 20px 15px;
        display: none; 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        border-top: 1px solid var(--accent);
    }

    /* Panel açıkken görünür yap (Eski :has yerine daha güvenli sınıf yapısı) */
    .control-panel.open {
        display: block;
    }

    .panel-close-btn {
        display: flex;
    }

    #canvas-container {
        order: 1;
        width: 100%;
        height: 100%;
    }

    .sb-badge {
        top: 8px;
        right: 20%;
    }
}





/* Navigation */
/* Generated CSS Menu */

/* Select dropdown nav bar uyumlu stil */
.option-select {
  background: linear-gradient(90deg, #000000, #444444);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  appearance: none;
  min-height: 40px;
  
}

/* Hover efekti nav bar ile uyumlu */
.option-select:hover {
  background: #ff5604;
  color: #fef0be;
  
}

/* Dropdown içindeki seçenekleri renklendirir. */
.option-select option {
  background: #faa378;
  color: #dbeafe;
  padding: 8px;
}

/* Dropdown seçeneklerinin hover rengini ayarlar. */
.option-select option:hover {
  background: #f78851;
  color: #ffffff;
}




/* Üst menü navigasyon alanı. */
.gen-nav {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #000000, #3e3f41);
  min-height: 52px;
  border-radius: 8px;
  border: 0px solid #dd4f36;
  
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  padding: 0 16px;
  position: relative;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  
  
  display: flex;
}
.gen-nav *, .gen-nav *::before, .gen-nav *::after {
  box-sizing: border-box;
}
.gen-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gen-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
}
.gen-logo-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
/* Mobil menü açma kapama butonu. */
.gen-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction:column; gap:0;
  
}
.gen-hamburger span {
  display: block;
  background: #ffffff;
  transition: all .05s;
  width:22px; height:2px; border-radius:8px; margin:3px 0;
}

.gen-nav > ul {
  display: flex; justify-content:flex-end; flex: 1;
  flex-wrap: wrap;
}
.gen-nav > ul > li {
  position: relative;
}
.gen-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 52px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  transition: background .05s, color .05s;
  white-space: nowrap;
  border-radius: 8px;
}
.gen-nav > ul > li > a:hover,
.gen-nav > ul > li:hover > a {
  background: #ff5604;
  color: #fef0be;
}
.gen-arrow { font-size: .7em; opacity: .8; }
/* Dropdown */
.gen-nav > ul > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ff8a4f;
  min-width: 170px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 1000;
  overflow: hidden;
}
.gen-nav > ul > li:hover > ul {
  display: block;
}
.gen-nav > ul > li > ul > li > a {
  display: block;
  padding: 10px 18px;
  color: #dbeafe;
  font-size: 13px;
  text-decoration: none;
  transition: background .05s, color .05s;
}
.gen-nav > ul > li > ul > li > a:hover {
  background: #fd9b2a;
  color: #ffffff;
}
.gen-nav > ul > li > ul > li:last-child {
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.gen-nav > ul > li > ul > li:last-child > a {
  border-radius: 0 0 6px 6px;
}
/* Responsive */
/* Mobilde üst menüyü dikey açılır menüye çevirir. */
@media (max-width: 768px) {
  .gen-hamburger { display: flex; }
  .gen-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .gen-logo { margin-right: auto; justify-self: unset; }
  .gen-nav > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: linear-gradient(90deg, #000000, #3e3f41);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
    z-index: 9999;
    padding: 8px 0;
    overflow: hidden;
  }
  .gen-nav > ul.open { display: flex; }
  /* Mobil menü açıkken alt köşe yuvarlaklığını kaldırır. */
  .gen-nav.mobile-open { border-radius: 8px 8px 0 0; }
  .gen-nav > ul > li > a { height: auto; padding: 14px 20px; }
  /* Mobil alt menü köşe davranışını sıfırlar. */
  .gen-nav > ul > li:last-child { border-radius: 0; overflow: visible; }
  .gen-nav > ul > li:last-child > a { border-radius: 0; }
  .gen-nav > ul > li > ul {
    display: block;
    position: static;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: rgba(0,0,0,.15);
    min-width: 0;
  }
  /* No rounding on submenu items in mobile */
  .gen-nav > ul > li > ul > li:last-child { border-radius: 0; overflow: visible; }
  .gen-nav > ul > li > ul > li:last-child > a { border-radius: 0; }
  .gen-nav > ul > li > ul > li > a { padding: 10px 32px; }
  /* Hamburger animates to X when open */
  
  .gen-nav.mobile-open .gen-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(2) { opacity: 0; }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
}
