@font-face {
  font-family: 'RIDIBatang';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/RIDIBatang.woff') format('woff');
  font-display: swap;
}

body {
  font-family: 'RIDIBatang', sans-serif;
  margin: 0;
  padding: 0;
  background: #fffdf6;
  color: #2f3e2f;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 122, 162, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(121, 194, 103, 0.13) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 241, 191, 0.14) 0%, transparent 50%);
  background-size: 500px 500px, 300px 300px, 400px 400px;
  background-position: 0 0, 100px 100px, 200px 200px;
  pointer-events: none;
  opacity: 0.7;
  z-index: -1;
}

.account-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  font-family: 'RIDIBatang', sans-serif;
}

.account-header {
  margin-bottom: 24px;
}

.account-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f3e2f;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
}

.account-header .back-link:hover {
  text-decoration: underline;
}

.account-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: #2f3e2f;
}

.account-card {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e9ecef;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin: 0 0 16px;
}

/* Login prompt */
.login-prompt-card {
  text-align: center;
  padding: 32px 20px;
}

.login-prompt-icon {
  margin-bottom: 16px;
}

.login-prompt-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #2f3e2f;
}

.login-prompt-card p {
  font-size: 14px;
  color: #888;
  margin: 0 0 24px;
  line-height: 1.5;
  word-break: keep-all;
}

.login-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}

.login-benefit {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f5efe2;
  color: #6c5d3c;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid #eadfca;
}

/* Profile card */
.profile-card {
  padding: 24px 20px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8eaf6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2f3e2f;
}

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

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: #2f3e2f;
}

.profile-email {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.premium-badge {
  display: inline-block;
  background: #2f3e2f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  width: fit-content;
}

/* Setting items */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-link {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 14px 8px;
  margin: -4px -8px;
}

.setting-link:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: inherit;
}

.setting-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.setting-icon {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  color: #2f3e2f;
}

.setting-label {
  font-size: 15px;
  font-weight: 500;
  color: #2f3e2f;
}

.setting-desc {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* Toggle switch */
.toggle-switch {
  width: 48px;
  height: 28px;
  background: #ddd;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: #2f3e2f;
}

.toggle-knob {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(20px);
}

/* Sign out button */
.signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  color: #e74c3c;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.signout-btn:hover {
  background: #fef2f2;
  border-color: #e74c3c;
}

.signout-btn svg {
  stroke: #e74c3c;
}

/* Dark mode overrides */
[data-theme="dark"] .account-header h1 {
  color: #e0e0e0;
}

[data-theme="dark"] .account-card {
  background: #2a2a3e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] .login-prompt-card h3,
[data-theme="dark"] .profile-name,
[data-theme="dark"] .setting-label {
  color: #e0e0e0;
}

[data-theme="dark"] .login-prompt-card p,
[data-theme="dark"] .setting-desc,
[data-theme="dark"] .card-title {
  color: #888;
}

[data-theme="dark"] .login-benefit {
  background: #34344a;
  border-color: #474765;
  color: #d8d4c7;
}

[data-theme="dark"] .setting-item {
  border-color: #3a3a50;
}

[data-theme="dark"] .setting-link:hover {
  background: #363650;
}

[data-theme="dark"] .profile-photo-placeholder {
  background: #363650;
}

[data-theme="dark"] .signout-btn {
  border-color: #444;
  color: #ff6b6b;
}

[data-theme="dark"] .signout-btn:hover {
  background: rgba(255,107,107,0.1);
  border-color: #ff6b6b;
}

[data-theme="dark"] .signout-btn svg {
  stroke: #ff6b6b;
}

[data-theme="dark"] .toggle-switch {
  background: #444;
}
