/* ===== Blazor surumu: urun, odeme ozeti, form ve yonetim paneli ===== */
.link { color: var(--brand); text-decoration: none; font-weight: 600; }
.btn { border: 0; cursor: pointer; font: inherit; text-align: center; }
.btn.wide { display: block; width: 100%; margin-top: 10px; }
.btn.sm { padding: 6px 12px; font-size: .9rem; }
.btn.danger { background: #c8322b; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* logo kutucugu: urun logolari acik zemin icin tasarlandi, iki temada da beyaz kutu */
.chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); border: 1px solid #e3e7ef; }
.chip img { display: block; height: 40px; width: auto; }
.chip-lg img { height: 56px; }
.chip .chip-icon { height: 36px; width: 36px; }
.chip-lg .chip-icon { height: 48px; width: 48px; }
.chip-word { font-weight: 800; font-size: 1.4rem; color: #0b1f17; letter-spacing: -.01em; }
.chip-lg .chip-word { font-size: 1.9rem; }

/* ana sayfa */
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--muted); }
.trust b { color: var(--ink); }
.hero-shots { position: relative; height: 420px; }
.phone { border-radius: 26px; border: 6px solid #0d1b2a; box-shadow: 0 18px 50px rgba(9, 46, 69, .25); background: #fff; height: auto; }
.hero-shots .phone { position: absolute; width: 200px; }
.hero-shots .p1 { right: 150px; top: 0; transform: rotate(-4deg); }
.hero-shots .p2 { right: 10px; top: 40px; transform: rotate(4deg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.tile .chip { align-self: flex-start; }
.tile-tag { font-weight: 600; margin: 12px 0 0; }
.tile-price { color: var(--muted); margin: 0; }
.tile-cta { display: flex; align-items: center; gap: 16px; margin: auto 0 0; padding-top: 12px; flex-wrap: wrap; }
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.flow span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 8px; }
.flow b { display: block; }
.flow p { margin: 4px 0 0; color: var(--muted); }

/* urun sayfasi */
.phero { padding: 40px 0 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent); }
.phero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.phero h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 18px; }
.ticks.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.pvisual { display: flex; gap: 16px; justify-content: center; }
.pvisual .phone { width: 46%; max-width: 230px; }
.pvisual .phone:nth-child(2) { margin-top: 40px; }
.wide-shot { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin: 0; }
.card { display: flex; flex-direction: column; }
.card .ticks { flex: 1; }
.calc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }
.calc label { font-weight: 600; }
.calc input { width: 110px; }
.calc-band { color: var(--muted); }
.bands { margin-top: 18px; }
.bands summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }

/* odeme ozeti */
.checkout { padding-top: 32px; }
.co-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.co-info h1 { margin-top: 16px; }
.summary { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row span, .row label { color: var(--muted); }
.row.total { font-size: 1.15rem; border-bottom: 0; }
.row.field { align-items: center; flex-wrap: wrap; }
.row.field input { width: 90px; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg a, .seg button { flex: 1; text-align: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); background: transparent; border: 0; font: inherit; cursor: pointer; }
.seg a[aria-current], .seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); font-weight: 700; color: var(--brand); }
.seg small { display: block; font-size: .72rem; color: var(--muted); }
.acct { background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; font-size: .92rem; }
.soon { font-size: .88rem; color: var(--muted); }
.center { display: block; text-align: center; margin-top: 10px; }

/* formlar */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
.form label.check, label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg-radio { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.seg-radio legend { font-weight: 600; margin-bottom: 4px; }
.form .seg-radio label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.form-h { margin-top: 28px; font-size: 1.2rem; }
.validation-message, .err { color: #c8322b; font-size: .9rem; margin: 0; }
.notice { border-radius: var(--radius); padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.notice.warn { border-color: #e0a100; background: color-mix(in srgb, #e0a100 12%, var(--surface)); }
.notice h2 { margin-top: 0; }

/* giris */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.login-logo { height: 64px; width: auto; display: block; margin: 0 auto 8px; }
.login h1 { font-size: 1.3rem; text-align: center; }

/* yonetim */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #0b2236; color: #dbe6f2; padding: 18px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: grid; gap: 6px; text-decoration: none; color: #9fc3e6; font-size: .85rem; }
.side-brand img { height: 46px; width: auto; }
.side nav { display: grid; gap: 4px; }
.side nav a { color: #dbe6f2; text-decoration: none; padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.side nav a.active, .side nav a:hover { background: #163a59; color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.side-foot a { color: #9fc3e6; }
.admin-main { padding: 24px 28px 60px; min-width: 0; }
.admin-main h1 { font-size: 1.6rem; }
.page-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-h h1, .page-h h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: grid; }
.stat b { font-size: 1.7rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat.warn { border-left: 4px solid #e0a100; }
table.grid { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
table.grid th, table.grid td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: normal; vertical-align: top; }
table.grid thead th { background: var(--bg); font-size: .85rem; color: var(--muted); }
table.grid tr.sel td { background: var(--brand-soft); }
table.edit input[type=number] { width: 90px; }
table.edit input:not([type]) { min-width: 120px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; align-items: center; }
.filters input[type=search] { max-width: 340px; }
.filters select { width: auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; display: grid; gap: 10px; align-content: start; }
.panel h2 { font-size: 1.1rem; margin: 6px 0 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-form { max-width: 760px; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; background: var(--surface); }
.admin-form legend { font-weight: 700; padding: 0 6px; }
.pick { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.key { display: block; padding: 10px; background: var(--bg); border-radius: 8px; word-break: break-all; }
.badge-s { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e5e9f0; color: #36475a; vertical-align: middle; }
.s-requested { background: #fff1c7; color: #7a5300; }
.s-trial { background: #dff1ff; color: #0d5c97; }
.s-active { background: #d9f6e6; color: #0a6b3e; }
.s-pastdue, .s-suspended { background: #ffe3d1; color: #9a3c00; }
.s-canceled, .s-expired { background: #eceef2; color: #5b6474; }

@media (max-width: 900px) {
  .hero-grid, .phero-grid, .co-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero-shots { display: none; }
  .summary { position: static; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side nav { grid-auto-flow: column; overflow-x: auto; }
}
@media (max-width: 560px) {
  .two, .trust, .ticks.cols { grid-template-columns: 1fr; }
  .pvisual .phone:nth-child(2) { margin-top: 0; }
  .admin-main { padding: 16px; }
  table.grid { display: block; overflow-x: auto; }
}
