/* =============================================
   TheMeetyTalk — Üye Alanı Stilleri
   ============================================= */

.member-page {
  min-height: 100vh;
  background: var(--color-bg-secondary);
}

.member-page .header {
  position: sticky;
}

/* ---------- Login ---------- */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 80px;
}

.login-card {
  width: 100%;
  max-width: 520px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.login-portals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.login-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 10px 6px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.login-portal:hover {
  border-color: rgba(0, 120, 255, 0.35);
  background: var(--color-primary-subtle);
}

.login-portal--active {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.12);
}

.login-portal__icon {
  font-size: 1.125rem;
  line-height: 1;
}

.login-portal__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.login-portal--active .login-portal__label {
  color: var(--color-primary);
}

.login-portal-note {
  margin: -8px 0 20px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.login-portal-note a {
  color: var(--color-primary);
  font-weight: 600;
}

.login-portal-note a:hover {
  text-decoration: underline;
}

.login-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.login-card__header--compact {
  margin-bottom: 20px;
}

.login-card__intro {
  text-align: center;
  margin-bottom: 24px;
}

.login-card__logo {
  height: 48px;
  width: auto;
  max-width: 260px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.login-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}

.login-card__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.login-form__group {
  margin-bottom: 18px;
}

.login-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.login-form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.12);
}

.login-form__error {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #dc2626;
  font-size: 0.875rem;
  display: none;
}

.login-form__error.show {
  display: block;
}

.login-form__submit {
  width: 100%;
  margin-top: 8px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
}

.login-tab {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.login-tab--active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.login-demo {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.login-demo__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.login-demo__accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-demo__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.login-demo__btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.login-back:hover {
  color: var(--color-primary);
}

/* ---------- Dashboard Layout ---------- */
.dashboard {
  padding: 32px 0 80px;
}

.dashboard__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.profile-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.profile-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--color-primary-subtle);
  box-shadow: var(--shadow-md);
}

.profile-card__avatar-wrap {
  position: relative;
  width: 88px;
  margin: 0 auto 16px;
}

.profile-card__avatar-wrap .profile-card__avatar,
.profile-card__avatar-wrap .avatar-placeholder {
  margin: 0;
}

.profile-card__edit {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.profile-card__edit:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  user-select: none;
}

