/* FitLife Loyalty Card Styles */

header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-bottom: none;
}

header .logo {
  color: white;
}

header .logo:hover {
  opacity: 0.9;
}

header .logo-icon {
  font-size: 1.5rem;
}

header .badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.promo-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.promo-icon {
  font-size: 2rem;
}

.promo-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.promo-content strong {
  color: #92400e;
  font-size: 1rem;
}

.promo-content span {
  color: #a16207;
  font-size: 0.875rem;
}

.info-section {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #5b21b6;
}

.info-section p {
  color: var(--text-muted);
  line-height: 1.6;
}

.membership-tiers {
  margin-bottom: 1.5rem;
}

.membership-tiers h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.tier-card {
  cursor: pointer;
  position: relative;
}

.tier-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tier-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.tier-card input:checked + .tier-content {
  border-color: #7c3aed;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.tier-card:hover .tier-content {
  border-color: #a855f7;
}

.tier-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tier-content strong {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.tier-price {
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tier-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-section {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-section h3 {
  margin-bottom: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.demo-hint {
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #065f46;
}

.confirmation-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.check-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.confirmation-banner div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.confirmation-banner span {
  opacity: 0.9;
  font-size: 0.875rem;
}

.verification-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-preview {
  margin-bottom: 1.5rem;
}

.card-front {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  border-radius: 16px;
  padding: 1.5rem;
  color: white;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
}

.card-header-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-logo {
  font-size: 2rem;
}

.card-brand {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand strong {
  font-size: 1.25rem;
}

.card-brand span {
  font-size: 0.75rem;
  opacity: 0.9;
}

.card-tier {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.card-body-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.card-details {
  display: flex;
  justify-content: space-between;
}

.card-details > div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.card-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.card-value {
  font-size: 0.875rem;
  font-weight: 500;
}

.eudi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #003399 0%, #0066cc 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.qr-container {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.qr-code {
  display: inline-block;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.qr-code.has-qr {
  padding: 0.5rem;
}

.qr-code img {
  display: block;
}

.same-device-section {
  margin-top: 1rem;
}

.divider-text {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.status-text {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.success-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
}

.success-header h2 {
  color: #7c3aed;
  margin-bottom: 0.5rem;
}

.success-subtitle {
  color: var(--text-muted);
}

.membership-benefits {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.membership-benefits h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
}

.benefit-icon {
  font-size: 1.5rem;
}

.benefits-list li div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.benefits-list li strong {
  color: var(--text);
}

.benefits-list li span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.next-steps {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.next-steps h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

a.step-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.step-icon {
  font-size: 1.5rem;
}

.step-text strong {
  display: block;
  margin-bottom: 0.125rem;
}

.step-text span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Button Group */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
  .button-group {
    flex-direction: row;
  }
  
  .button-group .btn {
    flex: 1;
  }
}

.secure-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Transaction Code Section */
.tx-code-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tx-code-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #92400e;
}

.tx-code-icon {
  font-size: 1.25rem;
}

.tx-code-hint {
  font-size: 0.875rem;
  color: #a16207;
  margin-bottom: 0.75rem;
}

.tx-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tx-code-value {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.3em;
  color: #92400e;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 2px dashed #f59e0b;
}

.btn-small {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background: white;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-small:hover {
  background: #fef3c7;
}

.hidden {
  display: none !important;
}
