/* ============================================
   GSAPify — Account Page Styles
   ============================================ */

/* ── Auth Gate ────────────────────────────── */
.account-gate {
  padding: calc(var(--nav-height, 80px) + 6rem) 0 6rem;
  background: var(--gs-darker);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.account-gate-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--gs-dark);
  border: 1px solid var(--gs-border-dark);
  border-radius: var(--gs-radius-lg);
  padding: 3rem 2rem;
}

/* ── Dashboard ────────────────────────────── */
.account-dashboard {
  padding: calc(var(--nav-height, 80px) + 2.5rem) 0 4rem;
  background: var(--gs-darker);
  min-height: 100vh;
}

.account-header {
  margin-bottom: 2rem;
}

/* ── Cards ────────────────────────────────── */
.account-card {
  background: var(--gs-dark);
  border: 1px solid var(--gs-border-dark);
  border-radius: var(--gs-radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.account-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.account-card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.account-card-header h3 i {
  color: var(--gs-primary);
}

.account-card-body {
  padding: 1.5rem;
}

/* ── Profile ──────────────────────────────── */
.profile-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gs-border-dark);
}

.profile-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 255, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gs-border-dark);
}
.profile-avatar-fallback i {
  font-size: 2rem;
  color: var(--gs-primary);
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.profile-email {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.profile-joined {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Subscription ─────────────────────────── */
.sub-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.sub-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.25rem;
}

.sub-plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.sub-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sub-status-badge.active {
  background: rgba(0, 255, 102, 0.15);
  color: var(--gs-primary);
}
.sub-status-badge.inactive {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}
.sub-status-badge.canceled {
  background: rgba(255, 80, 80, 0.15);
  color: #ff5050;
}

.sub-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--gs-radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.sub-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.sub-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Usage ─────────────────────────────────── */
.usage-stat {
  margin-bottom: 0.75rem;
}

.usage-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.usage-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.usage-bar {
  flex-grow: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: var(--gs-primary);
  border-radius: 99px;
  transition: width 0.5s ease-out;
}
.usage-bar-fill.warning {
  background: #ff9900;
}
.usage-bar-fill.danger {
  background: #ff5050;
}

.usage-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.usage-reset {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ── Quick Links ──────────────────────────── */
.quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}
.quick-link:last-child {
  border-bottom: none;
}
.quick-link:hover {
  background: rgba(0, 255, 102, 0.04);
  color: #fff;
}
.quick-link i:first-child {
  color: var(--gs-primary);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}
.quick-link span {
  flex-grow: 1;
  font-size: 0.92rem;
  font-weight: 500;
}
.quick-link i:last-child {
  font-size: 0.7rem;
  opacity: 0.4;
}

/* ── Danger Zone ──────────────────────────── */
.danger-zone {
  border-color: rgba(255, 80, 80, 0.15);
}
.danger-zone .account-card-header h3 i {
  color: #ff5050;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 767.98px) {
  .account-dashboard {
    padding-top: calc(var(--nav-height, 80px) + 1.5rem);
  }
  .profile-info {
    flex-direction: column;
    text-align: center;
  }
  .sub-details-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .sub-plan-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .sub-actions {
    flex-direction: column;
  }
  .sub-actions .btn {
    width: 100%;
  }
}
