/* Bronze Pro Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #070B1E 0%, #0B132B 100%);
  color: #E5E7EB;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.header {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 2px solid #2563EB;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 2.5rem;
  color: #2FE3FF;
  margin-bottom: 0.5rem;
}

.header .subtitle {
  font-size: 1.2rem;
  color: #CBD5E1;
}

.signup-card {
  background: #0B132B;
  border: 2px solid #2563EB;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.constitutional-notice {
  background: #070B1E;
  border: 2px solid #FCD34D;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.constitutional-notice h3 {
  color: #FCD34D;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.constitutional-notice p {
  color: #CBD5E1;
  margin-bottom: 0.5rem;
}

.constitutional-notice strong {
  color: #FCD34D;
  font-weight: 600;
}

.signup-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #CBD5E1;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  background: #070B1E;
  border: 2px solid #2563EB;
  border-radius: 8px;
  color: #E5E7EB;
  font-size: 1rem;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
  outline: none;
  border-color: #2FE3FF;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.checkbox-group label {
  margin: 0;
  color: #CBD5E1;
}

.btn-primary {
  padding: 1rem 1.5rem;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

/* Full width for form buttons */
form .btn-primary {
  width: 100%;
}

/* Flexible width for button groups */
.account-actions .btn-primary {
  flex: 1;
  min-width: 200px;
}

.btn-primary:hover {
  background: #1D4ED8;
}

.btn-primary:active {
  background: #1E40AF;
}

.btn-primary:disabled {
  background: #4B5563;
  cursor: not-allowed;
}

.error-message {
  background: #7F1D1D;
  border: 2px solid #F43F5E;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  color: #FCA5A5;
}

.success-message {
  background: #064E3B;
  border: 2px solid #22E3A2;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  color: #6EE7B7;
}

.trial-details {
  background: #0B132B;
  border: 2px solid #2563EB;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.trial-details h3 {
  color: #2FE3FF;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.trial-details ul {
  list-style: none;
  padding: 0;
}

.trial-details li {
  color: #CBD5E1;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.trial-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #2FE3FF;
}

.existing-account {
  text-align: center;
  color: #CBD5E1;
  padding: 1rem;
}

.existing-account a {
  color: #2FE3FF;
  text-decoration: none;
  font-weight: 600;
}

.existing-account a:hover {
  text-decoration: underline;
}

.account-card {
  background: #0B132B;
  border: 2px solid #2563EB;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.account-info {
  background: #070B1E;
  border: 1px solid #2563EB;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.account-info h3 {
  color: #2FE3FF;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: #CBD5E1;
}

.info-label {
  font-weight: 600;
  color: #9CA3AF;
}

.info-value {
  color: #E5E7EB;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-badge.trial {
  background: #FCD34D;
  color: #070B1E;
}

.status-badge.active {
  background: #22E3A2;
  color: #070B1E;
}

.status-badge.expired {
  background: #F43F5E;
  color: white;
}

.status-badge.canceled {
  background: #6B7280;
  color: white;
}

.trial-countdown {
  background: #FCD34D;
  color: #070B1E;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: #374151;
  color: white;
  border: 2px solid #2563EB;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: #4B5563;
  border-color: #2FE3FF;
}

.btn-danger {
  padding: 0.75rem 1.5rem;
  background: #7F1D1D;
  color: white;
  border: 2px solid #F43F5E;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #991B1B;
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: #2FE3FF;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(47, 227, 255, 0.3);
  border-top-color: #2FE3FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility classes */
.hidden {
  display: none;
}

/* Additional state-specific styles */
.state-card {
  margin-bottom: 2rem;
}

.state-card h3 {
  color: #2FE3FF;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-text {
  color: #CBD5E1;
  margin-bottom: 0.75rem;
}

.disclaimer-text {
  color: #9CA3AF;
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 1rem;
}

.status-active {
  background: #064E3B;
  border: 2px solid #22E3A2;
  border-radius: 8px;
  padding: 1rem;
  color: #6EE7B7;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-canceled-active {
  background: #4B5563;
  border: 2px solid #FCD34D;
  border-radius: 8px;
  padding: 1rem;
  color: #FCD34D;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-expired {
  background: #7F1D1D;
  border: 2px solid #F43F5E;
  border-radius: 8px;
  padding: 1rem;
  color: #FCA5A5;
  font-weight: 600;
  margin-bottom: 1rem;
}

.account-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.billing-management-notice {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
}

.billing-management-notice h3 {
  color: #2FE3FF;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.billing-management-notice .info-text {
  margin-bottom: 0.5rem;
}

.billing-management-notice .disclaimer-text {
  margin-top: 0.5rem;
}

.receipt-json {
  background: #070B1E;
  border: 1px solid #2563EB;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  color: #E5E7EB;
  font-size: 0.875rem;
}

/* Next steps list */
.next-steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.next-steps-list li {
  color: #CBD5E1;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.next-steps-list li::before {
  content: "→";
  position: absolute;
  left: 0.5rem;
  color: #2FE3FF;
}

/* License meaning section */
.license-meaning-section {
  background: #070B1E;
  border: 2px solid #2563EB;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.license-meaning-section h3 {
  color: #2FE3FF;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.license-meaning-section h4 {
  color: #CBD5E1;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.license-meaning-section p {
  color: #CBD5E1;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.license-meaning-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.license-meaning-section ul li {
  color: #CBD5E1;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.license-meaning-section ul li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: #2FE3FF;
}

/* Demo Receipts Styles */
.receipt-item {
  background: #0B132B;
  border: 1px solid #2563EB;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.receipt-item-name {
  color: #CBD5E1;
  font-weight: 600;
}

.receipt-item-timestamp {
  color: #9CA3AF;
  font-size: 0.875rem;
}

.receipt-item-decision {
  text-align: center;
}

.decision-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.decision-badge.allow {
  background: #064E3B;
  color: #6EE7B7;
  border: 1px solid #22E3A2;
}

.decision-badge.deny {
  background: #7F1D1D;
  color: #FCA5A5;
  border: 1px solid #F43F5E;
}

.receipt-item-link {
  text-align: right;
}

.receipt-item-link a {
  color: #2FE3FF;
  text-decoration: none;
  font-weight: 500;
}

.receipt-item-link a:hover {
  text-decoration: underline;
}

/* Responsive layout for receipt items */
@media (max-width: 768px) {
  .receipt-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .receipt-item-decision,
  .receipt-item-link {
    text-align: left;
  }
}
