
.gmtd-wrapper {
  min-height: 100vh;
  padding: 32px 16px 40px;
  background: radial-gradient(circle at top, #1b2848 0, #050816 40%, #02040a 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f9fbff;
  box-sizing: border-box;
}

.gmtd-screen {
  width: 100%;
  max-width: 420px;
  display: none;
}

.gmtd-screen--active {
  display: block;
}

/* Cards */
.gmtd-card {
  background: radial-gradient(circle at top left, rgba(46, 104, 255, 0.35), rgba(10, 16, 40, 0.98));
  border-radius: 28px;
  padding: 20px 20px 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  margin-bottom: 18px;
}

.gmtd-card--hero {
  padding-top: 18px;
}

.gmtd-card--hero-dashboard {
  margin-bottom: 20px;
}

/* Header hero */
.gmtd-hero-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.gmtd-logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffe38b, #b67814 60%, #7a4a02 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gmtd-logo-circle img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.gmtd-hero-text {
  flex: 1;
}

.gmtd-hero-title {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.gmtd-hero-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #d2ddff;
}

/* Levels */
.gmtd-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gmtd-levels--compact {
  margin-top: 14px;
}

.gmtd-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 12, 32, 0.9);
  padding: 7px 14px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e5ecff;
  cursor: default;
}

.gmtd-pill--level {
  justify-content: flex-start;
}

.gmtd-pill--outline {
  background: transparent;
}

.gmtd-pill--danger {
  background: linear-gradient(135deg, #ff4444, #c7122b);
  border-color: transparent;
  color: #fff;
  cursor: pointer;
}

.gmtd-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.gmtd-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.gmtd-pill-dot--green { background: #00df81; }
.gmtd-pill-dot--yellow { background: #ffd54f; }
.gmtd-pill-dot--red { background: #ff5252; }

/* Login card */
.gmtd-card--login {
  margin-top: 20px;
}

.gmtd-section-title {
  font-size: 1rem;
  margin: 0 0 4px;
}

.gmtd-section-desc {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: #d2ddff;
}

.gmtd-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.gmtd-label {
  font-size: 0.8rem;
  color: #ccd5ff;
}

.gmtd-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at top, rgba(32, 61, 120, 0.65), rgba(5, 10, 24, 0.98));
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #f6f8ff;
  outline: none;
}

.gmtd-input::placeholder {
  color: rgba(221, 230, 255, 0.55);
}

.gmtd-btn {
  border-radius: 999px;
  border: none;
  padding: 11px 16px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.gmtd-btn--primary {
  background: radial-gradient(circle at 0 0, #6cf89a, #06c270);
  color: #04120a;
  box-shadow: 0 12px 30px rgba(6, 194, 112, 0.45);
}

.gmtd-btn--ghost {
  background: transparent;
  border: 1px solid rgba(210, 222, 255, 0.4);
  color: #f1f5ff;
}

.gmtd-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.gmtd-login-note {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #aab6e8;
}

/* Metrics */
.gmtd-card-header-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.gmtd-badge {
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(20, 90, 255, 0.2);
  border: 1px solid rgba(120, 180, 255, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gmtd-metrics-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.gmtd-metric {
  flex: 1;
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(5, 12, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.gmtd-metric-label {
  font-size: 0.7rem;
  color: #c2cffb;
  margin-bottom: 4px;
}

.gmtd-metric-value {
  font-size: 0.95rem;
}

.gmtd-metric-value--green { color: #57ffb0; }
.gmtd-metric-value--red { color: #ff7b7b; }

/* Chart */
.gmtd-chart-wrapper {
  margin: 10px 0 12px;
  background: radial-gradient(circle at top, rgba(46, 104, 255, 0.4), rgba(5, 12, 32, 0.95));
  border-radius: 20px;
  padding: 10px 10px 4px;
}

/* Table */
.gmtd-table-wrapper {
  overflow-x: auto;
  margin-bottom: 8px;
}

.gmtd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.gmtd-table thead th {
  font-weight: 600;
  color: #d8e2ff;
  padding: 6px 4px;
  text-align: right;
}

.gmtd-table thead th:first-child,
.gmtd-table tbody td:first-child {
  text-align: left;
}

.gmtd-table tbody td {
  padding: 4px 4px;
  color: #e5ebff;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: right;
}

.gmtd-table tbody tr:nth-child(even) {
  background: rgba(5, 12, 32, 0.9);
}

.gmtd-table .gmtd-cell-green {
  color: #57ffb0;
}

.gmtd-table .gmtd-cell-red {
  color: #ff7b7b;
}

.gmtd-disclaimer {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: #aab6e8;
}

/* Stacked blocks */
.gmtd-card--stacked {
  padding-top: 18px;
}

.gmtd-stack-block {
  margin-bottom: 18px;
}

.gmtd-stack-block--border {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gmtd-status-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gmtd-status-list li {
  display: flex;
  gap: 10px;
}

.gmtd-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 5px;
}

.gmtd-status-dot--green { background: #00df81; }
.gmtd-status-dot--yellow { background: #ffd54f; }
.gmtd-status-dot--blue { background: #4fc3ff; }

.gmtd-status-title {
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.gmtd-status-text {
  font-size: 0.76rem;
  color: #c5d2ff;
}

.gmtd-stack-title {
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.gmtd-stack-text {
  font-size: 0.8rem;
  color: #ced8ff;
  margin: 0 0 10px;
}

.gmtd-stack-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer */
.gmtd-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.74rem;
  color: #cfd9ff;
}

.gmtd-footer-logo img {
  height: 40px;
  margin-bottom: 6px;
}

.gmtd-footer-text {
  margin: 0;
}

.gmtd-footer-links {
  margin: 2px 0 0;
}

.gmtd-footer-links a {
  color: #9fc5ff;
  text-decoration: none;
}

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

/* Responsive */
@media (min-width: 480px) {
  .gmtd-wrapper {
    padding-top: 40px;
  }
}

@media (min-width: 768px) {
  .gmtd-wrapper {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
