@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Nunito:wght@400;600;700;800&family=Sora:wght@300;400;500;600;700&display=swap");

:root {
    --font-body: "Sora", "Segoe UI", sans-serif;
    --font-title: "Fraunces", "Times New Roman", serif;
    --font-modal: "Nunito", "Segoe UI", sans-serif;
    --bg: #0c111b;
    --bg-soft: #101826;
    --bg-elevated: #151f31;
    --card: #1a2438;
    --text: #f3f6ff;
    --text-muted: #9aa6bf;
    --accent: #e05252;
    --accent-strong: #c73f3f;
    --accent-glow: rgba(224, 82, 82, 0.35);
    --accent-soft: rgba(224, 82, 82, 0.18);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(7, 12, 20, 0.5);
    --glass-bg: rgba(16, 24, 38, 0.72);
    --glass-border: rgba(255, 255, 255, 0.06);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.15);
    --chart-bg: #1a2438;
    --chart-text: #9aa6bf;
    --select-option-bg: #151f31;
    --select-option-text: #f3f6ff;
}

body[data-theme="light"] {
    --bg: #f2f4f8;
    --bg-soft: #e7ecf3;
    --bg-elevated: #ffffff;
    --card: #ffffff;
    --text: #101623;
    --text-muted: #5b677b;
    --accent: #d24c4c;
    --accent-strong: #b23e3e;
    --accent-glow: rgba(210, 76, 76, 0.22);
    --accent-soft: rgba(210, 76, 76, 0.14);
    --border: rgba(10, 20, 30, 0.12);
    --shadow: 0 24px 60px rgba(15, 25, 40, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(10, 20, 30, 0.08);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --chart-bg: #ffffff;
    --chart-text: #5b677b;
    --select-option-bg: #ffffff;
    --select-option-text: #101623;
}

/* ── Global Smooth Theme Transition ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
body *:not(.history-chart):not(svg):not(svg *) {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0);
    position: fixed;
    width: 100%;
    height: 100%;
}

.autofill-trap {
    position: fixed;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Background Effects ── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 42px 42px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

body[data-theme="light"] .bg-grid {
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1px, transparent 0);
    opacity: 0.2;
}

.bg-orbit {
    position: fixed;
    inset: -10%;
    background: radial-gradient(circle at 75% 25%, rgba(224, 82, 82, 0.15), transparent 50%),
        radial-gradient(circle at 25% 60%, rgba(96, 129, 255, 0.15), transparent 50%);
    filter: blur(0);
    pointer-events: none;
    z-index: 0;
}

body[data-theme="light"] .bg-orbit {
    background: radial-gradient(circle at 75% 25%, rgba(224, 82, 82, 0.08), transparent 50%),
        radial-gradient(circle at 25% 60%, rgba(96, 129, 255, 0.08), transparent 50%);
}

body[data-theme="light"] .topbar {
    background: linear-gradient(135deg, rgba(224, 82, 82, 0.08), rgba(96, 129, 255, 0.06)), var(--glass-bg);
    box-shadow: 0 4px 30px rgba(15, 25, 40, 0.08), 0 2px 0 rgba(224, 82, 82, 0.05) inset;
}

body[data-theme="light"] .catalog-panel {
    background: linear-gradient(135deg, rgba(224, 82, 82, 0.04), rgba(96, 129, 255, 0.03)), var(--bg-soft);
    box-shadow: var(--shadow), 0 0 40px rgba(96, 129, 255, 0.06) inset;
}

/* ── Glassmorphism Sticky Topbar ── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 14px clamp(16px, 4vw, 40px);
    position: relative;
    top: auto;
    z-index: 100;
    background: linear-gradient(135deg, rgba(224, 82, 82, 0.12), rgba(96, 129, 255, 0.08)), var(--glass-bg);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12), 0 2px 0 rgba(224, 82, 82, 0.08) inset;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 18px;
}

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

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(20, 40, 60, 0.25);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 24px rgba(224, 82, 82, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 10.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 400;
}

/* ── Enhanced Search Bar ── */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 16px;
    min-height: 44px;
    max-width: 420px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6bf' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    width: 100%;
    font-size: 13.5px;
    font-family: var(--font-body);
}

.search-bar input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.search-hint {
    font-size: 10.5px;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.search-bar.is-active {
    border-color: rgba(224, 82, 82, 0.5);
    box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 32px rgba(224, 82, 82, 0.06);
    transform: translateY(-1px);
    max-width: 600px;
}

.search-bar.is-active::before {
    opacity: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 5px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    position: relative;
}

.topbar-actions #themeToggle {
    order: 1;
}

.topbar-actions #bulkPozBtn {
    order: 2;
}

.topbar-actions #workbenchBtn {
    order: 3;
}

.topbar-actions #authOpenBtn,
.topbar-actions #authUserBox {
    order: 4;
    margin-left: auto;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(224, 82, 82, 0.35);
    background: linear-gradient(135deg, rgba(224, 82, 82, 0.2), rgba(199, 63, 63, 0.25));
    color: #ffe7e7;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-family: var(--font-body);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(224, 82, 82, 0.55);
    box-shadow: 0 6px 16px rgba(224, 82, 82, 0.22);
}

.workbench-btn {
    border-color: rgba(96, 129, 255, 0.35);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(79, 70, 229, 0.22));
    color: #e0e7ff;
}

.workbench-btn-main {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(22, 163, 74, 0.24));
    color: #dcfce7;
    box-shadow: 0 8px 18px rgba(21, 128, 61, 0.2);
}

.workbench-btn:hover {
    border-color: rgba(96, 129, 255, 0.55);
    box-shadow: 0 6px 16px rgba(67, 56, 202, 0.22);
}

.workbench-btn-main:hover {
    border-color: rgba(16, 185, 129, 0.68);
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.28);
}

body[data-theme="light"] .auth-btn {
    color: #7f1d1d;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(251, 113, 133, 0.24));
    border-color: rgba(190, 24, 93, 0.32);
}

body[data-theme="light"] .workbench-btn {
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.32);
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.5), rgba(165, 180, 252, 0.45));
}

body[data-theme="light"] .workbench-btn-main {
    color: #14532d;
    border-color: rgba(22, 163, 74, 0.44);
    background: linear-gradient(135deg, rgba(134, 239, 172, 0.52), rgba(74, 222, 128, 0.45));
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.16);
}

/* —— Kullanıcı Avatar Butonu —— */
.auth-user-avatar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.22));
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-user-avatar:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

.auth-avatar-initials {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    font-family: var(--font-title);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.auth-avatar-initials img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.auth-avatar-caret {
    font-size: 10px;
    color: rgba(16, 185, 129, 0.9);
    line-height: 1;
}

body[data-theme="light"] .auth-user-avatar {
    border-color: rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.9), rgba(167, 243, 208, 0.85));
}

body[data-theme="light"] .auth-avatar-caret {
    color: #059669;
}

.auth-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 6px;
    min-width: 170px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 94%, #0f172a 6%);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.32);
    z-index: 10000020;
}

.auth-user-menu-item {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-align: left;
    padding: 8px 10px;
}

.auth-user-menu-item:hover {
    border-color: rgba(37, 99, 235, 0.52);
    background: rgba(37, 99, 235, 0.1);
}

.auth-user-menu-item.is-danger:hover {
    border-color: rgba(239, 68, 68, 0.56);
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}


.bulk-poz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.28), rgba(14, 116, 144, 0.35));
    color: #dbeafe;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bulk-poz-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 6px 18px rgba(14, 116, 144, 0.28);
}

body[data-theme="light"] .bulk-poz-btn {
    border: 1px solid rgba(2, 132, 199, 0.48);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(2, 132, 199, 0.34));
    color: #0b4b6a;
    box-shadow: 0 2px 12px rgba(3, 105, 161, 0.18);
}

/* ── Theme Toggle ── */
.theme-toggle {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    font-family: var(--font-body);
    min-height: 46px;
}

.theme-toggle:hover {
    border-color: rgba(224, 82, 82, 0.3);
    background: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(224, 82, 82, 0.1);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.97);
}

.theme-icon {
    font-size: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}

/* ── Main Content ── */
.catalog-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px clamp(16px, 4vw, 40px) 40px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-panel {
    background: linear-gradient(135deg, rgba(224, 82, 82, 0.06), rgba(96, 129, 255, 0.04)), var(--bg-soft);
    border-radius: 24px;
    padding: 20px 22px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow), 0 0 60px rgba(224, 82, 82, 0.08) inset;
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    animation: panelFadeIn 0.5s ease;
    overflow: visible;
}

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

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.panel-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.panel-header h1 {
    margin: 0;
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 600;
}

.panel-search-wrap {
    margin-bottom: 10px;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--catalog-search-sticky-top, 10px));
    z-index: 140;
    padding-top: 6px;
    width: 100%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.18) 72%, transparent);
}

body[data-theme="light"] .panel-search-wrap {
    background: linear-gradient(180deg, rgba(242, 244, 248, 0.96), rgba(242, 244, 248, 0.78) 72%, transparent);
    backdrop-filter: blur(8px) saturate(1.08);
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
}

.panel-search-placeholder {
    display: none;
    width: 100%;
    height: 0;
}

.panel-search-wrap.is-fixed {
    position: fixed;
    margin-bottom: 0;
}

body[data-theme="dark"] .panel-search-wrap .search-bar {
    border-color: rgba(125, 211, 252, 0.92);
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.55), 0 10px 28px rgba(37, 99, 235, 0.26);
}

body[data-theme="light"] .panel-search-wrap .search-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.95));
    border-color: rgba(96, 165, 250, 0.86);
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.52), 0 8px 20px rgba(37, 99, 235, 0.14);
}

body[data-theme="light"] .panel-search-wrap .search-hint {
    background: rgba(226, 232, 240, 0.9);
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.45);
}

.panel-search-wrap .search-bar {
    max-width: none;
    border-radius: 14px;
    padding: 7px 14px;
}

.panel-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Tab Switch ── */
.tab-switch {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border-radius: 999px;
    padding: 3px;
    border: 1px solid var(--border);
    height: 44px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tab-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0 22px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    font-family: var(--font-body);
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
}

.tab-btn:hover:not(.is-active) {
    color: var(--text);
    background: rgba(224, 82, 82, 0.1);
}

.tab-btn.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 4px 14px rgba(224, 82, 82, 0.35);
}

/* ── Control Group ── */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.control-group select,
.control-group input {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-soft));
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    appearance: none;
    background-image: linear-gradient(135deg, var(--bg-elevated), var(--bg-soft)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e05252' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 12px center;
    padding-right: 32px;
    min-height: 44px;
}

body[data-theme="dark"] .control-group select {
    color-scheme: dark;
}

body[data-theme="light"] .control-group select {
    color-scheme: light;
}

.control-group select option,
.control-group select optgroup {
    background-color: var(--select-option-bg);
    color: var(--select-option-text);
}

.control-group input {
    background-image: none;
    padding-right: 14px;
}

.control-group select:hover,
.control-group input:hover {
    border-color: rgba(224, 82, 82, 0.35);
    box-shadow: 0 4px 16px rgba(224, 82, 82, 0.12);
    transform: translateY(-1px);
}

.control-group select:focus,
.control-group input:focus {
    border-color: rgba(224, 82, 82, 0.5);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 4px 16px rgba(224, 82, 82, 0.15);
    transform: translateY(-1px);
}

.control-group.compact {
    min-width: 200px;
}

.panel-version-select {
    min-width: 220px;
    position: relative;
}

.panel-filter-select {
    min-width: 140px;
}

.panel-filter-select select {
    min-height: 44px;
    height: 44px;
    border-radius: 999px;
    font-weight: 600;
    padding-left: 14px;
    padding-right: 30px;
    border-color: rgba(96, 129, 255, 0.28);
    box-shadow: 0 3px 10px rgba(96, 129, 255, 0.14);
}

.panel-version-select label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.panel-version-select select {
    min-height: 44px;
    height: 44px;
    border-radius: 999px;
    font-weight: 600;
    padding-left: 16px;
    padding-right: 34px;
    border-color: rgba(224, 82, 82, 0.22);
    box-shadow: 0 3px 12px rgba(224, 82, 82, 0.1);
}

.panel-version-select select:hover {
    border-color: rgba(224, 82, 82, 0.4);
    box-shadow: 0 5px 18px rgba(224, 82, 82, 0.14);
}

.panel-version-select select:focus {
    border-color: rgba(224, 82, 82, 0.55);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 18px rgba(224, 82, 82, 0.16);
}

/* ── List Header ── */
.list-header {
    margin: 16px 0 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
}

