/* ================================================================
   FIYONK — Arkadaşlar listesi
   402 × 874. Light + amber. Her satırda "arkadaşlıktan çıkar" butonu.
   ================================================================ */

:root {
  --slate-950: #020618;
  --slate-700: #314158;
  --slate-600: #45556c;
  --slate-500: #62748e;
  --slate-400: #90a1b9;
  --slate-300: #cad5e2;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --amber-500: #ffb900;
  --amber-600: #fe9a00;
  --green-500: #00c950;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --white: #ffffff;

  --stage-bg: #e7eaf0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--stage-bg);
  color: var(--slate-950);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button {
  background: none; border: 0; color: inherit;
  font: inherit; cursor: pointer; padding: 0;
}
ul { list-style: none; margin: 0; padding: 0; }

/* ----------------------------------------------------------------
   Stage / phone
---------------------------------------------------------------- */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.phone {
  position: relative;
  width: 402px;
  height: 874px;
  overflow: hidden;
  background: var(--white);
  isolation: isolate;
}

/* ----------------------------------------------------------------
   Status bar
---------------------------------------------------------------- */
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62px;
  z-index: 50;
  padding: 18px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--slate-950);
  font-size: 17px;
  font-weight: 600;
  background: var(--white);
  pointer-events: none;
}
.status-bar__icons { display: flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------------
   App bar
---------------------------------------------------------------- */
.appbar {
  position: absolute;
  top: 62px; left: 0; right: 0;
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  z-index: 5;
}
.back-btn {
  width: 32px;
  height: 40px;
  color: var(--slate-950);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}
.back-btn:hover { color: var(--slate-600); }
.appbar__title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-950);
  letter-spacing: -0.3px;
}

/* ----------------------------------------------------------------
   Search bar
---------------------------------------------------------------- */
.search {
  position: absolute;
  top: 118px; left: 0; right: 0;
  height: 60px;
  padding: 8px 16px 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  z-index: 4;
}
.search__icon {
  position: absolute;
  left: 30px;
  color: var(--slate-400);
  display: inline-flex;
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 44px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 999px;
  padding: 0 16px 0 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-950);
  outline: none;
  letter-spacing: -0.1px;
  transition: border-color .15s ease, background-color .15s ease;
}
.search__input::placeholder {
  color: var(--slate-400);
  font-weight: 500;
}
.search__input:focus {
  border-color: var(--amber-500);
  background: var(--white);
}

/* ----------------------------------------------------------------
   Body
---------------------------------------------------------------- */
.body {
  position: absolute;
  top: 178px; left: 0; right: 0; bottom: 0;
  padding: 4px 0 16px;
  overflow-y: auto;
  background: var(--white);
}
.body::-webkit-scrollbar { width: 0; }

.section-title {
  margin: 0;
  padding: 8px 20px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------
   Friend row
---------------------------------------------------------------- */
.friend-list {
  padding: 0 4px;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  position: relative;
}
.friend-row + .friend-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 76px;
  right: 16px;
  height: 1px;
  background: var(--slate-100);
}

.friend-row__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--slate-200);
}
.friend-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--green-500);
  border: 2px solid var(--white);
}

/* System avatars */
.friend-row__avatar--brand {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.brand-mark {
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-950);
  letter-spacing: -1px;
  line-height: 1;
}
.friend-row__avatar--support {
  background: var(--slate-700);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Body text */
.friend-row__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.friend-row__top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.friend-row__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-950);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.friend-row__name--brand { color: var(--amber-600); }
.friend-row__name--support { color: var(--slate-700); }

.verified {
  display: inline-flex;
  flex: 0 0 auto;
}
.friend-row__bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
}
.friend-row__flag {
  font-size: 14px;
  line-height: 1;
}

/* Remove button */
.remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--slate-50);
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color .15s ease, color .15s ease;
  border: 1px solid var(--slate-100);
}
.remove-btn:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.18);
}
.remove-btn:active { transform: translateY(1px); }
