:root {
    --bg: #f3f6fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #ef4444;
    --success: #16a34a;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

input,
select {
    font-size: 16px !important;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}
html {
    height: 100%;
}

body {
    min-height: 100%;
}
body {
    min-height: 100vh;
}

.app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 14px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .6px;
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
}

.cart-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 20px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 50px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
}

.hero {
    padding: 18px 16px 10px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #3b82f6 100%);
    color: #fff;
    border-radius: 28px;
    padding: 22px 18px 18px;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
    backdrop-filter: blur(4px);
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -40px;
    top: -40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.hero-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    opacity: .9;
    margin-bottom: 8px;
}

.hero-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    max-width: 240px;
    position: relative;
    z-index: 1;
}

.hero-text {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
    max-width: 260px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.hero-btn,
.hero-btn-light {
    height: 44px;
    border-radius: 14px;
    padding: 0 16px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.hero-btn {
    background: #fff;
    color: var(--primary);
}

.hero-btn-light {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
}

.content {
    padding: 14px 16px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.mini-card {
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.mini-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.mini-value {
    font-size: 14px;
    font-weight: 700;
}

.section-card {
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.section-sub {
    font-size: 12px;
    color: var(--muted);
}

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

.quick-item {
    background: #f8fbff;
    border: 1px solid #e6eefb;
    border-radius: 16px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quick-item b {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.quick-item span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.quick-item button {
    border: none;
    background: var(--primary);
    color: #fff;
    height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 430px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(226, 232, 240, .9);
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
     transform: translateZ(0);
}

.total-box {
    flex: 1;
    min-width: 0;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 10px 12px;
}

.total-label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 2px;
}

.total-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}


.btn-main:focus,
.hero-btn:focus,
.hero-btn-light:focus,
.quick-item button:focus {
    outline: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    z-index: 90;
    display: none;
    transition: opacity 0.25s ease;
    pointer-events: auto;
}
.sheet.active {
    z-index: 110;
}
.sheet {
  pointer-events: auto;
}
.btn-main {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    height: 54px;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    will-change: transform;
}
.sheet-body::-webkit-scrollbar {
    display: none;
}
.sheet.active {
    transform: translateY(0);
}

.sheet-header {
    padding: 12px 16px 8px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.sheet-handle {
    width: 54px;
    height: 5px;
    border-radius: 99px;
    background: #cbd5e1;
    margin: 0 auto 10px;
}

.sheet-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.sheet-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}
.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.calc-group {
    margin-bottom: 10px;
}

.calc-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}


/* BAŞLIK */
.calc-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}


.calc-row:hover {
    border-color: #c7d7ff;
    background: #f8fbff;
}

.calc-variant select {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    padding: 0 30px 0 10px;
    background: #fff;
    appearance: none;
}

/* ORTAK FORM ELEMANI */
.form-ui {
    width: 100%;
    height: 45px;
    border-radius: 16px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* SELECT */
.select-wrap {
    position: relative;
}

.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

/* OK İKONU */
.select-wrap::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #64748b;
    pointer-events: none;
}

.totals-preview .t-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.totals-preview .t-value {
    font-size: 22px;
    font-weight: 700;
}
.sheet-bottom .aktar-btn {
    width: auto;
    flex-shrink: 0;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    margin-bottom: 10px;
background: #fff;
border-radius: 18px;
padding: 14px;
border: 1px solid #eef2f7;
box-shadow: 0 10px 25px rgba(15,23,42,0.06);
transition: all .2s ease, transform .12s ease;
}

.cart-item:active {
transform: scale(0.98);
}

.cart-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-code {
    font-size: 12px;
    color: var(--muted);
}

.cart-price {
    text-align: right;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
}

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


.empty {
    text-align: center;
    padding: 36px 18px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px dashed #d7e1ee;
    border-radius: 18px;
    margin-bottom: 10px;
}

.install-banner {
    display: none;
    margin: 14px 16px 0;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.install-banner.active {
    display: block;
}

.install-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.install-text {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.install-actions {
    display: flex;
    gap: 8px;
}

.btn-soft {
    border: 1px solid #dbeafe;
    background: #fff;
    color: var(--primary);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary-sm {
    border: none;
    background: var(--primary);
    color: #fff;
    height: 40px;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.d-none {
    display: none !important;
}

/* ANA KART */
.calc-row {
    display: flex;
    flex-direction: column;
    gap: 5px;

    background: #fff;
    border-radius: 18px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eef2f7;
}


/* ALT BLOK */
.calc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.qty {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px;
}

.qty button {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: none;
    background: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
}

.qty input {
    width: 60px;
    height: 30px;
    border: none;
    text-align: center;
    font-weight: 600;
    background: transparent;
}

.calc-variant {
    flex: 1;
    min-width: 0;
}


.brand-logo {
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}

.calc-row-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-group {
    min-width: 0;
}

html, body {
    -webkit-tap-highlight-color: transparent;
}
.cart-item:hover {
border-color: #dbeafe;
}
body.no-scroll {
    overflow: hidden;
}

.calc-note {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 14px;
    padding: 12px;
    font-size: 13px;
    color: #1e3a8a;
    margin-top: 10px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .calc-group {
        max-width: 100% !important;
    }
}

@media (max-width: 390px) {
    .hero-title {
        font-size: 22px;
    }
}
/* TOAST */
.ui-alert-wrap {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 999;
display: flex;
flex-direction: column;
gap: 10px;
}

.ui-toast {
background: #fff;
padding: 12px 16px;
border-radius: 14px;
box-shadow: 0 15px 40px rgba(0,0,0,.12);
font-size: 14px;
transform: translateY(-20px);
opacity: 0;
transition: all .3s;
}

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

/* MODAL */
.ui-modal {
position: fixed;
inset: 0;
background: rgba(0,0,0,.4);
display: none;
align-items: center;
justify-content: center;
z-index: 1000;
}

.ui-modal.active {
display: flex;
}

.ui-modal-box {
background: #fff;
border-radius: 22px;
padding: 20px;
width: 90%;
max-width: 320px;
text-align: center;
box-shadow: 0 30px 80px rgba(0,0,0,.2);
}

.ui-modal-title {
font-weight: 700;
font-size: 16px;
margin-bottom: 6px;
}

.ui-modal-text {
font-size: 13px;
color: #64748b;
margin-bottom: 16px;
}

.ui-modal-actions {
display: flex;
gap: 8px;
}

.ui-modal-actions button {
flex: 1;
}
.btn-main:active,
.hero-btn:active,
.hero-btn-light:active,
.quick-item button:active {
    transform: scale(0.95);
}
.mb-2 {
margin-bottom: 10px !important;
}
.mb-1 {
margin-bottom: 5px !important;
}
.mb-3 {
margin-bottom: 15px !important;
}
.mt-2 {
margin-top: 10px !important;
}
.mt-3 {
margin-top: 15px !important;
}
.mt-1 {
margin-top: 5px !important;
}
.inst-card {
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px;
margin-bottom: 8px;
background: #fff;
cursor: pointer;
transition: all 0.2s ease;
}

.inst-card input {
margin-right: 10px;
}

.inst-card:hover {
border-color: #2563eb;
background: #f8fafc;
}

.inst-left {
flex: 1;
}

.inst-title {
font-weight: 600;
font-size: 14px;
}

.inst-sub {
font-size: 12px;
color: #64748b;
}

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

.inst-month {
font-weight: 600;
font-size: 14px;
}

.inst-total {
font-size: 12px;
color: #64748b;
}

/* SEÇİLİ HAL */
.inst-card input:checked + .inst-left,
.inst-card input:checked ~ .inst-right {
color: #2563eb;
}

.inst-card:has(input:checked) {
border-color: #2563eb;
background: #eff6ff;
}
.customer-box {
background: #ffffff;
border-radius: 12px;
padding: 14px;
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
font-size: 14px;
}

.customer-name {
font-weight: 600;
font-size: 15px;
color: #0f172a;
}

.customer-phone {
font-size: 13px;
color: #475569;
margin-top: 2px;
}

.customer-company {
font-size: 13px;
color: #64748b;
}

.customer-actions {
display: flex;
}

.btn-danger {
background: #ef4444;
color: #fff;
border: none;
padding: 6px 10px;
border-radius: 8px;
}
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    cursor: pointer;
}
.faq-question {
    font-weight: 600;
}
.faq-answer {
    display: none;
    font-size: 14px;
    color: #555;
    margin-top: 6px;
}
.faq-item.active .faq-answer {
    display: block;
}
.cart-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 8px;
    padding: 5px 12px;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;

    color: #1e293b;

    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;

    border-radius: 999px;

    box-shadow: 
        0 1px 2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: all 0.2s ease;
}
.cart-note::before {
    content: "•";
    font-size: 10px;
    color: #2563eb;
}
/* CONTACT BOX */
.contact-box {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

/* INFO */
.contact-info {
    background: #f1f5ff;
    border: 1px solid #dbeafe;
}

/* BUTTON WRAP */
.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* BUTTON BASE */
.contact-btn {
    flex: 1;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.15s ease;

    /* 🔥 hissiyat */
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

/* HOVER */
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

/* CLICK */
.contact-btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.1);
}

/* WHATSAPP (PRIMARY) */
.btn-main.contact-btn {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

/* ARA (SOFT) */
.btn-soft.contact-btn {
    border: 1px solid #c7d7ff;
    background: #fff;
}
.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 430px;
    margin: 0 auto;

    background: #fff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 30px rgba(15,23,42,0.08);

    transform: translateY(110%);
    transition: transform .28s ease;
    will-change: transform;

    display: flex;
    flex-direction: column;

    height: 90vh; /* 🔥 KALSIN */
    overflow: hidden;
    touch-action: pan-y;
}
/* alt sabit */
.sheet-bottom {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));

    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(226,232,240,.9);

    position: sticky;
    bottom: 0;
    z-index: 5;
}

.sheet-bottom .total-box {
    flex: 1;
}

.upsell-card:hover {
  border-color: #2563eb;
}


.upsell-name {
  font-weight: 600;
  font-size: 14px;
}

.upsell-price {
  font-size: 13px;
  color: #16a34a;
  margin-top: 3px;
}

.upsell-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #cbd5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
}

.upsell-card.active .upsell-check {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.upsell-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.upsell-card.active {
  border: 2px solid #2563eb;
  background: #f0f6ff;
}

.upsell-left {
  display: flex;
  flex-direction: column;
}

.upsell-name {
  font-weight: 600;
}

.upsell-diff {
  font-size: 13px;
  color: #16a34a;
  margin-top: 4px;
}

.upsell-check {
  opacity: 0;
  font-size: 18px;
  color: #2563eb;
}

.upsell-card.active .upsell-check {
  opacity: 1;
}
.upsellTotalBox {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 16px;
  border-radius: 16px;

  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px solid #e2e8f0;

  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.upsell-total-left {
  display: flex;
  flex-direction: column;
}

.upsell-total-label {
  font-size: 13px;
  color: #64748b;
}

.upsell-total-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

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

.upsell-total-value {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: -0.3px;
}
.upsell-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}