/* TL Paket Yükle – Fatura / TL / Paket portal */
:root {
  --primary: #0b5ed7;
  --primary-dark: #084298;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --dark: #1a1d21;
  --muted: #6c757d;
  --bg: #f0f2f5;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.5;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0b5ed7, #6610f2);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
}
.logo span.accent { color: var(--primary); }
.header-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 18px;
}
.header-nav a:hover { color: var(--primary); }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-desc {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 640px;
}

.op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.op-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  border: 1px solid #eef0f3;
  transition: .2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.op-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: #d0d7de;
}
.op-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .8rem;
  color: #fff;
}
.op-card h3 { font-size: 1.15rem; }
.op-card p { font-size: .88rem; color: var(--muted); flex: 1; }
.op-card .go {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
}

.hub-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .hub-cards { grid-template-columns: 1fr; }
}
.hub-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  cursor: pointer;
  transition: .2s;
  text-align: center;
}
.hub-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(11,94,215,.12);
}
.hub-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.hub-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.hub-card p { color: var(--muted); font-size: .95rem; }

.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 20px;
  max-width: 520px;
}
.form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: .95rem;
}
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d0d7de;
  border-radius: 10px;
  font-size: 1.05rem;
  letter-spacing: .5px;
  transition: .15s;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,94,215,.15);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #146c43; }
.btn-outline {
  background: #fff;
  border: 1.5px solid #d0d7de;
  color: var(--dark);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; margin-top: 14px; }

.action-row {
  display: none;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.action-row.show { display: flex; }
.action-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px;
  border: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.action-btn:hover, .action-btn.active {
  border-color: var(--primary);
  background: rgba(11,94,215,.06);
  color: var(--primary);
}

.panel {
  display: none;
  margin-top: 20px;
  animation: fade .25s ease;
}
.panel.show { display: block; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.tl-chip {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: .15s;
}
.tl-chip:hover {
  border-color: var(--primary);
  background: rgba(11,94,215,.06);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #d0d7de;
  background: #fff;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
}
.chip.active, .chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pkg-list { display: grid; gap: 12px; }
.pkg {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: .15s;
}
.pkg:hover { border-color: #c5d0e0; box-shadow: var(--shadow); }
.pkg-name { font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.pkg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .78rem;
}
.tag {
  background: #eef2f7;
  color: #334;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.tag.gb { background: #dbeafe; color: #1e40af; }
.tag.min { background: #d1fae5; color: #065f46; }
.tag.sms { background: #fef3c7; color: #92400e; }
.tag.period { background: #f3e8ff; color: #6b21a8; }
.pkg-right { text-align: right; }
.pkg-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}
.pkg-price small {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
}
.pkg .btn { margin-top: 6px; }

.bill-report {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-top: 20px;
  max-width: 560px;
  border: 1px solid #e5e7eb;
}
.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #eef0f3;
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.bill-header h3 { font-size: 1.2rem; }
.bill-status {
  background: #fef3c7;
  color: #92400e;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: .95rem;
}
.bill-row.total {
  border-bottom: none;
  border-top: 2px solid #eef0f3;
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.15rem;
  font-weight: 800;
}
.bill-note {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted);
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 18px;
}
.back:hover { text-decoration: underline; }

.notice {
  background: #fff8e6;
  border: 1px solid #ffe8a3;
  color: #7a5c00;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .88rem;
  margin-bottom: 18px;
}

.footer {
  background: var(--dark);
  color: #9ca3af;
  text-align: center;
  padding: 28px 20px;
  font-size: .85rem;
  margin-top: 40px;
}
.footer strong { color: #fff; }

.hidden { display: none !important; }

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.op-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.op-hero .op-badge { width: 56px; height: 56px; font-size: .9rem; }

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}
.icon-svg {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.tl-chip {
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
}
code {
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}

.op-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.op-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  background: #fff;
}
.op-logo-wrap.hero-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.op-card .op-logo-wrap {
  margin-bottom: 2px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay img {
  width: 80px;
  height: 80px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
