@font-face {
  font-family: 'Nastaliq';
  src: url('/fonts/IranNastaliq.ttf') format('truetype');
}

:root {
  --bg-main: #000;
  --panel-bg: linear-gradient(180deg, rgba(8, 12, 24, 0.98) 0%, rgba(3, 7, 18, 0.985) 100%);
  --card-bg: linear-gradient(180deg, rgba(8, 12, 24, 0.98) 0%, rgba(3, 7, 18, 0.985) 100%);
  --input-bg: #000;

  --border-default: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.22);
  --border-cyan: rgba(0, 210, 255, 0.35);
  --border-cyan-active: #00d2ff;

  --accent-cyan: #00d2ff;
  --accent-glow: rgba(0, 210, 255, 0.22);
  --accent-hover-glow: rgba(0, 210, 255, 0.14);

  --text-primary: #e5eefc;
  --text-secondary: rgba(229, 238, 252, 0.85);
  --text-subtle: #7fdcff;
  --text-muted: rgba(229, 238, 252, 0.58);

  --star-gold: #ffb800;
  --star-gold-glow: rgba(255, 184, 0, 0.35);

  --success-color: #2ed573;
  --success-bg: rgba(46, 213, 115, 0.12);
  --warn-color: #ffa502;
  --warn-bg: rgba(255, 165, 2, 0.12);
  --error-color: #ff4757;
  --error-bg: rgba(255, 71, 87, 0.12);
  --danger-color: #f87171;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) rgba(8, 12, 24, 0.8);
}

body {
  margin: 0;
  direction: rtl;
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  padding-bottom: 5px;
  line-height: 1.7;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  margin: 4px 0;
  border-radius: 10px;
  background: rgba(8, 12, 24, 0.85);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 12, 24, 0.9);
  border-radius: 10px;
  background: linear-gradient(180deg, #5ddcff 0%, #00d2ff 45%, #0077ff 100%);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.18);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8ae7ff 0%, #00d2ff 50%, #2e9bff 100%);
}

#infoModalText,
.info-modal-text,
.comments-list-container,
#doctorReviewsList,
.modal-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 210, 255, 0.4) transparent;
}

#infoModalText::-webkit-scrollbar,
.info-modal-text::-webkit-scrollbar,
.comments-list-container::-webkit-scrollbar,
#doctorReviewsList::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

#infoModalText::-webkit-scrollbar-track,
.info-modal-text::-webkit-scrollbar-track,
.comments-list-container::-webkit-scrollbar-track,
#doctorReviewsList::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track {
  background: transparent;
  margin: 0;
}

#infoModalText::-webkit-scrollbar-thumb,
.info-modal-text::-webkit-scrollbar-thumb,
.comments-list-container::-webkit-scrollbar-thumb,
#doctorReviewsList::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#infoModalText::-webkit-scrollbar-thumb:hover,
.info-modal-text::-webkit-scrollbar-thumb:hover,
.comments-list-container::-webkit-scrollbar-thumb:hover,
#doctorReviewsList::-webkit-scrollbar-thumb:hover,
.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.65);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

header {
  padding: 8px 8px 8px;
  margin-right: 20px;
  margin-left: 20px;
  border-bottom: 1px solid #444;
  font-family: "Nastaliq", sans-serif;
  font-size: 34px;
  text-align: center;
}

header h1,
header #doctorHeaderTitle {
  margin: 0;
  font-size: inherit;
  font-weight: normal;
  line-height: 2.7;
  color: var(--text-primary);
}

.social-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: #cdd9ea;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid var(--border-light);
  -webkit-tap-highlight-color: transparent;
}

