/* Premium CMS surface: a calmer, higher-contrast ocean workspace. */
.admin-workspace {
  --admin-bg: #071b35;
  --admin-panel: #0b2850;
  --admin-panel-strong: #0d315e;
  --admin-line: rgba(129, 202, 255, .18);
  --admin-text: #eef8ff;
  --admin-muted: #8eacc5;
  --admin-blue: #66b7ff;
  --admin-cyan: #63e3ff;
  color: var(--admin-text) !important;
  background: var(--admin-bg) !important;
  font-family: 'DM Sans', Inter, system-ui, sans-serif;
}
.admin-workspace button,
.admin-workspace input,
.admin-workspace textarea,
.admin-workspace select { font-family: inherit; }
.admin-workspace .admin-sidebar {
  width: 266px;
  flex-basis: 266px;
  padding: 20px 16px 18px;
  color: var(--admin-muted) !important;
  border-right: 1px solid var(--admin-line) !important;
  background: linear-gradient(180deg, #0b326d 0%, #092657 54%, #071b3c 100%) !important;
}
.admin-workspace .admin-brand {
  min-height: 64px;
  padding: 0 2px 18px;
  border-bottom: 1px solid var(--admin-line) !important;
}
.admin-workspace .admin-brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  border-radius: 14px;
  background: #2f8df0;
  box-shadow: 0 10px 24px rgba(35, 139, 244, .28);
}
.admin-workspace .admin-brand b { color: #fff !important; font-size: 16px; }
.admin-workspace .admin-brand b span { color: var(--admin-cyan) !important; }
.admin-workspace .admin-brand small { color: #8fb2d0 !important; }
.admin-workspace .admin-nav { gap: 6px !important; padding-top: 20px !important; }
.admin-workspace .admin-tab {
  min-height: 48px;
  color: #9bb9d2 !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  background: transparent !important;
}
.admin-workspace .admin-tab span { color: var(--admin-blue) !important; }
.admin-workspace .admin-tab b { color: inherit !important; font-size: 12px; }
.admin-workspace .admin-tab:hover,
.admin-workspace .admin-tab.is-active {
  color: #fff !important;
  border-color: rgba(106, 190, 255, .34) !important;
  background: linear-gradient(90deg, rgba(78, 158, 255, .25), rgba(78, 158, 255, .09)) !important;
  box-shadow: inset 3px 0 0 var(--admin-cyan), 0 8px 20px rgba(0, 10, 35, .14);
}
.admin-workspace .admin-back { color: #8eacc5 !important; }
.admin-workspace .admin-back:hover { color: var(--admin-cyan) !important; }
.admin-workspace .admin-main { background: var(--admin-bg) !important; }
.admin-workspace .admin-toolbar {
  min-height: 74px;
  padding: 12px clamp(20px, 4vw, 48px);
  color: var(--admin-text) !important;
  border-bottom: 1px solid var(--admin-line) !important;
  background: rgba(5, 19, 39, .88) !important;
  box-shadow: 0 8px 28px rgba(0, 6, 25, .14);
  backdrop-filter: blur(16px);
}
.admin-workspace .admin-toolbar .text-\[\#2477d4\],
.admin-workspace .admin-toolbar > div:first-child > span { color: var(--admin-blue) !important; }
.admin-workspace .admin-toolbar strong { color: #f3f9ff !important; }
.admin-workspace .admin-toolbar-actions { gap: 10px !important; }
.admin-workspace #adminStatus { color: #8eacc5 !important; }
.admin-workspace .admin-close,
.admin-workspace [data-admin-action="close"]:last-child {
  color: #a6bed2 !important;
  border-color: var(--admin-line) !important;
  background: rgba(255,255,255,.04) !important;
}
.admin-workspace .admin-close:hover,
.admin-workspace [data-admin-action="close"]:last-child:hover { color: #fff !important; border-color: var(--admin-blue) !important; }
.admin-workspace .admin-save,
.admin-workspace .admin-add {
  min-height: 44px;
  color: #04213d !important;
  border-radius: 13px !important;
  background: linear-gradient(115deg, #62adff, #63e3ff) !important;
  box-shadow: 0 12px 26px rgba(64, 163, 255, .2) !important;
}
.admin-workspace .admin-save:hover,
.admin-workspace .admin-add:hover { filter: brightness(1.06); transform: translateY(-2px); }
.admin-workspace .admin-scroll {
  padding: clamp(24px, 4vw, 48px);
  background: radial-gradient(circle at 76% 0%, rgba(36, 110, 205, .16), transparent 34%), var(--admin-bg) !important;
}
.admin-workspace .admin-scroll > section { width: min(1060px, 100%); margin-inline: auto; }
.admin-workspace .admin-scroll h2,
.admin-workspace .admin-scroll .text-\[\#0f1b2e\] { color: var(--admin-text) !important; }
.admin-workspace .admin-scroll p,
.admin-workspace .admin-scroll .text-\[\#6b7b91\],
.admin-workspace .admin-scroll .text-\[\#94a3b8\] { color: var(--admin-muted) !important; }
.admin-workspace .admin-scroll .text-\[\#2477d4\] { color: var(--admin-blue) !important; }
.admin-workspace .admin-card {
  color: var(--admin-text) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, rgba(14, 51, 91, .96), rgba(9, 35, 70, .96)) !important;
  box-shadow: 0 15px 35px rgba(0, 7, 28, .18) !important;
}
.admin-workspace .admin-card:hover { border-color: rgba(102, 183, 255, .42) !important; }
.admin-workspace .admin-field > span { color: #9bb9d2 !important; }
.admin-workspace .admin-field input,
.admin-workspace .admin-field textarea,
.admin-workspace .admin-field select,
.admin-workspace .admin-card select {
  color: #eef8ff !important;
  border-color: rgba(129, 202, 255, .2) !important;
  border-radius: 11px !important;
  outline: none;
  background: rgba(3, 18, 42, .72) !important;
}
.admin-workspace .admin-field input::placeholder,
.admin-workspace .admin-field textarea::placeholder { color: #6f8da9 !important; }
.admin-workspace .admin-field input:focus,
.admin-workspace .admin-field textarea:focus,
.admin-workspace .admin-field select:focus {
  border-color: var(--admin-cyan) !important;
  box-shadow: 0 0 0 3px rgba(99, 227, 255, .13) !important;
}
.admin-workspace .admin-field option { color: #102b4d; background: #fff; }
.admin-workspace [class*="bg-[#eef6ff]"],
.admin-workspace [class*="bg-[#f4f9ff]"],
.admin-workspace [class*="bg-[#f6f8fa]"],
.admin-workspace [class*="bg-white"] { background: rgba(102, 183, 255, .09) !important; }
.admin-workspace [class*="border-[#e9eef3]"] { border-color: var(--admin-line) !important; }
.admin-workspace [class*="border-[#cfe2f4]"] { border-color: rgba(102, 183, 255, .28) !important; }
.admin-workspace [class*="text-[#517092]"] { color: #9bb9d2 !important; }
.admin-workspace [class*="text-emerald-900"],
.admin-workspace [class*="text-amber-900"] { color: #eaf8ff !important; }
.admin-workspace [class*="bg-emerald-50"] { background: rgba(29, 180, 138, .14) !important; }
.admin-workspace [class*="bg-amber-50"] { background: rgba(245, 177, 61, .14) !important; }
.admin-workspace .admin-firebase-card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(99, 227, 255, .24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 73, 116, .9), rgba(10, 40, 78, .92));
  box-shadow: 0 18px 38px rgba(0, 8, 30, .18);
}
.admin-firebase-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-firebase-title { display: flex; align-items: center; gap: 12px; }
.admin-firebase-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #06213d; border-radius: 13px; background: linear-gradient(135deg, #66b7ff, #63e3ff); font-weight: 900; }
.admin-firebase-title strong { display: block; color: #f2fbff; font-size: 15px; }
.admin-firebase-title p { margin: 4px 0 0; color: #a8c8df; font-size: 12px; }
.admin-firebase-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #c7f9e8; border: 1px solid rgba(105, 231, 190, .25); border-radius: 999px; background: rgba(41, 188, 137, .12); font-size: 10px; font-weight: 800; white-space: nowrap; }
.admin-firebase-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #61e4b5; box-shadow: 0 0 0 4px rgba(97, 228, 181, .12); }
.admin-firebase-badge.is-warning { color: #ffe0a0; border-color: rgba(255, 204, 104, .25); background: rgba(245, 177, 61, .12); }
.admin-firebase-badge.is-warning::before { background: #ffc45c; box-shadow: 0 0 0 4px rgba(255, 196, 92, .12); }
.admin-firebase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.admin-firebase-detail { min-width: 0; padding: 12px; border: 1px solid rgba(158, 218, 255, .14); border-radius: 12px; background: rgba(2, 20, 45, .28); }
.admin-firebase-detail small { display: block; color: #82a9c7; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-firebase-detail strong { display: block; margin-top: 5px; overflow: hidden; color: #ecf8ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-firebase-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.admin-firebase-check { min-height: 38px; padding: 0 13px; color: #06213d; border: 0; border-radius: 10px; background: #d5f8ff; cursor: pointer; font-size: 11px; font-weight: 800; }
.admin-firebase-check:hover { background: #fff; transform: translateY(-1px); }
.admin-firebase-check:disabled { opacity: .65; cursor: wait; transform: none; }
.admin-firebase-result { min-height: 18px; color: #9ec1d9; font-size: 11px; text-align: right; }
.admin-firebase-result.is-success { color: #8ce4c2; }
.admin-firebase-result.is-error { color: #ffb4b4; }
.admin-workspace .admin-reset { color: #ffb5bd !important; border-color: rgba(255, 150, 160, .28) !important; background: rgba(180, 70, 80, .14) !important; }
@media (max-width: 900px) { .admin-workspace .admin-sidebar { width: 220px; flex-basis: 220px; } .admin-firebase-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .admin-workspace { position: absolute; min-height: 100dvh; }
  .admin-workspace .admin-sidebar { width: 100%; padding: 12px; }
  .admin-workspace .admin-brand { padding: 2px 8px 12px; }
  .admin-workspace .admin-nav { overflow-x: auto; padding-top: 10px !important; }
  .admin-workspace .admin-toolbar { padding: 14px 16px; }
  .admin-workspace .admin-scroll { padding: 18px 14px 30px; }
  .admin-firebase-head, .admin-firebase-actions { align-items: flex-start; flex-direction: column; }
  .admin-firebase-result { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .admin-workspace .admin-tab, .admin-workspace .admin-card, .admin-workspace .admin-save, .admin-workspace .admin-add, .admin-firebase-check { transition: none; } }

.admin-auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  color: #eef8ff;
  background: radial-gradient(circle at 72% 8%, rgba(44, 132, 233, .24), transparent 34%), linear-gradient(145deg, #071b35, #061329 72%);
  font-family: 'DM Sans', Inter, system-ui, sans-serif;
}
.admin-auth-card {
  width: min(100%, 470px);
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(129, 202, 255, .23);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(14, 51, 91, .97), rgba(7, 29, 59, .98));
  box-shadow: 0 30px 80px rgba(0, 6, 25, .42), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.admin-auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 42px; color: #fff; font-size: 17px; font-weight: 800; }
.admin-auth-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 13px; background: #2f8df0; box-shadow: 0 10px 25px rgba(35, 139, 244, .28); }
.admin-auth-brand span span { color: #63e3ff; }
.admin-auth-eyebrow { color: #66b7ff; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.admin-auth-card h1 { margin: 10px 0 0; color: #f3f9ff; font-size: clamp(28px, 5vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.admin-auth-copy { margin: 14px 0 27px; color: #9bb9d2; font-size: 14px; line-height: 1.65; }
.admin-auth-form { display: grid; gap: 14px; }
.admin-auth-field { display: grid; gap: 7px; }
.admin-auth-field span { color: #b9d1e5; font-size: 12px; font-weight: 700; }
.admin-auth-field input { min-height: 48px; width: 100%; padding: 0 14px; color: #eef8ff; border: 1px solid rgba(129, 202, 255, .2); border-radius: 12px; outline: none; background: rgba(3, 18, 42, .72); font-size: 14px; }
.admin-auth-field input::placeholder { color: #6f8da9; }
.admin-auth-field input:focus { border-color: #63e3ff; box-shadow: 0 0 0 3px rgba(99, 227, 255, .13); }
.admin-auth-submit { min-height: 48px; margin-top: 5px; color: #04213d; border: 0; border-radius: 13px; background: linear-gradient(115deg, #62adff, #63e3ff); box-shadow: 0 12px 26px rgba(64, 163, 255, .2); cursor: pointer; font-size: 13px; font-weight: 800; }
.admin-auth-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.admin-auth-submit:disabled { opacity: .58; cursor: wait; transform: none; }
.admin-auth-status { min-height: 19px; margin: 0; color: #8ce4c2; font-size: 12px; line-height: 1.45; }
.admin-auth-status.is-error { color: #ffb4b4; }
.admin-auth-notice { display: grid; gap: 5px; margin: -8px 0 18px; padding: 12px 14px; border: 1px solid rgba(255, 204, 104, .25); border-radius: 12px; background: rgba(245, 177, 61, .12); color: #ffe0a0; font-size: 12px; line-height: 1.5; }
.admin-auth-notice strong { color: #fff0c9; }
.admin-auth-footnote { margin: 26px 0 0; color: #789ab8; font-size: 11px; line-height: 1.55; text-align: center; }
.admin-auth-back { display: block; margin-top: 18px; color: #8ec8f4; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.admin-auth-back:hover { color: #63e3ff; }
.admin-auth-loading { display: grid; justify-items: center; gap: 16px; text-align: center; }
.admin-auth-loading p { margin: 0; color: #9bb9d2; font-size: 13px; }
.admin-auth-spinner { width: 30px; height: 30px; border: 3px solid rgba(99, 227, 255, .18); border-top-color: #63e3ff; border-radius: 50%; animation: admin-auth-spin .8s linear infinite; }
@keyframes admin-auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .admin-auth-card { padding: 26px 20px; border-radius: 19px; } .admin-auth-brand { margin-bottom: 34px; } }
@media (prefers-reduced-motion: reduce) { .admin-auth-spinner { animation: none; } .admin-auth-submit:hover { transform: none; } }

.admin-content-tools {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: rgba(7, 27, 53, .92);
  box-shadow: 0 12px 28px rgba(0, 6, 25, .18);
  backdrop-filter: blur(14px);
}
.admin-content-tools input,
.admin-content-tools select {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  color: var(--admin-text);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  outline: none;
  background: rgba(3, 18, 42, .72);
  font-size: 12px;
}
.admin-content-tools input:focus,
.admin-content-tools select:focus { border-color: var(--admin-cyan); box-shadow: 0 0 0 3px rgba(99, 227, 255, .13); }
.admin-content-tools input::placeholder { color: #6f8da9; }
.admin-content-tools > span {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0 10px;
  color: #06213d;
  border-radius: 10px;
  background: linear-gradient(135deg, #66b7ff, #63e3ff);
  font-size: 12px;
  font-weight: 800;
}
.admin-content-list { display: grid; gap: 12px; }
.admin-content-card {
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(14, 51, 91, .96), rgba(9, 35, 70, .96));
  box-shadow: 0 12px 27px rgba(0, 7, 28, .14);
}
.admin-content-card > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(102, 183, 255, .07);
}
.admin-content-card > header strong { color: var(--admin-cyan); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-content-card > header code { overflow: hidden; color: #9bb9d2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.admin-content-field { display: grid; gap: 7px; }
.admin-content-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #d7ebfa; font-size: 11px; }
.admin-content-field > span b { overflow: hidden; color: #d7ebfa; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-content-field > span small { flex: 0 0 auto; color: #7fa5c2; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-content-field textarea { min-height: 60px; width: 100%; padding: 10px 11px; color: #eef8ff; border: 1px solid rgba(129, 202, 255, .2); border-radius: 10px; outline: none; background: rgba(3, 18, 42, .72); font-size: 12px; line-height: 1.45; resize: vertical; }
.admin-content-field textarea:focus { border-color: var(--admin-cyan); box-shadow: 0 0 0 3px rgba(99, 227, 255, .13); }
.admin-content-field[hidden], .admin-content-card[hidden] { display: none; }
@media (max-width: 700px) {
  .admin-content-tools { grid-template-columns: 1fr; position: static; }
  .admin-content-grid { grid-template-columns: 1fr; }
  .admin-content-card > header { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* WordPress-like editing workspace: pages first, then content blocks. */
.admin-workspace { display: flex; min-height: 100dvh; width: 100%; }
.admin-workspace .admin-sidebar { position: sticky; top: 0; z-index: 8; display: flex; min-height: 100dvh; flex-direction: column; }
.admin-workspace .admin-main { min-width: 0; flex: 1; }
.admin-workspace .admin-nav { display: flex; flex-direction: column; }
.admin-workspace .admin-back { min-height: 44px; margin-top: auto; padding: 0 8px; border-top: 1px solid var(--admin-line); }
.admin-workspace .admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-workspace .admin-toolbar > div:first-child { min-width: 0; }
.admin-workspace .admin-toolbar > div:first-child span { display: block; color: var(--admin-blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.admin-workspace .admin-toolbar > div:first-child strong { display: block; margin-top: 4px; color: #f3f9ff; font-size: 18px; }
.admin-workspace .admin-toolbar-actions { display: flex; align-items: center; }
.admin-workspace .admin-toolbar-actions #adminStatus { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-workspace .admin-scroll { min-height: calc(100dvh - 74px); overflow: auto; }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.admin-page-heading h2 { margin: 8px 0 0; color: var(--admin-text) !important; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px, 4vw, 43px); line-height: 1.04; letter-spacing: -.04em; }
.admin-page-heading p { max-width: 640px; margin: 10px 0 0; color: var(--admin-muted); font-size: 13px; line-height: 1.65; }
.admin-section-kicker { display: inline-flex; color: var(--admin-blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.admin-live-badge { display: inline-flex; align-items: center; gap: 8px; color: #bdebdc; font-size: 11px; font-weight: 800; white-space: nowrap; }
.admin-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #63e3b4; box-shadow: 0 0 0 4px rgba(99,227,180,.13); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.admin-stat-card, .admin-quick-card { color: var(--admin-text); border: 1px solid var(--admin-line); border-radius: 16px; background: linear-gradient(145deg, rgba(14,51,91,.96), rgba(9,35,70,.96)); cursor: pointer; text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.admin-stat-card { display: grid; min-height: 135px; padding: 17px; }
.admin-stat-card:hover, .admin-quick-card:hover { border-color: rgba(102,183,255,.55); box-shadow: 0 16px 30px rgba(0,7,28,.2); transform: translateY(-2px); }
.admin-stat-card span, .admin-quick-card > span { color: var(--admin-blue); }
.admin-stat-card strong { margin-top: 9px; font-size: 31px; line-height: 1; }
.admin-stat-card small, .admin-quick-card small { color: var(--admin-muted); font-size: 11px; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.admin-quick-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px; }
.admin-quick-card > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: rgba(102,183,255,.11); }
.admin-quick-card strong { display: block; color: #f3f9ff; font-size: 12px; }
.admin-quick-card b { margin-left: auto; color: var(--admin-cyan); }
.admin-tip, .admin-info-banner { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(102,183,255,.22); border-radius: 15px; background: rgba(102,183,255,.08); }
.admin-tip > span, .admin-info-banner > span { flex: 0 0 auto; color: var(--admin-cyan); }
.admin-tip strong { color: #eaf8ff; font-size: 12px; }
.admin-tip p, .admin-info-banner p { margin: 4px 0 0; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.admin-card-list { display: grid; gap: 13px; }
.admin-card { padding: 18px; }
.admin-card-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-card-toolbar > div:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-card-toolbar > div:first-child strong { overflow: hidden; color: #f4fbff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-order-number { color: var(--admin-cyan); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.admin-row-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.admin-row-actions button { display: grid; width: 34px; height: 34px; place-items: center; color: #a9c9df; border: 1px solid var(--admin-line); border-radius: 9px; background: rgba(255,255,255,.04); cursor: pointer; font-weight: 800; }
.admin-row-actions button:hover { color: #fff; border-color: var(--admin-blue); background: rgba(102,183,255,.13); }
.admin-row-actions button.is-danger { color: #ffb7bd; border-color: rgba(255,150,160,.28); }
.admin-row-actions button.is-danger:hover { color: #fff; border-color: #ff8b98; background: rgba(180,70,80,.25); }
.admin-bilingual-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.admin-field { display: grid; min-width: 0; gap: 7px; margin-bottom: 12px; }
.admin-field > span { color: #a9c9df !important; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.admin-field input, .admin-field textarea, .admin-field select { min-height: 42px; width: 100%; padding: 10px 11px; color: #eef8ff !important; border: 1px solid rgba(129,202,255,.2) !important; border-radius: 10px !important; outline: none; background: rgba(3,18,42,.72) !important; font-size: 12px; line-height: 1.45; }
.admin-field textarea { min-height: 82px; resize: vertical; }
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: var(--admin-cyan) !important; box-shadow: 0 0 0 3px rgba(99,227,255,.13) !important; }
.admin-field input::placeholder, .admin-field textarea::placeholder { color: #6f8da9 !important; }
.admin-direction-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--admin-line); }
.admin-direction-thumb { display: grid; width: 66px; height: 48px; flex: 0 0 66px; place-items: center; overflow: hidden; border-radius: 9px; background: rgba(102,183,255,.12); color: var(--admin-blue); }
.admin-direction-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-direction-preview strong, .admin-direction-preview small { display: block; }
.admin-direction-preview strong { color: #f4fbff; font-size: 13px; }
.admin-direction-preview small { margin-top: 4px; color: var(--admin-muted); font-size: 11px; }
.admin-subsection-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 12px; padding-top: 16px; border-top: 1px solid var(--admin-line); }
.admin-subsection-head strong, .admin-subsection-head small { display: block; }
.admin-subsection-head strong { color: #eaf8ff; font-size: 13px; }
.admin-subsection-head small { margin-top: 3px; color: var(--admin-muted); font-size: 10px; }
.admin-inline-button, .admin-preview-button { min-height: 36px; padding: 0 12px; color: var(--admin-cyan); border: 1px solid rgba(99,227,255,.3); border-radius: 9px; background: rgba(99,227,255,.08); cursor: pointer; font-size: 11px; font-weight: 800; }
.admin-inline-button:hover, .admin-preview-button:hover { color: #06213d; background: var(--admin-cyan); }
.admin-schedule-rows { display: grid; gap: 10px; }
.admin-schedule-row { padding: 13px; border: 1px solid rgba(129,202,255,.14); border-radius: 13px; background: rgba(3,18,42,.28); }
.admin-schedule-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.admin-schedule-row-head strong { color: #bde7ff; font-size: 12px; }
.admin-schedule-row-head button { width: 30px; height: 30px; color: #ffb7bd; border: 1px solid rgba(255,150,160,.25); border-radius: 8px; background: rgba(180,70,80,.12); cursor: pointer; }
.admin-schedule-fields { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr .7fr; gap: 10px; }
.admin-schedule-fields .admin-field { margin-bottom: 0; }
.admin-gallery-page-select { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; }
.admin-gallery-page-select .admin-field { width: min(420px,100%); margin: 0; }
.admin-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-gallery-row { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; align-items: start; gap: 15px; }
.admin-gallery-thumb { display: grid; width: 82px; height: 82px; place-items: center; overflow: hidden; border-radius: 11px; background: rgba(102,183,255,.11); color: var(--admin-blue); }
.admin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-fields { min-width: 0; display: grid; grid-template-columns: 1fr 160px; gap: 10px; }
.admin-gallery-fields .admin-field:last-child { grid-column: 1 / -1; }
.admin-gallery-fields .admin-field { margin-bottom: 0; }
.admin-alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; padding: 14px 16px; border: 1px solid var(--admin-line); border-radius: 13px; font-size: 12px; }
.admin-alert strong, .admin-alert span { display: block; }
.admin-alert span { margin-top: 3px; color: var(--admin-muted); }
.admin-alert.is-success { border-color: rgba(99,227,180,.28); background: rgba(29,180,138,.12); }
.admin-alert.is-warning { border-color: rgba(255,204,104,.25); background: rgba(245,177,61,.12); }
.admin-alert button { min-height: 34px; padding: 0 10px; color: #d7faff; border: 1px solid var(--admin-line); border-radius: 8px; background: rgba(255,255,255,.05); cursor: pointer; font-size: 11px; font-weight: 800; }
.admin-firebase-login { margin-bottom: 17px; padding: 16px; border: 1px solid rgba(102,183,255,.24); border-radius: 14px; background: rgba(102,183,255,.08); }
.admin-firebase-login > strong { color: #eaf8ff; font-size: 13px; }
.admin-firebase-login > p { margin: 5px 0 14px; color: var(--admin-muted); font-size: 11px; }
.admin-firebase-login > .admin-save { display: block; margin-left: auto; }
.admin-empty-state { padding: 34px 20px; color: var(--admin-muted); border: 1px dashed rgba(129,202,255,.3); border-radius: 15px; text-align: center; }
.admin-empty-state strong { color: #eaf8ff; font-size: 14px; }
.admin-empty-state p { margin: 6px 0 0; font-size: 12px; }
.admin-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; }
.admin-setting-row strong { color: #eaf8ff; font-size: 13px; }
.admin-setting-row p { margin: 5px 0 0; color: var(--admin-muted); font-size: 11px; line-height: 1.5; }
.admin-saved-hint { color: #9be9c9; font-size: 11px; font-weight: 800; }

/* Page picker and editor. */
.admin-content-editor { display: grid; grid-template-columns: minmax(235px, 280px) minmax(0, 1fr); align-items: start; gap: 22px; }
.admin-page-picker { position: sticky; top: 0; max-height: calc(100dvh - 110px); overflow: auto; padding: 15px 12px; border: 1px solid var(--admin-line); border-radius: 16px; background: rgba(5,24,48,.72); }
.admin-page-picker-head { padding: 2px 5px 14px; }
.admin-page-picker-head strong { display: block; margin-top: 6px; color: #f3f9ff; font-size: 16px; }
.admin-page-picker-head p { margin: 5px 0 0; color: var(--admin-muted); font-size: 11px; line-height: 1.45; }
.admin-page-search { display: block; margin: 0 0 13px; }
.admin-page-search input { min-height: 38px; width: 100%; padding: 0 10px; color: #eef8ff; border: 1px solid var(--admin-line); border-radius: 9px; outline: none; background: rgba(3,18,42,.72); font-size: 11px; }
.admin-page-search input:focus { border-color: var(--admin-cyan); box-shadow: 0 0 0 3px rgba(99,227,255,.13); }
.admin-page-group { display: grid; gap: 3px; margin-top: 12px; }
.admin-page-group-title { padding: 3px 7px; color: #79bdf0; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-page-picker-button { display: grid; grid-template-columns: 23px minmax(0,1fr) 14px; align-items: center; gap: 7px; width: 100%; min-height: 47px; padding: 7px; color: #a9c9df; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; }
.admin-page-picker-button:hover, .admin-page-picker-button.is-active { color: #fff; border-color: rgba(102,183,255,.3); background: rgba(78,158,255,.17); }
.admin-page-picker-button[hidden] { display: none; }
.admin-page-picker-number { color: #6e9fc2; font-size: 9px; font-weight: 800; }
.admin-page-picker-copy { min-width: 0; }
.admin-page-picker-copy b, .admin-page-picker-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-page-picker-copy b { color: inherit; font-size: 11px; }
.admin-page-picker-copy small { margin-top: 2px; color: #7698b5; font-size: 9px; }
.admin-page-picker-arrow { color: var(--admin-cyan); font-size: 18px; }
.admin-page-editor { min-width: 0; }
.admin-page-editor-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.admin-page-editor-head h2 { margin: 7px 0 0; color: #f3f9ff; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(27px, 4vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
.admin-page-editor-head p { margin: 8px 0 0; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.admin-content-tools { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 8px; margin-bottom: 13px; padding: 9px; border: 1px solid var(--admin-line); border-radius: 12px; background: rgba(7,27,53,.94); }
.admin-content-tools input { flex: 1; min-height: 38px; min-width: 0; padding: 0 10px; color: #eef8ff; border: 1px solid var(--admin-line); border-radius: 9px; outline: none; background: rgba(3,18,42,.72); font-size: 11px; }
.admin-content-tools input:focus { border-color: var(--admin-cyan); box-shadow: 0 0 0 3px rgba(99,227,255,.13); }
.admin-language-chip, .admin-content-tools > span:last-child { display: grid; min-width: 34px; height: 34px; place-items: center; padding: 0 7px; color: #06213d; border-radius: 8px; background: linear-gradient(135deg,#66b7ff,#63e3ff); font-size: 9px; font-weight: 900; }
.admin-content-tools > span:last-child { min-width: 30px; background: rgba(102,183,255,.15); color: #bde7ff; }
.admin-content-list { display: grid; gap: 11px; }
.admin-content-card { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 13px; background: linear-gradient(145deg,rgba(14,51,91,.96),rgba(9,35,70,.96)); }
.admin-content-card[hidden] { display: none; }
.admin-content-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--admin-line); background: rgba(102,183,255,.07); }
.admin-content-card-label { overflow: hidden; color: #dcefff; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.admin-content-card code { overflow: hidden; color: #7698b5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-content-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; padding: 12px 13px 3px; }
.admin-content-field { display: grid; gap: 6px; min-width: 0; }
.admin-content-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #a9c9df; font-size: 10px; }
.admin-content-field > span b { overflow: hidden; color: #d7ebfa; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-content-field > span small { color: #7fa5c2; font-size: 9px; font-weight: 800; }
.admin-content-field textarea { min-height: 55px; width: 100%; padding: 9px 10px; color: #eef8ff; border: 1px solid rgba(129,202,255,.2); border-radius: 9px; outline: none; background: rgba(3,18,42,.72); font-size: 11px; line-height: 1.45; resize: vertical; }
.admin-content-field textarea:focus { border-color: var(--admin-cyan); box-shadow: 0 0 0 3px rgba(99,227,255,.13); }

@media (max-width: 980px) {
  .admin-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-content-editor { grid-template-columns: 1fr; }
  .admin-page-picker { position: static; max-height: none; }
  .admin-page-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 8px; }
  .admin-page-group { margin-top: 8px; }
  .admin-page-group-title { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .admin-workspace { display: block; }
  .admin-workspace .admin-sidebar { position: static; min-height: 0; width: 100%; }
  .admin-workspace .admin-brand { margin-bottom: 0; }
  .admin-workspace .admin-nav { display: flex; flex-direction: row; overflow-x: auto; padding-top: 10px !important; }
  .admin-workspace .admin-tab { flex: 0 0 auto; min-width: 92px; }
  .admin-workspace .admin-back { margin-top: 10px; }
  .admin-workspace .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-workspace .admin-toolbar-actions { width: 100%; justify-content: space-between; }
  .admin-workspace .admin-toolbar-actions #adminStatus { max-width: 150px; }
  .admin-page-heading, .admin-page-editor-head { align-items: flex-start; flex-direction: column; }
  .admin-heading-actions { width: 100%; justify-content: flex-start; }
  .admin-bilingual-grid, .admin-schedule-fields, .admin-gallery-fields { grid-template-columns: 1fr; }
  .admin-gallery-fields .admin-field:last-child { grid-column: auto; }
  .admin-gallery-row { grid-template-columns: 62px minmax(0,1fr); }
  .admin-gallery-thumb { width: 62px; height: 62px; }
  .admin-gallery-row > .admin-row-actions { grid-column: 1 / -1; }
  .admin-gallery-page-select { align-items: stretch; flex-direction: column; }
  .admin-gallery-page-select .admin-field { width: 100%; }
  .admin-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-stat-grid, .admin-quick-grid, .admin-page-list { grid-template-columns: 1fr; }
  .admin-workspace .admin-scroll { padding: 18px 12px 30px; }
  .admin-page-picker { padding: 12px 9px; }
  .admin-page-heading h2, .admin-page-editor-head h2 { font-size: 31px; }
  .admin-subsection-head { align-items: flex-start; flex-direction: column; }
  .admin-setting-row { align-items: flex-start; flex-direction: column; }
}

.admin-direction-image-editor { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; padding: 10px 11px; border: 1px solid rgba(129,202,255,.16); border-radius: 11px; background: rgba(3,18,42,.28); }
.admin-direction-image-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-direction-image-actions .admin-inline-button { min-height: 34px; }
.admin-inline-button.is-danger { color: #ffb7bd; border-color: rgba(255,150,160,.3); background: rgba(180,70,80,.1); }
.admin-inline-button.is-danger:hover { color: #fff; border-color: #ff8b98; background: rgba(180,70,80,.28); }
.admin-image-upload-status { color: var(--admin-muted); font-size: 10px; line-height: 1.4; text-align: right; }

@media (max-width: 520px) {
  .admin-direction-image-editor { align-items: flex-start; flex-direction: column; }
  .admin-image-upload-status { text-align: left; }
}

.admin-documents-manager { margin-top: 22px; }
.admin-documents-heading { margin: 0 0 12px; }
.admin-document-card { padding: 16px; }
.admin-document-current { display: flex; align-items: center; gap: 11px; min-width: 0; margin-bottom: 14px; padding: 12px; border: 1px solid rgba(129,202,255,.16); border-radius: 12px; background: rgba(3,18,42,.32); }
.admin-document-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: #06213d; border-radius: 11px; background: linear-gradient(135deg,#66b7ff,#63e3ff); font-size: 10px; font-weight: 900; }
.admin-document-file { min-width: 0; flex: 1; }
.admin-document-file strong, .admin-document-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-document-file strong { color: #eef8ff; font-size: 12px; }
.admin-document-file small { margin-top: 4px; color: var(--admin-muted); font-size: 10px; }
.admin-document-missing { color: #ffc96b; font-size: 10px; font-weight: 800; }
.admin-document-upload { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 11px; border: 1px solid rgba(129,202,255,.16); border-radius: 11px; background: rgba(3,18,42,.24); }
.admin-document-upload span { color: var(--admin-muted); font-size: 10px; line-height: 1.4; }
.admin-document-upload .admin-inline-button { flex: 0 0 auto; }
@media (max-width: 600px) {
  .admin-document-current, .admin-document-upload { align-items: flex-start; flex-wrap: wrap; }
  .admin-document-current .admin-preview-button { margin-left: 57px; }
  .admin-document-upload { flex-direction: column; }
  .admin-document-upload .admin-inline-button { width: 100%; }
}
