.gc-root {
  display: flex;
  height: 100vh;
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  color: #333;
}

.gc-sidebar {
  width: 220px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.gc-sidebar-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.gc-sidebar-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}

.gc-sidebar-sub {
  margin: 0 0 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.gc-nav-item {
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 4px;
  transition: background 0.15s;
}

.gc-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gc-nav-item.active {
  background: rgba(255, 255, 255, 0.16);
  font-weight: 500;
}

.gc-nav-logout {
  margin-top: auto;
  opacity: 0.65;
}

.gc-main {
  flex: 1;
  overflow: auto;
  padding: 24px 28px;
  background: #f5f6fa;
}

.gc-page-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #1a1a2e;
}

.gc-card-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gc-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 140px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.gc-card-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.gc-card-val {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
}

.gc-panel {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}

.gc-panel-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  color: #555;
}

.gc-input,
.gc-select,
.gc-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.15s;
}

.gc-input:focus,
.gc-select:focus,
.gc-textarea:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.gc-textarea {
  min-height: 72px;
  resize: vertical;
}

.gc-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.gc-form-row .gc-input,
.gc-form-row .gc-select {
  flex: 1 1 140px;
  margin-bottom: 0;
}

.gc-btn-primary {
  padding: 10px 20px;
  background: #ff4d00;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s;
}

.gc-btn-primary:hover:not(:disabled) {
  background: #e64500;
}

.gc-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gc-btn-secondary {
  padding: 8px 16px;
  background: #fff;
  color: #333;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.gc-btn-secondary:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.gc-btn-small {
  padding: 5px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  background: #e8e8e8;
  color: #333;
}

.gc-btn-small.active {
  background: #1677ff;
  color: #fff;
}

.gc-btn-danger {
  padding: 5px 12px;
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.gc-btn-link {
  background: none;
  border: none;
  color: #1677ff;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}

.gc-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.gc-hint {
  color: #8c8c8c;
  font-size: 12px;
  margin: 0 0 12px;
}

.gc-error {
  color: #f5222d;
  font-size: 13px;
  margin-bottom: 10px;
}

.gc-warn-box {
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}

.gc-info-box {
  background: #e6f4ff;
  border: 1px solid #91caff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #0958d9;
}

.gc-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}

.gc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.gc-table th {
  background: #fafafa;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.gc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

.gc-table tr:last-child td {
  border-bottom: none;
}

.gc-table tr:hover td {
  background: #fafbff;
}

.gc-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #f0f0f0;
  color: #666;
}

.gc-tag.backend {
  background: #fff7e6;
  color: #d46b08;
}

.gc-empty {
  color: #999;
  text-align: center;
  padding: 32px;
}

.gc-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.gc-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.gc-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: min(520px, 92vw);
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gc-modal-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
}

.gc-detail-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.gc-detail-label {
  flex: 0 0 88px;
  color: #8c8c8c;
}

.gc-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-end;
}

.gc-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
}

.gc-login-form {
  background: #fff;
  padding: 36px;
  border-radius: 14px;
  width: 360px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.gc-login-form h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.gc-login-form p {
  color: #666;
  font-size: 13px;
  margin: 0 0 24px;
}

.gc-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  margin-top: 12px;
}

/* Home tab */
.gc-home-header {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.gc-home-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.gc-home-logo-placeholder {
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}

.gc-home-info {
  flex: 1;
  min-width: 200px;
}

.gc-home-info h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

.gc-home-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
  max-width: 480px;
}

.gc-home-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.gc-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gc-card-clickable {
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.gc-card-clickable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.gc-card-val-money {
  color: #ff4d00;
}

.gc-card-val-success {
  color: #52c41a;
}

.gc-status-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 10px;
}

.gc-status-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  min-width: 2px;
  transition: width 0.3s;
}

.gc-status-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #666;
}

.gc-status-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gc-status-legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  font-style: normal;
}

.gc-invite-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.gc-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.gc-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gc-panel-title-row .gc-panel-title {
  margin-bottom: 0;
}

.gc-tx-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gc-tx-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
  align-items: center;
}

.gc-tx-item:last-child {
  border-bottom: none;
}

.gc-tx-desc {
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-tx-amount {
  font-weight: 600;
  color: #f5222d;
  white-space: nowrap;
}

.gc-tx-amount.positive {
  color: #52c41a;
}

.gc-tx-time {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

.gc-nav-item.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.gc-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.gc-gate-modal {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  width: min(420px, 92vw);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gc-gate-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.gc-gate-desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.gc-rate {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #fff1f0;
  color: #cf1322;
}

.gc-rate.mid {
  background: #fff7e6;
  color: #d46b08;
}

.gc-rate.good {
  background: #f6ffed;
  color: #389e0d;
}
* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background: #f0f2f5;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}

button {
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

input,
textarea,
select {
  font: inherit;
  padding: 0;
  margin: 0;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'SF Mono', Monaco, monospace;
  font-size: 11px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
}

h1 { font-size: 18px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }

p {
  margin: 0;
}

a {
  color: #1890ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}