#listCount {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* ── Table ── */
.table-wrap {
    margin-top: 8px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 720px;
}

.catalog-table thead {
    background: var(--bg-soft);
}

.catalog-table th {
    text-align: left;
    padding: 13px 0;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.catalog-table th + th,
.catalog-table td + td {
    padding-left: 16px;
}

.catalog-table th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

.catalog-table th:nth-child(1) { width: 140px; }
.catalog-table th:nth-child(3) { width: 190px; }
.catalog-table th:nth-child(4) { width: 90px; }
.catalog-table th:nth-child(5) { width: 120px; text-align: right; }
.catalog-table th:nth-child(6) { width: 110px; }

.catalog-table td {
    padding: 13px 0;
    border-top: 1px solid var(--border);
    vertical-align: top;
}

.catalog-source-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.catalog-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.catalog-source-kurum {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
    background: rgba(100, 116, 139, 0.24);
}

.catalog-source-kurum-logo {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    flex-shrink: 0;
}

.catalog-source-kurum-csb { color: #93c5fd; background: rgba(37, 99, 235, 0.2); border-color: rgba(37, 99, 235, 0.42); }
.catalog-source-kurum-kgm { color: #86efac; background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.45); }
.catalog-source-kurum-dsi { color: #67e8f9; background: rgba(6, 182, 212, 0.2); border-color: rgba(6, 182, 212, 0.45); }
.catalog-source-kurum-ilbank { color: #d8b4fe; background: rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.45); }
.catalog-source-kurum-ptt { color: #fca5a5; background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.45); }
.catalog-source-kurum-kultur { color: #fcd34d; background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.45); }
.catalog-source-kurum-default { color: var(--text); background: var(--bg-soft); border-color: var(--border); }

.catalog-source-year {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.38);
}

.catalog-source-month {
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
}

body[data-theme="light"] .catalog-source-kurum {
    color: #1e293b;
    background: rgba(148, 163, 184, 0.2);
}

body[data-theme="light"] .catalog-source-year {
    color: #92400e;
    background: rgba(251, 191, 36, 0.24);
    border-color: rgba(245, 158, 11, 0.38);
}

body[data-theme="light"] .catalog-source-month {
    color: #6d28d9;
    background: rgba(196, 181, 253, 0.32);
    border-color: rgba(139, 92, 246, 0.38);
}

.th-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
    flex-shrink: 0;
    margin-right: 8px;
    vertical-align: -2px;
}

.catalog-table th:nth-child(1) .th-icon { color: #7dd3fc; }
.catalog-table th:nth-child(2) .th-icon { color: #f9a8d4; }
.catalog-table th:nth-child(3) .th-icon { color: #fbbf24; }
.catalog-table th:nth-child(4) .th-icon { color: #a3e635; }
.catalog-table th:nth-child(5) .th-icon { color: #f87171; }
.catalog-table th:nth-child(6) .th-icon { color: #c4b5fd; }

/* ── Row Animations ── */
.catalog-row {
    cursor: pointer;
    transition: all 0.2s ease;
    animation: rowSlideIn 0.3s ease both;
}

.catalog-row:nth-child(1)  { animation-delay: 0.02s; }
.catalog-row:nth-child(2)  { animation-delay: 0.04s; }
.catalog-row:nth-child(3)  { animation-delay: 0.06s; }
.catalog-row:nth-child(4)  { animation-delay: 0.08s; }
.catalog-row:nth-child(5)  { animation-delay: 0.10s; }
.catalog-row:nth-child(6)  { animation-delay: 0.12s; }
.catalog-row:nth-child(7)  { animation-delay: 0.14s; }
.catalog-row:nth-child(8)  { animation-delay: 0.16s; }
.catalog-row:nth-child(9)  { animation-delay: 0.18s; }
.catalog-row:nth-child(10) { animation-delay: 0.20s; }
.catalog-row:nth-child(n+11) { animation-delay: 0.22s; }

@keyframes rowSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.catalog-row:hover {
    background: rgba(224, 82, 82, 0.05);
    transform: translateX(2px);
}

.catalog-row:active {
    transform: translateX(1px) scale(0.999);
}

/* ── Poz Chip ── */
.poz-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.poz-chip:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(224, 82, 82, 0.25);
}

.poz-chip:active {
    transform: translateY(0) scale(0.96);
}

.cell-muted {
    color: var(--text-muted);
    font-size: 12px;
}

.price-cell {
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.align-right {
    text-align: right;
}

/* ── Enhanced Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
    gap: 8px;
}

.page-btn {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    padding: 9px 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 82, 82, 0.1);
}

.page-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-elevated);
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    min-width: 80px;
    text-align: center;
}

/* ── Skeleton Loading ── */
.skeleton-row td {
    position: relative;
    overflow: hidden;
}

.skeleton-bar {
    display: block;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--border) 25%, rgba(224, 82, 82, 0.06) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

.skeleton-bar.w-xs  { width: 40px; }
.skeleton-bar.w-sm  { width: 65px; }
.skeleton-bar.w-md  { width: 120px; }
.skeleton-bar.w-lg  { width: 200px; }
.skeleton-bar.w-xl  { width: 280px; }

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

/* ── Info Panel ── */
.info-panel {
    display: grid;
    gap: 16px;
}

.info-card {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.info-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ── Modal with Animations ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 18, 0.01);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 10000010;
}

.modal-backdrop.is-open {
    display: flex;
    background: rgba(6, 10, 18, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: backdropIn 0.3s ease forwards;
}

@keyframes backdropIn {
    from { background: rgba(6, 10, 18, 0.01); backdrop-filter: blur(0); }
    to   { background: rgba(6, 10, 18, 0.68); backdrop-filter: blur(8px); }
}

body[data-theme="light"] .modal-backdrop.is-open {
    background: rgba(15, 25, 40, 0.5);
}

.modal {
    width: min(920px, calc(100vw - 24px));
    max-height: min(85vh, calc(100dvh - 24px));
    background: var(--bg-elevated);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-modal);
}


@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, rgba(224, 82, 82, 0.04), transparent);
    position: relative;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 {
    margin: 0;
    font-family: var(--font-modal);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.nested-detail-backdrop {
    z-index: 10000030;
}

.nested-detail-modal {
    width: min(880px, calc(100vw - 20px));
    max-height: 88vh;
    box-shadow: 0 34px 84px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-header p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-close {
    border: none;
    background: var(--bg-soft);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 14px rgba(224, 82, 82, 0.25);
}

/* ── Copy Poz Description Button ── */
.copy-poz-desc-btn {
    border: none;
    background: var(--bg-soft);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.copy-poz-desc-btn:hover {
    background: var(--success-soft);
    color: var(--success);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.2);
}

.copy-poz-desc-btn:active {
    transform: scale(0.95);
}

.detail-subtitle-row {
    margin-top: 2px;
}

#detailSubtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.35;
}

#detailSubtitle:empty {
    display: none;
}

.detail-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.detail-action-btn svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.detail-action-btn:hover {
    transform: translateY(-1px);
}

.detail-action-btn:active {
    transform: translateY(0);
}

.detail-action-neutral {
    border-color: rgba(148, 163, 184, 0.45);
    color: var(--text-muted);
}

.detail-action-neutral:hover {
    border-color: rgba(148, 163, 184, 0.65);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.2);
}

.detail-action-link {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(29, 78, 216, 0.2));
    color: #bfdbfe;
}

.detail-action-link:hover {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.24);
}

.detail-action-analysis {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.25));
    color: #d1fae5;
}

.detail-action-analysis:hover {
    border-color: rgba(16, 185, 129, 0.65);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.24);
}

body[data-theme="light"] .detail-action-btn {
    background: #fff;
}

body[data-theme="light"] .detail-action-neutral {
    color: #475569;
    border-color: rgba(100, 116, 139, 0.4);
}

body[data-theme="light"] .detail-action-link {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(191, 219, 254, 0.95));
}

body[data-theme="light"] .detail-action-analysis {
    color: #047857;
    border-color: rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.92), rgba(167, 243, 208, 0.95));
}

/* ── Platform Button ── */
.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e05252, #c73e3e);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(224, 82, 82, 0.3);
    position: relative;
    overflow: hidden;
    animation: platformPulse 2s ease-in-out infinite;
    min-height: 46px;
}

.topbar .platform-btn:not(.platform-btn-modal) {
    animation: none;
    text-transform: none;
    letter-spacing: 0.2px;
}

.topbar .platform-btn:not(.platform-btn-modal) .platform-label strong {
    font-size: 14px;
    letter-spacing: 0.15px;
}

.topbar .platform-btn:not(.platform-btn-modal) .platform-label small {
    font-size: 11px;
    letter-spacing: 0.05px;
    opacity: 0.9;
}

.platform-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.platform-btn:hover::before {
    width: 300px;
    height: 300px;
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 82, 82, 0.4);
    animation: none;
}

.platform-btn svg {
    position: relative;
    z-index: 1;
}

.platform-btn-logo-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.platform-btn span {
    position: relative;
    z-index: 1;
}

.platform-btn .platform-label {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.05;
}

.platform-btn .platform-label strong {
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.45px;
}

.platform-btn .platform-label small {
    font-size: 0.68em;
    font-weight: 600;
    letter-spacing: 0.2px;
    opacity: 0.95;
    text-transform: none;
}

.platform-btn-modal {
    padding: 10px 16px;
    font-size: 12px;
    height: auto;
    min-height: 40px;
    max-width: 430px;
    gap: 10px;
    justify-content: flex-start;
    border: 1px solid rgba(125, 211, 252, 0.5);
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
    position: relative;
    padding-right: 34px;
    overflow: hidden;
}

.platform-btn-modal:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.45);
}

.platform-btn-modal::after {
    content: "↗";
    position: absolute;
    right: 8px;
    bottom: 6px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: rgba(12, 74, 110, 0.95);
    background: rgba(240, 249, 255, 0.98);
    border: 1px solid rgba(125, 211, 252, 0.75);
    box-shadow: 0 2px 7px rgba(8, 47, 73, 0.35);
    pointer-events: none;
}

.platform-btn-modal .platform-btn-logo-icon {
    width: 16px;
    height: 16px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 8px rgba(15, 23, 42, 0.4);
}

.platform-btn-modal .platform-label strong {
    font-size: 0.94em;
    letter-spacing: 0.18px;
    text-transform: none;
    line-height: 1.1;
    color: #f8fafc;
}

.platform-btn-modal .platform-label small {
    font-size: 0.7em;
    color: rgba(241, 245, 249, 0.9);
}

#detailModal .modal-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

#detailModal .platform-btn-modal {
    flex: 1 1 320px;
    width: min(430px, calc(100vw - 190px));
}

body[data-theme="light"] .platform-btn-modal {
    border-color: rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #2563eb, #0d9488);
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.28);
}

body[data-theme="light"] .platform-btn-modal::after {
    color: rgba(12, 74, 110, 0.95);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 2px 7px rgba(30, 64, 175, 0.24);
}

body[data-theme="light"] .platform-btn-modal:hover {
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.34);
}

.analysis-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.25));
    color: #d1fae5;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.analysis-export-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.22);
}

.analysis-export-btn .bulk-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.analysis-export-btn .bulk-action-icon svg {
    width: 14px;
    height: 14px;
}

.bulk-transfer-btn {
    border-color: rgba(5, 150, 105, 0.52);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.4));
    color: #dcfce7;
}

.bulk-transfer-btn:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.bulk-excel-btn {
    border-color: rgba(37, 99, 235, 0.52);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(29, 78, 216, 0.4));
    color: #dbeafe;
}

.bulk-excel-btn:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.analysis-export-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

body[data-theme="light"] .analysis-export-btn {
    border: 1px solid rgba(5, 150, 105, 0.55);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.38));
    color: #0f5132;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body[data-theme="light"] .analysis-export-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.36), rgba(5, 150, 105, 0.46));
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] .bulk-transfer-btn {
    border-color: rgba(5, 150, 105, 0.6);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(5, 150, 105, 0.46));
    color: #064e3b;
}

body[data-theme="light"] .bulk-transfer-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.54));
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body[data-theme="light"] .bulk-excel-btn {
    border-color: rgba(37, 99, 235, 0.6);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.45));
    color: #1e3a8a;
}

body[data-theme="light"] .bulk-excel-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.38), rgba(37, 99, 235, 0.53));
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.bulk-backdrop {
    z-index: 10000013;
}

.bulk-modal {
    width: min(1120px, calc(100vw - 28px));
    max-height: 92vh;
}

.bulk-modal-header {
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.16), rgba(14, 116, 144, 0.04));
}