.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-link:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(0, 210, 255, 0.15);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.social-link.insta:hover { background: #E1306C; }
.social-link.telegram:hover { background: #0088cc; }
.social-link.whatsapp:hover { background: #25d366; }
.social-link.eitaa:hover { background: #ff6b00; }

.management-note {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 10px;
  line-height: 1.7;
}

.doctor-interaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  top: -4px;
}

.doctor-interaction-btn:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--border-cyan-active);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.badge-rating {
  color: var(--star-gold);
  font-weight: bold;
  margin-right: 4px;
}

.doctor-bio-wrapper {
  width: 100%;
  max-width: 900px;
  margin: -30px auto 5px;
  padding: 10px 20px;
  text-align: center;
}

.doctor-bio-wrapper[hidden] {
  display: none !important;
}

.doctor-bio-preview {
  width: 100%;
}

#doctorBio,
.doctor-bio-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  direction: rtl;
  text-align: center;
  white-space: nowrap;
  font-size: 16px;
  line-height: 2.8;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  padding-top: 10px;
  margin-top: -10px;
}

#doctorBio .bio-truncate,
.doctor-bio-text .bio-truncate,
#doctorBio .bioTextContent,
.doctor-bio-text .bioTextContent {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-top: 4px;
  margin-top: -4px;
}

#doctorBio .bio-more-btn,
.doctor-bio-text .bio-more-btn,
#doctorBio .bioContinue,
.doctor-bio-text .bioContinue {
  flex: 0 0 auto;
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#doctorBio:hover,
.doctor-bio-text:hover {
  color: var(--text-primary);
  opacity: 0.95;
}

#doctorBio:focus-visible,
.doctor-bio-text:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 8px;
}

#infoModal,
#commentsModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#infoModal.hidden,
#commentsModal.hidden {
  display: none !important;
}

#infoModal .info-modal-card,
#commentsModal .comments-modal-card {
  position: relative;
  width: 80%;
  max-width: 1000px;
  height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.95);
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.2);
  transform: translateY(0);
}

#infoModal .info-modal-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#infoModalTitle,
.info-modal-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 30px 55px 15px;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  color: #e5eefc;
  font-family: "Nastaliq", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#infoModalText,
.info-modal-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 40px;
  color: #e5eefc;
  direction: rtl;
  font-family: "Vazirmatn", sans-serif;
  font-size: 14px;
  line-height: 2.2;
  text-align: justify;
  text-justify: inter-word;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#infoModalText:focus-visible,
.info-modal-text:focus-visible {
  outline: none;
}

.comments-modal-header {
  flex: 0 0 auto;
  text-align: center;
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
  padding: 10px 45px 8px;
}

.comments-modal-title {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
  color: #e5eefc;
  font-family: "Vazirmatn", sans-serif;
  line-height: 1.4;
  word-break: break-word;
}

.rating-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  direction: rtl;
}

.rating-stars-avg {
  color: var(--star-gold);
  letter-spacing: 1.5px;
  font-size: 12px;
  text-shadow: 0 0 6px var(--star-gold-glow);
}

.rating-number-avg {
  color: var(--text-primary);
  font-weight: bold;
}

.rating-total-count {
  color: var(--text-muted);
  font-size: 12px;
}

.star-rating-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 7px 16px;
  background: linear-gradient(135deg, rgba(80, 8, 28, 0.45) 0%, rgba(45, 4, 15, 0.55) 100%);
  border: 1.5px dashed rgba(255, 75, 110, 0.45);
  border-radius: var(--radius-sm, 8px);
  box-shadow: inset 0 0 12px rgba(80, 8, 28, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.star-rating-select:hover {
  border-color: rgba(255, 95, 130, 0.7);
  background: linear-gradient(135deg, rgba(95, 10, 34, 0.55) 0%, rgba(55, 5, 18, 0.65) 100%);
}

.star-rating-label {
  font-size: 12px;
  font-weight: 500;
  color: #ffd6df;
  font-family: "Vazirmatn", sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.star-picker {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-picker input[type="radio"] {
  display: none;
}

.star-picker label {
  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input[type="radio"]:checked ~ label {
  color: var(--star-gold);
  text-shadow: 0 0 8px var(--star-gold-glow, rgba(255, 215, 0, 0.6));
}

.star-picker label:hover {
  transform: scale(1.18);
}

.comment-submit-form {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  padding: 8px 20px 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.95);
}

.comment-submit-form textarea {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary, #e5eefc);
  font-family: "Vazirmatn", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  resize: none;
  min-height: 50px;
  max-height: 60px;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-submit-form textarea:focus {
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.comment-submit-form textarea::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 32px;
}

.comment-form-footer .char-counter {
  position: absolute;
  right: 4px;
}

.comments-list-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
  padding: 16px 20px 16px 14px;
  direction: rtl;
}

.empty-comments,
.comments-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-family: "Vazirmatn", sans-serif;
  padding: 30px 0;
  margin: auto;
  opacity: 0.85;
}

.comment-item,
.comment-card {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 10px);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.comment-item:hover,
.comment-card:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 210, 255, 0.1);
  transform: translateY(-1px);
}

