:root {
  --bg-color: #0b0f19;
  --bg-card: rgba(22, 30, 49, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --accent: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

.background-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--text-main);
}

.btn-primary-sm {
  background: var(--primary);
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}

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

.hero {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #18181b;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form.hidden {
  display: none;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.btn-submit {
  margin-top: 8px;
  background: var(--primary);
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}

.btn-submit:hover {
  background: var(--primary-hover);
}

.form-msg {
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
}

.form-msg.info { color: var(--accent); }
.form-msg.success { color: #10b981; }
.form-msg.error { color: #ef4444; }

.status-section {
  padding: 40px 0 80px;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

/* Verify Page Styles */
.verify-section {
  min-height: calc(100vh - 72px - 85px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.verify-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  animation: fadeInScale 0.35s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.verify-icon-wrapper {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.verify-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.icon-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 2px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}

.icon-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.25);
}

.verify-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.verify-message {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.verify-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===================================================
   Profile Page Styles
   =================================================== */
.profile-section {
  padding: 40px 0 80px;
}

.profile-card {
  max-width: 680px;
  margin: 0 auto 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.profile-cover {
  height: 140px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(56, 189, 248, 0.3));
  position: relative;
}

.profile-header {
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.profile-avatar-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg-color);
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

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

.profile-avatar-placeholder, .avatar-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 2.2rem;
}

.profile-actions {
  margin-bottom: 8px;
}

.profile-body {
  padding: 20px 32px 32px;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.profile-handle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.profile-bio {
  margin-bottom: 20px;
}

.bio-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-wrap;
}

.bio-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

.profile-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-timeline {
  max-width: 680px;
  margin: 0 auto;
}

.timeline-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.timeline-empty {
  text-align: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Empty Card (User not found) */
.empty-card {
  max-width: 500px;
  margin: 40px auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px 24px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.empty-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===================================================
   Edit Profile Page Styles
   =================================================== */
.edit-profile-section {
  padding: 40px 0 80px;
}

.edit-profile-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.edit-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.edit-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.edit-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.edit-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.box-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
}

.avatar-edit-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.avatar-preview-area {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  background: #1e293b;
  flex-shrink: 0;
}

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

.avatar-preview-img.hidden, .avatar-preview-placeholder.hidden {
  display: none;
}

.avatar-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.file-label {
  cursor: pointer;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.file-name-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bio-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bio-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.2s;
}

.bio-form textarea:focus {
  border-color: var(--primary);
}

.bio-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.edit-footer-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}


