/* Lumen Platform - Master Stylesheet */
:root {
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --primary-light: rgba(34, 197, 94, 0.12);
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 12px 36px -4px rgba(15, 23, 42, 0.06), 0 4px 16px -2px rgba(15, 23, 42, 0.03);
  --radius-card: 24px;
  --radius-btn: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top App Header / Bar */
.top-nav {
  height: 52px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-brand .brand-badge {
  font-weight: 600;
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.wallet-pill:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.wallet-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Main Layout Centering */
.page-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* The Notice / Centered Modal Card */
.notice-card {
  width: 100%;
  max-width: 510px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 44px 38px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Graphic Container */
.graphic-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  min-height: 90px;
}

.status-svg {
  width: 170px;
  height: 90px;
  overflow: visible;
}

.notice-card-img {
  max-height: 95px;
  max-width: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Typography */
.card-title {
  font-size: 19.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 530px) {
  .card-title {
    font-size: 16px;
    white-space: normal;
  }
}

.card-body-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 28px;
}

.card-body-text p {
  margin-bottom: 14px;
}

.card-body-text p:last-child {
  margin-bottom: 0;
}

.support-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.support-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Primary Action Button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 13.5px 24px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Card Footer */
.card-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}

.card-footer a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.card-footer a:hover {
  color: #1d4ed8;
  opacity: 0.85;
}

/* Policy & Legal Content Pages */
.policy-card {
  width: 100%;
  max-width: 820px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 48px 44px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  margin: 24px auto;
  text-align: left;
}

.policy-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.policy-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.policy-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.policy-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

.policy-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 28px;
  margin-bottom: 10px;
}

.policy-body p {
  margin-bottom: 14px;
}

.policy-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.policy-body li {
  margin-bottom: 6px;
}

/* Auth Pages (Login, Register, Forgot Password) */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  height: 42px;
  width: auto;
  margin-bottom: 14px;
  display: inline-block;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}

.forgot-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Alert Boxes */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Admin Dashboard Specific Styles */
.admin-shell {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-title-area h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.admin-title-area p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 960px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.color-input-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.color-input-bubble::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input-bubble::-webkit-color-swatch {
  border: none;
}

.preview-container {
  position: sticky;
  top: 72px;
}

.preview-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #e2e8f0;
  color: #475569;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

/* Logo Rendering & Upload Components */
.nav-logo {
  height: 28px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
}

.header-logo-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-logo-img {
  height: 28px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 4px;
}

.auth-logo {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 6px;
}

.auth-default-icon {
  display: inline-block;
}

.logo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.logo-upload-zone:hover,
.logo-upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.logo-preview-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.logo-preview-area img {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
}

.logo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-file-change {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-file-change:hover {
  background: #e2e8f0;
}

.btn-remove-logo {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-logo:hover {
  background: #fee2e2;
}

