:root {
  --bg: #f3f7f5;
  --card: #ffffff;
  --text: #16302a;
  --muted: #5d726c;
  --line: #dde7e3;
  --primary: #0f8b6e;
  --primary-ink: #ffffff;
  --primary-soft: #e2f4ee;
  --accent: #ff8a3d;
  --accent-soft: #fff0e5;
  --danger: #d64545;
  --danger-soft: #fdeaea;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(20, 60, 50, .07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a17;
    --card: #17241f;
    --text: #e6f1ed;
    --muted: #9bb0a9;
    --line: #27372f;
    --primary: #2fbf98;
    --primary-ink: #06231b;
    --primary-soft: #1b3a31;
    --accent: #ff9d5c;
    --accent-soft: #3a2617;
    --danger: #ff7272;
    --danger-soft: #3a1c1c;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
img { max-width: 100%; }
a { color: var(--primary); }
h2, h3 { line-height: 1.25; }
[hidden] { display: none !important; }

/* Üst bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--card); color: var(--text);
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, #e91e63, #ff7a00, #ffc107, #2fa84f, #1e6fd9, #7b2cbf) 1;
}
.topbar .logo { border-radius: 10px; background: #fff; flex: none; }
.topbar h1 { margin: 0; font-size: 1.1rem; color: #1e6fd9; font-weight: 800; }
@media (prefers-color-scheme: dark) { .topbar h1 { color: #7fb2ff; } }
#whoami { font-size: .8rem; color: var(--muted); }

main { max-width: 760px; margin: 0 auto; padding: 16px; }

/* Alt menü */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabs a {
  flex: 1; max-width: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 2px; border-radius: 12px;
  color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600;
}
.tabs a span { font-size: 1.35rem; line-height: 1.2; }
.tabs a.active { color: var(--primary); background: var(--primary-soft); }

/* Kartlar */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.card h3 { margin: 4px 0 2px; font-size: 1.08rem; }
.card p { margin: 8px 0; overflow-wrap: anywhere; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 1.35rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
time, .meta { color: var(--muted); font-size: .82rem; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; }
.empty .big { font-size: 2.6rem; display: block; }
.section-title { margin: 22px 0 10px; font-size: 1.05rem; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  font-size: .75rem; font-weight: 700; background: var(--primary-soft); color: var(--primary);
}
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.st-yeni { background: var(--accent-soft); color: var(--accent); }
.badge.st-inceleniyor { background: #e7efff; color: #3866d6; }
.badge.st-planlandi { background: #f1e8ff; color: #7a4bd1; }
.badge.st-tamamlandi { background: var(--primary-soft); color: var(--primary); }
.badge.st-uygun_degil { background: var(--danger-soft); color: var(--danger); }
@media (prefers-color-scheme: dark) {
  .badge.st-inceleniyor { background: #1d2a45; color: #8fb0ff; }
  .badge.st-planlandi { background: #2c2142; color: #c3a5ff; }
}

.ann.pinned { border-color: var(--accent); }
.ann-img, .sug-img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin: 10px 0; cursor: zoom-in; }
.sug-img { max-height: 220px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 11px 18px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--primary-soft); color: var(--primary);
}
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary-soft); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer; padding: 4px 8px; }

/* Formlar */
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 96px; }
input[type=file] { font: inherit; font-size: .9rem; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.hint { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }

.seg { display: flex; background: var(--bg); padding: 4px; border-radius: 14px; gap: 4px; margin-bottom: 6px; }
.seg button, .seg a {
  flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 10px;
  font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; text-align: center; text-decoration: none;
}
.seg .active { background: var(--card); color: var(--primary); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 7px 13px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); font-weight: 600; font-size: .85rem;
}
.chips input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); }

.photo-pick {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--line); border-radius: 14px; padding: 18px; cursor: pointer;
  color: var(--primary); font-weight: 700; margin: 12px 0 0;
}
.photo-preview { position: relative; margin-top: 10px; }
.photo-preview img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; display: block; }
.photo-preview button { position: absolute; top: 8px; right: 8px; }

