:root {
  --primary: #1a6fc4;
  --primary-dark: #155299;
  --primary-light: #e8f1fb;
  --accent: #00c9a7;
  --text-dark: #1a2332;
  --text-muted: #6b7a8d;
  --border: #dde3ec;
  --bg-light: #f4f7fc;
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background: var(--bg-light);
  min-height: 100vh;
}

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary) !important;
  letter-spacing: -.3px;
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem .9rem !important;
  border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a85d8 100%);
  color: #fff;
  padding: 2rem 0;
}

.page-hero h1 {
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
}

.page-hero p {
  opacity: .85;
  font-size: .9rem;
  margin: .3rem 0 0;
}

.search-filter-bar {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  margin-top: -1.4rem;
  margin-bottom: 1.8rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .6rem 1rem;
  font-size: .9rem;
  color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,111,196,.12);
}

.btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .62rem 1.4rem;
  font-weight: 600;
  font-size: .9rem;
}

.btn-search:hover {
  background: var(--primary-dark);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.4rem;
}

.filter-pill {
  padding: .38rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  transition: all .15s;
}

.filter-pill.active, .filter-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.doctor-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all .2s;
}

.doctor-card:hover {
  box-shadow: 0 8px 30px rgba(26,111,196,.13);
  transform: translateY(-4px);
  border-color: #b3cfe8;
}

.doctor-card-header {
  background: linear-gradient(135deg, var(--primary-light), #f0faf8);
  padding: 1.5rem 1.2rem 1.2rem;
  text-align: center;
  position: relative;
}

.doctor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto .75rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.available-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e6faf5;
  color: #00a884;
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 20px;
}

.unavailable-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #feeef0;
  color: #d9344a;
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 20px;
}


.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: #fff8e1;
  color: #f59e0b;
  font-size: .78rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 20px;
}

.doctor-card-body {
  padding: 1.1rem 1.2rem;
}

.doctor-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: .15rem;
}

.doctor-spec {
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .6rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.info-row i {
  font-size: .88rem;
  color: var(--primary);
  width: 16px;
}

.btn-book {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  width: 100%;
  margin-top: .75rem;
  transition: background .2s;
}

.btn-book:hover {
  background: var(--primary-dark);
}

.btn-view {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 10px;
  padding: .48rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  width: 100%;
  margin-top: .5rem;
  transition: all .15s;
}

.btn-view:hover {
  background: var(--primary-light);
}

.result-meta {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.result-meta strong {
  color: var(--text-dark);
}

footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 3rem;
}

.steps-bar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  flex-shrink: 0;
}

.step.active .step-circle {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.step.active {
  color: var(--primary);
}

.step.done .step-circle {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.step-line.done {
  background: var(--accent);
}

.form-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.form-card-header {
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border);
}

.form-card-header h5 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0;
}

.form-card-body {
  padding: 1.8rem;
}

.form-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-dark);
  margin-bottom: .35rem;
}

.form-control.is-invalid, .form-select.is-invalid {
  border-color: #dc3545;
}

.input-group .input-group-text {
  background: #fff;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--text-muted);
}

.input-group .form-control, .input-group .form-select {
  border-radius: 0 10px 10px 0;
}

.input-group:focus-within .input-group-text {
  border-color: var(--primary);
}

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
  margin-bottom: 1rem;
}

.slot-opt {
  padding: .42rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  transition: all .15s;
}

