/* Account Page Styles */

.account-page {
  padding: 60px 20px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-wrap {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.account-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 48px;
  overflow: hidden;
}


.account-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.account-email {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Account Sections */
.account-section {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-section:first-of-type {
  padding-top: 4px;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #ffc46b;
  background: rgba(255, 196, 107, 0.07);
  border: 1px solid rgba(255, 196, 107, 0.2);
  border-radius: 20px;
  margin-bottom: 16px;
  position: relative;
  cursor: help;
}

.status-pill::after {
  content: 'Licences appear here after purchase or when access opens.';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: rgba(13, 15, 22, 0.98);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 10;
}

.status-pill:hover::after {
  opacity: 1;
}

.status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffc46b;
  animation: pulse 2s ease-in-out infinite;
}

/* Green variant when licence is ready */
.status-pill-ready {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  cursor: default;
}

.status-pill-ready .status-pill-dot {
  background: #10b981;
}

.status-pill-ready::after {
  display: none;
}

.account-section:last-of-type {
  border-bottom: none;
}

.section-icon-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-icon {
  font-size: 20px;
  color: var(--text-muted);
}

.section-icon-info {
  font-size: 20px;
  color: rgba(77, 119, 255, 0.8);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.section-title-small {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
}

.section-body {
  font-size: 14px;
  color: var(--text-muted);
  margin: 12px 0 16px 0;
  line-height: 1.6;
}

.section-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.btn-link:hover {
  opacity: 0.8;
}

/* Help Section */
.help-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.help-list li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.help-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.help-list li:last-child {
  margin-bottom: 0;
}

.help-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

/* Account Footer */
.account-footer {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.account-link .material-symbols-rounded {
  font-size: 18px;
}

.account-link:hover {
  color: var(--text);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.modal-overlay.active {
  opacity: 1;
}

.modal-card {
  position: relative;
  background: rgba(13, 17, 23, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  transform: scale(0.95);
  transition: transform var(--transition-medium);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin: -4px -4px 0 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.modal-close .material-symbols-rounded {
  font-size: 20px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.modal-form {
  margin: 0;
}

.modal-form .form-group {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.modal-success {
  text-align: center;
  padding: 60px 0 0 0;
}

.success-icon {
  margin-bottom: 16px;
}

.success-icon .material-symbols-rounded {
  font-size: 64px;
  color: #10b981;
}

.success-message {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: space-between;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  flex: 0 0 auto;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Licence Card */
.licence-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  transition: border-color var(--transition-fast);
}

.licence-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.licence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.licence-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: capitalize;
}

.licence-date {
  font-size: 13px;
  color: var(--text-muted);
}

.licence-code-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
}

.licence-code {
  flex: 1;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
  background: none;
  border: none;
  user-select: all;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.copy-btn .material-symbols-rounded {
  font-size: 18px;
}

/* Order Card */
.order-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  transition: border-color var(--transition-fast);
}

.order-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: capitalize;
}

.order-quantity {
  font-size: 13px;
  color: var(--text-muted);
}

.order-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-status-paid {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.order-status-pending {
  background: rgba(255, 196, 107, 0.1);
  color: #ffc46b;
  border: 1px solid rgba(255, 196, 107, 0.2);
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-date {
  font-size: 13px;
  color: var(--text-muted);
}

.order-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
  .account-card {
    padding: 32px 24px;
  }

  .account-title {
    font-size: 24px;
  }

  .modal-card {
    padding: 24px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .licence-code-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .copy-btn {
    width: 100%;
  }
}