.profile-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.profile-card__title {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.profile-card__level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.profile-card__xp {
  margin-bottom: 8px;
}

.profile-card__xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.profile-card__xp-bar {
  height: 8px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.profile-card__xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.profile-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.profile-stat {
  text-align: center;
}

.profile-stat__num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.profile-stat__label {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.sidebar-nav {
  margin-top: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}

.sidebar-nav__link:last-child {
  border-bottom: none;
}

.sidebar-nav__link:hover,
.sidebar-nav__link.active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.sidebar-nav__link--logout {
  color: #dc2626;
}

.sidebar-nav__link--logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* ---------- Mobile dashboard chrome ---------- */
.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.dash-menu-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.dash-drawer-header,
.sidebar-drawer-footer {
  display: none;
}

.dash-sidebar-backdrop {
  display: none;
}

.dash-tabbar {
  display: none;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dash-section {
  display: none;
  flex-direction: column;
  gap: 28px;
}

.dash-section.is-active {
  display: flex;
}

.dashboard-welcome {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0056cc 100%);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  color: var(--color-white);
  box-shadow: 0 12px 40px var(--color-primary-glow);
}

.dashboard-welcome__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.dashboard-welcome__text {
  font-size: 0.9375rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 560px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.overview-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.overview-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.overview-panel__title {
  font-size: 1rem;
  font-weight: 800;
}

.overview-panel__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.overview-panel__link:hover {
  text-decoration: underline;
}

.overview-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  min-width: 72px;
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.overview-badge.earned {
  background: var(--color-primary-subtle);
  border-color: rgba(0, 120, 255, 0.2);
}

.overview-badge.locked {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.overview-badge__icon {
  font-size: 1.5rem;
}

.overview-badge__name {
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: var(--color-text-secondary);
}

.overview-event-mini {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.overview-event-mini:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.overview-event-mini__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.overview-event-mini__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.overview-event-mini__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.overview-featured-compact {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.overview-featured-compact__inner {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
}

.overview-featured-compact__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.overview-featured-compact__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.overview-featured-compact__title {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.overview-featured-compact__meta {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.overview-empty {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.event-item__featured-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
}

.featured-event-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--color-border);
}

.featured-event-empty__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.featured-event-empty__text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.dash-stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.dash-stat-card__icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.dash-stat-card__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.dash-stat-card__label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.section-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.section-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-panel__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.section-panel__subtitle {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ---------- Featured Event ---------- */
.featured-event {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.featured-event__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.featured-event__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.featured-event__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  color: var(--color-white);
}

.featured-event__badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.featured-event__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.featured-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.featured-event__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-event__capacity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.capacity-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
  max-width: 200px;
}

.capacity-bar__fill {
  height: 100%;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.capacity-text {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.featured-event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.featured-event__body {
  padding: 28px;
  background: var(--color-white);
}

.featured-event__address {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.event-gallery {
  margin-bottom: 24px;
}

.event-gallery__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.event-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.event-gallery__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.featured-event__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-event__perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--color-text);
}

.perk-item__icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Event Cards (Dashboard) ---------- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.event-item:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-sm);
}

.event-item__img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.event-item__date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.event-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.event-item__loc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.event-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.event-tag {
  padding: 3px 10px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
}

.event-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.event-item__capacity-sm {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.btn--registered {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.btn--registered:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.btn--pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.btn--pending:hover {
  background: #fde68a;
}

.login-event-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

.login-event-banner__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

/* ---------- Badges ---------- */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.badge-card {
  text-align: center;
  padding: 20px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  background: var(--color-white);
}

.badge-card.earned {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-sm);
}

.badge-card.earned:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.badge-card.locked {
  opacity: 0.45;
  filter: grayscale(0.8);
}

.badge-card__icon {
  font-size: 2.25rem;
  margin-bottom: 10px;
  display: block;
}

.badge-card__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.badge-card__desc {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-card {
  padding: 20px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.benefit-card__icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.benefit-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.benefit-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  padding: 16px 20px;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: #059669;
}

.toast--error {
  background: #dc2626;
}

/* ---------- QR Bilet Modal ---------- */
.qr-ticket-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.qr-ticket-overlay--open {
  opacity: 1;
  visibility: visible;
}

.qr-ticket-modal {
  position: relative;
  width: min(100%, 380px);
  padding: 28px 24px 24px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.qr-ticket-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.qr-ticket-modal__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.qr-ticket-modal__event {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.qr-ticket-modal__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin-bottom: 16px;
}

.qr-ticket-modal__canvas canvas {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.qr-ticket-modal__hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.nav__login {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.nav__panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  margin-right: 8px;
  transition: all var(--transition);
}

.nav__panel:hover {
  background: var(--color-primary-subtle);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dashboard__grid {
    display: block;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-event__perks {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-header-actions__desktop {
    display: none !important;
  }

  .dash-menu-btn {
    display: inline-flex;
  }

  .dashboard {
    padding: 16px 0 calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 260;
    width: min(320px, 88vw);
    margin: 0;
    padding: calc(var(--header-height) + 8px) 16px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--color-bg-secondary);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .dash-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .dash-drawer-header__title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--color-text);
  }

  .dash-drawer-header__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text-secondary);
    cursor: pointer;
  }

  .sidebar-drawer-footer {
    display: block;
    margin-top: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .sidebar-drawer-footer__link {
    border-bottom: none !important;
  }

  .dash-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .dash-sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.dash-drawer-open {
    overflow: hidden;
  }

  .dash-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .dash-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 4px 6px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text-muted);
    font-family: inherit;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    -webkit-tap-highlight-color: transparent;
  }

  .dash-tabbar__item.active {
    color: var(--color-primary);
    background: var(--color-primary-subtle);
  }

  .dash-tabbar__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .dash-tabbar__label {
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .dashboard-content {
    gap: 16px;
  }

  .dash-section {
    gap: 16px;
  }

  .member-page .toast {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .login-card {
    padding: 32px 24px;
  }

  .login-portals {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-portal {
    min-height: 64px;
  }

  .member-page .header .nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .overview-featured-compact__inner {
    grid-template-columns: 1fr;
  }

  .overview-featured-compact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .event-item__img {
    width: 100%;
    height: 160px;
  }

  .event-item__actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .featured-event__image {
    height: 200px;
  }

  .featured-event__content {
    padding: 20px;
  }

  .featured-event__actions {
    flex-direction: column;
  }

  .featured-event__actions .btn {
    width: 100%;
  }

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

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-panel {
    padding: 20px 16px;
  }

  .nav__login,
  .nav__panel {
    display: none;
  }

  .profile-card {
    padding: 22px 18px;
  }

  .profile-card__avatar-wrap,
  .profile-card__avatar {
    width: 72px;
    height: 72px;
  }

  .profile-card__avatar-wrap .avatar-placeholder {
    width: 72px;
    height: 72px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .badges-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-welcome {
    padding: 24px 20px;
  }
}

/* ---------- Kayıt başarı animasyonu ---------- */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.success-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  position: relative;
  width: min(100%, 400px);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px 32px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.success-overlay--visible .success-modal {
  transform: scale(1) translateY(0);
}

.success-modal__icon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}

.success-modal__circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  animation: successPulse 1.2s ease infinite;
}

.success-modal__check {
  position: relative;
  width: 88px;
  height: 88px;
}

.success-modal__check-circle {
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: successStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

.success-modal__check-path {
  stroke: var(--color-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successStroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

.success-modal__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
}

.success-modal__text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.success-modal__confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiPop 1.4s ease forwards;
}

.success-modal__confetti span:nth-child(1) { top: 18%; left: 12%; background: #0078ff; animation-delay: 0.3s; }
.success-modal__confetti span:nth-child(2) { top: 24%; right: 14%; background: #22c55e; animation-delay: 0.45s; }
.success-modal__confetti span:nth-child(3) { bottom: 28%; left: 18%; background: #f59e0b; animation-delay: 0.55s; }
.success-modal__confetti span:nth-child(4) { bottom: 22%; right: 20%; background: #ec4899; animation-delay: 0.4s; }
.success-modal__confetti span:nth-child(5) { top: 40%; left: 8%; background: #8b5cf6; animation-delay: 0.5s; }
.success-modal__confetti span:nth-child(6) { top: 36%; right: 10%; background: #0078ff; animation-delay: 0.35s; }

@keyframes successStroke {
  to { stroke-dashoffset: 0; }
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes confettiPop {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  30% { opacity: 1; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-28px) scale(0.6); }
}

/* ---------- Profil düzenleme ---------- */
.profile-edit__top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.profile-edit__avatar-wrap {
  text-align: center;
}

.profile-edit__avatar,
.profile-edit__avatar-wrap .avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--color-primary-subtle);
  box-shadow: var(--shadow-md);
  font-size: 2rem;
}

.profile-edit__upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.profile-edit__upload-btn:hover {
  background: rgba(0, 120, 255, 0.14);
}

.profile-edit__remove-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.profile-edit__remove-btn:hover {
  color: #dc2626;
}

.profile-edit__hint {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.profile-edit__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-edit__textarea {
  resize: vertical;
  min-height: 96px;
}

.profile-edit__actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* ---------- Admin panel ---------- */
.admin-hero {
  background: linear-gradient(135deg, #111827, #1e3a5f);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  margin-bottom: 28px;
}

.admin-hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.admin-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-hero__text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.admin-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-tool-card {
  padding: 24px 20px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.admin-tool-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 12px;
}

.admin-tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-tool-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.admin-info__list {
  margin: 16px 0 20px 20px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.admin-info__code {
  padding: 16px 18px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  overflow-x: auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .profile-edit__top,
  .profile-edit__row,
  .admin-tools {
    grid-template-columns: 1fr;
  }
}
