/* 2026-07-29. COS-inspired dark and gold visual system for OroShop Back Office. */
:root {
  color-scheme: dark;
  --background: #090b0e;
  --surface: #111419;
  --surface-raised: #171b21;
  --surface-soft: #1c2129;
  --border: #2a3039;
  --border-soft: rgba(255, 255, 255, 0.07);
  --gold: #d5ad58;
  --gold-bright: #f0ce7a;
  --gold-muted: rgba(213, 173, 88, 0.14);
  --text: #f4f1e9;
  --text-soft: #a7adb7;
  --danger: #ff8f8f;
  --success: #6fd2a0;
  --sidebar-width: 270px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(213, 173, 88, 0.05), transparent 30%),
    var(--background);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--border-soft);
  background: rgba(14, 17, 21, 0.96);
}

.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand {
  padding: 0 10px 34px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(240, 206, 122, 0.55);
  border-radius: 11px;
  background: linear-gradient(145deg, #332818, #17130d);
  box-shadow: 0 0 30px rgba(213, 173, 88, 0.08);
  color: var(--gold-bright);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark.large {
  width: 50px;
  height: 50px;
}

.brand-name,
.brand-area {
  display: block;
}

.brand-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-area {
  margin-top: 2px;
  color: var(--gold);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-entry {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
  transition: 160ms ease;
}

.nav-entry:hover:not(.disabled) {
  border-color: var(--border-soft);
  background: var(--surface-raised);
  color: var(--text);
}

.nav-entry.active {
  border-color: rgba(213, 173, 88, 0.23);
  background: linear-gradient(90deg, var(--gold-muted), rgba(213, 173, 88, 0.03));
  color: var(--gold-bright);
}

.nav-entry.active::before {
  position: absolute;
  left: -21px;
  width: 3px;
  height: 28px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
  content: "";
}

.nav-entry.disabled {
  cursor: not-allowed;
  opacity: 0.43;
}

.nav-entry .rzi {
  font-size: 21px;
}

.coming-soon,
.placeholder-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coming-soon {
  padding: 4px 7px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 18px 10px 2px;
  border-top: 1px solid var(--border-soft);
  color: #737a85;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
}

.environment-dot,
.status-pulse {
  display: inline-block;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(111, 210, 160, 0.55);
}

.environment-dot {
  width: 7px;
  height: 7px;
}

.content-shell {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 42px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(9, 11, 14, 0.76);
  backdrop-filter: blur(18px);
}

.topbar-title {
  display: grid;
  gap: 3px;
  font-size: 15px;
  font-weight: 600;
}

.eyebrow,
.user-label {
  color: var(--gold);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--gold);
}

.user-copy {
  display: grid;
  min-width: 110px;
}

.user-copy strong {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
}

.logout-button.rz-button {
  margin-left: 8px;
  border: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  color: var(--text-soft);
  text-transform: none;
}

.logout-button.rz-button:hover {
  border-color: rgba(213, 173, 88, 0.4);
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.password-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 42px 0;
  padding: 15px 18px;
  border: 1px solid rgba(213, 173, 88, 0.3);
  border-radius: 10px;
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.password-notice > .rzi {
  font-size: 22px;
}

.password-notice div {
  display: grid;
  gap: 3px;
}

.password-notice strong {
  font-size: 13px;
}

.password-notice span {
  color: #c6b98f;
  font-size: 12px;
}

.page-content {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 46px 42px 60px;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.dashboard-header h1,
.login-heading h1,
.error-card h1 {
  margin: 9px 0 8px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.dashboard-header p,
.login-heading p,
.error-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.market-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 270px;
  padding: 13px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(23, 27, 33, 0.7);
}

.status-pulse {
  width: 8px;
  height: 8px;
}

.market-status div {
  display: grid;
  gap: 3px;
}

.market-status strong {
  font-size: 12px;
}

.market-status span:last-child {
  color: var(--text-soft);
  font-size: 11px;
}

.quotation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quotation-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 60%),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.13);
}

.quotation-card::after {
  position: absolute;
  right: -30px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  filter: blur(45px);
  opacity: 0.09;
}

.quotation-card.gold {
  color: #e7bd62;
}

.quotation-card.silver {
  color: #c7ced8;
}

.quotation-card.platinum {
  color: #9ccbc7;
}

.quotation-card.palladium {
  color: #a8a8d6;
}

.quotation-topline,
.quotation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metal-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
}