/* Giriş */
.hero { text-align: center; padding: 26px 18px; background: linear-gradient(160deg, var(--primary-soft), var(--card)); }
.hero img { border-radius: 22px; }
.hero h2 { margin: 12px 0 6px; font-size: 1.5rem; }
.hero p { margin: 0 auto; max-width: 440px; color: var(--muted); }

/* Toplantılar */
.next-meeting { background: linear-gradient(150deg, var(--primary), #0b6b55); color: #fff; border: 0; }
.next-meeting .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; font-weight: 700; }
.next-meeting h3 { font-size: 1.3rem; margin: 6px 0; }
.next-meeting .when { font-size: 1.6rem; font-weight: 800; }
.next-meeting .btn { background: rgba(255, 255, 255, .18); color: #fff; }
.meeting-line { display: flex; gap: 14px; align-items: flex-start; }
.date-box {
  flex: none; width: 60px; text-align: center; border-radius: 14px; padding: 6px 0;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; line-height: 1.1;
}
.date-box .d { font-size: 1.5rem; display: block; }
.date-box .m { font-size: .75rem; text-transform: uppercase; }
details.card summary { cursor: pointer; font-weight: 700; }

/* Etkinlikler */
.event.featured { border: 2px solid var(--accent); background: linear-gradient(160deg, var(--accent-soft), var(--card) 60%); }
.event .badge + .ann-img, .event .badge + h3 { margin-top: 10px; }
.rsvp { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rsvp .btn { flex: 1; min-width: 140px; }
.btn.no-on { background: var(--danger); color: #fff; }
.people { margin: 6px 0 14px; padding-left: 24px; }
.people li { padding: 3px 0; }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-item { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.g-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.g-item figcaption { padding: 8px 10px; font-size: .8rem; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.g-item figcaption .btn { margin-top: 6px; align-self: flex-start; }

/* Meclis şeması */
.org-chart ul { list-style: none; margin: 0; padding-left: 22px; position: relative; }
.org-chart > ul { padding-left: 0; }
.org-chart li { position: relative; padding: 6px 0 6px 0; }
.org-chart ul ul li::before {
  content: ""; position: absolute; left: -14px; top: 0; bottom: 0; border-left: 2px solid var(--line);
}
.org-chart ul ul li:last-child::before { bottom: auto; height: 38px; }
.org-chart ul ul li::after {
  content: ""; position: absolute; left: -14px; top: 38px; width: 12px; border-top: 2px solid var(--line);
}
.member-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow);
}
.org-chart > ul > li > .member-card { border: 2px solid var(--primary); }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: var(--accent-soft); color: var(--accent);
}
.member-card .info { flex: 1; min-width: 0; }
.member-card .name { font-weight: 800; }
.member-card .role { color: var(--primary); font-weight: 700; font-size: .85rem; }
.member-card .bio { color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* Yönetim / analiz */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.kpi .v { font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.kpi .l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.insights { margin: 0; padding-left: 20px; }
.insights li { margin: 6px 0; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 34px; gap: 8px; align-items: center; font-size: .85rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 14px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.bars.accent .bar-fill { background: var(--accent); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .7rem; color: var(--muted); }
.col .bar { width: 100%; max-width: 28px; background: var(--primary); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.col .bar b { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); color: var(--text); font-size: .72rem; }
.cloud { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.cloud span { color: var(--primary); font-weight: 700; }
.cloud span:nth-child(3n) { color: var(--accent); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 .card { margin-bottom: 0; } }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters input { grid-column: 1 / -1; }
.admin-box { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.admin-box label { margin-top: 6px; }
.reply { background: var(--primary-soft); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: .92rem; }
.reply b { color: var(--primary); }
.user-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.user-row .info { flex: 1; min-width: 160px; }

/* Modal ve bildirim */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(5, 20, 15, .55);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: var(--card); width: 100%; max-width: 620px; max-height: 92vh; overflow: auto;
  border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .modal { align-items: center; } .sheet { border-radius: 22px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 1.2rem; }
.sheet.photo { padding: 8px; background: #000; }
.sheet.photo img { display: block; width: 100%; max-height: 85vh; object-fit: contain; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60; text-align: center;
  bottom: calc(90px + env(safe-area-inset-bottom));
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 14px;
  font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.toast.error { background: var(--danger); color: #fff; }
.spinner { text-align: center; padding: 40px; color: var(--muted); }
.hero img { background: #fff; border-radius: 18px; }

/* Duyuru sayfası bildirimleri */
.banner {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; border: 2px solid transparent;
}
.banner.poll { background: #efe6ff; border-color: #c9b2f5; }
.banner.join { background: var(--accent-soft); border-color: #ffc59c; }
@media (prefers-color-scheme: dark) {
  .banner.poll { background: #2c2142; border-color: #4b3a70; }
  .banner.join { border-color: #6a4223; }
}
.banner-icon { font-size: 2rem; flex: none; }

/* Menü kutucukları */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.tile:hover, .tile:focus-visible { border-color: var(--primary); }
.tile-icon { font-size: 2.2rem; line-height: 1.2; }
.game-tile { background: linear-gradient(160deg, #e3f6ff, var(--card)); }
@media (prefers-color-scheme: dark) { .game-tile { background: linear-gradient(160deg, #15303b, var(--card)); } }
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--primary); }

/* Sohbet */
.chat { height: 55vh; min-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.msg { align-self: flex-start; max-width: 85%; background: var(--bg); border-radius: 16px 16px 16px 4px; padding: 8px 12px; }
.msg.mine { align-self: flex-end; background: var(--primary-soft); border-radius: 16px 16px 4px 16px; }
.msg.admin { border: 2px solid var(--accent); }
.msg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; }
.msg-head time { font-size: .72rem; }
.msg-body { overflow-wrap: anywhere; }
.msg-del { border: 0; background: none; cursor: pointer; font-size: .8rem; opacity: .55; padding: 0 2px; margin-left: auto; }
.msg-del:hover { opacity: 1; }
.chat-form {
  position: sticky; bottom: calc(76px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; background: var(--bg); padding: 6px 0;
}
.chat-form input { flex: 1; }

/* Anketler */
.poll-options { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.poll-option { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin: 0; cursor: pointer; }
.poll-results { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.poll-label { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 3px; }
.poll-row.mine .bar-fill { background: var(--accent); }

/* Başvuru durumları */
.badge.app-bekliyor { background: var(--accent-soft); color: var(--accent); }
.badge.app-gorusme { background: #e7efff; color: #3866d6; }
.badge.app-kabul { background: var(--primary-soft); color: var(--primary); }
.badge.app-uygun_degil { background: var(--danger-soft); color: var(--danger); }
.app-line + .app-line { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }

/* Oyunlar */
.game-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.game-canvas {
  width: 100%; max-width: 380px; aspect-ratio: 360 / 560; border-radius: 20px; display: block;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; box-shadow: var(--shadow);
}
.leaderboard { margin: 6px 0; padding-left: 26px; }
.leaderboard li { padding: 4px 0; }
.leaderboard li span { display: inline-block; min-width: 60%; }
.leaderboard li.me { color: var(--primary); font-weight: 700; }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin: 0 auto; }
.memory-card {
  aspect-ratio: 1; border: 0; border-radius: 14px; cursor: pointer; font-size: 2rem; position: relative;
  background: linear-gradient(145deg, #1e6fd9, #7b2cbf); color: #fff; transition: transform .25s;
}
.memory-card .front { display: none; }
.memory-card .back { font-weight: 800; }
.memory-card.open, .memory-card.done { background: var(--card); border: 2px solid var(--line); transform: rotateY(360deg); }
.memory-card.open .front, .memory-card.done .front { display: inline; }
.memory-card.open .back, .memory-card.done .back { display: none; }
.memory-card.done { border-color: var(--primary); background: var(--primary-soft); }

/* ================= Renkli, çocuklara uygun tema ================= */
:root {
  --c1: #ff5d8f; /* pembe */
  --c2: #ff9f1c; /* turuncu */
  --c3: #ffd23f; /* sarı */
  --c4: #2ec4b6; /* turkuaz */
  --c5: #3a86ff; /* mavi */
  --c6: #9b5de5; /* mor */
  --confetti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg opacity='.55'%3E%3Ccircle cx='20' cy='30' r='6' fill='%23ff5d8f'/%3E%3Ccircle cx='160' cy='40' r='5' fill='%233a86ff'/%3E%3Ccircle cx='90' cy='120' r='7' fill='%23ffd23f'/%3E%3Ccircle cx='190' cy='170' r='6' fill='%232ec4b6'/%3E%3Ccircle cx='40' cy='190' r='5' fill='%239b5de5'/%3E%3Crect x='110' y='20' width='12' height='5' rx='2' fill='%23ff9f1c' transform='rotate(30 116 22)'/%3E%3Crect x='60' y='70' width='12' height='5' rx='2' fill='%232ec4b6' transform='rotate(-25 66 72)'/%3E%3Crect x='150' y='110' width='12' height='5' rx='2' fill='%23ff5d8f' transform='rotate(60 156 112)'/%3E%3Crect x='100' y='190' width='12' height='5' rx='2' fill='%233a86ff' transform='rotate(-40 106 192)'/%3E%3Cpath d='M200 80l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z' fill='%23ffd23f'/%3E%3Cpath d='M30 110l2.5 5.5 6 .8-4.3 4.2 1 6-5.2-2.8-5.2 2.8 1-6-4.3-4.2 6-.8z' fill='%23ff9f1c'/%3E%3C/g%3E%3C/svg%3E");
}
body {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background-color: #fff7e8;
  background-image:
    var(--confetti),
    radial-gradient(circle at 0% 0%, #ffd6e7 0, transparent 45%),
    radial-gradient(circle at 100% 10%, #d4ecff 0, transparent 45%),
    radial-gradient(circle at 100% 100%, #d9f7e8 0, transparent 50%),
    radial-gradient(circle at 0% 100%, #fff0b3 0, transparent 50%),
    linear-gradient(160deg, #fff4f8, #f3f9ff 50%, #f4fff6);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #141327;
    background-image:
      var(--confetti),
      radial-gradient(circle at 0% 0%, #3b1d3a 0, transparent 45%),
      radial-gradient(circle at 100% 10%, #1b2c4f 0, transparent 45%),
      radial-gradient(circle at 100% 100%, #15392f 0, transparent 50%),
      radial-gradient(circle at 0% 100%, #3a3115 0, transparent 50%),
      linear-gradient(160deg, #1a1630, #121a2c);
  }
}

/* Başlıklar gökkuşağı renginde */
.page-head h2 {
  font-size: 1.5rem; font-weight: 900;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c5), var(--c6));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar { box-shadow: 0 4px 14px rgba(155, 93, 229, .12); }
.topbar h1 {
  background: linear-gradient(90deg, var(--c5), var(--c6), var(--c1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Kartlar: yuvarlak, renkli üst şerit */
.card { border-radius: 22px; border: 0; box-shadow: 0 6px 18px rgba(80, 60, 140, .10); position: relative; overflow: hidden; }
main > .card::before, main > article.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c4);
}
main > .card:nth-child(6n+1)::before { background: var(--c1); }
main > .card:nth-child(6n+2)::before { background: var(--c2); }
main > .card:nth-child(6n+3)::before { background: var(--c5); }
main > .card:nth-child(6n+4)::before { background: var(--c4); }
main > .card:nth-child(6n+5)::before { background: var(--c6); }
main > .card:nth-child(6n)::before { background: var(--c3); }
.card.hero::before, .next-meeting::before, .chat::before { display: none; }
.card.chat { overflow-y: auto; }
.hero { background: linear-gradient(160deg, #ffe3ef, #e3f0ff 55%, #e6fff2); }
@media (prefers-color-scheme: dark) { .hero { background: linear-gradient(160deg, #3b1d3a, #1b2c4f 55%, #15392f); } }
.next-meeting { background: linear-gradient(140deg, var(--c5), var(--c6)); }

/* Düğmeler daha neşeli */
.btn { border-radius: 99px; transition: transform .12s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, var(--c4), var(--c5)); color: #fff; }
.btn.accent { background: linear-gradient(135deg, var(--c2), var(--c1)); color: #fff; }

/* Menü kutucukları her biri farklı renk */
.tile { border: 0; border-radius: 22px; box-shadow: 0 6px 16px rgba(80, 60, 140, .12); transition: transform .15s; }
.tile:hover { transform: translateY(-3px) rotate(-1deg); }
.tiles .tile:nth-child(6n+1) { background: linear-gradient(160deg, #ffd6e7, #fff); }
.tiles .tile:nth-child(6n+2) { background: linear-gradient(160deg, #ffe4c2, #fff); }
.tiles .tile:nth-child(6n+3) { background: linear-gradient(160deg, #d4ecff, #fff); }
.tiles .tile:nth-child(6n+4) { background: linear-gradient(160deg, #cff5ee, #fff); }
.tiles .tile:nth-child(6n+5) { background: linear-gradient(160deg, #ead9ff, #fff); }
.tiles .tile:nth-child(6n) { background: linear-gradient(160deg, #fff3b0, #fff); }
@media (prefers-color-scheme: dark) {
  .tiles .tile:nth-child(6n+1) { background: linear-gradient(160deg, #4a2340, var(--card)); }
  .tiles .tile:nth-child(6n+2) { background: linear-gradient(160deg, #4a3220, var(--card)); }
  .tiles .tile:nth-child(6n+3) { background: linear-gradient(160deg, #1e3456, var(--card)); }
  .tiles .tile:nth-child(6n+4) { background: linear-gradient(160deg, #17423b, var(--card)); }
  .tiles .tile:nth-child(6n+5) { background: linear-gradient(160deg, #36245a, var(--card)); }
  .tiles .tile:nth-child(6n) { background: linear-gradient(160deg, #4a4119, var(--card)); }
}

/* Alt menü: seçili sekme renkli */
.tabs { border-top: 0; box-shadow: 0 -4px 16px rgba(80, 60, 140, .12); border-radius: 22px 22px 0 0; }
.tabs a.active { color: #fff; background: linear-gradient(135deg, var(--c6), var(--c5)); }
.tabs a:nth-child(1).active { background: linear-gradient(135deg, var(--c1), var(--c2)); }
.tabs a:nth-child(2).active { background: linear-gradient(135deg, var(--c5), var(--c4)); }
.tabs a:nth-child(3).active { background: linear-gradient(135deg, var(--c2), var(--c3)); color: #4a2d00; }
.tabs a:nth-child(4).active { background: linear-gradient(135deg, var(--c4), var(--c5)); }

/* Öne çıkan etkinlik ve galeri */
.event.featured { border: 3px solid var(--c2); background: linear-gradient(160deg, #fff0d6, var(--card) 60%); }
@media (prefers-color-scheme: dark) { .event.featured { background: linear-gradient(160deg, #4a3220, var(--card) 60%); } }
.g-item { border: 0; border-radius: 18px; box-shadow: 0 6px 16px rgba(80, 60, 140, .12); }
.g-item:nth-child(odd) { transform: rotate(-1deg); }
.g-item:nth-child(even) { transform: rotate(1deg); }
.badge { font-weight: 800; }