.bulk-modal-body {
    display: grid;
    gap: 14px;
}

.bulk-config-card,
.bulk-progress-card,
.bulk-results-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: var(--bg-soft);
}

#bulkProgressCard {
    display: none !important;
}

.bulk-config-grid,
.bulk-threshold-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bulk-settings-explainer {
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.07));
    margin-top: 4px;
}

.bulk-settings-explainer strong {
    color: #dbeafe;
    font-size: 13px;
}

.bulk-settings-explainer p {
    margin: 6px 0 8px;
    font-size: 12px;
    color: rgba(226, 232, 240, 0.9);
}

.bulk-settings-explainer ul {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: rgba(226, 232, 240, 0.95);
}

body[data-theme="light"] .bulk-settings-explainer {
    border-color: rgba(37, 99, 235, 0.32);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.88), rgba(239, 246, 255, 0.88));
}

body[data-theme="light"] .bulk-settings-explainer strong {
    color: #1d4ed8;
}

body[data-theme="light"] .bulk-settings-explainer p,
body[data-theme="light"] .bulk-settings-explainer ul {
    color: #1e293b;
}

.bulk-threshold-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
}

#bulkFileInput {
    min-height: 44px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    color: var(--text);
}

#bulkFileInput::file-selector-button {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    margin-right: 10px;
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
}

.bulk-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.bulk-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.bulk-validation {
    color: #f59e0b;
    font-size: 12px;
    min-height: 18px;
    flex: 1 1 auto;
}

.bulk-run-btn {
    border: none;
    border-radius: 10px;
    min-height: 42px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
}

.bulk-run-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bulk-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.bulk-step {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 8px 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.bulk-step.is-active {
    color: #fff;
    background: linear-gradient(135deg, #0284c7, #1d4ed8);
    border-color: rgba(37, 99, 235, 0.65);
}

.bulk-step.is-done {
    color: var(--text);
    background: color-mix(in srgb, var(--success-soft) 70%, var(--bg-elevated) 30%);
}

.bulk-progress-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

#bulkProgressTitle {
    font-size: 14px;
}

#bulkProgressInfo {
    font-size: 12px;
    color: var(--text-muted);
}

.bulk-log {
    max-height: 120px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    font-size: 12px;
    color: var(--text-muted);
}

.bulk-log-line {
    margin: 0;
    padding: 2px 0;
}

.bulk-results-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.bulk-results-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
}

.bulk-export-options {
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 0;
    background: var(--bg-elevated);
}

.bulk-export-modal {
    width: min(700px, calc(100vw - 20px));
}

.bulk-option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text);
}

.bulk-option-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.bulk-option-inline {
    display: grid;
    grid-template-columns: 1fr 110px;
    align-items: center;
    gap: 10px;
}

.bulk-option-inline input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
}

.bulk-option-inline input[readonly] {
    opacity: 0.9;
    cursor: default;
    background: color-mix(in srgb, var(--bg-soft) 88%, #94a3b8 12%);
}

.bulk-export-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.bulk-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bulk-summary-inline {
    margin-top: 10px;
    min-height: 40px;
}

.bulk-summary-badge {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, var(--bg-elevated), color-mix(in srgb, var(--bg-elevated) 75%, #94a3b8 25%));
    box-shadow: 0 3px 10px rgba(2, 6, 23, 0.12);
}

.bulk-summary-total {
    color: #fff7ed;
    border-color: rgba(251, 146, 60, 0.52);
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.92), rgba(234, 88, 12, 0.88));
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.bulk-summary-match {
    color: #065f46;
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.45);
}

.bulk-summary-select {
    color: #92400e;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.42);
}

.bulk-summary-reject {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.bulk-summary-delta {
    animation: bulkSummaryDeltaIn 0.2s ease;
}

.bulk-summary-delta-up {
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.18);
}

.bulk-summary-delta-down {
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.16);
}

.bulk-total-flash {
    position: fixed;
    right: 16px;
    top: 86px;
    transform: translateY(-10px);
    z-index: 10000080;
    min-width: 260px;
    max-width: min(100%, 520px);
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
}

.bulk-total-flash.is-open {
    opacity: 1;
    transform: translateY(0);
}

.bulk-total-flash strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.bulk-total-flash span {
    display: block;
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.9;
}

.bulk-total-flash-up {
    color: #ecfdf5;
    background: rgba(4, 120, 87, 0.92);
    border-color: rgba(16, 185, 129, 0.45);
}

.bulk-total-flash-down {
    color: #fff1f2;
    background: rgba(153, 27, 27, 0.92);
    border-color: rgba(248, 113, 113, 0.45);
}

.bulk-yearinfo-backdrop {
    z-index: 10000060;
}

.bulk-yearinfo-modal {
    width: min(560px, calc(100vw - 22px));
}

.bulk-yearinfo-text {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--text);
    line-height: 1.6;
    font-size: 13px;
}

.bulk-table-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: auto;
    max-height: min(56vh, 520px);
    -webkit-overflow-scrolling: touch;
}

.bulk-result-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 12px;
}

.bulk-result-table th,
.bulk-result-table td {
    border-bottom: 1px solid var(--border);
    padding: 9px 10px;
    vertical-align: top;
}

.bulk-result-table th {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: inset 0 -1px 0 var(--border);
}

.bulk-sort-btn {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.bulk-sort-btn:hover {
    color: var(--text);
}

.bulk-sort-btn.is-active {
    color: var(--text);
}

.bulk-sort-indicator {
    opacity: 0.55;
    font-size: 9px;
    line-height: 1;
}

.bulk-sort-btn.is-active .bulk-sort-indicator {
    opacity: 1;
}

.bulk-price-cell {
    font-weight: 700;
    color: #f59e0b;
}

.bulk-total-cell {
    font-weight: 800;
    color: #16a34a;
}

body[data-theme="light"] .bulk-summary-total {
    color: #7c2d12;
    border-color: rgba(251, 146, 60, 0.55);
    background: linear-gradient(145deg, rgba(255, 237, 213, 0.98), rgba(254, 215, 170, 0.98));
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2);
}

body[data-theme="light"] .bulk-price-cell {
    color: #b45309;
}

body[data-theme="light"] .bulk-total-cell {
    color: #15803d;
}

.bulk-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    border: 1px solid transparent;
}

.bulk-status-accept {
    color: #065f46;
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.45);
}

.bulk-status-suggest {
    color: #92400e;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.42);
}

.bulk-status-reject {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.bulk-status-manual {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.42);
}

.bulk-row-action {
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.bulk-row-accept {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.bulk-row-reject {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

.bulk-status-cross {
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.42);
}

.bulk-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.bulk-info-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
}

.bulk-info-badge.bulk-year {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.4);
}

.bulk-info-badge.bulk-kurum-csb { color: #1d4ed8; background: rgba(37, 99, 235, 0.18); border-color: rgba(37, 99, 235, 0.4); }
.bulk-info-badge.bulk-kurum-kgm { color: #166534; background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.4); }
.bulk-info-badge.bulk-kurum-dsi { color: #0e7490; background: rgba(6, 182, 212, 0.18); border-color: rgba(6, 182, 212, 0.42); }
.bulk-info-badge.bulk-kurum-ilbank { color: #6d28d9; background: rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.42); }
.bulk-info-badge.bulk-kurum-ptt { color: #991b1b; background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.42); }
.bulk-info-badge.bulk-kurum-kultur { color: #92400e; background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.44); }
.bulk-info-badge.bulk-kurum-default { color: var(--text); background: var(--bg-elevated); border-color: var(--border); }

.bulk-suggest-head {
    margin-bottom: 12px;
}

.bulk-suggest-list {
    display: grid;
    gap: 10px;
}

.bulk-suggest-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--bg-soft);
    display: grid;
    gap: 6px;
}

.bulk-suggest-select {
    justify-self: flex-start;
}

.bulk-suggest-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.bulk-suggest-actions .bulk-row-reject {
    font-size: 13px;
    padding: 8px 16px;
}

@keyframes bulkSummaryDeltaIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-loading-backdrop {
    z-index: 10000042;
}

.bulk-loading-modal {
    width: min(620px, calc(100vw - 24px));
    max-height: 92vh;
}

.bulk-loading-body {
    display: grid;
    gap: 14px;
}

.bulk-loading-hero {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 2px 0 0;
}

.bulk-loading-ring {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    border: 3px solid rgba(224, 82, 82, 0.24);
    border-top-color: #ef4444;
    border-right-color: #b91c1c;
    animation: bulkSpin 1s linear infinite;
    box-shadow: 0 0 0 6px rgba(224, 82, 82, 0.08);
}

.bulk-loading-coffee {
    position: relative;
    width: 82px;
    height: 56px;
    margin-top: 10px;
}

.bulk-loading-cup {
    position: absolute;
    left: 20px;
    bottom: 6px;
    width: 42px;
    height: 28px;
    border: 3px solid rgba(239, 68, 68, 0.85);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.2), rgba(185, 28, 28, 0.28));
    z-index: 2;
}

.bulk-loading-cup::after {
    content: "";
    position: absolute;
    right: -13px;
    top: 7px;
    width: 11px;
    height: 11px;
    border: 3px solid rgba(239, 68, 68, 0.85);
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.bulk-loading-cup::before {
    content: "";
    position: absolute;
    left: -7px;
    right: -7px;
    bottom: -8px;
    height: 4px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.45);
}

.bulk-loading-steam {
    position: absolute;
    bottom: 31px;
    width: 7px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 244, 244, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.48);
    filter: blur(0.15px);
    animation: bulkSteam 2.2s ease-in-out infinite;
    z-index: 3;
}

.bulk-loading-steam.steam-1 {
    left: 30px;
}

.bulk-loading-steam.steam-2 {
    left: 43px;
    animation-delay: 0.7s;
}

#bulkLoadingBrand {
    font-size: 22px;
    letter-spacing: 0.6px;
    color: #7dd3fc;
}

.bulk-loading-message-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(14, 116, 144, 0.12), rgba(30, 64, 175, 0.08));
    padding: 10px 12px;
}

.bulk-loading-message-label {
    margin: 0 0 6px;
    font-size: 10px;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.bulk-loading-current {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}

.bulk-progress-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bulk-progress-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.bulk-progress-note.is-match .bulk-progress-note-icon {
    color: #065f46;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.45);
}

.bulk-progress-note.is-reject .bulk-progress-note-icon {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
}

.bulk-progress-note.is-select .bulk-progress-note-icon {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.45);
}

.bulk-progress-note.is-neutral .bulk-progress-note-icon {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.35);
}

.bulk-progress-inline-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    margin-left: 10px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #065f46;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.bulk-loading-current.is-animate {
    animation: bulkMessageIn 0.45s ease;
}

.bulk-loading-queue {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bulk-loading-queue-item {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.25);
    color: var(--text-muted);
    padding: 3px 8px;
    font-size: 10px;
    line-height: 1.2;
}

.bulk-loading-queue-item.is-active {
    border-color: rgba(125, 211, 252, 0.62);
    color: #e0f2fe;
    background: rgba(14, 116, 144, 0.35);
}

.bulk-loading-queue-item.is-done {
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    background: rgba(5, 150, 105, 0.18);
}

.bulk-loading-facts {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 10px 12px;
    min-height: 108px;
}

.bulk-loading-fact {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.bulk-loading-fact + .bulk-loading-fact {
    margin-top: 5px;
}

.bulk-confirm-backdrop {
    z-index: 10000043;
}

.bulk-confirm-modal {
    width: min(460px, calc(100vw - 20px));
}

.bulk-access-modal,
.bulk-transfer-modal {
    width: min(620px, calc(100vw - 20px));
}

.bulk-access-note {
    margin: 0 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--bg-soft);
    color: var(--text);
    line-height: 1.55;
}

.bulk-transfer-grid {
    display: grid;
    gap: 10px;
}

.bulk-transfer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-transfer-primary-btn,
.bulk-transfer-secondary-btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.bulk-transfer-secondary-btn {
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(191, 219, 254, 0.86));
    color: #1d4ed8;
}

.bulk-transfer-secondary-btn:hover {
    border-color: rgba(37, 99, 235, 0.62);
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.95), rgba(147, 197, 253, 0.9));
    transform: translateY(-1px);
}

.bulk-transfer-primary-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.bulk-transfer-primary-btn:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-1px);
}

.bulk-confirm-body {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.bulk-transfer-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    color: var(--text-muted);
    font-size: 12px;
}

.bulk-transfer-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: wbSpin 0.8s linear infinite;
}

