:root {
  --ro-green: #7aebc7;
  --ro-green-dark: #5fd4b0;
  --ro-text: #1a1a1a;
  --ro-muted: #5c5c5c;
  --ro-border: #e8e8e8;
  --ro-bg: #fafafa;
  --ro-card: #ffffff;
  --ro-danger: #ba1a1a;
  --ro-success: #0a5c36;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ro-bg);
  color: var(--ro-text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.ro-member-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ro-member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--ro-border);
}

.ro-member-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ro-member-brand svg {
  display: block;
}

.ro-member-top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ro-member-link {
  background: none;
  border: none;
  color: var(--ro-muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ro-member-main {
  flex: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.ro-card {
  background: var(--ro-card);
  border: 1px solid var(--ro-border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.ro-login-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
}

.ro-login-sub {
  margin: 0 0 1.75rem;
  color: var(--ro-muted);
}

.ro-field {
  margin-bottom: 1.25rem;
}

.ro-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.ro-field input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--ro-border);
  border-radius: 0.75rem;
  font: inherit;
  background: #fff;
}

.ro-field input:focus {
  outline: 2px solid rgba(122, 235, 199, 0.45);
  border-color: var(--ro-green-dark);
}

.ro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.875rem 1.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ro-btn:active {
  transform: scale(0.98);
}

.ro-btn-primary {
  width: 100%;
  background: var(--ro-text);
  color: #fff;
}

.ro-btn-primary:hover {
  background: #333;
}

.ro-btn-secondary {
  background: #fff;
  color: var(--ro-text);
  border: 1px solid var(--ro-border);
}

.ro-btn-ghost {
  background: transparent;
  color: var(--ro-muted);
  border: 1px solid var(--ro-border);
}

.ro-login-hint {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: rgba(122, 235, 199, 0.18);
  color: #134433;
  font-size: 0.875rem;
}

.ro-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #ffdad6;
  color: var(--ro-danger);
  font-size: 0.875rem;
}

.ro-hidden {
  display: none !important;
}

.ro-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.ro-dashboard-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.ro-dashboard-header p {
  margin: 0;
  color: var(--ro-muted);
}

.ro-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ro-stat {
  background: #fff;
  border: 1px solid var(--ro-border);
  border-radius: 0.875rem;
  padding: 1rem;
}

.ro-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ro-muted);
  margin-bottom: 0.35rem;
}

.ro-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.ro-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--ro-border);
  margin-bottom: 1.5rem;
}

.ro-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 0;
  font: inherit;
  font-weight: 600;
  color: var(--ro-muted);
  cursor: pointer;
}

.ro-tab.active {
  color: var(--ro-text);
  border-bottom-color: var(--ro-green-dark);
}

.ro-order-card {
  border: 1px solid var(--ro-border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}

.ro-order-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ro-order-title {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.125rem;
}

.ro-order-meta {
  margin: 0;
  color: var(--ro-muted);
  font-size: 0.875rem;
}

.ro-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ro-badge-pending { background: #f3f3f3; color: #666; }
.ro-badge-paid { background: #e8f5e9; color: #1b5e20; }
.ro-badge-shipped { background: #e3f2fd; color: #1565c0; }
.ro-badge-completed { background: #1a1a1a; color: #fff; }

.ro-order-amount {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.ro-order-product {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ro-border);
}

.ro-order-product strong {
  display: block;
  margin-bottom: 0.25rem;
}

.ro-order-product span {
  color: var(--ro-muted);
  font-size: 0.875rem;
}

.ro-progress-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ro-muted);
}

.ro-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.ro-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.45rem;
  height: 2px;
  background: var(--ro-border);
  z-index: 0;
}

.ro-progress-fill {
  position: absolute;
  left: 0;
  top: 0.45rem;
  height: 2px;
  background: var(--ro-text);
  z-index: 0;
  transition: width 0.35s ease;
}

.ro-progress-step {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  min-width: 0;
}

.ro-progress-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  background: #fff;
  border: 2px solid var(--ro-border);
}

.ro-progress-step.done .ro-progress-dot {
  background: var(--ro-text);
  border-color: var(--ro-text);
}

.ro-progress-step.active .ro-progress-dot {
  box-shadow: 0 0 0 3px rgba(122, 235, 199, 0.45);
}

.ro-progress-step span {
  display: block;
  font-size: 0.6875rem;
  color: var(--ro-muted);
}

.ro-progress-step.done span,
.ro-progress-step.active span {
  color: var(--ro-text);
  font-weight: 600;
}

.ro-logistics-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: #f7f7f7;
}

.ro-logistics-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ro-logistics-head strong {
  font-size: 0.9375rem;
}

.ro-logistics-head code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
}

.ro-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ro-timeline li {
  position: relative;
  padding-left: 1.25rem;
  padding-bottom: 0.875rem;
}

.ro-timeline li:last-child {
  padding-bottom: 0;
}

.ro-timeline li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ro-green-dark);
}

.ro-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: var(--ro-border);
}

.ro-timeline time {
  display: block;
  font-size: 0.75rem;
  color: var(--ro-muted);
}

.ro-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ro-muted);
}

@media (max-width: 720px) {
  .ro-stat-grid {
    grid-template-columns: 1fr;
  }

  .ro-order-top,
  .ro-dashboard-header,
  .ro-logistics-head {
    flex-direction: column;
  }

  .ro-member-top {
    padding: 1rem;
  }

  .ro-member-main {
    padding: 1.5rem 1rem 3rem;
  }
}
