:root {
  --bg: #fff6fb;
  --card: #ffffff;
  --text: #2f2430;
  --muted: #7c6473;
  --line: #f1d9e8;
  --primary: #d64a8a;
  --primary-dark: #bb3473;
  --success-bg: #e9faef;
  --success-text: #1e8e53;
  --warn-bg: #fff4e6;
  --warn-text: #b06c12;
  --danger-bg: #ffe9ee;
  --danger-text: #bf2458;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(169, 71, 121, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 10%, #ffeaf4 0, transparent 35%),
    radial-gradient(circle at 85% 20%, #ffe8f1 0, transparent 35%), var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  margin-top: 6px;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.eyebrow {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.muted {
  color: var(--muted);
}


.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-wrap > div:last-child {
  min-width: 0;
}

.brand-logo-frame {
  width: 160px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(190, 70, 120, 0.25));
}

.gate-hero {
  width: 100%;
  height: 170px;
  margin: 2px auto 6px;
  display: block;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 12px;
  background: #fff7fb;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.site-gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(51, 16, 37, 0.5);
  backdrop-filter: blur(5px);
  z-index: 50;
}

.gate-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(103, 32, 68, 0.3);
  padding: 26px;
  display: grid;
  gap: 12px;
}

.gate-form {
  display: grid;
  gap: 10px;
}


.is-locked {
  overflow: hidden;
}

.is-locked #appShell {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.is-unlocked #siteGate {
  display: none;
}

.is-unlocked #appShell {
  visibility: visible;
  pointer-events: auto;
}

.app-shell {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px 28px;
  display: grid;
  gap: 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-right {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 0;
  margin-left: auto;
}



.notif-bell {
  position: relative;
  border: 1px solid #f5cfe2;
  background: #fff0f7;
  color: #9c2f64;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.notif-icon {
  font-size: 1.1rem;
}

.notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.bell-info {
  min-height: 18px;
  font-size: 0.78rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.tab-btn.active {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.tab-btn[data-tab="admin"] {
  background: #fff7fb;
  border-color: #f3cade;
  color: #8c3a64;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.form-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffd5e9;
  border-color: var(--primary);
}

textarea {
  resize: vertical;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.btn-danger {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
}

.btn-danger {
  background: #ffebf2;
  color: var(--danger-text);
  border: 1px solid #ffcddd;
}

.stack {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.notify-card {
  border: 1px solid #f3cade;
  border-radius: 12px;
  background: #fff3f8;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notify-card p {
  color: #7b2d57;
  font-weight: 600;
}


.request-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.request-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f9edf4;
  color: #8a4768;
}

.badge[data-status="Tamamlandı"],
.badge[data-status="Kabul Edildi"] {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge[data-status="İnceleniyor"] {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.badge[data-status="Reddedildi"] {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.content {
  color: #3a2f3a;
}

.result-box {
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 8px;
  display: grid;
  gap: 4px;
}

.inline-form {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.notify-send-card {
  margin-bottom: 12px;
}

.admin-form {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

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



.daily-love-card {
  margin-top: 14px;
  border: 1px solid #f6d8e9;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #fff3f9, #fffdfd);
}

.daily-love-text {
  margin-top: 6px;
  font-weight: 600;
  color: #7d355b;
}

.love-calendar-card {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.love-calendar-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.calendar-item {
  border: 1px solid #f2d4e5;
  border-radius: 12px;
  padding: 10px;
  background: #fff8fc;
}

.calendar-item h4 {
  font-size: 0.96rem;
}

.calendar-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: #8b3d66;
  margin-bottom: 5px;
}

.activity-timeline {
  margin-top: 6px;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  align-items: start;
}

.activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d64a8a;
  margin-top: 6px;
}

.activity-item p {
  margin: 0;
  font-size: 0.92rem;
}

.activity-item small {
  color: var(--muted);
}

.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.presence-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.presence-badge.online {
  color: #1a8a52;
  background: #e8f8ef;
}

.presence-badge.online::before {
  background: #1a8a52;
}

.presence-badge.offline {
  color: #8c3a64;
  background: #fff0f7;
}

.presence-badge.offline::before {
  background: #c97ea6;
}

.love-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 60;
}

.love-heart {
  position: fixed;
  font-size: 18px;
  opacity: 0;
  animation: loveUp 1400ms ease-out forwards;
}

.celebration-heart {
  position: fixed;
  font-size: 17px;
  opacity: 0;
  animation: celebrationPop 1500ms ease-out forwards;
}

@keyframes loveUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-140px) scale(1.5);
    opacity: 0;
  }
}

@keyframes celebrationPop {
  0% {
    transform: translateY(0) scale(0.7) rotate(0deg);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(-180px) scale(1.4) rotate(18deg);
    opacity: 0;
  }
}


.hidden {
  display: none;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
  }

  .topbar-right {
    width: 100%;
    justify-items: start;
  }

  .tabs {
    justify-content: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    margin-top: 16px;
    padding-bottom: 16px;
  }

  .gate-card {
    padding: 20px;
  }

  .topbar-right {
    min-width: 100%;
  }

  .tabs {
    width: 100%;
    justify-content: stretch;
  }

  .tab-btn {
    width: 100%;
  }

  .brand-logo-frame {
    width: 150px;
    height: 68px;
  }

  .brand-logo {
    width: 100%;
    height: 100%;
  }

  .gate-hero {
    height: 140px;
  }
}
