:root {
  --bg-system: #F2F2F7;
  --bg-card: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #8E8E93;
  --separator: #C6C6C8;
  --tint-blue: #007AFF;
  --accent-green: #34C759;
  --accent-orange: #FF9500;
  --accent-indigo: #5856D6;
  --accent-gray: #8E8E93;
  --tap-highlight: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-system: #000000;
    --bg-card: #1C1C1E;
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --separator: #38383A;
    --tap-highlight: rgba(255, 255, 255, 0.05);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-system);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.ios-container {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  padding: 16px 16px 40px;
}

/* Navbar */
.ios-navbar {
  padding: 12px 4px 16px;
}

.nav-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Profile Header */
.profile-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}

.profile-info h2 {
  font-size: 18px;
  font-weight: 600;
}

.profile-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* iOS Grouped Sections */
.ios-section {
  margin-bottom: 24px;
}

.ios-section-header {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 12px 6px;
}

.ios-section-footer {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 12px 0;
  line-height: 1.4;
}

.ios-list-group {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.ios-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  transition: background 0.15s;
}

.ios-list-item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 56px;
  height: 0.5px;
  background-color: var(--separator);
}

.ios-list-item:active {
  background-color: var(--tap-highlight);
}

/* Icon Badges */
.item-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  margin-left: 12px;
  flex-shrink: 0;
}

.bg-blue { background-color: var(--tint-blue); }
.bg-indigo { background-color: var(--accent-indigo); }
.bg-green { background-color: var(--accent-green); }
.bg-orange { background-color: var(--accent-orange); }
.bg-gray { background-color: var(--accent-gray); }

.item-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.item-label {
  font-size: 16px;
  font-weight: 400;
}

.item-value {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
}

.chevron, .copy-icon {
  font-size: 14px;
  color: var(--text-secondary);
  margin-right: 4px;
}

/* Footer & Toast */
.site-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 30px;
}

.host-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--bg-card);
  border-radius: 6px;
  font-family: monospace;
}

.ios-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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