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

:root {
    --primary:       #1a7a28;
    --primary-dark:  #145f20;
    --primary-light: #f0fdf4;
    --bg:            #f4f8f4;
    --surface:       #ffffff;
    --border:        #dae8db;
    --text:          #0f1a10;
    --text-2:        #5a7a5c;
    --radius:        14px;
    --radius-sm:     8px;
    --ease:          cubic-bezier(.4,0,.2,1);
}

html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; color: var(--text); background: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Auth ─────────────────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #0a1a0d;
    color: #fff;
}
@media (max-width: 760px) { .auth-wrap { grid-template-columns: 1fr; } .auth-hero { display: none; } }

.auth-hero {
    position: relative;
    padding: 56px 48px;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse 120% 80% at 80% 20%, rgba(26,122,40,.45), transparent 60%),
                radial-gradient(ellipse 80% 60% at 20% 90%, rgba(0,80,20,.35), transparent 55%),
                #0a1a0d;
}
.auth-hero-glow {
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(26,122,40,.45), transparent 70%);
    filter: blur(24px);
    animation: glow 10s ease-in-out infinite;
}
@keyframes glow { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,20px)} }

.auth-hero-content { position: relative; }
.auth-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-size: 22px; font-weight: 900; color: #fff;
    box-shadow: 0 12px 32px rgba(26,122,40,.5);
    margin-bottom: 24px;
}
.auth-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.auth-hero p  { color: #94a3b8; font-size: 14px; line-height: 1.6; max-width: 320px; }
.auth-hero ul { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.auth-hero li { display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-size: 14px; }
.auth-hero li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

.auth-form-wrap {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background: #fff;
}
.auth-card {
    width: 100%; max-width: 400px;
}
.auth-card-title { font-size: 24px; font-weight: 700; color: #0f1a10; margin-bottom: 4px; }
.auth-card-sub   { font-size: 14px; color: #5a7a5c; margin-bottom: 32px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #2d4a2f; margin-bottom: 6px; }
.field input {
    width: 100%; padding: 10px 14px; border: 1.5px solid #c8ddc9;
    border-radius: 8px; font-size: 14px; font-family: inherit; outline: none;
    transition: border-color .18s, box-shadow .18s;
    color: #0f1a10;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,122,40,.15); }

.btn-primary {
    width: 100%; padding: 12px;
    background: var(--primary); color: #fff; border: none;
    border-radius: 8px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: background .18s, transform .1s;
}
.btn-primary:hover  { background: var(--primary-dark); }
.btn-primary:active { transform: scale(.98); }

.alert-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
    border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 18px;
}

/* ── App Layout ───────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 220px; flex-shrink: 0;
    background: #0d1a0f; color: #d4e6d5;
    display: flex; flex-direction: column;
    padding: 0; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
}
.sidebar-brand {
    padding: 20px 18px 16px;
    border-bottom: 1px solid #1c2e1e;
    display: flex; align-items: center; gap: 10px;
}
.sidebar-brand-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: grid; place-items: center; font-size: 16px; font-weight: 900; color: #fff;
}
.sidebar-brand-name { font-weight: 700; font-size: 15px; color: #f0fdf4; }
.sidebar-brand-tag  { font-size: 11px; color: #6b9e6e; margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 7px;
    font-size: 13.5px; color: #7aab7d; font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-item:hover  { background: #162b1a; color: #f0fdf4; }
.nav-item.active { background: #162b1a; color: #4ade80; }
.nav-item i      { font-size: 15px; width: 18px; text-align: center; }

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid #1c2e1e;
    display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); display: grid; place-items: center;
    font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-username { font-size: 13px; color: #a8c8a9; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout   { color: #5a7a5c; font-size: 14px; transition: color .15s; }
.sidebar-logout:hover { color: #ef4444; }

.main-wrap { margin-left: 220px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0 24px; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.content { flex: 1; padding: 24px; }

/* ── Buttons ──────────────────────────────────────── */
.ios-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
    border: none; cursor: pointer; transition: all .18s var(--ease); white-space: nowrap;
    letter-spacing: -.01em;
}
.ios-btn:active { transform: scale(.96); }
.ios-btn-sm  { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.ios-btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 2px 8px rgba(26,122,40,.30), 0 1px 2px rgba(26,122,40,.20);
}
.ios-btn-primary:hover   { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(26,122,40,.35); }
.ios-btn-secondary { background: #e8f4e9; color: #1a4a1e; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ios-btn-secondary:hover { background: #d5ebd7; }
.ios-btn-ghost     { background: #fff; color: var(--text-2); border: 1.5px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ios-btn-ghost:hover { background: var(--bg); border-color: #bdd4bf; }
.ios-btn-danger    { background: #fef2f2; color: #dc2626; border: 1.5px solid #fecaca; }
.ios-btn-danger:hover  { background: #fee2e2; }
.ios-btn-success   { background: #f0fdf4; color: #16a34a; border: 1.5px solid #bbf7d0; }
.ios-btn-success:hover { background: #dcfce7; }

/* ── Segmented Control ────────────────────────────── */
.ios-seg {
    display: inline-flex; align-items: center;
    background: #ebebeb; border-radius: 10px; padding: 3px; gap: 2px; width: 100%;
}
.ios-seg-btn {
    flex: 1; padding: 7px 10px; border: none; cursor: pointer;
    border-radius: 8px; font-size: 13px; font-weight: 500; color: #6b7280;
    background: transparent; transition: all .18s var(--ease); text-align: center; white-space: nowrap;
}
.ios-seg-btn.active {
    background: #fff; color: var(--text); font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.04);
}
.ios-seg-btn.active-green {
    background: var(--primary); color: #fff; font-weight: 600;
    box-shadow: 0 2px 6px rgba(26,122,40,.30);
}

/* ── Card ─────────────────────────────────────────── */
.ios-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.ios-card-body { padding: 16px 20px; }
.section-title {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .09em; color: var(--primary);
    padding: 14px 20px 10px; border-bottom: 1px solid var(--border);
}

/* ── Form ─────────────────────────────────────────── */
.ios-form-group { margin-bottom: 14px; }
.ios-label { display: block; font-size: 12px; font-weight: 600; color: #2d4a2f; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.ios-input, .ios-select, .ios-textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
    background: #fff; color: var(--text); outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.ios-input:focus, .ios-select:focus, .ios-textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,122,40,.12);
}
input[type=number].ios-input { -moz-appearance: textfield; color: var(--text); }
input[type=number].ios-input::-webkit-inner-spin-button,
input[type=number].ios-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ios-textarea { resize: vertical; min-height: 80px; }

/* ── Table ────────────────────────────────────────── */
.ios-table { width: 100%; border-collapse: collapse; }
.ios-table thead th { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); padding: 10px 14px; border-bottom: 1.5px solid var(--border); text-align: left; white-space: nowrap; }
.ios-table tbody td { padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.kalem-table .ios-input, .kalem-table .ios-select { padding: 6px 8px; font-size: 13px; }
.kalem-table .num-input { text-align: right; }
.kalem-table .row-total { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kalem-table .row-no { text-align: center; color: var(--text-2); font-size: 12px; }
.ios-table tbody tr:last-child td { border-bottom: none; }
.ios-table tbody tr:hover td { background: var(--bg); }

/* ── Overlay / Modal ──────────────────────────────── */
.ios-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: none; }
.ios-overlay.center { display: none; align-items: center; justify-content: center; }
.ios-overlay.show { display: flex; }
.ios-modal { background: var(--surface); border-radius: var(--radius); width: 90%; max-width: 500px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: slideUp .2s var(--ease); }
.ios-modal-lg  { max-width: 700px; }
.ios-modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.ios-modal-title  { font-weight: 700; font-size: 15px; }
.ios-modal-close  { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text-2); line-height: 1; }
.ios-modal-body   { padding: 16px 20px; overflow-y: auto; flex: 1; }
.ios-modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ── Toast ────────────────────────────────────────── */
#toastContainer { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.ios-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500; min-width: 240px; box-shadow: 0 4px 16px rgba(0,0,0,.15); animation: slideLeft .2s var(--ease); }
.ios-toast.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ios-toast.danger  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ios-toast.warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* ── Loading ──────────────────────────────────────── */
#loadingOverlay { position: fixed; inset: 0; background: rgba(255,255,255,.7); z-index: 500; display: none; align-items: center; justify-content: center; }
#loadingOverlay.show { display: flex; }
.ios-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }

/* ── Misc ─────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-2) !important; }
.fw-700 { font-weight: 700; }
.ios-search-wrap { position: relative; }
.ios-search-wrap i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-2); }
.ios-search-wrap .ios-input { padding-left: 32px; }

/* ── Stat cards ──────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.stat-icon {
    width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 20px;
}
.stat-value { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ── Badges ───────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.badge-open    { background: #f0fdf4; color: #16a34a; }
.badge-closed  { background: #f1f5f9; color: #64748b; }
.badge-expired { background: #fef2f2; color: #dc2626; }
.badge-doviz   { font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--bg); padding: 2px 7px; border-radius: 5px; }
.text-danger   { color: #dc2626 !important; }

/* ── Table tweaks ────────────────────────────────── */
.ord-no { font-size: 12.5px; font-weight: 700; color: var(--primary); font-family: monospace; }
.party-title-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teklif-row:hover td { background: var(--bg); }

/* ── Party info card ─────────────────────────────── */
.party-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px;
}
.party-info-item { display: flex; flex-direction: column; gap: 3px; }
.party-info-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.party-info-value { font-size: 14px; color: var(--text); }

/* ── Totals ───────────────────────────────────────── */
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.total-row:last-child { border-bottom: none; }
.total-row-bold { font-size: 15px; font-weight: 700; padding-top: 10px; }
.text-right { text-align: right; }

/* ── Party rows ───────────────────────────────────── */
.empty-hint { color: var(--text-2); font-size: 13px; padding: 24px; text-align: center; }
.party-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 4px; border-bottom: 1px solid var(--border);
}
.party-row:last-child { border-bottom: none; }
.party-row-main { flex: 1; min-width: 0; }
.party-row-sub  { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.party-code  { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 2px 7px; border-radius: 5px; margin-right: 8px; }
.party-title { font-size: 13.5px; font-weight: 500; }

@keyframes slideUp   { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:translateY(0) } }
@keyframes slideLeft { from { opacity:0; transform:translateX(16px) } to { opacity:1; transform:translateX(0) } }
@keyframes spin      { to { transform:rotate(360deg) } }
@keyframes fadeIn    { from { opacity:0 } to { opacity:1 } }

/* ── Tabs ─────────────────────────────────────────── */
.tab-bar {
    display: flex; gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}
.tab-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border: none; background: none; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--text-2);
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    border-radius: 8px 8px 0 0; transition: background .15s, color .15s;
}
.tab-btn:hover { background: var(--primary-light); color: var(--primary); }
.tab-btn-green.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-light); }
.tab-btn-blue:hover   { background: #eff6ff; color: #3b82f6; }
.tab-btn-blue.active  { color: #3b82f6; border-bottom-color: #3b82f6; background: #eff6ff; }
.tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 20px; padding: 0 6px;
    border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 1;
}
.tab-badge-green { background: var(--primary); color: #fff; }
.tab-btn-green.active .tab-badge-green { background: var(--primary); }
.tab-badge-blue  { background: #dbeafe; color: #1d4ed8; }
.tab-btn-blue.active .tab-badge-blue { background: #3b82f6; color: #fff; }

/* ── iOS Toggle ───────────────────────────────────── */
.ios-toggle-wrap { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.ios-toggle-input { opacity: 0; width: 0; height: 0; position: absolute; }
.ios-toggle-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: #ccd5d6; border-radius: 24px; transition: .2s;
}
.ios-toggle-slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ios-toggle-input:checked + .ios-toggle-slider { background: var(--primary); }
.ios-toggle-input:checked + .ios-toggle-slider::before { transform: translateX(20px); }

.me-1 { margin-right: 4px }

/* ── Lisans: Form grid (2 kolon) ────────────────── */
.lic-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    align-items: start;
}
.lic-full-row { grid-column: 1 / -1; }
@media (max-width: 860px) { .lic-form-grid { grid-template-columns: 1fr; } }

/* ── Lisans: Anahtar üretme butonu ───────────────── */
.lic-key-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.lic-gen-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 13px; font-size: .76rem; font-weight: 700; font-family: inherit;
    background: var(--primary); color: #fff;
    border: none; border-radius: 20px; cursor: pointer;
    box-shadow: 0 2px 7px rgba(26,122,40,.35);
    transition: background .15s, box-shadow .15s, transform .12s;
    letter-spacing: -.01em; white-space: nowrap;
}
.lic-gen-btn:hover  { background: var(--primary-dark); box-shadow: 0 4px 10px rgba(26,122,40,.45); transform: translateY(-1px); }
.lic-gen-btn:active { transform: scale(.94); box-shadow: none; }
.lic-gen-btn.lic-gen-sm {
    padding: 5px 10px; border-radius: 9px;
}

/* ── Lisans: Crypto kutusu ───────────────────────── */
.lic-crypto-box {
    display: flex; align-items: center; gap: 8px;
    margin-top: 6px;
    background: #f5f3ff;
    border: 1.5px solid #c4b5fd;
    border-radius: 9px; padding: 7px 10px;
}
.lic-crypto-lbl {
    display: inline-flex; align-items: center;
    font-size: .6rem; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: #6d28d9; flex-shrink: 0;
    background: #ede9fe; padding: 2px 7px; border-radius: 5px;
    border: 1px solid #ddd6fe;
}
.lic-crypto-val {
    font-family: 'SF Mono', 'Consolas', monospace; font-size: .69rem; color: #4c1d95;
    word-break: break-all; flex: 1; line-height: 1.45;
}
.lic-copy-btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: #ede9fe; border: 1.5px solid #c4b5fd;
    border-radius: 8px; cursor: pointer;
    color: #6d28d9; font-size: .82rem;
    transition: all .15s; padding: 0;
}
.lic-copy-btn:hover  { background: #6d28d9; border-color: #6d28d9; color: #fff; transform: scale(1.08); }
.lic-copy-btn:active { transform: scale(.92); }

/* ── Lisans: Mono font ───────────────────────────── */
.lic-mono { font-family: 'SF Mono', 'Consolas', monospace; font-size: .84rem; }

/* ── Lisans: Optional tag ────────────────────────── */
.lic-optional {
    font-size: .68rem; font-weight: 400; color: var(--text-2);
    text-transform: none; letter-spacing: 0; margin-left: 5px;
}

/* ── Lisans: Otomatik fatura satırı ──────────────── */
.lic-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg); border-radius: 10px; padding: 12px 14px;
}
.lic-divider { border: none; border-top: 1px solid var(--border); margin: 2px 0; }

/* ── Lisans: Detail info list ────────────────────── */
.lic-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start;
}
@media (max-width:900px) { .lic-detail-grid { grid-template-columns:1fr } }
.lic-info-list { display: flex; flex-direction: column; }
.lic-info-row  {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 20px; border-bottom: 1px solid var(--border);
}
.lic-info-row:last-child { border-bottom: none }
.lic-info-lbl  {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--text-2); min-width: 130px; padding-top: 3px;
}
.lic-info-val  { font-size: .88rem; color: var(--text); flex: 1; word-break: break-word; }
.fw            { font-weight: 700 }
.lic-row-key   { background: var(--primary-light) }
.lic-key-row   { display: flex; align-items: center; gap: 8px; flex: 1 }
.lic-key-mono  {
    font-family: 'SF Mono', 'Consolas', monospace; font-size: .76rem;
    word-break: break-all; flex: 1; line-height: 1.5;
}

