:root {
  --sidebar-w: 310px;
  --topbar-h: 88px;
  --primary: #007a8c;
  --text: #1d2b34;
  --card: #ffffff;
  --line: #d8e0e5;
  --bg: #eff4f7;
}

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

body {
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.app {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}

/* ═══════════════ SIDEBAR ═══════════════ */

.sidebar {
  background: linear-gradient(0deg, rgb(54, 0, 51), rgb(11, 132, 145));
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: visible;
}

.logo-wrap {
  background: #f2f5f8;
  height: 90px;
  display: grid;
  place-items: center;
  flex: 0 0 90px;
}

.logo-img {
  width: 120px;
  height: auto;
  margin-left: -90px;
}

.search-mini-wrap {
  margin: 12px 12px 8px;
  position: relative;
}

.search-mini {
  width: 100%;
  height: 38px;
  background: rgba(10, 63, 93, 0.65);
  border: 1px solid rgba(26, 91, 117, 0.7);
  border-radius: 5px;
  font-size: 13px;
  padding: 0 60px 0 12px;
  color: #fff;
  font-family: inherit;
  outline: none;
}

.search-mini::placeholder {
  color: #a8c6d3;
}

.search-mini-ico {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 20px;
  pointer-events: none;
}

.search-mini-clear {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a8c6d3;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.search-mini-clear .material-icons-round {
  font-size: 16px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 12px 12px;
  overflow-y: auto;
  flex: 1;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(242, 247, 250, 0.95);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.search-result-item .material-icons-round {
  font-size: 18px;
  color: #ffffff;
  flex: 0 0 18px;
}

.sidebar-handle {
  position: absolute;
  top: 104px;
  right: -20px;
  width: 20px;
  height: 62px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: #0a8798;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.sidebar-handle .material-icons-round {
  font-size: 20px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 12px 20px;
  overflow-y: auto;
  flex: 1;
}

.menu-item {
  text-decoration: none;
  color: rgba(242, 247, 250, 0.95);
  font-size: 16px;
  line-height: 1.35;
  padding: 9px 8px 9px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  transition: background 0.15s;
}

.menu-item:hover {
  background: rgb(255, 255, 255);
  color: #0f2f4a;
}

.menu-item:hover .menu-ico {
  color: #0f2f4a;
}

.menu-item.active {
  background: #f4f8fa;
  color: #0f2f4a;
}

.menu-item .menu-ico {
  font-size: 24px;
  width: 22px;
  flex: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
}

.menu-ico-svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: rgba(255, 255, 255, 0.82);
  stroke: none;
  color: rgba(255, 255, 255, 0.82);
  transform: scale(0.88);
}

.menu-item.active .menu-ico-svg {
  fill: #264272;
  color: #264272;
}

.menu-item:hover .menu-ico-svg {
  fill: #0b8a9c;
  color: #0b8a9c;
}

.menu-item.active .menu-ico {
  color: #264272;
}

.menu-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
}

.menu-item.active .menu-arrow {
  display: none;
}

.menu-divider {
  height: 1px;
  background: rgba(64, 179, 194, 0.3);
  margin: 8px 0 10px;
}

/* ═══════════════ CONTENT ═══════════════ */

.content {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ═══════════════ TOPBAR ═══════════════ */

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgb(11, 132, 145), rgb(54, 0, 51)) rgb(255, 255, 255);
  margin: 0 -32px;
  padding: 0 32px;
  flex: 0 0 var(--topbar-h);
}

.topbar-search-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-search {
  width: 340px;
  height: 42px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(184, 203, 212, 0.5);
  background: #fff;
  padding: 0 14px;
}

.search-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: none;
  background: #0b8a9c;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 42px;
}

.search-btn .material-icons {
  font-size: 24px;
}

.global-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #657f8c;
  font-family: inherit;
  font-size: 15px;
}

.global-search-input::placeholder {
  color: #9cb0ba;
}

.topbar-spacer {
  flex: 1;
}

.profile-chip {
  gap: 2px;
  color: white;
  font-size: "Source Sans Pro", sans-serif;
  width: 214px;
  cursor: pointer;
  display: flex;
  padding: 8px;
  position: relative;
  min-width: 0px;
  background: rgba(219, 235, 237, 0.25);
  align-items: center;
  border-radius: 12.8px;
}



