:root {
  --ink: #17322f;
  --muted: #667875;
  --green-dark: #16443d;
  --green: #23675c;
  --green-light: #4a8c7e;
  --line: rgba(23, 50, 47, 0.1);
}



* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #ffffff;
  background-color: var(--green-dark);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-badge {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Portal Ana Gövde & Gruplama Mimarisi */
.portal-main {
  width: 100%;
  padding: 64px 0 32px 0;
}

.portal-group {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 54px 0;
}

.portal-group:last-child {
  padding-bottom: 74px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.group-title {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
}

.group-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.app-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, 160px);
  align-content: start;
  justify-content: start;
  gap: 42px 36px;
  margin: 0;
  padding: 0;
}

.app-item {
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 30px;
  outline: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-item:hover {
  transform: translateY(-3px);
}

.app-item:active {
  transform: translateY(0);
}

.app-icon-container {
  position: relative;
  width: 136px;
  height: 136px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.app-icon {
  width: 136px;
  height: 136px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  flex-shrink: 0;
  background: linear-gradient(165deg, #ffffff 0%, #fcfefe 52%, #eff4f2 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.30),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-item:hover .app-icon {
  transform: scale(1.03) translateY(-2px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.40),
    0 4px 10px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.app-item:active .app-icon {
  transform: scale(0.97);
}

.app-icon svg {
  width: 66px;
  height: 66px;
  stroke: #17322f;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-item:hover .app-icon svg {
  transform: scale(1.05);
}

/* 1. Resepsiyon El Kitabı — Kurumsal Zümrüt Yeşili */
.app-icon.handbook-icon svg {
  stroke: #147a57;
  filter: drop-shadow(0 3px 6px rgba(20, 122, 87, 0.25));
}

/* 2. Otel Tanıtımı — Gün Batımı Mercan Pembe */
.app-icon.intro-icon svg {
  stroke: #dc265b;
  filter: drop-shadow(0 3px 6px rgba(220, 38, 91, 0.25));
}

/* 3. Konaklama Belgesi — Kraliyet Safir Mavisi */
.app-icon.registration-icon svg {
  stroke: #2563eb;
  filter: drop-shadow(0 3px 6px rgba(37, 99, 235, 0.25));
}

/* 4. Döviz Kurları — Sıcak Altın Sarısı & Kehribar */
.app-icon.currency-icon svg {
  stroke: #c87a08;
  filter: drop-shadow(0 3px 6px rgba(200, 122, 8, 0.25));
}

/* 5. KBS Kontrolü — Resmi Doğrulama & Kraliyet Moru */
.app-icon.kbs-icon svg {
  stroke: #7c3aed;
  filter: drop-shadow(0 3px 6px rgba(124, 58, 237, 0.25));
}

/* 6. Pax Sayısı Kontrol — Canlı İstatistik Turuncusu */
.app-icon.pax-icon svg {
  stroke: #ea580c;
  filter: drop-shadow(0 3px 6px rgba(234, 88, 12, 0.25));
}

/* 7. Tarama — Lazer Işığı & Dijital Camgöbeği Turkuaz */
.app-icon.scan-icon svg {
  stroke: #0891b2;
  filter: drop-shadow(0 3px 6px rgba(8, 145, 178, 0.25));
}

/* 8. Check-in Kontrol — Giriş & Voucher Denetimi Yakut Kırmızı */
.app-icon.checkin-icon svg {
  stroke: #dc2626;
  filter: drop-shadow(0 3px 6px rgba(220, 38, 38, 0.25));
}

/* 9. Otel Haritası — Çelik Mavi / Arduvaz */
.app-icon.map-icon svg {
  stroke: #475569;
  filter: drop-shadow(0 3px 6px rgba(71, 85, 105, 0.22));
}

/* 10. Vardiya Operasyonu — Çivit Mavisi / Gece-Gündüz İndigo */
.app-icon.shift-icon svg {
  stroke: #4f46e5;
  filter: drop-shadow(0 3px 6px rgba(79, 70, 229, 0.22));
}

/* Devre Dışı / Hazırlık Aşamasındaki Modüller */
.app-item.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.app-item.is-disabled:hover {
  transform: none;
}

.app-item.is-disabled .app-icon {
  background: #f1f4f3;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.app-item.is-disabled:hover .app-icon {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.app-item.is-disabled .app-name {
  color: rgba(255, 255, 255, 0.7);
}

.status-pill {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 5;
  font-size: 9px;
  font-weight: 700;
  padding: 3.5px 8px;
  border-radius: 9999px;
  line-height: 1;
  pointer-events: none;
}

.status-pill.is-disabled,
.disabled-badge-pill {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 5;
  background: rgba(26, 33, 31, 0.92);
  color: #c0ccc9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3.5px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  line-height: 1;
  text-transform: none;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.app-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.01em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  max-width: 100%;
}

.app-item:hover .app-name {
  color: #ffffff;
  background: none;
  border: none;
  box-shadow: none;
  text-shadow: none;
}

.app-item:focus-visible .app-icon {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 5px;
}

@media (max-width: 620px) {
  body {
    background-attachment: scroll;
  }

  .topbar {
    padding: 0 18px;
  }

  .portal-main {
    padding: 36px 0 20px 0;
  }

  .portal-group {
    width: calc(100% - 32px);
    padding: 0 0 36px 0;
  }

  .portal-group:last-child {
    padding-bottom: 48px;
  }

  .group-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .group-title {
    font-size: 15px;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 14px;
  }

  .app-item {
    width: 100%;
  }

  .app-icon-container {
    width: min(120px, 34vw);
    height: min(120px, 34vw);
    aspect-ratio: 1 / 1;
    max-width: 120px;
    max-height: 120px;
  }

  .app-icon {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 26px;
  }

  .app-icon svg {
    width: 58px;
    height: 58px;
    max-width: 50%;
    max-height: 50%;
  }

  .app-name {
    font-size: 13px;
  }
}