.slot-opt:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.slot-opt.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slot-opt.booked {
  background: var(--bg-light);
  color: #adb5bd;
  border-color: var(--border);
  cursor: not-allowed;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .75rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .1s;
  width: 100%;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.summary-card {
  background: linear-gradient(135deg, var(--primary-light), #f0faf8);
  border: 1px solid #c2d8f0;
  border-radius: 16px;
  padding: 1.4rem;
}

.summary-card h6 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  margin-bottom: .6rem;
  color: var(--text-dark);
}

.summary-row i {
  color: var(--primary);
  width: 18px;
}

.summary-row span:first-of-type {
  color: var(--text-muted);
  min-width: 90px;
}

.modal-content {
  border-radius: 16px;
  border: none;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #e6faf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #00a884;
}

.danger-icon {
  width: 72px;
  height: 72px;
  background: #fde8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #dc3545;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2a85d8 50%, #0d99a0 100%);
  color: #fff;
  padding: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

.hero-banner::before {
  content: '';
  position: absolute;
  right: 80px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.hero-banner h1 {
  font-weight: 700;
  font-size: 1.9rem;
  margin-bottom: .4rem;
}

.hero-banner p {
  opacity: .85;
  font-size: .95rem;
}

.hero-time {
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  padding: .4rem .9rem;
  font-size: .82rem;
  display: inline-block;
  margin-top: .6rem;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-icon.green {
  background: #e6faf5;
  color: #00a884;
}

.stat-icon.orange {
  background: #fff4e6;
  color: #f08c00;
}

.stat-icon.red {
  background: #feeef0;
  color: #d9344a;
}

.stat-value {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-dark);
  line-height: 1;
}

.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.section-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.action-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  padding: 1.5rem 1.2rem;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  display: block;
}

.action-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(26,111,196,.12);
  transform: translateY(-3px);
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .85rem;
  font-size: 1.5rem;
}

.action-card h6 {
  font-weight: 700;
  font-size: .93rem;
  color: var(--text-dark);
  margin-bottom: .2rem;
}

.action-card p {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0;
}

.card-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  overflow: hidden;
}

.card-panel-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-panel-header h6 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
}

.badge-status {
  padding: .35rem .8rem;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-pending {
  background: #fff4e6;
  color: #f08c00;
}

.badge-approved {
  background: #e6faf5;
  color: #00a884;
}

.badge-cancelled {
  background: #feeef0;
  color: #d9344a;
}

.tip-card {
  background: linear-gradient(135deg, #e8f1fb, #f0faf8);
  border: 1px solid #c8dff5;
  border-radius: 16px;
  padding: 1.4rem;
}

.tip-card h6 {
  font-weight: 700;
  color: var(--primary);
}

.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}

.breadcrumb {
  margin: 0;
  font-size: .84rem;
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}

.profile-hero {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.profile-hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2a85d8 100%);
  height: 100px;
}

.profile-hero-body {
  padding: 0 2rem 2rem;
}

.doctor-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-top: -50px;
  background: linear-gradient(135deg, #1a6fc4, #2a85d8);
}

.doctor-name-lg {
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text-dark);
  margin-bottom: .2rem;
}

.doctor-spec-lg {
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .6rem;
}

.stat-pill {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 20px;
  margin-right: .4rem;
  display: inline-block;
  margin-bottom: .4rem;
}

.stat-pill.green {
  background: #e6faf5;
  color: #00a884;
}

.stat-pill.orange {
  background: #fff4e6;
  color: #f08c00;
}

.section-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.section-card h5 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.section-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.slot-day {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.slot-btn {
  padding: .38rem .85rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  transition: all .15s;
}

.slot-btn:hover, .slot-btn.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slot-btn.booked {
  background: #f4f7fc;
  color: #adb5bd;
  border-color: var(--border);
  cursor: not-allowed;
  text-decoration: line-through;
}

.book-cta {
  background: linear-gradient(135deg, var(--primary), #2a85d8);
  color: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
}

.book-cta h5 {
  font-weight: 700;
  margin-bottom: .4rem;
}

.book-cta p {
  opacity: .85;
  font-size: .88rem;
  margin-bottom: 1.2rem;
}

.btn-book-lg {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: .75rem 2rem;
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
}

.btn-book-lg:hover {
  background: var(--primary-light);
}

.review-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: .75rem;
}

.review-card .reviewer {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dark);
}

.review-card .review-text {
  font-size: .84rem;
  color: var(--text-muted);
  margin: .3rem 0 0;
}

.stars {
  color: #f59e0b;
  font-size: .8rem;
}

.auth-wrapper {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(26,111,196,.10);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem 2.8rem;
}

.auth-card h2 {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.6rem;
  margin-bottom: .3rem;
}

.auth-card .subtitle {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 1.8rem;
}

