* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a, #020617);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 380px;
  padding: 20px;
}

.login-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

.login-card h1 {
  margin: 0 0 8px;
  text-align: center;
}

.login-card .sub {
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

.field input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #020617;
  color: #fff;
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: #2563eb;
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.error {
  font-size: 12px;
  color: #f87171;
  margin-top: 4px;
  min-height: 14px;
}

.app {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 200px;
  background: #020617;
  border-right: 1px solid #1e293b;
  padding: 20px;
}

.sidebar .logo {
  text-align: center;
  margin-bottom: 20px;
}

.sidebar button {
  width: 100%;
  margin-bottom: 10px;
  background: #020617;
  border: 1px solid #334155;
}

.sidebar button:hover {
  background: #1e293b;
}

.logout {
  margin-top: 20px;
  background: #7f1d1d;
}

.content {
  flex: 1;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.page {
  padding: 24px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.plan {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.price {
  font-size: 24px;
  margin: 10px 0;
}

.result textarea {
  width: 100%;
  height: 80px;
  background: #020617;
  color: #fff;
}

/* =====================
   Dashboard 页面
===================== */

.dashboard-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #020617);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  color: #fff;
}

.dashboard-container {
  width: 100%;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 50px;
}

.dashboard-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.dashboard-header p {
  color: #94a3b8;
  font-size: 14px;
}

/* 按钮区域：真正居中 */
.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  justify-items: center;
}

/* 按钮样式 */
.dashboard-btn {
  width: 100%;
  max-width: 260px;
  padding: 18px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.dashboard-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}

/* 危险按钮 */
.dashboard-btn.danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

/* 移动端适配 */
@media (max-width: 600px) {
  .dashboard-actions {
    grid-template-columns: 1fr;
  }
}