/* Detail sayfası kopyala butonu */
.lic-copy {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: #f8f9fa; border: 1.5px solid var(--border);
    border-radius: 8px; cursor: pointer; font-size: .8rem;
    color: var(--text-2); transition: all .15s; padding: 0;
}
.lic-copy:hover  { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.08); }
.lic-copy:active { transform: scale(.92); }

/* Detail badge'leri */
.badge-success   { background:#dcfce7; color:#15803d }
.badge-danger    { background:#fee2e2; color:#dc2626 }
.badge-secondary { background:#f1f5f9; color:#64748b }

/* ── Lisans: Party suggest dropdown ─────────────── */
.lic-suggest {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
    background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.1); max-height: 220px; overflow-y: auto;
}
.lic-sug-item {
    padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border);
    font-size: .86rem; display: flex; align-items: center; gap: 10px;
    transition: background .12s;
}
.lic-sug-item:last-child { border-bottom: none }
.lic-sug-item:hover { background: var(--primary-light) }
.lic-sug-code {
    font-size: .74rem; font-weight: 700; font-family: monospace;
    background: var(--primary-light); color: var(--primary);
    padding: 2px 7px; border-radius: 5px; flex-shrink: 0;
}
.lic-sug-sep {
    padding: 5px 14px 3px;
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-2);
    background: var(--bg); border-bottom: 1px solid var(--border);
}

/* ── Lisans: Ürün chip seçici ────────────────────── */
.lic-chip-group {
    display: flex; flex-direction: column; gap: 4px; margin-top: 8px;
}
.lic-chip-group-label {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-2); margin-bottom: 2px;
}
.lic-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.lic-chip {
    padding: 5px 16px; border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #f8fafc; color: var(--text);
    font-size: .82rem; font-weight: 500; cursor: pointer;
    transition: all .15s; line-height: 1.4;
}
.lic-chip:hover:not(.active) {
    border-color: var(--primary); color: var(--primary); background: var(--primary-light);
}
.lic-chip.active {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(26,122,40,.3);
}