.bulk-confirm-yes {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

body[data-theme="light"] .bulk-loading-ring {
    border-color: rgba(239, 68, 68, 0.3);
    border-top-color: #dc2626;
    border-right-color: #b91c1c;
}

body[data-theme="light"] .bulk-loading-cup {
    border-color: rgba(220, 38, 38, 0.74);
    background: linear-gradient(180deg, rgba(254, 202, 202, 0.75), rgba(252, 165, 165, 0.85));
}

body[data-theme="light"] .bulk-loading-cup::after {
    border-color: rgba(220, 38, 38, 0.74);
}

body[data-theme="light"] .bulk-loading-cup::before {
    background: rgba(220, 38, 38, 0.35);
}

body[data-theme="light"] .bulk-loading-steam {
    background: rgba(127, 29, 29, 0.72);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.34);
}

body[data-theme="light"] #bulkLoadingBrand {
    color: #075985;
}

body[data-theme="light"] .bulk-loading-message-card {
    background: linear-gradient(140deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.08));
}

body[data-theme="light"] .bulk-loading-queue-item {
    background: rgba(248, 250, 252, 0.75);
}

#wbCreateStudyBackdrop {
    z-index: 10000090;
}

@keyframes bulkSpin {
    to { transform: rotate(360deg); }
}

@keyframes wbSpin {
    to { transform: rotate(360deg); }
}

@keyframes bulkSteam {
    0% { opacity: 0.15; transform: translateY(2px) scaleX(0.9); }
    50% { opacity: 0.8; transform: translateY(-9px) scaleX(1.05); }
    100% { opacity: 0.05; transform: translateY(-16px) scaleX(0.85); }
}

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

@keyframes platformPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(224, 82, 82, 0.3), 0 0 0 0 rgba(224, 82, 82, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(224, 82, 82, 0.3), 0 0 0 8px rgba(224, 82, 82, 0);
    }
}

.modal-body {
    padding: 24px 28px 28px;
    overflow: auto;
}

.auth-modal {
    max-width: 520px;
}

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

.auth-modal-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-inline-links {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.auth-link-btn {
    min-height: 40px;
    border: none;
    background: transparent;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 2px;
}

.auth-link-btn:hover {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.profile-settings-photo {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.profile-settings-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    overflow: hidden;
}

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

.auth-modal-note {
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.12);
    color: #dbeafe;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.45;
}

body[data-theme="light"] .auth-modal-note {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.14);
    color: #1e40af;
}

/* Giriş Yap — birincil buton */
.auth-modal-actions > #authLoginBtn,
.auth-modal-actions > #registerSubmitBtn {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-modal-actions > #authLoginBtn:hover,
.auth-modal-actions > #registerSubmitBtn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42);
    transform: translateY(-1px);
}
.auth-modal-actions > #authLoginBtn:active,
.auth-modal-actions > #registerSubmitBtn:active {
    transform: translateY(0) scale(0.98);
}

/* Kayıt Ol / Girişe Dön — ikincil buton */
.auth-modal-actions > #authGoRegisterBtn,
.auth-modal-actions > #registerGoLoginBtn {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    padding: 4px 16px;
}
.auth-modal-actions > #authGoRegisterBtn:hover,
.auth-modal-actions > #registerGoLoginBtn:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
}
body[data-theme="light"] .auth-modal-actions > #authGoRegisterBtn:hover,
body[data-theme="light"] .auth-modal-actions > #registerGoLoginBtn:hover {
    color: #1d4ed8;
}

/* Çıkış Yap onay modali — özel buton stilleri */
.auth-modal-actions > #logoutConfirmYes {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-modal-actions > #logoutConfirmYes::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}
.auth-modal-actions > #logoutConfirmYes:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.42);
    transform: translateY(-1px);
}
.auth-modal-actions > #logoutConfirmYes:active {
    transform: translateY(0) scale(0.98);
}

.auth-modal-actions > #logoutConfirmNo {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    padding: 4px 16px;
    letter-spacing: 0.2px;
}
.auth-modal-actions > #logoutConfirmNo:hover {
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(148, 163, 184, 0.06);
    color: var(--text);
}

.locked-tool-modal {
    max-width: 440px;
    width: min(440px, calc(100vw - 24px));
}

.locked-tool-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 4px 0 8px;
}

.locked-tool-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(37, 99, 235, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.14);
    flex-shrink: 0;
}

.locked-tool-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    font-weight: 400;
    font-family: var(--font-body);
}

.locked-tool-desc strong {
    color: var(--accent);
    font-weight: 700;
}

.locked-tool-sub {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    font-family: var(--font-body);
}

.locked-tool-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.locked-tool-register-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.locked-tool-register-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.42);
    transform: translateY(-1px);
}

.locked-tool-register-btn:active {
    transform: translateY(0) scale(0.98);
}

.locked-tool-ok-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.locked-tool-ok-btn:hover {
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(148, 163, 184, 0.08);
    color: var(--text);
}

.auth-divider {
    margin: 16px 0 12px;
    text-align: center;
    color: var(--text-muted);
    position: relative;
}

.auth-divider span {
    background: var(--card);
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
}

.google-signin-wrap {
    min-height: 42px;
    display: flex;
    justify-content: center;
}

.google-signin-cta {
    display: grid;
    gap: 8px;
}

.google-signin-custom-btn {
    min-height: 52px;
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.google-signin-custom-btn:hover {
    border-color: #b7c1cc;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.12);
    transform: translateY(-1px);
}

.google-signin-custom-btn:focus-visible {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.google-signin-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.google-signin-icon svg {
    width: 22px;
    height: 22px;
}

.google-signin-wrap-hidden {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

body[data-theme="dark"] .google-signin-wrap > div {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

body[data-theme="dark"] .google-signin-custom-btn {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.94);
}

.auth-verify-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
}

.workbench-modal {
    width: min(1720px, calc(100vw - 24px));
    height: min(94vh, 1100px);
    max-width: min(1720px, calc(100vw - 24px));
    max-height: min(94vh, 1100px);
    border-radius: 20px;
    font-family: var(--font-body);
}

.workbench-modal .bulk-run-btn,
.workbench-modal .bulk-row-action,
.wb-poz-modal .bulk-run-btn,
.wb-poz-modal .bulk-row-action,
.wb-subitem-modal .bulk-run-btn,
.wb-subitem-modal .bulk-row-action,
.wb-my-poz-modal .bulk-run-btn,
.wb-my-poz-modal .bulk-row-action,
.wb-my-poz-mini .bulk-run-btn,
.wb-my-poz-mini .bulk-row-action,
#wbBulkDiscountBackdrop .bulk-run-btn,
#wbBulkDiscountBackdrop .bulk-row-action {
    border-radius: 10px;
    min-height: 36px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
}

.workbench-modal .bulk-run-btn:hover,
.workbench-modal .bulk-row-action:hover,
.wb-poz-modal .bulk-run-btn:hover,
.wb-poz-modal .bulk-row-action:hover,
.wb-subitem-modal .bulk-run-btn:hover,
.wb-subitem-modal .bulk-row-action:hover,
.wb-my-poz-modal .bulk-run-btn:hover,
.wb-my-poz-modal .bulk-row-action:hover,
.wb-my-poz-mini .bulk-run-btn:hover,
.wb-my-poz-mini .bulk-row-action:hover,
#wbBulkDiscountBackdrop .bulk-run-btn:hover,
#wbBulkDiscountBackdrop .bulk-row-action:hover {
    transform: translateY(-1px);
}

.workbench-modal .bulk-run-btn {
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.workbench-modal .bulk-row-action {
    border-color: rgba(59, 130, 246, 0.62);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(14, 165, 233, 0.2));
    color: #dbeafe;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.workbench-modal .bulk-row-action:hover {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    border-color: rgba(56, 189, 248, 0.72);
}

.wb-poz-modal {
    max-width: min(1080px, calc(100vw - 24px));
}

.workbench-body {
    padding: 10px 12px 12px;
    height: auto;
    min-height: 0;
    flex: 1;
    overflow: visible;
}

.workbench-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 14px;
    height: 100%;
    position: relative;
}

.workbench-shell::before {
    content: "";
    position: absolute;
    left: 244px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(224, 82, 82, 0.5), rgba(14, 165, 233, 0.16));
    pointer-events: none;
}

.workbench-sidebar {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    background: var(--bg-elevated);
    max-height: 100%;
    overflow: auto;
}

.workbench-side-actions {
    margin-bottom: 10px;
}

.wb-study-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wb-study-item {
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 11px;
}

.wb-study-select {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.wb-study-inline-actions {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}

.wb-mini-action {
    min-height: 30px;
    min-width: 30px;
    width: 30px;
    padding: 0;
    font-size: 10px;
}

.wb-study-inline-actions .wb-mini-action .wb-btn-label,
.wb-my-poz-item .wb-mini-action .wb-btn-label {
    display: none;
}

.wb-study-item.is-active {
    border-color: rgba(16, 185, 129, 0.62);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.28), rgba(5, 150, 105, 0.28));
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.24), 0 12px 22px rgba(6, 78, 59, 0.22);
    transform: translateX(1px);
}

.wb-study-item.is-active .wb-study-select strong {
    color: #dcfce7;
}

.wb-study-item.is-active .wb-poz-meta {
    color: rgba(236, 253, 245, 0.95);
    font-size: 10px;
}

.workbench-editor {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: var(--bg-elevated);
    min-height: 100%;
}

.wb-selected-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.1));
}

#wbSelectedStudyTitle {
    font-size: 16px;
    color: #f8fafc;
    letter-spacing: 0.2px;
}

#wbSelectedStudyMeta {
    margin-top: 4px;
    font-size: 11px;
    color: #cbd5e1;
    font-weight: 600;
}

.wb-selected-head-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.wb-btn-export-soon {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.92), rgba(20, 83, 45, 0.95));
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
}

.wb-btn-export-soon:hover {
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.34);
}

body[data-theme="light"] .wb-btn-export-soon {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.9), rgba(21, 128, 61, 0.95));
    border-color: rgba(21, 128, 61, 0.5);
}

.wb-add-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.wb-add-row input {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    padding: 8px 10px;
}

.wb-poz-results {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wb-poz-row {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.06));
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wb-poz-row:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.wb-poz-title {
    font-size: 13px;
    color: var(--text);
}

.wb-poz-meta {
    font-size: 9px;
    color: var(--text-muted);
}

.wb-poz-desc {
    margin-top: 2px;
}

.wb-poz-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wb-poz-tags {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wb-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    line-height: 1.2;
    border: 1px solid transparent;
}

.wb-tag-kurum {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.3);
}

.wb-tag-period {
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.3);
}

.wb-tag-current {
    color: #15803d;
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.32);
    animation: wb-current-blink 1.2s ease-in-out infinite;
}

.wb-tag-price {
    color: #92400e;
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(245, 158, 11, 0.35);
}

@keyframes wb-current-blink {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42); }
    50% { opacity: 0.45; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.05); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.wb-items-wrap {
    margin-top: 6px;
    max-height: calc(100vh - 210px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.wb-items-wrap::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.wb-items-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(224, 82, 82, 0.88), rgba(180, 42, 42, 0.88));
    border-radius: 999px;
}

.wb-items-wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(224, 82, 82, 1), rgba(180, 42, 42, 1));
}

.wb-items-table {
    margin: 0;
}

.wb-items-table thead th {
    position: relative;
    top: auto;
    z-index: 4;
    background: var(--bg-elevated);
}

.wb-items-table td input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    min-height: 30px;
    padding: 4px 7px;
    font-size: 12px;
}

.wb-adjust-badge {
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}

.wb-adjust-discount {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.38);
}

.wb-adjust-increase {
    color: #14532d;
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.36);
}

body[data-theme="dark"] .wb-adjust-discount {
    color: #fecaca;
}

body[data-theme="dark"] .wb-adjust-increase {
    color: #dcfce7;
}

.wb-items-table td,
.wb-items-table th {
    font-size: 12px;
}

.wb-items-table td:nth-child(2) {
    font-size: 10.5px;
}

.wb-nakliye-badge {
    display: inline-flex;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #14532d;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.wb-items-table td:nth-child(1),
.wb-items-table td:nth-child(3),
.wb-items-table td:nth-child(6),
.wb-items-table td:nth-child(7) {
    font-size: 11px;
}

.wb-items-table th:nth-child(3),
.wb-items-table td:nth-child(3) {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
}

.wb-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

.wb-btn-ico {
    display: inline-flex;
    width: 16px;
    min-width: 16px;
    height: 16px;
    justify-content: center;
    align-items: center;
    opacity: 0.95;
}

.wb-btn-ico svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wb-btn-label {
    line-height: 1;
}

.wb-item-actions .wb-btn-label {
    display: none;
}

.wb-item-actions .bulk-row-action {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
}

.wb-btn-alt {
    border-color: rgba(59, 130, 246, 0.5);
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.22);
}

