
/* Ortak sayfa iskeleti ve marka başlığı */
:root {
  --sv-bg: #f6f9fd;
  --sv-panel: #ffffff;
  --sv-text: #1d1d1f;
  --sv-border: #8ec5ff;
  --sv-border-soft: #c7e2ff;
  --sv-primary: #2b5f9e;
  --sv-primary-soft: #eaf5ff;
  --sv-accent: #4da3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 14px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--sv-bg);
  color: var(--sv-text);
}

.page,
.page-frame {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  background: var(--sv-panel);
  border: 2px solid var(--sv-border);
  border-radius: 16px;
}

.brand-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 64px;
}

.brand-header.home-brand {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.site-title {
  margin: 0;
  text-align: left;
  font-family: "Brush Script MT", cursive;
  font-size: 44px;
  font-weight: normal;
  color: var(--sv-primary);
  line-height: 1;
}

.brand-spacer { display: none; }

.home-link-top {
  white-space: nowrap;
}

/* Ortak üst başlık altı sayfa başlığı */
.page-subtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px 12px;
  margin: 0;
}

.card-subtitle {
  margin-bottom: 16px;
  background: #ffffff;
  border: 2px solid var(--sv-border);
  border-radius: 16px;
}

.login-subtitle {
  padding: 0 0 14px;
}

.panel-content-top {
  padding-top: 0;
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.title {
  margin: 0;
  color: var(--sv-primary);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.line-icon,
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sv-accent);
  flex: 0 0 auto;
}

.title-icon {
  width: 32px;
  height: 32px;
  font-size: 28px;
  font-weight: 900;
}

.nav-icon {
  width: 18px;
  height: 18px;
  background-color: var(--sv-accent);
  color: transparent;
  font-size: 0;
}

.icon-home {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10.5V20h13v-9.5'/%3E%3Cpath d='M9.5 20v-6h5v6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10.5V20h13v-9.5'/%3E%3Cpath d='M9.5 20v-6h5v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-shield {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.top-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-actions {
  margin-bottom: 16px;
}

.centered-actions {
  justify-content: center;
}

.top-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #9ccaff;
  border-radius: 10px;
  background: #ffffff;
  color: var(--sv-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.top-link-btn:hover {
  background: var(--sv-primary-soft);
}

.top-icon {
  color: var(--sv-accent);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.top-icon2 {
  text-shadow: 1px 1px 0, -1px -1px 0;
}

.top-link-btn span {
  color: var(--sv-accent);
  font-weight: 900;
}

.legal-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(77, 163, 255, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.legal-footer a {
  color: #1f6fbf;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.legal-footer a:hover { text-decoration: underline; }

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: #f8fbff;
  color: var(--sv-primary);
  border: 1px solid var(--sv-border-soft);
  transition: 0.2s;
}

.contact-link:hover {
  transform: translateY(-1px);
  background: var(--sv-primary-soft);
}

.contact-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.contact-text { word-break: break-word; }

.legal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.legal-nav a,
.legal-footer-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(77, 163, 255, 0.45);
  border-radius: 999px;
  background: #fff;
  color: #1f6fbf;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(77, 163, 255, 0.10);
}

.legal-section { scroll-margin-top: 18px; }
.legal-section h2 { margin-top: 0; }
.legal-section p, .legal-section li { line-height: 1.55; }
.legal-section ul { padding-left: 22px; margin-bottom: 0; }
.legal-note {
  font-size: 13px;
  color: #5f6f7f;
  text-align: center;
  margin: 8px 0 16px;
}
.legal-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 560px) {
  body { padding: 10px; }
  .page, .page-frame { padding: 12px; }
  .brand-header, .brand-header.home-brand {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .brand-logo { width: 54px; height: 54px; }
  .brand-spacer { display: none; }
  .site-title { font-size: 38px; }
  .home-link-top { padding: 8px 10px; font-size: 13px; }
}

html { scroll-behavior: smooth; }


/* 20260512-002: Emoji alt başlık simgeleri maske ikon kuralına yakalanıp mavi kare görünmesin. */
.page-subtitle .line-icon.title-icon:not(.icon-person):not(.icon-location):not(.icon-home):not(.icon-logout):not(.icon-shield):not(.icon-crown) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent !important;
  -webkit-mask: none !important;
          mask: none !important;
  color: var(--sv-accent) !important;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}


/* Uygulama ana ekrandan/standalone açıldıysa kurulum bilgilendirmesi gizlenir. */
@media (display-mode: standalone) {
  .mobile-save-note { display: none !important; }
}

html.standalone-app .mobile-save-note {
  display: none !important;
}