.quotation-topline .rzi {
  font-size: 20px;
  opacity: 0.68;
}

.quotation-copy {
  display: grid;
  gap: 8px;
  margin: 26px 0 24px;
}

.quotation-copy > span {
  color: var(--text-soft);
  font-size: 13px;
}

.quotation-copy strong {
  overflow: hidden;
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quotation-copy small {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.quotation-meta {
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 10px;
}

.placeholder-chip {
  padding: 4px 7px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.panel {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 160px;
  padding: 25px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(17, 20, 25, 0.62);
}

.panel-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(213, 173, 88, 0.25);
  border-radius: 10px;
  background: var(--gold-muted);
  color: var(--gold);
}

.panel h2 {
  margin: 10px 0 7px;
  font-size: 17px;
  font-weight: 600;
}

.panel p {
  max-width: 480px;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.login-layout {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 32px 20px;
  background:
    linear-gradient(rgba(9, 11, 14, 0.88), rgba(9, 11, 14, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.018) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, 0.018) 80px);
}

.login-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(213, 173, 88, 0.07);
  filter: blur(100px);
  pointer-events: none;
}

.login-glow-left {
  top: -180px;
  left: -130px;
}

.login-glow-right {
  right: -170px;
  bottom: -220px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 20, 25, 0.96);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.42);
}

.login-brand {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-soft);
}

.login-heading {
  padding: 30px 0 25px;
}

.login-heading h1 {
  font-size: 35px;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 143, 143, 0.24);
  border-radius: 9px;
  background: rgba(255, 143, 143, 0.08);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  color: #c8cbd0;
  font-size: 12px;
  font-weight: 600;
}

.form-field .rz-textbox,
.form-field .rz-password {
  min-height: 46px;
  border-color: var(--border);
  border-radius: 9px;
  background: #0d1014;
  color: var(--text);
  box-shadow: none;
}

.form-field .rz-textbox:focus,
.form-field .rz-password:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(213, 173, 88, 0.1);
}

.validation-message {
  color: var(--danger);
  font-size: 11px;
}

.login-button.rz-button {
  width: 100%;
  min-height: 47px;
  margin-top: 5px;
  border: 1px solid #e0b85e;
  border-radius: 9px;
  background: linear-gradient(135deg, #d5ad58, #b88b34);
  box-shadow: 0 10px 30px rgba(213, 173, 88, 0.13);
  color: #171109;
  font-weight: 700;
  text-transform: none;
}

.login-button.rz-button:hover {
  background: linear-gradient(135deg, #e2bd6b, #c69a43);
}

.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
  color: #707782;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 9px;
}

.login-security .rzi {
  color: var(--gold);
  font-size: 15px;
}

.error-card {
  text-align: center;
}

.error-card .panel-icon {
  margin: 0 auto 24px;
}

.error-card .login-button {
  margin-top: 26px;
}

.empty-state {
  display: grid;
  min-height: 55vh;
  place-items: center;
  align-content: center;
  color: var(--text-soft);
  text-align: center;
}

.empty-state .rzi {
  color: var(--gold);
  font-size: 42px;
}

.empty-state h1 {
  margin: 18px 0 8px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
}

@media (max-width: 1050px) {
  :root {
    --sidebar-width: 220px;
  }

  .quotation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .page-content {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .brand {
    padding: 0 4px 18px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-entry {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 0 10px;
  }

  .coming-soon,
  .sidebar-footer {
    display: none;
  }

  .nav-entry.active::before {
    display: none;
  }

  .topbar {
    min-height: 72px;
    padding: 0 18px;
  }

  .topbar-title,
  .user-copy {
    display: none;
  }

  .password-notice {
    margin: 16px 18px 0;
  }

  .page-content {
    padding: 32px 18px 45px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-status {
    width: 100%;
  }

  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .nav-entry.disabled {
    display: none;
  }

  .quotation-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 28px 22px;
  }

  .logout-button.rz-button .rz-button-text {
    display: none;
  }
}
