
/* ════════════════════════════════════════════════════════════════
   ACCOUNT PORTAL STYLES
══════════════════════════════════════════════════════════════════ */

/* Auth pages (login / signup) */
.auth-page { min-height: calc(100vh - 72px); background: var(--light-bg); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.auth-card { background: #fff; border-radius: 20px; border: 1px solid #E8EDF5; box-shadow: 0 8px 40px rgba(0,0,0,0.07); width: 100%; max-width: 480px; overflow: hidden; }
.auth-header { background: var(--dark); padding: 2rem 2.2rem 1.8rem; text-align: center; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.4rem; }
.auth-logo .brand-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--blue); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.auth-logo span { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.2rem; color: #fff; }
.auth-header h2 { font-family: 'Manrope', sans-serif; font-size: 1.45rem; font-weight: 800; color: #fff; margin-bottom: 0.35rem; }
.auth-header p { font-size: 0.87rem; color: var(--txt); margin: 0; }
.auth-body { padding: 2rem 2.2rem; }
.auth-form-group { margin-bottom: 1.1rem; }
.auth-form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--heading-dark); margin-bottom: 0.42rem; }
.auth-input-wrap { position: relative; }
.auth-input-wrap i { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: #9CA3AF; font-size: 0.9rem; pointer-events: none; }
.auth-input { width: 100%; border: 1px solid #E5E7EB; background: #FAFAFA; border-radius: 10px; padding: 0.72rem 0.95rem 0.72rem 2.6rem; font-size: 0.9rem; font-family: 'Inter', sans-serif; color: #374151; outline: none; transition: all 0.2s; }
.auth-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,102,255,0.12); }
.auth-input.error { border-color: #DC2626; }
.auth-error-msg { font-size: 0.77rem; color: #DC2626; margin-top: 0.35rem; display: none; }
.auth-error-msg.show { display: block; }
.auth-btn { width: 100%; background: var(--blue); color: #fff; border: none; padding: 0.88rem; border-radius: 10px; font-weight: 700; font-size: 0.97rem; cursor: pointer; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: 'Inter', sans-serif; margin-top: 0.5rem; }
.auth-btn:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,102,255,0.3); }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.3rem 0; color: #9CA3AF; font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #E5E7EB; }
.auth-footer-link { text-align: center; padding: 1.2rem 2.2rem 1.8rem; font-size: 0.875rem; color: #6B7280; }
.auth-footer-link a { color: var(--blue); font-weight: 600; }
.auth-alert { padding: 0.75rem 1rem; border-radius: 9px; font-size: 0.86rem; font-weight: 600; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.auth-alert.success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.auth-alert.error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }

/* Account dashboard layout */
.account-page { min-height: calc(100vh - 72px); background: var(--light-bg); }
.account-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 1.8rem; padding: 2.5rem 0; }
@media (max-width: 900px) { .account-wrap { grid-template-columns: 1fr; } .account-sidebar { display: none; } .account-sidebar.open { display: block; } }

/* Sidebar */
.account-sidebar { background: #fff; border-radius: 16px; border: 1px solid #E8EDF5; padding: 1.5rem; height: fit-content; position: sticky; top: 90px; }
.account-profile-mini { text-align: center; padding-bottom: 1.4rem; border-bottom: 1px solid #F3F4F6; margin-bottom: 1.2rem; }
.account-avatar { width: 66px; height: 66px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 800; margin: 0 auto 0.8rem; }
.account-name { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 800; color: var(--heading-dark); margin-bottom: 0.2rem; }
.account-email { font-size: 0.78rem; color: #9CA3AF; }
.account-nav a { display: flex; align-items: center; gap: 0.7rem; padding: 0.62rem 0.85rem; border-radius: 9px; color: #6B7280; font-size: 0.88rem; font-weight: 500; transition: all 0.18s; margin-bottom: 0.15rem; }
.account-nav a i { width: 18px; text-align: center; font-size: 0.9rem; color: #9CA3AF; transition: color 0.18s; }
.account-nav a:hover { background: var(--light-bg); color: var(--heading-dark); }
.account-nav a:hover i { color: var(--blue); }
.account-nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 700; }
.account-nav a.active i { color: var(--blue); }
.account-nav .nav-divider { height: 1px; background: #F3F4F6; margin: 0.7rem 0; }
.account-nav a.logout-link { color: #DC2626; }
.account-nav a.logout-link i { color: #DC2626; }
.account-nav a.logout-link:hover { background: #FEF2F2; }

/* Main content area */
.account-main { min-width: 0; }
.account-card { background: #fff; border-radius: 16px; border: 1px solid #E8EDF5; padding: 1.8rem; margin-bottom: 1.4rem; }
.account-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid #F3F4F6; }
.account-card-title { font-family: 'Manrope', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--heading-dark); display: flex; align-items: center; gap: 0.6rem; }
.account-card-title i { color: var(--blue); }

/* Stats row */
.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.account-stat-card { background: #fff; border-radius: 14px; border: 1px solid #E8EDF5; padding: 1.2rem 1.3rem; }
.account-stat-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; margin-bottom: 0.75rem; }
.account-stat-num { font-family: 'Manrope', sans-serif; font-size: 1.55rem; font-weight: 800; color: var(--heading-dark); line-height: 1; margin-bottom: 0.2rem; }
.account-stat-lbl { font-size: 0.77rem; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.06em; }

/* Order list */
.order-row { display: grid; grid-template-columns: 1fr 0.9fr 0.8fr 0.7fr 0.5fr; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid #F3F4F6; font-size: 0.88rem; }
.order-row:last-child { border-bottom: none; }
.order-row-head { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #9CA3AF; background: #FAFAFA; border-radius: 8px; padding: 0.65rem 1.2rem; margin-bottom: 0.2rem; }
.order-num-badge { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.87rem; color: var(--blue); }
.order-status-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; padding: 0.28rem 0.7rem; border-radius: 50px; text-transform: capitalize; }
.order-status-badge.paid, .order-status-badge.completed { background: #F0FDF4; color: #16A34A; }
.order-status-badge.pending { background: #FFF7ED; color: #D97706; }
.order-status-badge.processing { background: #EFF6FF; color: var(--blue); }
.order-status-badge.cancelled { background: #FEF2F2; color: #DC2626; }
@media(max-width:700px){ .order-row { grid-template-columns: 1fr 1fr; } .order-row-head { display: none; } }

/* Download table */
.download-row { display: grid; grid-template-columns: 2fr 1fr 0.8fr 1fr; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid #F3F4F6; }
.download-row:last-child { border-bottom: none; }
.download-plugin-cell { display: flex; align-items: center; gap: 0.8rem; }
.download-plugin-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; flex-shrink: 0; }
.download-plugin-name { font-weight: 700; font-size: 0.9rem; color: var(--heading-dark); margin-bottom: 0.1rem; }
.download-plugin-meta { font-size: 0.75rem; color: #9CA3AF; }
.btn-download { background: var(--blue); color: #fff; border: none; padding: 0.5rem 1.1rem; border-radius: 8px; font-weight: 700; font-size: 0.82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; transition: all 0.2s; font-family: 'Inter', sans-serif; text-decoration: none; }
.btn-download:hover { background: var(--blue2); color: #fff; }
@media(max-width:700px){ .download-row { grid-template-columns: 1fr; } }

/* License key cards */
.license-card { background: #fff; border-radius: 14px; border: 1px solid #E8EDF5; padding: 1.4rem; margin-bottom: 1rem; }
.license-card-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.license-plugin-icon { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.license-plugin-name { font-family: 'Manrope', sans-serif; font-size: 0.97rem; font-weight: 800; color: var(--heading-dark); margin-bottom: 0.15rem; }
.license-plugin-meta { font-size: 0.76rem; color: #9CA3AF; }
.license-key-box { background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 10px; padding: 0.85rem 1.1rem; display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.license-key-text { font-family: 'Courier New', monospace; font-size: 0.92rem; font-weight: 700; color: var(--heading-dark); letter-spacing: 0.08em; flex: 1; word-break: break-all; }
.btn-copy-key { background: var(--blue-light); color: var(--blue); border: 1px solid rgba(0,102,255,0.2); padding: 0.45rem 0.85rem; border-radius: 7px; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; font-family: 'Inter', sans-serif; }
.btn-copy-key:hover { background: var(--blue); color: #fff; }
.btn-regen-key { background: #FFF7ED; color: #D97706; border: 1px solid #FDE68A; padding: 0.45rem 0.85rem; border-radius: 7px; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; font-family: 'Inter', sans-serif; }
.btn-regen-key:hover { background: #F59E0B; color: #fff; border-color: #F59E0B; }
.license-meta-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: #6B7280; }
.license-meta-item { display: flex; align-items: center; gap: 0.35rem; }
.license-meta-item i { color: #9CA3AF; }
.license-status-badge { font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.65rem; border-radius: 50px; display: inline-flex; align-items: center; gap: 0.3rem; }
.license-status-badge.active { background: #F0FDF4; color: #16A34A; }
.license-status-badge.revoked { background: #FEF2F2; color: #DC2626; }
.license-status-badge.expired { background: #F3F4F6; color: #6B7280; }

/* Account form */
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media(max-width:600px){ .account-form-grid { grid-template-columns: 1fr; } }
.account-form-group { margin-bottom: 1rem; }
.account-form-group.full { grid-column: 1 / -1; }
.account-form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--heading-dark); margin-bottom: 0.42rem; }
.account-input { width: 100%; border: 1px solid #E5E7EB; background: #FAFAFA; border-radius: 10px; padding: 0.72rem 0.95rem; font-size: 0.9rem; font-family: 'Inter', sans-serif; color: #374151; outline: none; transition: all 0.2s; }
.account-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,102,255,0.12); }
.account-input[readonly] { background: #F9FAFB; color: #9CA3AF; cursor: default; }
.btn-save { background: var(--blue); color: #fff; border: none; padding: 0.72rem 1.8rem; border-radius: 9px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.22s; display: inline-flex; align-items: center; gap: 0.45rem; font-family: 'Inter', sans-serif; }
.btn-save:hover { background: var(--blue2); transform: translateY(-1px); }

/* Mobile sidebar toggle */
.account-mobile-menu-btn { display: none; }
@media(max-width:900px){ .account-mobile-menu-btn { display: flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid #E8EDF5; color: var(--heading-dark); padding: 0.6rem 1.1rem; border-radius: 10px; font-weight: 700; font-size: 0.88rem; cursor: pointer; margin-bottom: 1rem; } }

/* Empty state */
.account-empty { text-align: center; padding: 3.5rem 2rem; }
.account-empty-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.1rem; }
.account-empty h4 { font-family: 'Manrope', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--heading-dark); margin-bottom: 0.4rem; }
.account-empty p { color: #9CA3AF; font-size: 0.87rem; margin-bottom: 1.3rem; }

/* ================================================================
   PRICING CARD — billing cycle toggle
   ================================================================ */

.pricing-card {
  background: #fff;
  border: 1px solid #E8EDF5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Tabs row */
.pricing-tabs {
  display: flex;
  border-bottom: 1px solid #E8EDF5;
  background: #F8FAFC;
}
.pricing-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.18s;
  border-bottom: 2px solid transparent;
  position: relative;
}
.pricing-tab:hover { color: var(--heading-dark); background: #F1F5F9; }
.pricing-tab.active {
  color: var(--blue);
  background: #fff;
  border-bottom-color: var(--blue);
  font-weight: 700;
}
.pricing-tab-badge {
  background: var(--blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Panels */
.pricing-panel { display: none; padding: 1.6rem 1.5rem 1.3rem; position: relative; }
.pricing-panel.active { display: block; }

/* Badge */
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-badge.popular { background: #FFF7ED; color: #D97706; }
.pricing-badge.value   { background: #F0FDF4; color: #16A34A; }

/* Price display */
.pricing-amount { margin-bottom: 1.3rem; }
.pricing-compare {
  font-size: 0.8rem;
  color: #9CA3AF;
  text-decoration: line-through;
  margin-bottom: 0.2rem;
}
.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.pricing-currency {
  font-family: 'Manrope', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-dark);
  margin-top: 0.45rem;
}
.pricing-num {
  font-family: 'Manrope', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--heading-dark);
  letter-spacing: -0.03em;
}
.pricing-cycle {
  font-size: 0.82rem;
  color: #6B7280;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.pricing-save {
  font-size: 0.78rem;
  color: #D97706;
  font-weight: 700;
}

/* CTA button */
.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
  margin-bottom: 0.85rem;
}
.pricing-cta:hover { background: #0047CC; color: #fff; transform: translateY(-1px); }

/* Note */
.pricing-note {
  text-align: center;
  font-size: 0.76rem;
  color: #9CA3AF;
}

/* ================================================================
   DOWNLOAD PAGE — version table responsive tweaks
   ================================================================ */
@media (max-width: 680px) {
  .download-row,
  [style*="grid-template-columns:0.7fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
}

/* ================================================================
   PLUGIN LIST CARD — billing cycle mini tabs
   ================================================================ */
.card-cycle-tabs {
  display: flex;
  border-bottom: 1px solid #E8EDF5;
  background: #F8FAFC;
}
.card-cycle-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.card-cycle-tab:hover { color: #374151; background: #F1F5F9; }
.card-cycle-tab.active {
  color: var(--blue, #0066FF);
  background: #fff;
  border-bottom-color: var(--blue, #0066FF);
  font-weight: 700;
}
.card-cycle-hot { color: #D97706; font-size: 0.6rem; }

/* ================================================================
   PLUGIN DETAIL — cycle tab + panel
   ================================================================ */
.detail-cycle-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.8rem 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.18s;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.detail-cycle-tab:hover { color: #0F172A; background: #F1F5F9; }
.detail-cycle-tab.active {
  color: var(--blue, #0066FF);
  background: #fff;
  border-bottom-color: var(--blue, #0066FF);
  font-weight: 700;
}
.detail-cycle-panel { display: none; }
.detail-cycle-panel.active { display: block; }
