/* ============================================================
   ANIKAI — Account Page Modern UI
   Hell-cool glassmorphism design, no changes to core logic
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.account-hero {
  position: relative;
  padding: 3.5rem 2rem 2.5rem;
  margin-bottom: 2rem;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(255, 184, 0, 0.12) 0%,
    rgba(255, 100, 0, 0.08) 50%,
    transparent 100%);
  border: 1px solid rgba(255, 184, 0, 0.15);
}

.account-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255, 184, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.account-hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff6a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  flex-shrink: 0;
  box-shadow: 0 0 32px rgba(255, 184, 0, 0.35);
  border: 2px solid rgba(255, 184, 0, 0.4);
  letter-spacing: -1px;
}

.account-hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.account-hero-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.account-hero-badge {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Overview Grid ────────────────────────────────────────── */
.account-container {
  padding: 1.5rem 1.75rem 4rem;
  max-width: 1200px;
}

.account-section {
  margin-bottom: 3rem;
}

.account-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.account-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.account-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr 1fr; }
  .journey-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .account-grid { grid-template-columns: 1fr; }
  .journey-list { grid-template-columns: 1fr; }

  .account-hero {
    padding: 1.5rem 1rem 1.25rem;
  }

  .account-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .account-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .account-hero-text h1 {
    font-size: 1.4rem;
  }

  .account-container {
    padding: 1rem 0.85rem 3rem;
  }

  .account-card {
    padding: 1rem;
  }

  .journey-item {
    padding: 0.65rem;
    gap: 0.75rem;
  }

  .journey-poster {
    width: 42px;
    height: 60px;
  }

  .auth-card {
    padding: 1.25rem 1rem;
  }
}

/* ── Glass Cards ──────────────────────────────────────────── */
.account-card {
  background: rgba(18, 18, 22, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.account-card:hover {
  border-color: rgba(255, 184, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.account-card:hover::before {
  opacity: 1;
}

.account-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.account-card h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Profile Lines ────────────────────────────────────────── */
.account-lines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.account-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.account-lines > div:last-child {
  border-bottom: none;
}

.account-line-label {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
}

.account-line-value {
  color: var(--text-main);
  font-weight: 600;
}

/* ── Stat Numbers ─────────────────────────────────────────── */
.account-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.account-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Action Buttons ───────────────────────────────────────── */
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.account-btn:hover {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.3);
  color: var(--accent);
  transform: translateY(-1px);
}

.account-btn.account-btn-danger:hover {
  background: rgba(255, 60, 60, 0.1);
  border-color: rgba(255, 60, 60, 0.3);
  color: #ff5f5f;
}

/* ── Journey / Playlist List ──────────────────────────────── */
.journey-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.875rem;
}

.journey-item-wrapper {
  position: relative;
}

.journey-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  width: 100%;
}

.journey-item:hover {
  background: rgba(255, 184, 0, 0.05);
  border-color: rgba(255, 184, 0, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.journey-poster {
  width: 52px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.journey-info {
  flex: 1;
  min-width: 0;
}

.journey-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.journey-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.journey-progress {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.journey-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff6a00);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.journey-remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.2);
  color: #ff5f5f;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
}

.journey-item-wrapper:hover .journey-remove-btn {
  opacity: 1;
}

.journey-remove-btn:hover {
  background: rgba(255, 60, 60, 0.3);
  transform: scale(1.1);
}

.account-empty {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.account-empty svg {
  display: block;
  margin: 0 auto 1rem;
  opacity: 0.3;
}

/* ── Auth Modals ──────────────────────────────────────────── */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 500;
  place-items: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.auth-modal[style*="display: grid"],
.auth-modal[style*="display:grid"] {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-card {
  background: rgba(16, 16, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.25s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.auth-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.auth-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-card label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -0.5rem;
}

.auth-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.auth-card input:focus {
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}

.auth-card input::placeholder {
  color: var(--text-dim);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn-primary {
  background: var(--accent);
  color: #111;
  text-decoration: none;
}

.auth-btn-primary:hover {
  background: #ffc933;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.3);
}

.auth-btn-google {
  background: #fff;
  color: #111;
}

.auth-btn-google:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.auth-btn-secondary {
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.25);
  color: var(--accent);
}

.auth-btn-secondary:hover {
  background: rgba(255, 184, 0, 0.18);
  transform: translateY(-1px);
}

.auth-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.auth-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.auth-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 1.2em;
  text-align: center;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
  border: 1px solid transparent;
  transition: opacity 0.3s;
  animation: toastIn 0.25s cubic-bezier(0.2, 0, 0, 1);
  max-width: 320px;
}

@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.toast.success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.toast.info {
  background: rgba(255, 184, 0, 0.12);
  border-color: rgba(255, 184, 0, 0.25);
  color: var(--accent);
}