.comment-header,
.comment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  gap: 8px;
}

.comment-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.comment-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.comment-user-name,
.comment-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #e5eefc);
  font-family: "Vazirmatn", sans-serif;
  line-height: 1.4;
}

.comment-stars,
.comment-card-rating {
  color: var(--star-gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px var(--star-gold-glow);
}

.comment-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: "Vazirmatn", sans-serif;
}

.comment-text {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-family: "Vazirmatn", sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: justify;
  margin: 0;
}

.comment-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.25);
  border-radius: 6px;
  color: var(--error-color, #ff4757);
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  line-height: 1;
}

.comment-delete-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  pointer-events: none;
}

.comment-delete-btn:hover {
  opacity: 1;
  background: rgba(255, 71, 87, 0.2);
  border-color: var(--error-color, #ff4757);
  transform: scale(1.08);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.35);
}

.comment-delete-btn:active {
  transform: scale(0.95);
}

.comment-delete-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.page-container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 20px 20px 2px;
}

.session-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  padding: 0 10px 40px;
  width: 100%;
  box-sizing: border-box;
}

.session-card {
  position: relative;
  flex: 0 1 160px;
  width: 160px;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg, 12px);
  background: var(--card-bg);
  cursor: pointer;
  text-align: center;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 8px rgba(0, 0, 0, 0.88);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.session-card:hover {
  border-color: rgba(0, 210, 255, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(0, 210, 255, 0.14);
}

.session-card-header,
.session-location,
.session-capacity {
  width: 100%;
  min-width: 0;
}

.session-card-header {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  margin-bottom: 2px;
  overflow: hidden;
}

.session-date,
.session-time {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.session-date {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.session-time {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

.session-location {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  justify-content: flex-start;
}

.loc-line {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.loc-line strong {
  display: inline;
  color: var(--text-primary);
  font-weight: 600;
  margin-left: 3px;
}

.loc-line.loc-center,
.loc-line.loc-branch,
.loc-line.loc-dept,
.loc-line.loc-room {
  color: var(--text-primary);
  font-weight: 500;
}

.loc-line.loc-address {
  color: var(--text-muted);
}

.session-card:not(:has(.loc-center)):not(:has(.loc-branch)) .loc-line.loc-address,
.session-location:not(:has(.loc-center)):not(:has(.loc-branch)) .loc-line.loc-address,
.session-card.is-office .loc-line.loc-address,
.session-card.office-card .loc-line.loc-address {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  line-height: 1.55;
}

.session-capacity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  overflow: hidden;
}

.capacity-val {
  color: var(--accent-cyan);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  position: relative;
  width: 80%;
  max-width: 400px;
  height: 90%;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #090e1c 0%, #030712 100%);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 50px 14px 24px 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-glow);
}

.modal-close-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-icon:hover {
  color: var(--accent-cyan);
  transform: scale(1.05);
}

.modal-close-icon:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 6px;
}

.selected-session-info {
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 14px;
  line-height: 1.2;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.selected-session-info .info-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 5px;
  white-space: nowrap;
}

.selected-session-info .info-line:last-child {
  margin-bottom: 0;
}

.selected-session-info .info-line strong {
  flex-shrink: 0;
  margin-left: 6px;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.selected-session-info .info-line span {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 11px;
  color: var(--text-secondary);
}

.notes-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 2px;
}

.char-counter {
  font-size: 11px;
  color: var(--text-muted);
  font-family: inherit;
  transition: color 0.2s ease;
  user-select: none;
}

.char-counter.limit-reached {
  color: var(--danger-color);
  font-weight: bold;
}

.booking-form input,
.booking-form textarea,
.comment-submit-form textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11px;
  outline: none;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#mobile,
#national_code {
  direction: rtl;
  text-align: right;
}

.booking-form input:focus,
.booking-form textarea:focus,
.comment-submit-form textarea:focus {
  border-color: var(--border-cyan-active);
  box-shadow: 0 0 10px var(--accent-glow);
}

.booking-form textarea {
  resize: none;
  min-height: 100px;
}

.submit-btn,
.comment-submit-form .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 120px;
  max-width: 160px;
  height: 32px;
  padding: 0 16px;
  margin: 4px auto 0;
  align-self: center;
  background: linear-gradient(180deg, #00d2ff 0%, #0077ff 100%);
  color: #030a16;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 210, 255, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover,
.comment-submit-form .submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.4);
}

.submit-btn:active,
.comment-submit-form .submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled,
.comment-submit-form .submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.confirm-box {
  text-align: center;
}

.confirm-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.confirm-box.success .confirm-icon {
  background: var(--success-bg);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.confirm-box.warn .confirm-icon {
  background: var(--warn-bg);
  color: var(--warn-color);
  border: 1px solid var(--warn-color);
}

.confirm-status-title {
  font-size: 14px;
  margin-bottom: 6px;
}

.confirm-box.success .confirm-status-title {
  color: var(--success-color);
}

.confirm-box.warn .confirm-status-title {
  color: var(--warn-color);
}

.confirm-msg-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.confirm-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  padding: 12px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.confirm-row {
  display: flex;
  align-items: baseline;
  width: 100%;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
}

.confirm-row .c-label {
  flex-shrink: 0;
  width: 90px;
  color: var(--text-muted);
  line-height: inherit;
}

.confirm-row .c-value {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-primary);
  font-weight: 500;
  line-height: inherit;
}

.confirm-row.highlight .c-value {
  color: var(--accent-cyan);
  font-size: 14px;
  letter-spacing: 1px;
}

.empty-state {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 50px 0;
}

.hidden {
  display: none !important;
}

.toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: min(92vw, 420px);
}