.wb-btn-add {
    border-color: rgba(22, 163, 74, 0.72);
    color: #ecfdf5;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.38), rgba(16, 185, 129, 0.34));
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.34);
}

.wb-btn-special {
    border-color: rgba(147, 51, 234, 0.5);
    color: #f3e8ff;
    background: rgba(147, 51, 234, 0.22);
}

.wb-btn-del {
    border-color: rgba(239, 68, 68, 0.5);
    color: #fee2e2;
    background: rgba(220, 38, 38, 0.24);
}

.wb-btn-alt:hover,
.wb-btn-add:hover,
.wb-btn-special:hover,
.wb-btn-del:hover {
    filter: saturate(1.08);
}

.wb-btn-del:hover {
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

body[data-theme="light"] .workbench-modal .bulk-run-btn,
body[data-theme="light"] .workbench-modal .bulk-row-action,
body[data-theme="light"] .wb-poz-modal .bulk-run-btn,
body[data-theme="light"] .wb-poz-modal .bulk-row-action,
body[data-theme="light"] .wb-subitem-modal .bulk-run-btn,
body[data-theme="light"] .wb-subitem-modal .bulk-row-action,
body[data-theme="light"] .wb-my-poz-modal .bulk-run-btn,
body[data-theme="light"] .wb-my-poz-modal .bulk-row-action,
body[data-theme="light"] .wb-my-poz-mini .bulk-run-btn,
body[data-theme="light"] .wb-my-poz-mini .bulk-row-action,
body[data-theme="light"] #wbBulkDiscountBackdrop .bulk-run-btn,
body[data-theme="light"] #wbBulkDiscountBackdrop .bulk-row-action {
    color: #111827;
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .workbench-modal .wb-btn-alt,
body[data-theme="light"] .wb-poz-modal .wb-btn-alt,
body[data-theme="light"] .wb-subitem-modal .wb-btn-alt,
body[data-theme="light"] .wb-my-poz-modal .wb-btn-alt,
body[data-theme="light"] .wb-my-poz-mini .wb-btn-alt,
body[data-theme="light"] #wbBulkDiscountBackdrop .wb-btn-alt {
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.16);
}

body[data-theme="light"] .workbench-modal .wb-btn-add,
body[data-theme="light"] .wb-poz-modal .wb-btn-add,
body[data-theme="light"] .wb-subitem-modal .wb-btn-add,
body[data-theme="light"] .wb-my-poz-modal .wb-btn-add,
body[data-theme="light"] .wb-my-poz-mini .wb-btn-add,
body[data-theme="light"] #wbBulkDiscountBackdrop .wb-btn-add {
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.64);
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.82), rgba(74, 222, 128, 0.74));
    box-shadow: 0 8px 16px rgba(22, 163, 74, 0.2);
}

body[data-theme="light"] .workbench-modal .wb-btn-special,
body[data-theme="light"] .wb-poz-modal .wb-btn-special,
body[data-theme="light"] .wb-subitem-modal .wb-btn-special,
body[data-theme="light"] .wb-my-poz-modal .wb-btn-special,
body[data-theme="light"] .wb-my-poz-mini .wb-btn-special,
body[data-theme="light"] #wbBulkDiscountBackdrop .wb-btn-special {
    color: #581c87;
    border-color: rgba(147, 51, 234, 0.45);
    background: rgba(147, 51, 234, 0.16);
}

body[data-theme="light"] .wb-study-item.is-active {
    border-color: rgba(5, 150, 105, 0.56);
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.92), rgba(236, 253, 245, 0.95));
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 10px 18px rgba(5, 150, 105, 0.16);
}

body[data-theme="light"] .wb-study-item.is-active .wb-study-select strong {
    color: #065f46;
}

body[data-theme="light"] .wb-study-item.is-active .wb-poz-meta {
    color: #047857;
}

body[data-theme="light"] .wb-selected-head {
    border-color: rgba(16, 185, 129, 0.32);
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.96), rgba(236, 253, 245, 0.98));
}

body[data-theme="light"] #wbSelectedStudyTitle {
    color: #0f172a;
}

body[data-theme="light"] #wbSelectedStudyMeta {
    color: #047857;
}

body[data-theme="light"] .workbench-shell::before {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(224, 82, 82, 0.42), rgba(37, 99, 235, 0.18));
}

body[data-theme="light"] .workbench-modal .wb-btn-del,
body[data-theme="light"] .wb-poz-modal .wb-btn-del,
body[data-theme="light"] .wb-subitem-modal .wb-btn-del,
body[data-theme="light"] .wb-my-poz-modal .wb-btn-del,
body[data-theme="light"] .wb-my-poz-mini .wb-btn-del,
body[data-theme="light"] #wbBulkDiscountBackdrop .wb-btn-del {
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(239, 68, 68, 0.16);
}

.wb-btn-save {
    border-color: rgba(22, 163, 74, 0.55);
    color: #dcfce7;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.92), rgba(21, 128, 61, 0.94));
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.28);
}

body[data-theme="light"] .workbench-modal .wb-btn-save,
body[data-theme="light"] .wb-subitem-modal .wb-btn-save,
body[data-theme="light"] .wb-my-poz-modal .wb-btn-save,
body[data-theme="light"] .wb-my-poz-mini .wb-btn-save,
body[data-theme="light"] #wbBulkDiscountBackdrop .wb-btn-save {
    color: #14532d;
    border-color: rgba(21, 128, 61, 0.5);
    background: linear-gradient(135deg, rgba(134, 239, 172, 0.92), rgba(187, 247, 208, 0.94));
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.2);
}

body[data-theme="light"] .wb-my-poz-modal .bulk-run-btn:not(.wb-btn-alt):not(.wb-btn-add):not(.wb-btn-special):not(.wb-btn-del):not(.wb-btn-save),
body[data-theme="light"] .wb-my-poz-mini .bulk-run-btn:not(.wb-btn-alt):not(.wb-btn-add):not(.wb-btn-special):not(.wb-btn-del):not(.wb-btn-save),
body[data-theme="light"] #wbBulkDiscountBackdrop .bulk-run-btn:not(.wb-btn-alt):not(.wb-btn-add):not(.wb-btn-special):not(.wb-btn-del):not(.wb-btn-save) {
    color: #ffffff;
    border-color: rgba(37, 99, 235, 0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22);
}

.wb-item-sub td:first-child {
    padding-left: 24px;
}

.wb-item-sub td:first-child::before {
    content: "↳";
    margin-right: 5px;
    color: var(--text-muted);
}

.workbench-summary {
    margin-top: 10px;
    text-align: right;
}

.wb-empty-screen {
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.workbench-modal .modal-header {
    padding: 8px 12px 6px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.workbench-modal .modal-header h2 {
    font-size: 30px;
    margin-bottom: 2px;
}

.workbench-modal .modal-header p {
    font-size: 13px;
    margin: 0;
}

.workbench-modal .modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.wb-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.wb-header-actions .bulk-run-btn {
    min-height: 34px;
}

.wb-tools-menu {
    position: relative;
}

.wb-btn-tools {
    border-color: rgba(14, 165, 233, 0.52);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(14, 165, 233, 0.32));
    color: #e0f2fe;
}

.wb-btn-tools .wb-tools-caret {
    font-size: 11px;
    line-height: 1;
    opacity: 0.9;
}

.wb-tools-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.44);
    z-index: 20;
}

.wb-tools-menu.is-open .wb-tools-dropdown {
    display: flex;
}

.wb-tools-dropdown .bulk-run-btn {
    width: 100%;
    justify-content: flex-start;
}

.wb-subitem-modal {
    max-width: min(1200px, calc(100vw - 24px));
    width: min(1200px, calc(100vw - 24px));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.35);
}

.wb-subitem-modal .modal-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.wb-subitem-modal .modal-header h2 {
    color: #f8fafc;
}

.wb-subitem-meta {
    margin: 2px 0 0;
    font-size: 11px;
    color: rgba(226, 232, 240, 0.9);
    max-width: 760px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.wb-subitem-modal .modal-header .modal-close {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.32);
    color: #fecaca;
}

body[data-theme="light"] .wb-subitem-modal .modal-header {
    background: linear-gradient(135deg, #fff6f6, #fff);
    border-bottom-color: rgba(224, 82, 82, 0.22);
}

body[data-theme="light"] .wb-subitem-modal .modal-header h2 {
    color: #111827;
}

body[data-theme="light"] .wb-subitem-meta {
    color: #475569;
}

body[data-theme="light"] .wb-subitem-modal .modal-header .modal-close {
    background: rgba(224, 82, 82, 0.12);
    color: #b91c1c;
    border-color: rgba(224, 82, 82, 0.28);
}

body[data-theme="light"] .wb-btn-tools {
    border-color: rgba(14, 116, 144, 0.42);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.2), rgba(2, 132, 199, 0.22));
    color: #0f172a;
}

body[data-theme="light"] .wb-tools-dropdown {
    border-color: rgba(148, 163, 184, 0.38);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

#wbSubitemBody {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(62vh, 620px);
    overflow: auto;
    padding-right: 2px;
}

.wb-subedit-row {
    display: grid;
    grid-template-columns: 80px minmax(320px, 1.8fr) 90px 110px 120px 130px 70px;
    gap: 8px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.04));
    padding: 7px;
}

.wb-subedit-row input {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 6px 8px;
    font-size: 12px;
}

body[data-theme="light"] .wb-subedit-row input {
    background: #fff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.45);
}

.wb-sub-remove {
    min-height: 32px;
    font-size: 11px;
    font-weight: 700;
}

.wb-sub-row-total {
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.16), rgba(30, 64, 175, 0.08));
    color: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.wb-sub-modal-btn {
    min-width: 128px;
}

.wb-sub-modal-save {
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.wb-sub-summary {
    margin-top: 10px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.18));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wb-sub-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.wb-sub-summary-row span {
    color: var(--text-muted);
    font-weight: 700;
}

.wb-sub-summary-row strong {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 800;
}

.wb-sub-summary-profit-input {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wb-sub-summary-profit-input input {
    width: 120px;
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 6px 8px;
    text-align: right;
    font-weight: 700;
}

.wb-sub-summary-profit-input span {
    color: #38bdf8;
    font-weight: 800;
}

.wb-sub-summary-grand {
    padding-top: 6px;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.wb-sub-summary-grand strong {
    color: #86efac;
    font-size: 18px;
}

body[data-theme="light"] .wb-sub-summary {
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.95), rgba(240, 249, 255, 0.92));
    border-color: rgba(14, 116, 144, 0.25);
}

body[data-theme="light"] .wb-sub-summary-row strong {
    color: #0f172a;
}

body[data-theme="light"] .wb-sub-summary-profit-input input {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.5);
}

body[data-theme="light"] .wb-sub-summary-grand strong {
    color: #166534;
}

body[data-theme="light"] .wb-sub-row-total {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.92), rgba(219, 234, 254, 0.72));
    color: #1e3a8a;
    border-color: rgba(96, 165, 250, 0.45);
}

.wb-my-poz-modal {
    max-width: min(1400px, calc(100vw - 24px));
    width: min(1400px, calc(100vw - 24px));
}

.wb-my-poz-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 12px;
}

.wb-my-poz-books,
.wb-my-poz-main {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 10px;
}

.wb-my-poz-head,
.wb-my-poz-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.wb-my-poz-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
}