.form-control {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .65rem 1rem;
  font-size: .93rem;
  color: var(--text-dark);
  transition: border .2s, box-shadow .2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,111,196,.13);
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.btn-toggle-pw {
  border: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0 10px 10px 0 !important;
  background: #fff;
  color: var(--text-muted);
}

.btn-toggle-pw:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.forgot-link {
  text-align: right;
  margin-bottom: 1.5rem;
}

.forgot-link a {
  font-size: .85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: .82rem;
  margin: 1.2rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.register-link {
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
}

.register-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

.alert-info-soft {
  background: var(--primary-light);
  border: 1px solid #c2d8f0;
  color: var(--primary-dark);
  border-radius: 10px;
  font-size: .85rem;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border);
}

.stat-strip {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  margin-bottom: 1.5rem;
  margin-top: -1.4rem;
}

.strip-item {
  flex: 1;
  min-width: 120px;
  padding: 1.1rem 1.4rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.strip-item:last-child {
  border-right: none;
}

.strip-val {
  font-size: 1.5rem;
  font-weight: 700;
}

.strip-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-bar {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.table-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  overflow: hidden;
}

.table-card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-card-header h6 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
}

.table th {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f8fafd;
  border-top: none;
  padding: .85rem 1rem;
}

.table td {
  font-size: .87rem;
  vertical-align: middle;
  padding: .9rem 1rem;
  border-color: var(--border);
  color: var(--text-dark);
}

.table tbody tr:hover {
  background: #fafcff;
}

.badge-completed {
  background: #e8f1fb;
  color: var(--primary);
}

.doc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.btn-cancel-sm {
  border: 1.5px solid #fca5a5;
  color: #d9344a;
  background: #fff;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .75rem;
  transition: all .15s;
}

.btn-cancel-sm:hover {
  background: #feeef0;
}

.btn-view-sm {
  border: 1.5px solid #c2d8f0;
  color: var(--primary);
  background: #fff;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .75rem;
  transition: all .15s;
}

.btn-view-sm:hover {
  background: var(--primary-light);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3.5rem;
  opacity: .3;
  margin-bottom: 1rem;
}

.tab-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.tab-pill {
  padding: .4rem 1rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  transition: all .15s;
}

.tab-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.profile-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2a85d8 100%);
  height: 130px;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.profile-wrapper {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.profile-info {
  padding: 0 2rem 1.5rem;
}

.avatar-container {
  position: relative;
  display: inline-block;
}

.avatar-xl {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2a85d8);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  margin-top: -45px;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .65rem;
  cursor: pointer;
}

.profile-name {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-top: .8rem;
  margin-bottom: .15rem;
}

.profile-id {
  font-size: .82rem;
  color: var(--text-muted);
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: .25rem;
}

.section-card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-card-header h6 {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-dark);
  margin: 0;
}

.section-card-body {
  padding: 1.5rem;
}

.form-control[readonly] {
  background: var(--bg-light);
  color: var(--text-muted);
}

.btn-save {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .65rem 2rem;
  font-weight: 700;
  font-size: .9rem;
  transition: all .2s;
}

.btn-save:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
}

.health-info-box {
  background: var(--bg-light);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  border: 1px solid var(--border);
}

.health-info-box .label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: .2rem;
}

.health-info-box .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.health-info-box.danger .value {
  color: #d9344a;
}

.danger-zone {
  border: 1.5px solid #fca5a5;
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  background: #fff;
}

.danger-zone h6 {
  font-weight: 700;
  color: #d9344a;
  margin-bottom: .5rem;
}

.pw-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid var(--border);
}

.toast-success {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
  display: none;
}

.toast-success.show {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.login-link {
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
}

.login-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

.star-rating {
    display: flex;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 25px;
    color: #ccc;
    cursor: pointer;
}
.btn-reset {
    background: #fff;
    color: #526174;
    border: 1px solid #7d8793;
    border-radius: 10px;
    padding: .62rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    transition: all .2s ease;
}

.btn-reset:hover {
    background: #f5f7fa;
    color: var(--primary);
    border-color: var(--primary);
}
