
/* RESET */
*{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
img{max-width:100%;height:auto;}

/* PAGE */
body{
  margin:0;
  background:linear-gradient(180deg,#f8fafc 0%, #f3f4ff 55%, #f8fafc 100%);
  color:#1f2937;
}

/* CONTAINER */
.mobile-container{
  max-width:420px;
  margin:0 auto;
  padding:24px 16px;
}

/* NEW NAV (Topbar + Drawer) */
.has-topbar .app-title{display:none;}

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  margin:-24px -16px 16px;
  background:linear-gradient(135deg,#111827 0%, #0ea5e9 60%, #22c55e 120%);
  color:#fff;
  border-bottom-left-radius:18px;
  border-bottom-right-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.topbar-center{min-width:0;text-align:center;}
.topbar-brand{font-size:12px;opacity:.85;font-weight:700;letter-spacing:.2px}
.topbar-title{font-size:15px;font-weight:800;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:#fff;
  text-decoration:none;
}
.icon-btn:active{transform:scale(.98)}

.mobile-content{min-height:calc(100vh - 80px)}
.mobile-content.no-topbar{min-height:100vh}

.drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  z-index:50;
}

.drawer{
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  width:min(340px,86vw);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  z-index:60;
  padding:14px;
  transform:translateX(-110%);
  transition:transform .22s ease;
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}
.drawer-open .drawer{transform:translateX(0)}

.drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 8px 14px;
}
.drawer-brand{font-weight:900;font-size:18px;line-height:1}
.drawer-sub{font-size:12px;color:#64748b;margin-top:2px}

.drawer-profile{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 10px;
  border-radius:16px;
  background:rgba(15,23,42,.04);
  text-decoration:none;
  color:#0f172a;
}
.drawer-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  object-fit:cover;
  flex:0 0 42px;
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 8px 16px rgba(0,0,0,.10);
}
.drawer-profile-text{min-width:0}
.drawer-name{font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.drawer-phone{font-size:12px;color:#64748b;margin-top:2px}

.drawer-item{
  --accent:#0ea5e9;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 10px;
  border-radius:14px;
  color:#0f172a;
  text-decoration:none;
  font-weight:700;
}
.drawer-item .nav-ico{
  width:38px;
  height:38px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--accent), rgba(255,255,255,.0));
  color:#fff;
  box-shadow:0 10px 22px rgba(2,6,23,.18);
}
.drawer-item.is-active{background:rgba(15,23,42,.06)}
.drawer-item.is-dashboard{--accent:#22c55e}
.drawer-item.is-classes{--accent:#0ea5e9}
.drawer-item.is-program{--accent:#f59e0b}
.drawer-item.is-announcements{--accent:#e11d48}
.drawer-item.is-profile{--accent:#a855f7}
.drawer-item.is-logout{--accent:#ef4444}
.drawer-badge{margin-left:auto;background:#e11d48;color:#fff;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:800;line-height:1}
.drawer-sep{height:1px;background:rgba(15,23,42,.10);margin:10px 6px}

/* HEADER */
.app-title{
  text-align:center;
  font-size:22px;
  font-weight:700;
  margin-bottom:24px;
  color:#111827;
}

/* CARD */
.card{
  background:#ffffff;
  border-radius:16px;
  padding:20px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

/* FORM */
.form-group{
  margin-bottom:16px;
}
label{
  display:block;
  font-size:14px;
  color:#6b7280;
  margin-bottom:6px;
}
input{
  width:100%;
  height:46px;
  border-radius:12px;
  border:1px solid #d1d5db;
  padding:0 14px;
  font-size:16px;
}
input:focus{
  outline:none;
  border-color:#9ca3af;
}

/* BUTTON */
.btn{
  width:100%;
  height:46px;
  border:none;
  border-radius:12px;
  background:#111827;
  color:#fff;
  font-size:16px;
  font-weight:600;
}

/* disabled states (özellikle "İptal" gibi butonlarda aktif görünmesin) */
.btn:disabled,
.btn[disabled],
.btn-primary:disabled,
.btn-secondary:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.btn-secondary:disabled{
  background:#f3f4f6;
  border-color:#e5e7eb;
  color:#6b7280;
}

/* NOTE */
.note{
  font-size:13px;
  color:#6b7280;
  margin-top:14px;
  line-height:1.4;
}

/* DASHBOARD */
.profile{
  text-align:center;
}
.profile img{
  width:90px;
  height:90px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:12px;
}

.profile-meta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
  font-size:13px;
  color:#6b7280;
}
.profile-meta i{opacity:.75}
.profile-meta .dot{opacity:.55}

.quick-action{border:1px dashed #d1d5db;}

.trainer-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  margin-top:10px;
}
.trainer-avatar{
  width:54px;
  height:54px;
  border-radius:999px;
  object-fit:cover;
  flex:0 0 54px;
}
.trainer-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f3f4f6;
  color:#6b7280;
}
.trainer-name{font-weight:700;}
.trainer-hint{font-size:12px;color:#6b7280;margin-top:2px;}

/* DASH HERO */
.dash-hero{
  border-radius:20px;
  padding:16px;
  color:#fff;
  background:linear-gradient(135deg,#111827 0%, #2563eb 55%, #22c55e 120%);
  box-shadow:0 10px 30px rgba(2,6,23,.18);
  margin:10px 0 16px;
}
.dash-hero-top{display:flex;align-items:center;gap:12px;}
.hero-avatar{
  width:54px;height:54px;border-radius:999px;object-fit:cover;
  border:2px solid rgba(255,255,255,.7);
  background:rgba(255,255,255,.15);
}
.hero-fallback{
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.85);
}
.dash-hello{font-weight:800;font-size:16px;line-height:1.2}
.dash-sub{opacity:.92;font-size:13px;margin-top:2px}
.dash-meta{display:flex;gap:10px;flex-wrap:wrap;opacity:.92;font-size:12px;margin-top:6px}
.dash-meta i{opacity:.9}

.dash-kpi-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.dash-kpi{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  padding:10px 12px;
}
.kpi-label{font-size:11px;opacity:.9}
.kpi-value{font-size:18px;font-weight:900;margin-top:4px}
.kpi-sub{font-size:12px;font-weight:700;opacity:.85;margin-left:2px}

.dash-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.dash-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.dash-chip i{opacity:.95}
.dash-chip:active{transform:scale(.99)}
.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:16px;
}
.stat{
  background:#f9fafb;
  border-radius:12px;
  padding:14px;
  text-align:center;
}
.stat strong{
  display:block;
  font-size:18px;
  margin-top:6px;
}

/* BRAND */
.brand{
  display:flex;
  justify-content:center;
  margin:4px 0 14px;
}
.brand img{
  height:42px;
  width:auto;
  border-radius:10px;
}

/* PILL NAV */
.pill-nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:16px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #e5e7eb;
  color:#111827;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
}
.pill i{opacity:.85}
.pill.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

/* BUTTONS (used in pages) */
.btn-primary,.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:46px;
  border-radius:12px;
  padding:0 14px;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  border:1px solid transparent;
}
.btn-primary{background:#111827;color:#fff;}
.btn-secondary{background:#fff;color:#111827;border-color:#d1d5db;}
.w-100{width:100%;}

/* ALERTS */
.alert-success,.alert-danger{
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:12px;
  font-size:14px;
}
.alert-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;}
.alert-danger{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;}

/* FORM CONTROLS (profile page) */
.form-label{display:block;font-size:14px;color:#6b7280;margin-bottom:6px;}
.form-control{
  width:100%;
  min-height:46px;
  border-radius:12px;
  border:1px solid #d1d5db;
  padding:10px 14px;
  font-size:16px;
  background:#fff;
}
textarea.form-control{min-height:auto;}
.form-control:focus{outline:none;border-color:#9ca3af;}

/* MEMBER PAGE (profile) */
.member-profile-page{max-width:1100px;margin:0 auto;}
.member-card{
  background:#ffffff;
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  margin-bottom:12px;
}
.member-card-header{display:flex;align-items:center;gap:16px;}
.member-avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;background:#e5e7eb;flex-shrink:0;}
.member-avatar img{width:100%;height:100%;object-fit:cover;}
.member-name{font-size:18px;font-weight:700;}
.member-meta{font-size:13px;color:#6b7280;line-height:1.4;}
.member-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.btn-chip{
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#111827;
  text-decoration:none;
}

/* CLASSES PAGE */
.classes-page{max-width:1100px;margin:0 auto;}
.day-header{display:flex;align-items:center;justify-content:space-between;margin:6px 0 12px;gap:10px;}
.day-header h2{font-size:16px;margin:0;}
.day-nav{display:flex;gap:6px;}
.day-nav a{padding:8px 12px;border-radius:999px;border:1px solid #d1d5db;font-size:13px;color:#111827;text-decoration:none;background:#fff;}
.class-row{display:flex;align-items:flex-start;gap:12px;}
.class-time{width:64px;text-align:center;font-size:13px;color:#6b7280;}
.class-main{flex:1;}
.class-meta{font-size:12px;color:#6b7280;}
.badge-state{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;background:#eef2ff;margin-top:6px;}
.badge-full{background:#fef2f2;color:#991b1b;}
.badge-reserved{background:#ecfdf5;color:#065f46;}
.text-danger-sm{font-size:12px;color:#991b1b;margin-top:6px;}

/* PROGRAM (WEEKLY) PAGE */
.program-table{display:flex;flex-direction:column;gap:12px;}
.program-row{display:grid;grid-template-columns:92px 1fr;gap:10px;align-items:flex-start;}
.program-day{padding:10px 8px;background:#f9fafb;border:1px solid #eef2f7;border-radius:12px;text-align:center;}
.program-day-name{font-weight:800;font-size:13px;color:#111827;}
.program-day-date{font-size:12px;color:#6b7280;margin-top:2px;}
.program-items{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;}
.program-items::-webkit-scrollbar{height:6px;}
.program-pill{min-width:220px;flex:0 0 auto;border-radius:12px;padding:10px 12px;border:1px solid #111827;background:#111827;color:#fff;text-decoration:none;}
.program-pill-title{font-weight:800;font-size:13px;margin:0 0 2px;}
.program-pill-meta{font-size:12px;opacity:.92;line-height:1.2;}
.program-empty{font-size:14px;color:#6b7280;padding:10px 0;}

@media (min-width: 768px){
  .member-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
}
/* SPACING */
.card + .card{margin-top:16px;}
.card-pad{padding:18px;}

/* SECTION TITLES + LISTS (dashboard cards) */
.section-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  font-weight:800;
  margin:0 0 10px;
  color:#111827;
}
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.list-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:12px;
  background:#f9fafb;
  border-radius:12px;
  border:1px solid #eef2f7;
}
.list-item .left{min-width:0;}
.list-item .title{
  margin:0;
  font-weight:800;
  font-size:14px;
  color:#111827;
}
.list-item .desc{
  font-size:13px;
  color:#6b7280;
  margin-top:4px;
  line-height:1.25;
}
.list-item .right{
  font-weight:800;
  color:#111827;
  white-space:nowrap;
  font-size:13px;
}
.empty-state{
  padding:12px;
  background:#f9fafb;
  border-radius:12px;
  border:1px solid #eef2f7;
  color:#6b7280;
  font-size:14px;
}

/* BRAND (logo) - panelde artık kullanılmıyor */
.brand{display:none;}

/* Login/PIN ekranında logo görünsün */
.auth-page .brand{display:flex;}


/* AUTH (LOGIN) PAGE */
.auth-page{
  min-height:100vh;
  background:#ffffff;
}
.auth-container{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:40px 16px;
}
.auth-container .brand img{
  display:block;
  margin:0 auto;
  max-width:180px;
  height:auto;
  filter: drop-shadow(0 10px 20px rgba(15,23,42,.25));
}
.auth-container .member-card,
.auth-container .card,
.auth-container .login-card{
  background:#fff;
  border-radius:18px;
  box-shadow: 0 25px 60px rgba(15,23,42,0.18);
}

.auth-container > *{width:100%; max-width:420px;}

.auth-container .card{margin:0 auto;}
.auth-container .app-title{text-align:center;margin-bottom:16px;}

/* FLOATING ACTION BUTTON */
.has-fab .mobile-content{padding-bottom:96px;}
.fab{
  position:fixed;
  right:18px;
  bottom:18px;
  bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:80;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:56px;
  padding:0 16px;
  border-radius:999px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg, #22c55e, #0ea5e9);
  box-shadow:0 18px 40px rgba(2,132,199,.35);
  font-weight:800;
  letter-spacing:.2px;
}
.fab i{font-size:18px;}
.fab:active{transform:translateY(1px);}

/* ANNOUNCEMENTS MODAL */
body.ann-modal-open{overflow:hidden;}
.ann-modal{position:fixed; inset:0; z-index:2200; display:none;}
.ann-modal.open{display:block;}
.ann-modal__overlay{position:absolute; inset:0; background:rgba(15,23,42,.55); backdrop-filter: blur(4px);}
.ann-modal__dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(92vw, 720px);
  max-height:85vh;
  background:rgba(255,255,255,.96);
  border-radius:22px;
  border:1px solid rgba(148,163,184,.25);
  box-shadow:0 24px 70px rgba(15,23,42,.35);
  overflow:hidden;
}
.ann-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid rgba(148,163,184,.22);
}
.ann-modal__title{font-weight:900; font-size:16px; line-height:1.2;}
.ann-modal__meta{margin-top:4px; font-size:12px; opacity:.7;}
.ann-modal__body{
  padding:16px;
  overflow:auto;
  max-height:calc(85vh - 120px);
  line-height:1.65;
}
.ann-modal__footer{
  padding:12px 16px;
  border-top:1px solid rgba(148,163,184,.22);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

/* ------------------------------
   DASHBOARD + UTILITIES
   (Used across member mobile pages)
---------------------------------*/

/* Lightweight utilities (avoid Bootstrap dependency) */
.text-muted{color:rgba(15,23,42,.55)}
.text-center{text-align:center}
.small{font-size:12px}
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}
.p-2{padding:10px}.p-3{padding:14px}

.btn-block{width:100%}
.btn-outline{background:rgba(255,255,255,.9);border:1px solid rgba(148,163,184,.35);color:#0f172a}
.btn-outline:active{transform:translateY(1px)}

/* Dashboard sections */
.dash-section{margin-top:16px}
.dash-section h3{
  display:flex;align-items:center;gap:10px;
  font-size:14px;font-weight:900;letter-spacing:.2px;
  margin:0 0 10px;color:#0f172a
}
.dash-section h3 i{color:rgba(15,23,42,.6)}
.dash-list{display:flex;flex-direction:column;gap:10px}

.dash-card{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(148,163,184,.18);
  border-radius:var(--radius);
  padding:12px;
  box-shadow:var(--shadow);
  text-decoration:none;
  color:#0f172a;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease
}
.dash-card:visited{color:#0f172a}
.dash-card:hover{border-color:rgba(148,163,184,.28)}
.dash-card:active{transform:translateY(1px)}

.dash-card .title{font-weight:900;font-size:14px;margin:0 0 2px}
.dash-card .sub{font-size:12px;color:rgba(15,23,42,.6);line-height:1.3}
.dash-card .date{font-size:12px;font-weight:900;color:rgba(15,23,42,.85)}
.dash-card .right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:64px}

.dash-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;
  font-size:12px;
  font-weight:800;
  border-radius:999px;
  background:rgba(225,29,72,.10);
  color:#e11d48;
  border:1px solid rgba(225,29,72,.16)
}

/* Make announcement titles look like text, not default links */
.dash-card .title, .dash-card .sub{word-break:break-word}

/* Announcements list page */
.ann-list{display:flex;flex-direction:column;gap:10px}
.ann-row{display:flex;gap:12px;align-items:flex-start}
.ann-row__icon{
  width:40px;height:40px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(148,163,184,.20);
  box-shadow:0 10px 25px rgba(15,23,42,.06)
}
.ann-row__icon i{color:rgba(15,23,42,.55)}
.ann-row__content{flex:1;min-width:0}
.ann-row__title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ann-row__title strong{font-weight:900}
.ann-row__meta{margin-top:4px;font-size:12px;color:rgba(15,23,42,.6)}
.ann-pill-new{background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.18);color:#166534}