.wb-my-poz-item {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wb-my-poz-item .wb-study-select {
    color: inherit;
    background: transparent;
    border: none;
    text-align: left;
    padding: 0;
}

.wb-my-poz-item .wb-study-inline-actions {
    margin-top: 6px;
}

.wb-my-poz-item.is-active {
    border-color: rgba(224, 82, 82, 0.55);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.wb-my-poz-item-inline {
    gap: 8px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.wb-my-poz-item-inline .wb-study-select {
    min-width: 0;
}

.wb-my-poz-item-inline .wb-study-select .wb-poz-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.wb-my-poz-row-badges {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wb-tag-unit {
    color: #0f766e;
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(20, 184, 166, 0.44);
}

.wb-tag-subcount {
    color: #312e81;
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.42);
}

.wb-tag-profit {
    color: #065f46;
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.4);
}

.wb-tag-karsiz {
    color: #9a3412;
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(249, 115, 22, 0.42);
}

body[data-theme="dark"] .wb-tag-unit { color: #99f6e4; }
body[data-theme="dark"] .wb-tag-subcount { color: #e0e7ff; }
body[data-theme="dark"] .wb-tag-profit { color: #dcfce7; }
body[data-theme="dark"] .wb-tag-karsiz { color: #ffedd5; }

.wb-my-poz-list-compact {
    max-height: 130px;
}

.wb-my-poz-editor {
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    background: var(--bg-elevated);
}

.wb-my-poz-form {
    display: grid;
    grid-template-columns: 140px minmax(220px, 1fr) 120px auto;
    gap: 8px;
    align-items: end;
}

.wb-my-poz-opt {
    margin: 0;
}

.wb-my-poz-sub-tools {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.wb-my-poz-search-input {
    min-height: 42px;
    border: 1px solid rgba(224, 82, 82, 0.38);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(224, 82, 82, 0.07), rgba(96, 129, 255, 0.04)), var(--bg-elevated);
    color: var(--text);
    padding: 10px 12px;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-theme="light"] .wb-my-poz-search-input {
    border-color: rgba(224, 82, 82, 0.26);
    background: linear-gradient(135deg, rgba(224, 82, 82, 0.08), rgba(96, 129, 255, 0.05)), #fff;
}

.wb-my-poz-sub-wrap {
    margin-top: 8px;
    max-height: 320px;
    overflow: auto;
}

.wb-my-poz-sub-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.wb-my-poz-sub-table tbody tr {
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
}

.wb-my-poz-sub-table .wb-my-sub-row td {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(16, 185, 129, 0.08)), var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.wb-my-poz-sub-table .wb-my-sub-row td:first-child {
    border-left: 2px solid rgba(16, 185, 129, 0.62);
    border-radius: 10px 0 0 10px;
}

.wb-my-poz-sub-table .wb-my-sub-row td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 10px 10px 0;
}

.wb-my-poz-sub-table td input {
    min-height: 34px;
    font-size: 12px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(148, 163, 184, 0.05)), #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    padding: 7px 8px;
}

.wb-my-poz-sub-table td:nth-child(2),
.wb-my-poz-sub-table th:nth-child(2) {
    min-width: 340px;
    max-width: 520px;
}

.wb-my-sub-desc,
.wb-sub-desc {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-my-poz-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.wb-my-poz-meta-line {
    display: block;
    font-size: 11px;
    line-height: 1.35;
}

.wb-my-poz-meta-selected {
    color: var(--accent);
    margin-top: 6px;
    padding-top: 4px;
}

.wb-my-poz-search-results {
    margin-top: 8px;
}

.wb-my-poz-search-row .bulk-row-action {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
}

.wb-my-poz-search-tags .wb-tag {
    font-weight: 700;
}

.wb-my-poz-search-tags .wb-tag[class*="catalog-source-kurum-"] {
    font-weight: 800;
    text-shadow: none;
}

body[data-theme="dark"] .wb-my-poz-search-tags .catalog-source-kurum-csb { color: #dbeafe; background: #1d4ed8; border-color: #3b82f6; }
body[data-theme="dark"] .wb-my-poz-search-tags .catalog-source-kurum-kgm { color: #dcfce7; background: #15803d; border-color: #22c55e; }
body[data-theme="dark"] .wb-my-poz-search-tags .catalog-source-kurum-dsi { color: #cffafe; background: #0e7490; border-color: #06b6d4; }
body[data-theme="dark"] .wb-my-poz-search-tags .catalog-source-kurum-ilbank { color: #f3e8ff; background: #6d28d9; border-color: #8b5cf6; }
body[data-theme="dark"] .wb-my-poz-search-tags .catalog-source-kurum-ptt { color: #fee2e2; background: #b91c1c; border-color: #ef4444; }
body[data-theme="dark"] .wb-my-poz-search-tags .catalog-source-kurum-kultur { color: #fef3c7; background: #b45309; border-color: #f59e0b; }
body[data-theme="dark"] .wb-my-poz-search-tags .catalog-source-kurum-default { color: #f8fafc; background: #334155; border-color: #475569; }

body[data-theme="light"] .wb-my-poz-search-tags .catalog-source-kurum-csb { color: #1e3a8a; background: #bfdbfe; border-color: #60a5fa; }
body[data-theme="light"] .wb-my-poz-search-tags .catalog-source-kurum-kgm { color: #14532d; background: #bbf7d0; border-color: #4ade80; }
body[data-theme="light"] .wb-my-poz-search-tags .catalog-source-kurum-dsi { color: #164e63; background: #a5f3fc; border-color: #22d3ee; }
body[data-theme="light"] .wb-my-poz-search-tags .catalog-source-kurum-ilbank { color: #4c1d95; background: #ddd6fe; border-color: #a78bfa; }
body[data-theme="light"] .wb-my-poz-search-tags .catalog-source-kurum-ptt { color: #7f1d1d; background: #fecaca; border-color: #f87171; }
body[data-theme="light"] .wb-my-poz-search-tags .catalog-source-kurum-kultur { color: #78350f; background: #fde68a; border-color: #fbbf24; }
body[data-theme="light"] .wb-my-poz-search-tags .catalog-source-kurum-default { color: #1f2937; background: #e5e7eb; border-color: #cbd5e1; }

.wb-my-poz-search-row .wb-my-poz-add-btn {
    border-color: rgba(16, 185, 129, 0.78);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.44), rgba(5, 150, 105, 0.42));
    color: #ecfdf5;
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.3);
}

.wb-my-poz-search-row .wb-my-poz-add-btn .wb-btn-ico {
    width: 18px;
    min-width: 18px;
    height: 18px;
    opacity: 1;
}

.wb-my-poz-search-row .wb-my-poz-add-btn:hover {
    border-color: rgba(52, 211, 153, 0.95);
    box-shadow: 0 10px 18px rgba(5, 150, 105, 0.4);
}

body[data-theme="light"] .wb-my-poz-search-row .wb-my-poz-add-btn {
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.64);
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.82), rgba(74, 222, 128, 0.74));
}

.wb-my-sub-remove {
    border-color: rgba(239, 68, 68, 0.62);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(190, 24, 93, 0.26));
    color: #ffe4e6;
    box-shadow: 0 6px 12px rgba(190, 24, 93, 0.24);
}

.wb-my-sub-remove:hover {
    border-color: rgba(239, 68, 68, 0.9);
    box-shadow: 0 8px 14px rgba(190, 24, 93, 0.32);
}

body[data-theme="light"] .wb-my-sub-remove {
    color: #7f1d1d;
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(254, 202, 202, 0.9), rgba(251, 207, 232, 0.85));
}

body[data-theme="dark"] .wb-my-poz-sub-table td input {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.46), rgba(30, 41, 59, 0.42));
    border-color: rgba(56, 189, 248, 0.34);
    color: #f8fafc;
}

.wb-my-poz-preview-modal {
    max-width: min(1120px, calc(100vw - 20px));
    width: min(1120px, calc(100vw - 20px));
}

.wb-my-poz-preview-head {
    border: 1px solid rgba(16, 185, 129, 0.36);
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(59, 130, 246, 0.1));
}

.wb-my-poz-preview-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wb-my-poz-preview-title strong {
    font-size: 18px;
}

.wb-my-poz-preview-title span {
    color: var(--text-muted);
    font-size: 13px;
}

.wb-my-poz-preview-badges {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wb-my-poz-preview-table-wrap {
    margin-top: 10px;
    max-height: 46vh;
    overflow: auto;
}

.wb-my-poz-preview-table td,
.wb-my-poz-preview-table th {
    font-size: 12px;
}

.wb-my-poz-preview-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 1024px) {
    .workbench-modal {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        height: calc(100dvh - 12px);
        max-height: calc(100dvh - 12px);
    }

    .workbench-body {
        padding: 8px;
        overflow: auto;
    }

    .workbench-shell {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .workbench-shell::before {
        display: none;
    }

    .workbench-sidebar {
        max-height: 32vh;
    }

    .workbench-modal .modal-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .wb-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .wb-header-actions .bulk-run-btn {
        width: 100%;
    }

    .wb-tools-menu {
        width: 100%;
    }

    .wb-tools-dropdown {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }

    .wb-my-poz-shell {
        grid-template-columns: 1fr;
    }

    .wb-my-poz-list {
        max-height: 160px;
    }

    .wb-my-poz-main-head {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .wb-my-poz-main-head > .bulk-run-btn {
        width: 100%;
    }

    .wb-my-poz-preview-modal,
    .wb-my-poz-sub-modal,
    .wb-my-poz-modal {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
    }
}

.wb-my-poz-summary {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    overflow: hidden;
}

.wb-my-poz-summary-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 10px;
    font-size: 12px;
    text-align: right;
}

.wb-my-poz-summary-row + .wb-my-poz-summary-row {
    border-top: 1px dashed var(--border);
}

.wb-my-poz-summary-profit {
    align-items: center;
}

.wb-my-poz-profit-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wb-my-poz-summary-row > span {
    min-width: 140px;
    color: var(--text-muted);
}

.wb-my-poz-profit-input-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    padding: 0 8px;
    min-height: 34px;
}

.wb-my-poz-profit-input-wrap input {
    width: 88px;
    min-height: 30px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    outline: none;
}

.wb-my-poz-profit-input-wrap span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.wb-my-poz-summary-total {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(34, 197, 94, 0.1));
}

.wb-my-poz-summary-total strong {
    font-size: 16px;
}

.wb-my-poz-mini {
    max-width: min(560px, calc(100vw - 20px));
}

.wb-my-poz-sub-modal {
    max-width: min(1320px, calc(100vw - 20px));
    width: min(1320px, calc(100vw - 20px));
}

.catalog-table tbody tr.wb-transfer-highlight {
    animation: wb-transfer-green-blink 0.7s ease-in-out 4;
}

@keyframes wb-transfer-green-blink {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: rgba(34, 197, 94, 0.2);
    }
}

.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Detail Grid Cards ── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.detail-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-card:hover {
    border-color: rgba(224, 82, 82, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 82, 82, 0.06);
}

.detail-card:hover::before {
    opacity: 1;
}

.detail-card span {
    display: block;
    font-size: 9.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-card strong {
    font-size: clamp(11px, 1.8vw, 13.5px);
    margin-top: 4px;
    display: block;
    color: var(--text);
    line-height: 1.35;
    word-break: break-word;
}

/* ── Detail Table ── */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.detail-table th,
.detail-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.detail-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-soft);
}

.detail-table tbody tr {
    transition: background 0.15s ease;
}

.detail-table tbody tr:hover {
    background: rgba(224, 82, 82, 0.04);
}

.detail-table tbody tr:last-child td {
    border-bottom: none;
}

.analysis-item-poz-link {
    border: none;
    background: transparent;
    color: #60a5fa;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.analysis-item-poz-link:hover {
    color: #93c5fd;
}

body[data-theme="light"] .analysis-item-poz-link {
    color: #1d4ed8;
}

body[data-theme="light"] .analysis-item-poz-link:hover {
    color: #1e40af;
}

/* ── History Card ── */
.history-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    animation: fadeUp 0.4s ease;
}

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

.history-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-title::before {
    content: "📈";
    font-size: 15px;
}

.history-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0 0 14px;
}

.history-chart {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.history-empty {
    color: var(--text-muted);
    font-size: 13px;
    padding: 12px 0;
    text-align: center;
    font-style: italic;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.history-table th,
.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.history-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10.5px;
    background: var(--bg-elevated);
}

.history-table tbody tr {
    transition: background 0.15s ease;
}

.history-table tbody tr:hover {
    background: rgba(224, 82, 82, 0.04);
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-col-date {
    width: 32%;
}

.history-col-kurum {
    width: 43%;
}

.history-col-price {
    width: 25%;
    text-align: right;
}

.history-date-cell {
    white-space: nowrap;
}

.history-kurum-cell {
    min-width: 0;
}

.history-price-cell {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.history-kurum-badge {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
    white-space: normal;
}

/* ── Toast Notification ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000020;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--success);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease 2.2s forwards;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    font-family: var(--font-body);
}

.toast-icon {
    font-size: 15px;
    flex-shrink: 0;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.92); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ── Animations ── */
@keyframes searchPulse {
    0%   { box-shadow: 0 0 0 0 var(--accent-soft); }
    70%  { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* ── Empty State ── */
.empty-state {
    padding: 40px 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.unit-modal-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.unit-modal-price-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    padding: 4px 9px;
}

.unit-modal-status-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.unit-modal-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

.unit-modal-status-removed {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.28);
    border-color: rgba(248, 113, 113, 0.55);
}

.unit-modal-status-added {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.28);
    border-color: rgba(96, 165, 250, 0.58);
}

.unit-modal-note-status-removed {
    border-left-color: #dc2626;
    background: color-mix(in srgb, var(--bg-soft) 72%, #dc2626 28%);
}

.unit-modal-note-status-added {
    border-left-color: #2563eb;
    background: color-mix(in srgb, var(--bg-soft) 72%, #2563eb 28%);
}

body[data-theme="light"] .unit-modal-status-removed {
    color: #7f1d1d;
    background: rgba(254, 202, 202, 0.9);
    border-color: rgba(248, 113, 113, 0.65);
}

body[data-theme="light"] .unit-modal-status-added {
    color: #1e3a8a;
    background: rgba(191, 219, 254, 0.9);
    border-color: rgba(96, 165, 250, 0.7);
}

.unit-modal-subcat {
    margin: 10px 0 4px;
    padding: 8px 12px;
    background: var(--bg-soft);
    border-left: 3px solid #2c4a6e;
    border-radius: 4px;
    font-size: 13px;
}

.unit-modal-note {
    margin: 10px 0;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--bg-soft) 80%, #f59e0b 20%);
    border-left: 3px solid color-mix(in srgb, var(--accent) 70%, #f59e0b 30%);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text);
    line-height: 1.55;
    white-space: normal;
}

.unit-modal-note-secondary {
    margin: 6px 0;
    background: color-mix(in srgb, var(--bg-soft) 82%, #2563eb 18%);
    border-left-color: color-mix(in srgb, var(--accent) 72%, #2563eb 28%);
    color: var(--text);
}

.unit-modal-note strong {
    display: inline-block;
    margin-bottom: 4px;
}

.detail-share-box {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 10px 12px;
}

.detail-share-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.detail-share-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.detail-share-row input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
    padding: 8px 10px;
    font-size: 12px;
    font-family: var(--font-body);
}

.detail-share-copy-btn {
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.public-footer {
    max-width: 1200px;
    margin: 10px auto 22px;
    padding: 0 18px;
    display: grid;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.public-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.public-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.public-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.public-footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.public-footer-logos img {
    height: 26px;
    width: auto;
    opacity: 0.9;
}

.public-footer-kurum-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}

.public-footer-kurum-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.public-footer-kurum-logos img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #fff;
    padding: 3px;
}

.scroll-top-btn {
    position: fixed;
    right: 16px;
    bottom: 148px;
    z-index: 10000002;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.6);
    background: linear-gradient(135deg, #0f766e, #2563eb);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logo-viewer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    z-index: 10000040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.logo-viewer-backdrop.is-open {
    display: flex;
}

.logo-viewer-shell {
    width: min(520px, calc(100vw - 26px));
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 10px;
    justify-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logo-viewer-shell img {
    width: min(360px, 100%);
    max-height: min(70vh, 360px);
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, 0.55);
    padding: 10px;
}

.logo-viewer-caption {
    text-align: center;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
}

.logo-viewer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.logo-viewer-close:hover {
    background: rgba(30, 41, 59, 0.8);
}

/* ── Price Badge (Modal) ── */
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    margin: 16px 0 20px;
    animation: priceBadgePulse 2s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.price-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: priceShine 3s ease-in-out infinite;
}

.price-badge-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.price-badge-value {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-title);
}

.price-badge-currency {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

@keyframes priceBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes priceShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

body[data-theme="light"] .price-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ── Table Wrapper for Horizontal Scroll ── */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.table-wrapper .detail-table {
    border: none;
    border-radius: 0;
    min-width: 500px;
}

.table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .topbar {
        gap: 12px;
        padding: 14px 20px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .catalog-shell {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .modal-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .public-footer {
        padding: 0 12px;
    }

    .public-footer-kurum-logos img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 700px) {
    .bulk-total-flash {
        right: 8px;
        left: 8px;
        top: 72px;
        min-width: 0;
    }

    .detail-share-row {
        grid-template-columns: 1fr;
    }

    .public-footer {
        gap: 6px;
    }

    .public-footer-top {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .public-footer-kurum-logos {
        gap: 6px 8px;
    }

    .public-footer-kurum-logos img {
        width: 28px;
        height: 28px;
        padding: 2px;
    }

    .catalog-source-kurum-logo {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 768px) {
    .modal-backdrop {
        align-items: flex-start;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px 8px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    /* Brand satırı: logo + yazı yan yana */
    .brand {
        gap: 10px;
        align-items: center;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

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

    .brand-subtitle {
        font-size: 10px;
    }

    /* Butonlar: 3 sütun grid — Toplu Poz | Giriş Yap | Yaklaşık Maliyet */
    .topbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 7px;
        width: 100%;
        padding: 0;
        border: none;
        background: transparent;
        min-height: 0;
    }

    /* Platform butonu mobilde gizle */
    .topbar-desktop-only {
        display: none !important;
    }

    /* Tema butonu 3 sütunlu gridin 1. sırasında ilk hücreden çıksın, alt satır tam genişlik */
    .topbar-actions .theme-toggle {
        grid-column: 1 / -1;
        min-height: 38px;
        border-radius: 10px;
        font-size: 12px;
        padding: 6px 10px;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    .topbar-actions #authOpenBtn,
    .topbar-actions #authUserBox {
        margin-left: 0;
    }

    /* Avatar: 3. sütun hücresinde düzgün */
    .topbar-actions .auth-user-avatar {
        width: 100%;
        min-height: 42px;
        border-radius: 11px;
        justify-content: center;
        padding: 6px 10px;
    }

    .topbar-actions .auth-user-menu {
        right: 0;
        left: 0;
        top: calc(100% + 6px);
        min-width: 0;
    }

    .auth-inline-links {
        justify-content: center;
    }

    .profile-settings-photo {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    /* Her ana buton eşit, okunabilir */
    .topbar-actions .bulk-poz-btn,
    .topbar-actions .auth-btn,
    .topbar-actions .workbench-btn {
        width: 100%;
        min-height: 42px;
        padding: 8px 6px;
        font-size: 11.5px;
        font-weight: 700;
        border-radius: 11px;
        justify-content: center;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        letter-spacing: 0;
    }

    /* Platform label alt yazı ve tema text gizle */
    .platform-label small,
    .theme-text {
        display: none;
    }

    /* TOPLU POZ span görünsün */
    .bulk-poz-btn > span {
        display: inline;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
    }

    .search-hint {
        display: none;
    }

    .catalog-shell {
        padding: 16px;
    }

    .catalog-panel {
        padding: 16px 14px 18px;
        border-radius: 18px;
    }

    .panel-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .panel-header h1 {
        font-size: 20px;
        text-align: center;
    }

    .panel-search-wrap {
        margin-bottom: 8px;
        top: calc(env(safe-area-inset-top, 0px) + var(--catalog-search-sticky-top, 8px));
        padding-top: 4px;
    }

    .control-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .control-group.compact,
    .panel-version-select,
    .panel-filter-select {
        min-width: 0;
        width: 100%;
    }

    .control-group select {
        flex: 1 1 auto;
        min-width: 120px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .panel-actions {
        justify-content: stretch;
        width: 100%;
        gap: 10px;
    }

    .panel-version-select {
        width: 100%;
        min-width: 0;
    }

    .panel-version-select select {
        width: 100%;
    }

    .tab-switch {
        width: 100%;
    }

    .tab-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 12px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-verify-row {
        grid-template-columns: 1fr;
    }

    /* Auth / Logout modal butonlar mobilde tam ekran uyumlu */
    .auth-modal-actions > #logoutConfirmYes,
    .auth-modal-actions > #authLoginBtn,
    .auth-modal-actions > #registerSubmitBtn {
        min-height: 48px;
        font-size: 15px;
    }

    .auth-modal-actions > #logoutConfirmNo,
    .auth-modal-actions > #authGoRegisterBtn,
    .auth-modal-actions > #registerGoLoginBtn {
        min-height: 44px;
        font-size: 14px;
    }

    /* Logout confirm modal: dar ekranda maks genişlik kaldır */
    #logoutConfirmBackdrop .auth-modal {
        width: calc(100vw - 24px);
        max-width: 100%;
    }

    /* Modal Mobile */
    .modal {
        border-radius: 0;
        margin: 0;
        max-height: 100dvh;
        width: 100vw;
        height: 100dvh;
        max-width: 100vw;
    }

    .modal-backdrop {
        padding: 0;
    }

    .modal-header {
        padding: 14px 14px 12px;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--bg-elevated);
    }

    .modal-header h2 {
        font-size: 16px;
        width: 100%;
    }

    .modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .platform-btn-modal {
        padding: 10px 14px;
        font-size: 11px;
        max-width: none;
        width: calc(100vw - 150px);
        gap: 6px;
        padding-right: 30px;
    }

    .platform-btn-modal::after {
        right: 7px;
        bottom: 5px;
        width: 12px;
        height: 12px;
        font-size: 9px;
        border-radius: 3px;
    }

    .platform-btn-modal .platform-label strong {
        font-size: 0.88em;
        line-height: 1.06;
    }

    .platform-btn-modal .platform-label small {
        font-size: 0.64em;
    }

    .platform-btn-modal .platform-btn-logo-icon {
        width: 16px;
        height: 16px;
    }

    .analysis-export-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 36px;
    }

    .detail-inline-actions {
        gap: 8px;
        margin-top: 8px;
    }

    .detail-action-btn {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .bulk-config-grid,
    .bulk-threshold-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* bulk-modal tam ekran mobilde */
    .bulk-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    /* bulk-modal-body scroll */
    .bulk-modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 20px;
    }

    /* Config + progress kart padding küçült */
    .bulk-config-card,
    .bulk-progress-card,
    .bulk-results-card {
        padding: 10px 10px;
        border-radius: 12px;
    }

    /* Toolbar: butonlar alt alta */
    .bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .bulk-toolbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
    }

    .bulk-toolbar .bulk-run-btn,
    .bulk-toolbar .bulk-row-action {
        width: 100%;
        min-height: 44px;
        font-size: 13px;
        justify-content: center;
    }

    /* Steps: 3 sütun */
    .bulk-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Results head */
    .bulk-results-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulk-results-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .bulk-results-actions .analysis-export-btn {
        flex: 1 1 auto;
        min-height: 40px;
        font-size: 12px;
    }

    .bulk-table-wrap {
        max-height: min(52dvh, 480px);
    }

    .bulk-result-table th {
        top: 0;
    }

    .bulk-export-actions {
        width: 100%;
        justify-content: stretch;
    }

    .bulk-export-actions .bulk-run-btn,
    .bulk-export-actions .modal-close {
        flex: 1 1 auto;
    }

    /* Loading modal */
    .bulk-loading-modal {
        width: min(620px, calc(100vw - 12px));
    }

    .bulk-loading-facts {
        min-height: 96px;
    }

    .bulk-loading-current {
        font-size: 13px;
    }

    .bulk-progress-note-icon {
        width: 21px;
        height: 21px;
        font-size: 16px;
    }

    .bulk-progress-inline-badge {
        font-size: 10px;
        padding: 2px 8px;
        margin-left: 8px;
    }

    .bulk-loading-queue-item {
        font-size: 9.5px;
    }

    /* Confirm modal: butonlar alt alta */
    .bulk-confirm-body {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-confirm-body .bulk-run-btn,
    .bulk-confirm-body .bulk-row-action {
        width: 100%;
        min-height: 44px;
        font-size: 13px;
        justify-content: center;
    }

    /* Transfer modal butonlar */
    .bulk-transfer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* Export modal: option inline tek sütun */
    .bulk-option-inline {
        grid-template-columns: 1fr;
    }

    /* Access modal butonlar */
    #bulkAccessBackdrop .auth-modal-actions {
        flex-direction: column;
    }

    .modal-body {
        padding: 12px 12px 14px;
    }

    .detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .detail-card {
        padding: 12px 14px;
        border-radius: 12px;
    }
    
    .detail-card span {
        font-size: 10px;
    }
    
    .detail-card strong {
        font-size: 14px;
    }
    
    /* Price Badge Mobile */
    .price-badge {
        padding: 12px 12px;
        font-size: 18px;
        border-radius: 12px;
        width: 100%;
        justify-content: space-between;
    }
    
    .price-badge-value {
        font-size: 26px;
    }

    .unit-modal-breadcrumb,
    .unit-modal-subcat,
    .unit-modal-note,
    .unit-modal-note-secondary {
        font-size: 12px;
        padding: 9px 10px;
    }

    .unit-modal-price-side {
        width: 100%;
        align-items: flex-start;
    }

    .unit-modal-status-side {
        width: 100%;
        align-items: flex-start;
    }
    
    /* History Card Mobile */
    .history-card {
        padding: 16px;
        border-radius: 14px;
    }
    
    .history-title {
        font-size: 14px;
    }

    .history-col-date { width: 31%; }
    .history-col-kurum { width: 39%; }
    .history-col-price { width: 30%; }

    .history-table th,
    .history-table td {
        padding: 8px 8px;
    }

    .history-kurum-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Table Mobile - Card Layout */
    .table-wrapper {
        margin: 0 -18px;
        width: calc(100% + 36px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .table-wrap {
        overflow: visible;
        border: none;
        background: transparent;
    }

    .catalog-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .catalog-table thead {
        display: none;
    }

    .catalog-table tbody {
        display: block;
    }

    .catalog-table tr.catalog-row {
        display: block;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 8px 12px;
        transform: none;
    }

    .catalog-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border-top: none;
        white-space: normal;
        word-break: break-word;
    }

    .catalog-table td + td {
        padding-left: 0;
    }

    .catalog-table td::before {
        flex: 0 0 84px;
        color: var(--text-muted);
        font-size: 10px;
        letter-spacing: 0.45px;
        text-transform: uppercase;
        font-weight: 600;
    }

    .catalog-table td:nth-child(1)::before { content: "Poz"; }
    .catalog-table td:nth-child(2)::before { content: "Tanim"; }
    .catalog-table td:nth-child(3)::before { content: "Kurum"; }
    .catalog-table td:nth-child(4)::before { content: "Birim"; }
    .catalog-table td:nth-child(5)::before { content: "Fiyat"; }
    .catalog-table td:nth-child(6)::before { content: "Durum"; }

    .catalog-table td.price-cell {
        text-align: left;
        font-size: 14px;
    }

    .catalog-table .empty-state {
        display: block;
        text-align: center;
        padding: 24px 10px;
    }

    .catalog-table .empty-state::before {
        content: none;
    }

    .poz-chip {
        max-width: calc(100vw - 180px);
        overflow-wrap: anywhere;
    }
    
    .detail-table {
        font-size: 13px;
    }
    
    .detail-table th,
    .detail-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
    
    .detail-table th {
        font-size: 10px;
    }
    
    /* Poz List Items Mobile */
    .poz-item {
        padding: 14px 16px;
    }
    
    .poz-no {
        font-size: 13px;
    }
    
    .poz-desc {
        font-size: 13px;
    }
    
    .poz-meta {
        font-size: 11px;
        gap: 10px;
    }
    
    /* Toast Mobile */
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    
    .toast {
        font-size: 13px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-btn {
        flex: 1 1 40%;
        min-width: 120px;
    }

    #pageInfo {
        flex: 1 1 100%;
        order: -1;
    }

    .workbench-modal {
        width: calc(100vw - 10px);
        height: calc(100dvh - 10px);
        max-width: calc(100vw - 10px);
        max-height: calc(100dvh - 10px);
        border-radius: 14px;
    }

    .workbench-modal .modal-header {
        padding: 10px 10px 8px;
    }

    .workbench-modal .modal-header p {
        font-size: 11px;
    }

    .workbench-modal .modal-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .workbench-shell {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .workbench-shell::before {
        display: none;
    }

    .workbench-sidebar {
        max-height: 30vh;
    }

    .workbench-editor {
        padding: 9px;
    }

    .wb-header-actions {
        width: 100%;
    }

    .wb-header-actions .bulk-run-btn {
        width: 100%;
    }

    .wb-items-wrap {
        max-height: calc(100vh - 360px);
        overflow: auto;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--bg-soft);
    }

    .workbench-modal .catalog-table.wb-items-table {
        min-width: 880px;
        border-collapse: collapse;
        border-spacing: 0;
    }

    .workbench-modal .catalog-table.wb-items-table thead {
        display: table-header-group;
    }

    .workbench-modal .catalog-table.wb-items-table tbody {
        display: table-row-group;
    }

    .workbench-modal .catalog-table.wb-items-table tr {
        display: table-row;
        background: transparent;
        border: 0;
        padding: 0;
    }

    .workbench-modal .catalog-table.wb-items-table td,
    .workbench-modal .catalog-table.wb-items-table th {
        display: table-cell;
        white-space: nowrap;
        font-size: 11px;
        padding: 8px 7px;
    }

    .workbench-modal .catalog-table.wb-items-table td::before {
        content: none;
    }

    .wb-item-actions {
        flex-wrap: nowrap;
    }

    .wb-item-actions .bulk-row-action,
    .wb-study-inline-actions .bulk-row-action,
    .wb-poz-row .bulk-row-action {
        min-width: 34px;
        width: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: 9px;
    }

    .wb-item-actions .wb-btn-label,
    .wb-study-inline-actions .wb-btn-label,
    .wb-poz-row .wb-btn-label {
        display: none;
    }

    .wb-item-actions .wb-btn-ico,
    .wb-study-inline-actions .wb-btn-ico,
    .wb-poz-row .wb-btn-ico {
        margin: 0;
        width: 15px;
        height: 15px;
    }

    .wb-subitem-modal .auth-modal-actions {
        position: sticky;
        bottom: 0;
        background: var(--bg-elevated);
        padding-top: 8px;
    }

    .wb-my-poz-shell {
        grid-template-columns: 1fr;
    }

    .wb-my-poz-list {
        max-height: 140px;
    }

    .wb-my-poz-form {
        grid-template-columns: 1fr;
    }

    .wb-my-poz-sub-tools {
        grid-template-columns: 1fr;
    }

    .wb-my-poz-summary-row {
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
        text-align: right;
    }

    .wb-my-poz-profit-controls {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .modal-backdrop {
        align-items: flex-start;
        padding: calc(env(safe-area-inset-top, 0px) + 6px) 6px 6px;
    }

    .topbar {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .workbench-modal {
        width: calc(100vw - 4px);
        height: calc(100dvh - 4px);
        max-width: calc(100vw - 4px);
        max-height: calc(100dvh - 4px);
        border-radius: 10px;
    }

    .workbench-modal .modal-header h2 {
        font-size: 20px;
    }

    .workbench-modal .modal-header p {
        display: none;
    }

    .workbench-body {
        padding: 8px;
        height: auto;
    }

    .wb-items-wrap {
        max-height: calc(100vh - 320px);
    }

    .workbench-modal .catalog-table.wb-items-table {
        min-width: 760px;
    }

    .wb-tools-dropdown {
        gap: 8px;
    }

    .wb-my-poz-modal .modal-body {
        padding: 8px;
    }

    .wb-my-poz-main-head {
        flex-wrap: wrap;
    }

    .wb-my-poz-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .brand-title {
        font-size: 17px;
    }
    
    .brand-subtitle {
        font-size: 10px;
    }
    
    .platform-btn:not(.platform-btn-modal),
    .bulk-poz-btn {
        padding: 7px 6px;
        height: auto;
        justify-content: center;
    }

    .topbar-actions {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5px;
    }

    .topbar-actions .bulk-poz-btn,
    .topbar-actions .auth-btn,
    .topbar-actions .workbench-btn,
    .topbar-actions .auth-user-avatar {
        font-size: 11px;
        padding: 7px 4px;
        min-height: 40px;
    }

    .topbar-actions .auth-user-menu {
        left: 0;
        right: 0;
    }

    .topbar .platform-btn:not(.platform-btn-modal) .platform-label strong {
        font-size: 11px;
    }

    .topbar .platform-btn:not(.platform-btn-modal) .platform-label small {
        font-size: 10px;
    }
    
    .catalog-shell {
        padding: 12px;
    }
    
    .catalog-panel {
        padding: 12px 10px 14px;
        border-radius: 16px;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .panel-search-wrap {
        top: calc(env(safe-area-inset-top, 0px) + var(--catalog-search-sticky-top, 6px));
        padding-top: 2px;
    }

    .scroll-top-btn {
        right: 10px;
        bottom: 140px;
        width: 38px;
        height: 38px;
    }
    
    .panel-header h1 {
        font-size: 18px;
    }
    
    .control-group select {
        min-width: 100px;
        font-size: 12px;
        padding: 8px 10px;
    }

    .tab-btn {
        font-size: 11px;
        letter-spacing: 0.2px;
    }
    
    .modal {
        margin: 0;
        border-radius: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
    }

    .modal-backdrop {
        padding: 0;
    }
    
    .modal-header {
        padding: 12px 10px 10px;
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--bg-elevated);
    }
    
    .modal-header h2 {
        font-size: 15px;
    }

    .analysis-export-btn {
        padding: 7px 10px;
        font-size: 10px;
        gap: 5px;
    }

    .detail-inline-actions {
        gap: 6px;
    }

    .detail-action-btn {
        padding: 6px 9px;
        font-size: 10.5px;
    }

    .bulk-config-grid,
    .bulk-threshold-grid {
        grid-template-columns: 1fr;
    }

    /* 480px'de steps 2 sutun */
    .bulk-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* bulk-result-table: min-width küçült */
    .bulk-result-table {
        min-width: 560px;
        font-size: 11px;
    }

    .bulk-result-table th,
    .bulk-result-table td {
        padding: 7px 7px;
    }

    .bulk-result-table th {
        font-size: 9px;
    }

    .bulk-table-wrap {
        max-height: min(48dvh, 420px);
    }

    .bulk-result-table th {
        top: 0;
    }

    /* Suggest modal içerigi scroll edebilsin */
    #bulkSuggestBackdrop .modal {
        max-height: calc(100dvh - 20px);
    }

    #bulkSuggestBackdrop .modal-body {
        overflow-y: auto;
    }

    /* Loading modal 480px'de tam ekran */
    .bulk-loading-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    /* Confirm modal butonlar tam genişlik */
    .bulk-confirm-body {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .bulk-confirm-body .bulk-run-btn,
    .bulk-confirm-body .bulk-row-action {
        width: 100%;
        min-height: 44px;
        font-size: 13px;
        justify-content: center;
    }

    /* Access modal butonlar */
    #bulkAccessBackdrop .auth-modal-actions {
        flex-direction: column;
    }

    #bulkAccessBackdrop .auth-modal-actions button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-option-inline {
        grid-template-columns: 1fr;
    }

    .bulk-loading-ring {
        width: 20px;
        height: 20px;
    }

    .bulk-loading-coffee {
        width: 64px;
        height: 46px;
        margin-top: 12px;
    }

    .bulk-loading-cup {
        left: 17px;
        width: 38px;
        height: 24px;
    }

    .bulk-loading-facts {
        min-height: 84px;
        padding: 8px 10px;
    }

    .bulk-loading-fact {
        font-size: 11px;
    }

    .bulk-loading-current {
        font-size: 12px;
    }

    .bulk-progress-note {
        gap: 7px;
    }

    .bulk-progress-note-icon {
        width: 20px;
        height: 20px;
        font-size: 15px;
    }

    .bulk-progress-inline-badge {
        font-size: 10px;
        padding: 2px 7px;
        margin-left: 7px;
    }

    .bulk-loading-queue {
        gap: 5px;
    }
    
    .modal-body {
        padding: 10px 10px 12px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .detail-card {
        padding: 10px 12px;
    }
    
    .price-badge {
        padding: 12px 16px;
        font-size: 18px;
    }
    
    .price-badge-value {
        font-size: 22px;
    }
    
    .price-badge-label {
        font-size: 11px;
    }

    .unit-modal-breadcrumb,
    .unit-modal-subcat,
    .unit-modal-note,
    .unit-modal-note-secondary {
        font-size: 11px;
        line-height: 1.4;
        padding: 8px 9px;
    }
    
    .table-wrapper {
        margin: 0 -16px;
        width: calc(100% + 32px);
    }

    .catalog-table tr.catalog-row {
        padding: 8px 10px;
    }

    .catalog-table td {
        gap: 8px;
        font-size: 12px;
    }

    .catalog-table td::before {
        flex-basis: 72px;
        font-size: 9px;
    }

    .poz-chip {
        max-width: calc(100vw - 154px);
        font-size: 11px;
    }
    
    .detail-table th,
    .detail-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .detail-table th {
        font-size: 9px;
    }

    .history-col-date { width: 30%; }
    .history-col-kurum { width: 35%; }
    .history-col-price { width: 35%; }

    .history-table th {
        font-size: 9px;
    }

    .history-date-cell,
    .history-price-cell {
        font-size: 11px;
    }

    .history-kurum-badge {
        font-size: 9.5px;
        padding: 2px 5px;
        max-width: 120px;
    }
    
    .history-card {
        padding: 12px;
    }
    
    .poz-item {
        padding: 12px 14px;
    }
    
    .poz-no {
        font-size: 12px;
    }
    
    .poz-desc {
        font-size: 12px;
    }
}