.profile-icon {
  font-size: 30px;
  color: #d4b8e8;
  flex: 0 0 30px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.profile-meta strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-meta span {
  font-size: 11.5px;
  line-height: 1.25;
  opacity: 0.78;
}

.profile-arrow {
  margin-left: 2px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  flex: 0 0 22px;
}

/* ═══════════════ STATUS ROW ═══════════════ */

.status-row {
  display: grid;
  grid-template-columns: minmax(0, 330px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px 0 24px;
  border-bottom: 1px solid #dfe7ec;
}

.welcome {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
  min-width: 0;
}

.welcome-back {
  font-size: 32px;
  color: #0b7c8e;
  cursor: pointer;
  line-height: 1;
}

.welcome-text {
  min-width: 0;
}

.welcome h1 {
  font-size: 19px;
  color: #0b6f80;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome p {
  margin-top: 3px;
  font-size: 13px;
  color: #4a6270;
  white-space: nowrap;
}

.debt-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  min-width: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  max-height: 96px;
}

.debt-item {
  padding: 12px 18px;
  background: transparent;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.debt-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: #d2dee4;
}

.debt-item small {
  font-size: 10px;
  color: #4b6775;
  font-weight: 700;
  display: block;
  line-height: 1.3;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.debt-item strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  color: #0e4e67;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.debt-item.red small,
.debt-item.red strong {
  color: #c0392b;
}

.debt-item.cyan small,
.debt-item.cyan strong {
  color: #0b8a9c;
}

.debt-item.blue small,
.debt-item.blue strong {
  color: rgb(48, 140, 182);
}

.debt-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 5px;
  background: #1aafcc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7px;
}

.debt-icon img {
  width: 130%;
  height: 130%;
  object-fit: contain;
}

.debt-item.red .debt-icon {
  background: #d04040;
}

.debt-meta {
  min-width: 0;
}

.updated {
  background: transparent;
  border: none;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}

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

.u-btn {
  width: 30px;
  height: 26px;
  border-radius: 5px;
  font-size: 17px;
  line-height: 26px;
  text-align: center;
  color: #fff;
}

.u-btn.dark {
  background: #4c5561;
}

.u-btn.cyan {
  background: #0e8f9e;
}

.updated-text {
  text-align: center;
  color: #415b69;
  font-weight: 600;
}

.updated-text span {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}

/* ═══════════════ FAVORILERIM ═══════════════ */

.section-head {
  margin: 18px 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title {
  color: #0c7386;
  font-size: 20px;
  font-weight: 700;
}

.section-edit {
  color: #1f96a2;
  font-size: 18px;
  cursor: pointer;
}

/* ═══════════════ 3 CARDS ═══════════════ */

.cards-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.panel .two-col,
.panel .rows,
.panel .list {
  flex: 1;
}

.panel h3 {
  margin: 0 0 14px;
  color: #0e7d93;
  font-size: 18px;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.two-col p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #4e6472;
  line-height: 1.3;
}

.sicil-panel .two-col p {
  color: #008ca1;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
}

.sicil-panel .two-col p b {
  display: block;
  margin-top: 4px;
  color: #273845;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.badge {
  display: inline-block;
  background: #1a8f8f;
  color: #fff;
  font-size: 12px;
  border-radius: 5px;
  padding: 3px 14px;
  font-weight: 700;
  margin-top: 4px;
}

.panel button {
  margin-top: 16px;
  width: 100%;
  height: 40px;
  border: 1.5px solid #3d8a95;
  border-radius: 22px;
  background: #fff;
  color: #0b6778;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
}

.panel button:hover {
  background: #f0f8fa;
}

/* ═══════════════ E-TEBLİGAT ROWS ═══════════════ */

.rows {
  display: grid;
  gap: 10px;
}

.r {
  display: grid;
  grid-template-columns: 56px 1fr;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d4dee4;
  font-size: 13px;
  height: 40px;
  font-weight: 600;
}

.r-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border-right: 1px solid #d4dee4;
}

.r-label {
  display: flex;
  align-items: center;
  padding-left: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #3a5060;
  letter-spacing: 0.15px;
}

.r1 {
  background: #fef0f0;
}

.r1 .r-num {
  color: #c04040;
  background: rgba(200, 60, 60, 0.06);
}

.r2,
.r3 {
  background: #eef7fb;
}

.r2 .r-num,
.r3 .r-num {
  color: #1a8a9e;
  background: rgba(26, 138, 158, 0.06);
}

/* ═══════════════ DİLEKÇELERİM LIST ═══════════════ */

.list {
  padding-left: 0;
  list-style: none;
  font-size: 14px;
  color: #3f5967;
  display: grid;
  gap: 12px;
}

.list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list li .material-icons-round {
  font-size: 18px;
  color: #198c9e;
}

.list-ico {
  width: 20px;
  height: 20px;
  min-width: 20px;
  fill: #198c9e;
}

/* ═══════════════ BOTTOM ═══════════════ */

.bottom {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.panel-lite {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-head h3 {
  margin: 0;
  color: #0e7d93;
  font-size: 18px;
  font-weight: 700;
}

.panel-head a {
  color: #2d899a;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

.app-cards-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-nav {
  width: 24px;
  height: 36px;
  border: none;
  background: transparent;
  color: #5a7a8a;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 24px;
  padding: 0;
}

.app-nav .material-icons-round {
  font-size: 22px;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}

.app-card {
  height: 100px;
  border: 1px solid #d8e0e6;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #3f6b77;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.app-card-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.app-card--badge {
  border-color: #c5d4dc;
}

.app-test-badge {
  position: absolute;
  top: 12px;
  right: -18px;
  width: 72px;
  background: #0b8a9c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  transform: rotate(40deg);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #c8d6dd;
}

.dot.active {
  background: #1a8d9e;
  border-color: #1a8d9e;
}

.promo {
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='180'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1'%3E%3Ccircle cx='270' cy='40' r='3' fill='rgba(255,255,255,0.18)' stroke='none'/%3E%3Ccircle cx='310' cy='90' r='3' fill='rgba(255,255,255,0.18)' stroke='none'/%3E%3Ccircle cx='240' cy='100' r='3' fill='rgba(255,255,255,0.18)' stroke='none'/%3E%3Ccircle cx='290' cy='140' r='3' fill='rgba(255,255,255,0.18)' stroke='none'/%3E%3Ccircle cx='320' cy='50' r='2' fill='rgba(255,255,255,0.14)' stroke='none'/%3E%3Ccircle cx='260' cy='70' r='2' fill='rgba(255,255,255,0.14)' stroke='none'/%3E%3Ccircle cx='330' cy='130' r='2' fill='rgba(255,255,255,0.14)' stroke='none'/%3E%3Ccircle cx='210' cy='60' r='2' fill='rgba(255,255,255,0.14)' stroke='none'/%3E%3Cline x1='270' y1='40' x2='310' y2='90'/%3E%3Cline x1='270' y1='40' x2='240' y2='100'/%3E%3Cline x1='310' y1='90' x2='240' y2='100'/%3E%3Cline x1='310' y1='90' x2='290' y2='140'/%3E%3Cline x1='240' y1='100' x2='290' y2='140'/%3E%3Cline x1='270' y1='40' x2='320' y2='50'/%3E%3Cline x1='320' y1='50' x2='310' y2='90'/%3E%3Cline x1='270' y1='40' x2='260' y2='70'/%3E%3Cline x1='260' y1='70' x2='240' y2='100'/%3E%3Cline x1='310' y1='90' x2='330' y2='130'/%3E%3Cline x1='330' y1='130' x2='290' y2='140'/%3E%3Cline x1='270' y1='40' x2='210' y2='60'/%3E%3Cline x1='210' y1='60' x2='240' y2='100'/%3E%3C/g%3E%3C/svg%3E") right center / auto 100% no-repeat,
    linear-gradient(110deg, #0f9cb0 0%, #1c568f 56%, #3f1a71 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.promo p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.92;
}

.promo-dots {
  justify-content: center;
  padding-top: 12px;
}

.promo-dots .dot {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.promo-dots .dot.active {
  background: #fff;
  border-color: #fff;
}

/* İnternet Vergi Dairesi yönlendirme onayı */
.ivd-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ivd-modal[hidden] {
  display: none;
}

.ivd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 45, 55, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ivd-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.ivd-modal__head {
  background: #156b6b;
  padding: 18px 22px;
}

.ivd-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.ivd-modal__body {
  padding: 22px 22px 8px;
}

.ivd-modal__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5a6a72;
}

.ivd-modal__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 22px 22px;
}

.ivd-modal__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ivd-modal__btn--ghost {
  background: #fff;
  color: #156b6b;
  border-color: #156b6b;
}

.ivd-modal__btn--ghost:hover {
  background: rgba(21, 107, 107, 0.08);
}

.ivd-modal__btn--primary {
  background: #156b6b;
  color: #fff;
  border-color: #156b6b;
}

.ivd-modal__btn--primary:hover {
  background: #0f5555;
  border-color: #0f5555;
}
