/* Account Page Styles (clean layout) */

:root {
  --surface: #ffffff;
  --surface-subtle: #f6f7fb;
  --surface-muted: #eef1f7;
  --text-primary: #1f2937;
  --text-muted: #434445;
  --primary: #2a2a2b;
  --primary-dark: #464753;
  --border: #e5e7eb;
  --danger: #ef4444;
}

body {
  background: var(--surface-subtle);
}

.account-layout {
  width: 100%;
  max-width: 720px;
  min-height: 1280px;
  margin: 0 auto;
  padding: 32px 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 40px -24px rgba(102, 126, 234, 0.4);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.account-hero__background {
  height: 140px;
  background:
    linear-gradient(135deg, rgba(210, 210, 210, 0.822), rgba(255, 255, 255, 0.335)),
    url("bannerTaiKhoan.png") no-repeat center center;
  background-size: cover;
}


.account-hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 28px 28px;
  margin-top: -60px;
}

.account-identity {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.account-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--surface);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35);
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-primary);
}

.account-name {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

.account-name .verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  margin-left: 6px;
}

.account-username {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

.account-bio {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.5;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-outline {
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 20px -12px rgba(102, 126, 234, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(102, 126, 234, 0.12);
  box-shadow: 0 12px 28px -24px rgba(102, 126, 234, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 32px -22px rgba(102, 126, 234, 0.5);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.account-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(149, 156, 177, 0.16);
  box-shadow: 0 18px 36px -24px rgba(31, 41, 55, 0.25);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--text-primary);
}

.panel-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.panel-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface-subtle);
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.panel-link:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 20px 30px -28px rgba(102, 126, 234, 0.6);
}

.panel-link strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.panel-link p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.panel-link .alert-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 20px -14px rgba(239, 68, 68, 0.5);
}

.panel-link .alert-badge.is-hidden {
  display: none;
}

.panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 20px -14px rgba(102, 126, 234, 0.6);
}

.panel-arrow {
  margin-left: auto;
  font-size: 20px;
  color: rgba(107, 114, 128, 0.7);
}

.panel-link--danger {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.12);
}

.panel-link--danger strong {
  color: var(--danger);
}

.panel-link--danger:hover {
  border-color: rgba(239, 68, 68, 0.32);
  box-shadow: 0 18px 30px -24px rgba(239, 68, 68, 0.45);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-alerts-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  padding: 20px;
}

.login-alerts-modal .settings-modal {
  width: min(520px, 100%);
}

.login-alerts-modal .settings-modal__header p {
  margin: 0;
}

.login-alerts-modal .alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-alert-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(149, 156, 177, 0.18);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-alert-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.login-alert-card__meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.login-alert-card__actions {
  display: flex;
  justify-content: flex-end;
}

.login-alerts-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.follower-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--primary);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 32px -18px rgba(102, 126, 234, 0.55);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.follower-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.account-settings-modal .settings-modal {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  width: min(640px, calc(100% - 40px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.6);
}

.settings-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.settings-modal__header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-modal__close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-section {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-subtle);
  border: 1px solid rgba(149, 156, 177, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-section h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text-primary);
}

.settings-section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.google-link-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(149, 156, 177, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.google-link-card.is-linked {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.google-linked-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.google-linked-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
}

.google-linked-status .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.google-link-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
}

.google-link-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(149, 156, 177, 0.2);
}

.settings-toggle strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
}

.settings-toggle span {
  color: var(--text-muted);
  font-size: 13px;
}

.settings-toggle span.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.switch input {
  display: none;
}

.switch-slider {
  position: relative;
  width: 48px;
  height: 26px;
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.2);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
  background: var(--primary);
}

.switch input:checked + .switch-slider::after {
  transform: translateX(22px);
}

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

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-subtle);
  border-radius: 12px;
  padding: 0 12px;
}

.password-field input {
  border: none;
  background: transparent;
  padding: 12px 0;
  flex: 1;
  font-size: 14px;
}

.password-field input:focus {
  outline: none;
}

.toggle-password-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding-left: 8px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-primary);
}

.form-grid input {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(149, 156, 177, 0.6);
  background: var(--surface);
  font-size: 14px;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  font-size: 14px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.settings-actions .btn-primary,
.settings-actions .btn-outline {
  min-width: 140px;
}

@media (max-width: 768px) {
  .account-layout {
    padding: 24px 16px 100px;
  }

  .account-hero__content {
    padding: 0 20px 24px;
  }

  .account-identity {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .account-actions {
    justify-content: center;
  }

  .account-avatar {
    width: 100px;
    height: 100px;
  }

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

  .account-panels {
    gap: 20px;
  }
}




















