/* account.css — dashboard layout for /account */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #080808;
  color: #E0E0E0;
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  opacity: 0;
}
body.ready { opacity: 1; }

.acct-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid #1a1a1a;
}
.acct-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.acct-nav-logo img { width: 32px; height: 32px; border-radius: 7px; }
.acct-nav-logo span { font-weight: 700; font-size: 17px; }

.acct-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #A0A0A0;
}
.acct-email { color: #E0E0E0; }
.acct-signout {
  background: none;
  border: 1px solid #333;
  color: #E0E0E0;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.acct-signout:hover { background: #1a1a1a; }

.acct-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.acct-h1 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.acct-sub { color: #888; font-size: 14px; margin-bottom: 36px; }

.acct-card {
  background: #131313;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 16px;
}
.acct-card-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 14px;
}

.acct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1c1c1c;
}
.acct-row:last-child { border-bottom: none; }
.acct-row-label { color: #A0A0A0; font-size: 14px; }
.acct-row-value { color: #E0E0E0; font-size: 14px; font-weight: 500; }

.acct-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.acct-status.active { background: rgba(0,255,157,0.12); color: #00FF9D; }
.acct-status.cancelled { background: rgba(255,95,21,0.12); color: #FF9D67; }
.acct-status.past_due { background: rgba(255,49,49,0.12); color: #FF7A7A; }
.acct-status.none { background: rgba(160,160,160,0.12); color: #A0A0A0; }

.acct-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.acct-btn {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #E0E0E0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  min-height: 40px;
}
.acct-btn:hover { background: #262626; border-color: #444; }
.acct-btn:disabled { opacity: 0.5; cursor: wait; }
.acct-btn-primary {
  background: #FF5F15;
  border-color: #FF5F15;
  color: #fff;
}
.acct-btn-primary:hover { background: #ff7a3d; border-color: #ff7a3d; }
.acct-btn-danger {
  background: transparent;
  border-color: rgba(255,49,49,0.4);
  color: #FF7A7A;
}
.acct-btn-danger:hover { background: rgba(255,49,49,0.08); border-color: #FF3131; }

.acct-card-danger {
  border-color: rgba(255,49,49,0.25);
}
.acct-danger-msg {
  color: #888;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.acct-msg {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.acct-msg.show { display: block; }
.acct-msg.error   { background: rgba(255,49,49,0.1);  border: 1px solid rgba(255,49,49,0.3);  color: #FF3131; }
.acct-msg.success { background: rgba(0,255,157,0.1);  border: 1px solid rgba(0,255,157,0.3);  color: #00FF9D; }

/* No subscription state */
.acct-empty {
  text-align: center;
  padding: 24px 0;
}
.acct-empty p { color: #888; font-size: 14px; margin-bottom: 16px; }
.acct-empty .acct-btn-primary { display: inline-block; text-decoration: none; }

/* Modal */
.acct-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.acct-modal-backdrop.show { display: flex; }
.acct-modal {
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 28px;
  max-width: 420px;
  width: calc(100% - 32px);
}
.acct-modal-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.acct-modal-body  { font-size: 14px; color: #A0A0A0; line-height: 1.55; margin-bottom: 20px; }
.acct-modal-body input {
  width: 100%;
  margin-top: 14px;
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.acct-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.acct-loading {
  text-align: center;
  padding: 60px 0;
  color: #555;
}
