*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;
    background: #fff;
    color: #1a1a1a;
    margin: 0;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    background: #f27a1a;
    padding: 14px 20px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}
.logo::before { content: '🏷 '; }

nav.topnav {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.15);
    padding: 4px;
    border-radius: 999px;
    flex-wrap: wrap;
}
nav.topnav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s;
    white-space: nowrap;
}
nav.topnav a.active { background: #fff; color: #f27a1a; }
nav.topnav a:hover:not(.active) { color: #fff; }

/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #fff4ec, #fff);
    border: 2px solid #ffe0c2;
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(242,122,26,0.15), transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 40px; font-weight: 900; margin: 0 0 8px; letter-spacing: -0.03em; }
.hero h1 span { color: #f27a1a; }
.hero .sub { color: #666; font-size: 16px; margin: 0 0 24px; max-width: 600px; }

/* Forms */
label {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
input[type=text], input[type=number], input[type=file], select, textarea {
    background: #fff;
    border: 2px solid #e5e5e5;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    transition: border-color .15s;
    width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #f27a1a; }

button, .btn {
    background: #f27a1a;
    color: #fff;
    border: 0;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(242,122,26,0.3);
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
}
button:hover, .btn:hover { background: #d96a15; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242,122,26,0.4); }
button:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stat {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px;
}
.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.stat-value { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.stat-value.orange { color: #f27a1a; }
.stat-value.green { color: #10b981; }

/* Sections */
.section {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.section-title { font-size: 18px; font-weight: 800; margin: 0; }
.badge {
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.badge.orange { background: #f27a1a; }
.badge.gray { background: #e5e5e5; color: #555; }

/* Items list */
.items { display: flex; flex-direction: column; gap: 10px; }
.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    transition: all .15s;
    gap: 12px;
    flex-wrap: wrap;
}
.item:hover { background: #fff4ec; border-color: #ffd0a8; }
.item-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.item-num {
    background: #f27a1a;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.code {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    word-break: break-all;
}

/* Copy button */
.copy {
    background: #fff;
    color: #f27a1a;
    border: 2px solid #f27a1a;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
}
.copy:hover { background: #f27a1a; color: #fff; transform: none; box-shadow: none; }

/* Alerts */
.error {
    background: #fdecea;
    border: 2px solid #f5b5b0;
    color: #a1241c;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 500;
}
.success {
    background: #ecfdf3;
    border: 2px solid #a7f3d0;
    color: #047857;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 500;
}

/* Form layouts */
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-inline > * { flex: 0 0 auto; }
.form-inline .grow { flex: 1 1 auto; min-width: 140px; }
.field { display: flex; flex-direction: column; }

/* Price display */
.price-display {
    background: linear-gradient(135deg, #fff4ec, #fff);
    border: 2px solid #ffe0c2;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
}
.price-label {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.price-value {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #f27a1a;
}

/* KDV pill */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff4ec;
    color: #f27a1a;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #ffd0a8;
}
.pill.active::before {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #f27a1a;
    display: inline-block;
}

/* Chips (breakdown) */
.chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.chip {
    background: #fff4ec;
    border: 2px solid #ffe0c2;
    border-radius: 14px;
    padding: 14px;
}
.chip .k { font-size: 11px; font-weight: 700; color: #b3502a; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.chip .v { font-size: 18px; font-weight: 800; color: #1a1a1a; }
.chip.kar { background: #ecfdf3; border-color: #a7f3d0; }
.chip.kar .k { color: #047857; }
.chip.kar .v { color: #047857; }
.chip.danger { background: #fdecea; border-color: #f5b5b0; }
.chip.danger .k { color: #a1241c; }

/* Table */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
th { background: #fafafa; color: #555; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
td.code { font-family: 'JetBrains Mono', Consolas, monospace; font-weight: 700; }

/* Images */
.preview-img {
    max-width: 200px;
    max-height: 260px;
    border-radius: 14px;
    border: 2px solid #f0f0f0;
    object-fit: cover;
}

/* Helpers */
.small { font-size: 12px; color: #888; font-weight: 500; margin-top: 4px; text-transform: none; letter-spacing: 0; }
.group-title { font-weight: 800; font-size: 14px; margin: 20px 0 10px; color: #1a1a1a; text-transform: uppercase; letter-spacing: 0.05em; }
.group-title.filtre { color: #f27a1a; }
.muted { color: #888; font-size: 13px; }

/* Responsive */
@media (max-width: 760px) {
    .hero { padding: 24px; }
    .hero h1 { font-size: 30px; }
    .stats-grid, .form-grid-3, .form-grid-2, .chips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .wrap { padding: 20px 14px; }
    .hero h1 { font-size: 26px; }
    .stats-grid, .form-grid-3, .form-grid-2, .chips { grid-template-columns: 1fr; }
    .price-value { font-size: 36px; }
    nav.topnav a { padding: 6px 12px; font-size: 12px; }
}
