/* =========================================
   Teşvik Takip – Global Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

:root {
  --primary: #0F2A4D;
  --primary-light: #E9EEF5;
  --primary-dark: #0A1F3A;
  --success: #145A32;
  --success-light: #E3F0E7;
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface2: #F1F5F9;
  --border: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-tertiary: #6A7789; /* WCAG AA (4.5:1) için koyulaştırıldı — eski #94A3B8 beyaz üzerinde ~2.6:1 idi */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #E5E7EB;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── Phone wrapper ── */
#app-shell {
  position: relative;
  width: 390px;
  height: 844px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Center the phone on all screens */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Status bar */
.status-bar {
  height: 44px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
  z-index: 10;
}

.status-bar .time {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-bar .icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary);
}

.status-bar .icons .material-icons-round {
  font-size: 16px;
}

/* Screen container */
#screen-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Each screen */
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  display: none;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* Scrollbar */
.screen::-webkit-scrollbar { width: 3px; }
.screen::-webkit-scrollbar-track { background: transparent; }
.screen::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Bottom navigation ── */
.bottom-nav {
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-item .material-icons-round {
  font-size: 24px;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.nav-item span.label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.nav-item.active .material-icons-round {
  color: var(--primary);
}

.nav-item.active span.label {
  color: var(--primary);
  font-weight: 600;
}

.nav-item .badge {
  position: absolute;
  top: 6px;
  right: 50%;
  transform: translateX(12px);
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* ── Common components ── */

/* App header */
.app-header {
  background: var(--bg);
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-header .header-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.app-header .header-action:active { background: var(--surface2); }
.app-header .header-action .material-icons-round { font-size: 20px; color: var(--text-secondary); }

/* Search bar */
.search-bar {
  margin: 12px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  transition: var(--transition);
  cursor: text;
}

.search-bar:focus-within {
  border-color: var(--primary);
  background: var(--primary-light);
}

.search-bar .material-icons-round { font-size: 20px; color: var(--text-tertiary); }

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
}

.search-bar input::placeholder { color: var(--text-tertiary); }

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
}

.section-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-header .see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
}

.divider {
  height: 8px;
  background: var(--surface2);
  width: 100%;
  flex-shrink: 0;
}

/* Category chips */
.categories-scroll {
  padding: 4px 20px 24px;
  margin-bottom: -12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.chip.active, .chip:active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.chip .material-icons-round { font-size: 16px; }

/* Opportunity card */
.opp-card {
  margin: 0 20px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.opp-card:active { transform: scale(0.98); box-shadow: none; }

.opp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

.opp-card .card-org {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.opp-card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.opp-card .card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Opportunity card internals (renderOppCard / renderMatchCard) */
.oc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.oc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.oc-save {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.oc-save:active { background: var(--surface2); transform: scale(0.94); }
.oc-save .material-icons-round { font-size: 18px; color: var(--text-tertiary); }
.oc-save.saved { background: var(--primary-light); }
.oc-save.saved .material-icons-round { color: var(--primary); }

.oc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.oc-org {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 12px;
}

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

.oc-amount {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

.oc-amount .material-icons-round { font-size: 15px; }

.oc-deadline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}

.oc-deadline .material-icons-round { font-size: 14px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-gray { background: var(--surface2); color: var(--text-secondary); }

.card-deadline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--danger);
  margin-left: auto;
}

.card-deadline .material-icons-round { font-size: 14px; }

.card-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Featured card (horizontal scroll) */
.featured-scroll {
  padding: 4px 20px 24px;
  margin-bottom: -12px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 224px;
  min-height: 224px;
  max-height: 224px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.featured-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.featured-card:active { transform: scale(0.97); }

.featured-card .fc-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.featured-card .fc-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.featured-card .fc-org {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-card .fc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.featured-card .fc-deadline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.featured-card .fc-deadline .material-icons-round { font-size: 14px; }

.featured-card .fc-btn {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-primary:active { background: var(--primary-dark); transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:active { background: var(--primary-light); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
}

.btn-ghost:active { background: var(--surface2); }

.btn-full { width: 100%; }

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Icon button */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:active { background: var(--surface2); transform: scale(0.95); }
.icon-btn .material-icons-round { font-size: 20px; color: var(--text-secondary); }
.icon-btn.active .material-icons-round { color: var(--danger); }

/* ── Auth screens ── */
.auth-screen {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.auth-hero {
  background: linear-gradient(145deg, var(--primary) 0%, #0A1F3A 100%);
  padding: 40px 28px 32px;
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.auth-hero::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.nav-center-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: -15px;
  cursor: pointer;
  flex: 1;
}
.nav-center-btn {
  background: var(--primary);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(37,99,235,0.3);
  border: 4px solid var(--bg);
  transition: transform 0.2s;
}
.nav-center-btn:active {
  transform: scale(0.95);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-logo .logo-icon {
  width: 46px;
  height: 46px;
  background: #FFFFFF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.auth-logo .logo-icon .material-icons-round { font-size: 26px; color: white; }

.auth-logo .logo-text {
  color: white;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.auth-hero h2 {
  font-size: 26px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 8px;
}

.auth-hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.auth-form {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input-wrap {
  position: relative;
}

.form-input-wrap .form-input {
  padding-left: 44px;
}

.form-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-tertiary);
}

.input-icon.material-icons-round { font-size: 20px; }

/* Multi-select categories */
.cat-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-select .chip-select {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg);
  transition: var(--transition);
  user-select: none;
}

.cat-select .chip-select.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.auth-footer {
  text-align: center;
  padding: 8px 0 4px;
}

.auth-footer p {
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-footer span {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.forgot-link {
  text-align: right;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  margin-top: -8px;
}

/* ── Detail screen ── */
.detail-header {
  background: linear-gradient(145deg, var(--primary) 0%, #0A1F3A 100%);
  padding: 16px 20px 24px;
  color: white;
  position: relative;
}

.detail-header .back-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
  border: none;
}

.detail-header .back-btn .material-icons-round { color: white; font-size: 20px; }

.detail-header .dh-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.detail-header h1 {
  font-size: 20px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
  margin-bottom: 8px;
}

.detail-header .dh-org {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}

.detail-header .dh-actions {
  display: flex;
  gap: 10px;
}

.dh-action-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.dh-action-btn:active { background: rgba(255,255,255,0.3); }
.dh-action-btn .material-icons-round { color: white; font-size: 20px; }
.dh-action-btn.favorited .material-icons-round { color: #FCD34D; }

.detail-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-tile {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
}

.info-tile .tile-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.info-tile .tile-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.info-tile .tile-value.deadline { color: var(--danger); }
.info-tile .tile-value.amount { color: var(--success); }

.detail-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.detail-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.doc-item .material-icons-round { font-size: 18px; color: var(--primary); }
.doc-item span { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.detail-apply-btn {
  padding: 0 20px 24px;
}

/* ── Notifications screen ── */
.notif-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.notif-item:active { background: var(--surface); }

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon.new { background: var(--primary-light); }
.notif-icon.new .material-icons-round { color: var(--primary); font-size: 22px; }
.notif-icon.deadline { background: var(--danger-light); }
.notif-icon.deadline .material-icons-round { color: var(--danger); font-size: 22px; }
.notif-icon.warning { background: var(--warning-light); }
.notif-icon.warning .material-icons-round { color: var(--warning); font-size: 22px; }

.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.4; }
.notif-body { font-size: 13px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 6px; }
.notif-time { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }

/* ── Messages screen ── */
.msg-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.msg-item:active { background: var(--surface); }
.msg-item.unread { background: var(--primary-light); }

.msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-avatar .material-icons-round { font-size: 20px; color: white; }

.msg-content { flex: 1; min-width: 0; }

.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.msg-from { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.msg-time { font-size: 11px; color: var(--text-tertiary); font-weight: 500; flex-shrink: 0; }
.msg-subject { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.msg-preview {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Profile screen ── */
.profile-hero {
  background: linear-gradient(145deg, var(--primary) 0%, #0A1F3A 100%);
  padding: 24px 20px 36px;
  text-align: center;
  position: relative;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.profile-avatar .material-icons-round { font-size: 40px; color: white; }

.profile-hero h2 { font-size: 20px; font-weight: 800; color: white; margin-bottom: 4px; }
.profile-hero p { font-size: 13px; color: rgba(255,255,255,0.75); }

.profile-stats {
  display: flex;
  background: white;
  border-radius: var(--radius-lg);
  margin: -20px 20px 0;
  padding: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-value { font-size: 20px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-tertiary); font-weight: 500; margin-top: 2px; }

.profile-section {
  margin: 20px 20px 0;
}

.profile-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
}

.menu-item:active { background: var(--surface); }

.menu-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon .material-icons-round { font-size: 20px; }
.menu-icon.blue { background: var(--primary-light); }
.menu-icon.blue .material-icons-round { color: var(--primary); }
.menu-icon.green { background: var(--success-light); }
.menu-icon.green .material-icons-round { color: var(--success); }
.menu-icon.orange { background: #FFF7ED; }
.menu-icon.orange .material-icons-round { color: #F97316; }
.menu-icon.purple { background: #F5F3FF; }
.menu-icon.purple .material-icons-round { color: #7C3AED; }
.menu-icon.red { background: var(--danger-light); }
.menu-icon.red .material-icons-round { color: var(--danger); }
.menu-icon.gray { background: var(--surface2); }
.menu-icon.gray .material-icons-round { color: var(--text-secondary); }
.menu-icon.danger { background: var(--danger-light); }
.menu-icon.danger .material-icons-round { color: var(--danger); }

.menu-text { flex: 1; min-width: 0; }
.menu-title, .menu-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.menu-subtitle, .menu-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 1px; }
.menu-arrow .material-icons-round { font-size: 18px; color: var(--text-tertiary); }

.menu-item.danger .menu-label { color: var(--danger); }

.profile-menu {
  margin: 16px 20px 0;
  display: flex;
  flex-direction: column;
}

/* ── Filter bar (Opportunities) ── */
.filter-bar {
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-family: var(--font);
}

.filter-chip .material-icons-round { font-size: 14px; }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Home welcome banner */
.welcome-banner {
  padding: 20px 20px 4px;
}

.welcome-banner .greeting {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 4px;
}

.welcome-banner h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.welcome-banner h1 span { color: var(--primary); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  gap: 12px;
}

.empty-state .material-icons-round { font-size: 64px; color: var(--border); }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.empty-state p { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }

/* Divider */
.divider {
  height: 8px;
  background: var(--surface);
  margin: 8px 0;
  flex-shrink: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ripple */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.05);
  opacity: 0;
  transition: opacity 0.2s;
}

.ripple:active::after { opacity: 1; }

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen.active > * {
  animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Saved count on profile */
.saved-card {
  margin: 16px 20px 0;
  background: linear-gradient(135deg, var(--success-light) 0%, #C6E4CE 100%);
  border: 1.5px solid #A8CBB2;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.saved-card .material-icons-round { font-size: 32px; color: var(--success); }
.saved-card h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.saved-card p { font-size: 12px; color: var(--text-secondary); }

/* Back button in header */
.header-back {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
}

.header-back .material-icons-round { font-size: 20px; }

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input { display: none; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-track {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(20px);
}

/* Responsive – full screen on mobile */
@media (max-width: 420px) {
  body { background: var(--bg); }
  #app-shell {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}