.toast {
  pointer-events: auto;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-14px);
  animation: toastIn 0.25s ease forwards;
}

.toast.success {
  background: rgba(46, 213, 115, 0.18);
  border-color: rgba(46, 213, 115, 0.35);
}

.toast.error {
  background: rgba(255, 71, 87, 0.18);
  border-color: rgba(255, 71, 87, 0.35);
}

.toast.warn {
  background: rgba(255, 165, 2, 0.18);
  border-color: rgba(255, 165, 2, 0.35);
}

.toast.info {
  background: rgba(0, 210, 255, 0.14);
  border-color: rgba(0, 210, 255, 0.3);
}

.toast.hide {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 20px 8px 2px;
  }

  .session-grid {
    gap: 12px;
    padding: 0 4px 30px;
    justify-content: center;
  }

  .session-card {
    flex: 0 1 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: 170px;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    padding: 10px;
  }

  #infoModal .info-modal-card,
  #commentsModal .comments-modal-card {
    width: 95%;
    max-width: 400px;
    height: 85%;
  }

  .modal-card {
    width: 95%;
    max-width: 400px;
    height: 85%;
    padding: 45px 12px 20px 8px;
  }

  .modal-close-icon {
    top: 10px;
    left: 10px;
    font-size: 24px;
  }

  #infoModalTitle,
  .info-modal-title {
    padding: 25px 45px 5px;
  }

  #infoModalText,
  .info-modal-text {
    padding: 12px 14px 12px 10px;
  }

  .comments-modal-header {
    padding: 10px 40px 6px;
  }

  .comments-modal-title {
    font-size: 15px;
  }

  .star-rating-select {
    padding: 6px 12px;
  }

  .star-picker label {
    font-size: 16px;
  }

  .comments-list-container {
    padding: 10px 12px 10px 8px;
    font-size: 12px;
  }

  .comment-submit-form {
    padding: 6px 12px 8px 8px;
    gap: 6px;
  }

  .comment-submit-form textarea {
    min-height: 40px;
    max-height: 50px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .social-wrapper {
    gap: 10px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .management-note {
    font-size: 11px;
  }
}
