body {
  margin: 0;
  color: var(--portal-text);
  font-family: var(--portal-font);
}

body[data-theme-page="client-login"] { background: radial-gradient(circle at 22% 18%, rgba(18, 186, 116, .2), transparent 30rem), linear-gradient(135deg, #061322, #102c44 55%, #07111f); color: #f4fbff; font-family: 'DM Sans', Arial, sans-serif; }
body[data-theme-page="client-login"] .auth-page { min-height: 100vh; padding: 24px; }
body[data-theme-page="client-login"] .auth-form { position: relative; width: min(100%, 430px); gap: 10px; padding: 34px; border: 1px solid rgba(170, 221, 244, .38); border-radius: 16px; background: rgba(8, 27, 44, .86); box-shadow: 0 28px 80px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .08); backdrop-filter: blur(18px); }
body[data-theme-page="client-login"] .auth-form::before { content: 'PP'; display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 7px; border: 2px solid #65d6ed; border-radius: 50%; color: #65d6ed; font-weight: 800; letter-spacing: .08em; }
body[data-theme-page="client-login"] .auth-form h1 { margin: 0 0 8px; color: #fff; font-size: 30px; }
body[data-theme-page="client-login"] .auth-form h1::after { display: block; margin-top: 8px; color: #9bb7c9; content: 'Book & View Your Albums'; font-size: 12px; font-weight: 400; letter-spacing: .04em; }
body[data-theme-page="client-login"] .auth-form label { margin-top: 7px; color: #c9dfec; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body[data-theme-page="client-login"] .auth-form input { width: 100%; border: 1px solid rgba(166, 214, 238, .35); border-radius: 8px; background: rgba(3, 15, 27, .74); color: #fff; }
body[data-theme-page="client-login"] .auth-form input:focus { outline: 2px solid rgba(98, 216, 232, .35); border-color: #62d8e8; }
body[data-theme-page="client-login"] .auth-form button { min-height: 44px; margin-top: 11px; border-radius: 8px; background: linear-gradient(135deg, #079655, #16bd70); font-weight: 800; }
body[data-theme-page="client-login"] .auth-form a { color: #65d6ed; }
body[data-theme-page="client-login"] .form-error { color: #ffb5bd; }

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.auth-form,
.dashboard-shell {
  width: min(100%, 360px);
  background: var(--portal-surface);
  border: 1px solid #d1dbd4;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 1.5rem;
}

.auth-form {
  display: grid;
  gap: 0.6rem;
}

.auth-form h1 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
}

.auth-form input,
.auth-form textarea,
.auth-form button,
.dashboard-header button {
  box-sizing: border-box;
  font: inherit;
  padding: 0.6rem;
}

.auth-form input,
.auth-form textarea {
  border: 1px solid #9eaca4;
  border-radius: 4px;
}

.auth-form textarea {
  min-height: 5rem;
  resize: vertical;
}

.map-frame {
  width: 100%;
  height: 220px;
  border: 1px solid #9eaca4;
  border-radius: 4px;
}

.auth-form button,
.dashboard-header button {
  border: 0;
  border-radius: 4px;
  background: var(--portal-accent);
  color: #ffffff;
  cursor: pointer;
}

.check-label {
  font-size: 0.9rem;
}

.form-error {
  color: #a61b1b;
  margin: 0.4rem 0 0;
}

.dashboard-shell {
  width: min(100% - 2rem, 960px);
  margin: 3rem auto;
  max-width: 960px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-section { border-top: 1px solid #d1dbd4; margin-top: 1.5rem; padding-top: 1rem; }
.calendar-header { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.calendar-header h2 { margin: 0; }
.calendar-header div { align-items: center; display: flex; gap: 0.6rem; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin: 1rem 0; }
.calendar-legend span { font-size: 0.78rem; padding-left: 0.75rem; position: relative; }
.calendar-legend span::before { background: #64748b; content: ''; height: 0.55rem; left: 0; position: absolute; top: 0.2rem; width: 0.55rem; }
.legend-booked::before { background: #c94a4a !important; }.legend-available::before { background: #4a9a67 !important; }.legend-pending::before { background: #d8aa3a !important; }.legend-blocked::before { background: #3f464d !important; }.legend-today::before { background: transparent !important; border: 2px solid #2476c8; box-sizing: border-box; }
.booking-calendar { display: grid; gap: 0.25rem; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekday { color: #64748b; font-size: 0.75rem; font-weight: 700; padding: 0.35rem; text-align: center; }
.calendar-day { border: 1px solid #d1dbd4; min-height: 3.3rem; overflow-wrap: anywhere; padding: 0.4rem; text-align: left; }
.calendar-day.booked { background: #c94a4a; color: #fff; }.calendar-day.pending { background: #d8aa3a; }.calendar-day.available { background: #dcefe1; }.calendar-day.blocked { background: #3f464d; color: #fff; }.calendar-day.today { border: 3px solid #2476c8; }
.calendar-details { border: 1px solid #d1dbd4; margin-top: 1rem; padding: 0.75rem; }
.dashboard-section { border-top: 1px solid #d1dbd4; margin-top: 1.5rem; padding-top: 1rem; }
.section-heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.section-heading h2 { margin: 0; }
.status-chip { background: var(--portal-accent); color: #fff; display: inline-block; font-size: 0.78rem; padding: 0.25rem 0.5rem; }
.muted-text { color: #64748b; margin: 0.35rem 0 0; }
.booking-list, .project-list { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
.booking-card, .project-card { border: 1px solid #d1dbd4; padding: 0.8rem; }
.booking-card p, .project-card p { margin: 0.4rem 0; }
.project-card { align-items: center; display: grid; gap: 0.35rem 0.75rem; grid-template-columns: minmax(0, 1fr) auto auto; }
.project-card p { grid-column: 1; }
.project-card .status-chip { grid-column: 2; grid-row: 1 / span 2; }
.project-card button { grid-column: 3; grid-row: 1 / span 2; }
.selection-toolbar { align-items: center; display: flex; gap: 0.8rem; justify-content: space-between; margin: 1rem 0; }
.selection-toolbar button, .project-card button, .photo-card button, .preview-header button { background: var(--portal-accent); border: 0; border-radius: 4px; color: #fff; cursor: pointer; font: inherit; padding: 0.55rem 0.75rem; }
.selection-toolbar button:disabled, .photo-card button:disabled { cursor: not-allowed; opacity: 0.55; }
.photo-gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 1rem; }
.photo-card { border: 1px solid #d1dbd4; display: grid; gap: 0.5rem; min-width: 0; padding: 0.55rem; }
.photo-card span { overflow-wrap: anywhere; }
.photo-thumbnail { aspect-ratio: 1; background: #edf2ef; cursor: pointer; object-fit: cover; width: 100%; }
.photo-preview { border: 1px solid #d1dbd4; max-width: min(90vw, 900px); padding: 1rem; width: min(90vw, 900px); }
.photo-preview::backdrop { background: rgba(0, 0, 0, 0.65); }
.preview-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 0.75rem; }
.preview-header h2 { margin: 0; }
.photo-preview img, .photo-preview video { display: block; max-height: 75vh; max-width: 100%; object-fit: contain; width: 100%; }
@media (max-width: 560px) { .calendar-header { align-items: flex-start; flex-direction: column; } .calendar-day { min-height: 2.8rem; padding: 0.25rem; } }
@media (max-width: 640px) {
  .dashboard-shell { margin: 1rem auto; padding: 1rem; }
  .project-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .project-card .status-chip, .project-card button { grid-column: auto; grid-row: auto; }
  .selection-toolbar { align-items: flex-start; flex-direction: column; }
}

html, body { min-height: 100%; }
body { background: var(--portal-background) center / cover fixed; color: #f5fbff; overflow-x: hidden; }
.dashboard-shell { background: rgba(8, 25, 39, 0.48); border: 1px solid rgba(218, 239, 249, 0.42); border-radius: 0; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3); margin: 0; max-width: none; min-height: 100vh; overflow-x: hidden; padding: 0; width: 100%; }
.topbar { align-items: center; background: rgba(7, 24, 39, 0.72); border-bottom: 1px solid rgba(218, 239, 249, 0.3); display: flex; gap: 1.5rem; min-height: 68px; padding: 0.75rem 1.25rem; }
.brand { align-items: center; color: inherit; display: flex; gap: 0.7rem; min-width: 245px; text-decoration: none; }
.brand-mark { align-items: center; border: 2px solid #f5fbff; border-radius: 50%; display: flex; font-size: 1.4rem; height: 2.2rem; justify-content: center; width: 2.2rem; }
.brand strong, .brand small { display: block; }.brand strong { font-size: 1.15rem; }.brand small { color: rgba(245, 251, 255, 0.72); font-size: 0.68rem; margin-top: 0.15rem; }
.topbar-search { background: rgba(245, 251, 255, 0.12); border: 1px solid rgba(245, 251, 255, 0.3); border-radius: 999px; color: rgba(245, 251, 255, 0.72); flex: 1; max-width: 540px; padding: 0.65rem 1rem; }.topbar-search span { color: #fff; float: right; font-size: 1.2rem; }
.topbar-account { align-items: center; display: flex; gap: 0.7rem; margin-left: auto; }.topbar-account button { background: transparent; border: 1px solid rgba(245, 251, 255, 0.25); border-radius: 6px; color: #fff; cursor: pointer; font-size: 1.25rem; padding: 0.2rem 0.55rem; }
.dashboard-layout { display: grid; grid-template-columns: minmax(200px, 225px) minmax(0, 1fr); min-height: calc(100vh - 68px); }.crm-sidebar { background: rgba(5, 22, 35, 0.6); border-right: 1px solid rgba(218, 239, 249, 0.25); display: flex; flex-direction: column; padding: 1rem 0.65rem; }
.sidebar-profile { align-items: center; border-bottom: 1px solid rgba(218, 239, 249, 0.22); display: flex; gap: 0.65rem; margin-bottom: 0.7rem; padding: 0.35rem 0.7rem 1rem; }.sidebar-profile strong, .sidebar-profile span { color: #fff; display: block; }.sidebar-profile span { color: rgba(255, 255, 255, 0.68); font-size: 0.78rem; margin-top: 0.18rem; }
.client-avatar { align-items: center; background: rgba(245, 251, 255, 0.18); border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 50%; color: #ffb6bd; display: flex; flex: 0 0 auto; height: 44px; justify-content: center; width: 44px; }.client-avatar.large { height: 74px; width: 74px; }
.crm-nav { align-items: stretch; border: 0; display: grid; gap: 0.15rem; margin: 0; padding: 0; }.crm-nav-link, .crm-nav-logout { align-items: center; background: transparent; border: 0; border-radius: 7px; color: rgba(245, 251, 255, 0.82); display: flex; font: inherit; gap: 0.75rem; padding: 0.63rem 0.75rem; text-align: left; text-decoration: none; }.crm-nav-link:hover, .crm-nav-link.active { background: #12b7c9; color: #fff; }.crm-nav-link span, .crm-nav-logout span { font-size: 1.05rem; min-width: 1.1rem; text-align: center; }.crm-nav-logout { cursor: pointer; margin: auto 0 0; width: 100%; }
.dashboard-content { background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(7, 24, 39, 0.12)); min-width: 0; padding: 1.25rem; }.breadcrumb { color: rgba(245, 251, 255, 0.75); display: flex; gap: 0.55rem; justify-content: flex-end; margin-bottom: 0.8rem; }.page-heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }.page-heading h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }.page-heading p { color: rgba(245, 251, 255, 0.78); margin: 0.3rem 0 1rem; }.background-status { color: #19d48b; font-size: 0.78rem; font-weight: 700; }
.dashboard-section, .calendar-section { border-top-color: rgba(218, 239, 249, 0.25); }.client-overview-grid { display: grid; gap: 0.85rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.profile-card { background: rgba(9, 29, 44, 0.56); border: 1px solid rgba(218, 239, 249, 0.42); border-radius: 9px; box-shadow: inset 0 1px rgba(255, 255, 255, 0.08); color: #f5fbff; padding: 0.85rem; }.profile-card h2, .section-heading h2, .calendar-header h2 { align-items: center; display: flex; font-size: 1rem; gap: 0.5rem; margin: 0 0 0.7rem; }.card-icon { align-items: center; background: rgba(245, 251, 255, 0.9); border-radius: 5px; color: #15364b; display: inline-flex; height: 1.7rem; justify-content: center; width: 1.7rem; }.muted-text { color: rgba(245, 251, 255, 0.7); }.status-chip { background: #12b7c9; border-radius: 999px; color: #fff; }.booking-card, .project-card, .calendar-details, .photo-card { background: rgba(9, 29, 44, 0.36); border-color: rgba(218, 239, 249, 0.28); border-radius: 7px; color: #f5fbff; }.booking-card p, .project-card p { color: rgba(245, 251, 255, 0.72); }.selection-toolbar button, .project-card button, .photo-card button, .preview-header button, .calendar-header button { background: #12b7c9; border-radius: 7px; }.calendar-header h2, .calendar-header strong, .calendar-legend span { color: rgba(245, 251, 255, 0.86); }.calendar-day { border-color: rgba(218, 239, 249, 0.28); }.album-workflow { margin-top: 0.85rem; }
.photographer-identity { align-items: center; display: flex; gap: 0.75rem; }.photographer-identity img { border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 50%; height: 52px; object-fit: cover; width: 52px; }.dashboard-footer { border-top: 1px solid rgba(218, 239, 249, 0.22); color: rgba(245, 251, 255, 0.65); font-size: 0.75rem; padding: 0.8rem 1.25rem; text-align: right; }
.photographer-studio-identity { align-items: center; display: flex; gap: 0.65rem; min-width: 0; }.photographer-studio-identity > img { border-radius: 5px; height: 52px; object-fit: contain; width: 52px; }
.photographer-details { display: grid; gap: 0.25rem 0.6rem; grid-template-columns: auto minmax(0, 1fr); margin: 0.6rem 0 0; }.photographer-details dt { color: rgba(245, 251, 255, 0.62); font-size: 0.75rem; }.photographer-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .topbar { align-items: flex-start; flex-wrap: wrap; }.brand { min-width: 0; }.topbar-search { flex-basis: 100%; max-width: none; order: 3; }.dashboard-layout { grid-template-columns: 1fr; }.crm-sidebar { border-bottom: 1px solid rgba(218, 239, 249, 0.25); border-right: 0; }.crm-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }.crm-nav-logout { margin: 0; width: auto; }.client-overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dashboard-content { padding: 0.8rem; }.page-heading { align-items: flex-start; flex-direction: column; }.dashboard-shell { width: 100%; }.calendar-header { align-items: flex-start; flex-direction: column; } }
