/* ==========================================================================
   tapok - iOS 16-17 Pixel-Perfect Experience
   ========================================================================== */

:root {
  /* Dark Mode (Default) - Matching exact screenshots */
  --bg-color: #000000;
  --card-bg: #1c1c1e;
  --card-hover: #2c2c2e;
  --card-active: #3a3a3c;
  --card-border: rgba(255, 255, 255, 0.05);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  
  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --text-dimmed: #555558;
  --text-copyright: #444446;
  
  --divider-color: rgba(255, 255, 255, 0.12);
  --ios-blue: #007aff;
  --ios-blue-active: #0056b3;
  
  --theme-btn-bg: #1c1c1e;
  --theme-btn-border: rgba(255, 255, 255, 0.08);
  --theme-moon-color: #2997ff;
  
  --spring-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

/* Light Theme Variables */
body.theme-light {
  --bg-color: #f2f2f7;
  --card-bg: #ffffff;
  --card-hover: #f2f2f7;
  --card-active: #e5e5ea;
  --card-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  
  --text-primary: #000000;
  --text-secondary: #8e8e93;
  --text-dimmed: #c7c7cc;
  --text-copyright: #8e8e93;
  
  --divider-color: rgba(60, 60, 67, 0.12);
  --ios-blue: #007aff;
  --ios-blue-active: #0056b3;
  
  --theme-btn-bg: #ffffff;
  --theme-btn-border: rgba(0, 0, 0, 0.08);
  --theme-moon-color: #ff9500;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", -system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.35s ease, color 0.35s ease;
  position: relative;
}

/* Full Viewport App Container */
.ios-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* iOS Dynamic Island HUD Toast - Exactly Matching User Image */
.ios-hud {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-140%) scale(0.9);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.44s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  will-change: transform, opacity;
}

.ios-hud.visible {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  height: 38px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

body.theme-light .hud-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hud-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34c759;
  flex-shrink: 0;
}

.hud-icon svg {
  display: block;
}

.hud-text {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
  white-space: nowrap;
}

body.theme-light .hud-text {
  color: #000000;
}

/* iOS Top Navbar */
.ios-navbar {
  height: 54px;
  width: 100%;
  padding: env(safe-area-inset-top, 8px) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.nav-left, .nav-right {
  min-width: 80px;
  display: flex;
  align-items: center;
}

.nav-right {
  justify-content: flex-end;
}

.nav-center {
  flex: 1;
  text-align: center;
  pointer-events: none;
}

.nav-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transform: translateX(25px);
  transition: opacity 0.3s ease, transform 0.38s var(--spring-ease);
  display: inline-block;
}

.nav-title.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Back Button (< tapok) */
.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--ios-blue);
  cursor: pointer;
  outline: none;
  padding: 6px 0;
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.38s var(--spring-ease);
}

.nav-back-btn.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.nav-back-btn:active {
  opacity: 0.5;
}

.back-chevron {
  display: block;
}

.back-label {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

/* Authentic iOS Control Center Theme Button */
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(44, 44, 46, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.25), 0 3px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.theme-light .theme-btn {
  background: rgba(255, 255, 255, 0.88);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.9), 0 3px 12px rgba(0, 0, 0, 0.08);
}

.theme-btn:hover {
  transform: scale(1.06);
}

.theme-btn:active {
  transform: scale(0.88);
}

.theme-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-btn.animate-switch .theme-icon-box {
  transform: rotate(360deg);
}

.moon-glyph {
  color: #2997ff;
  display: block;
  filter: drop-shadow(0 0 6px rgba(41, 151, 255, 0.4));
  transition: opacity 0.25s ease;
}

.sun-glyph {
  color: #ff9500;
  display: none;
  filter: drop-shadow(0 0 6px rgba(255, 149, 0, 0.35));
  transition: opacity 0.25s ease;
}

body.theme-light .moon-glyph {
  display: none;
}

body.theme-light .sun-glyph {
  display: block;
}

/* Views Container */
.views-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* General View Architecture - Pure Horizontal Paging (No Opacity Change) */
.ios-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: transform 0.44s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  pointer-events: none;
}

/* Home View Layer */
.view-home {
  z-index: 10;
  transform: translateX(0);
  pointer-events: auto;
}

/* When subview is active, home view slides fully to the left side-by-side */
.view-home.is-pushed {
  transform: translateX(-100%);
  pointer-events: none;
}

.home-center-group {
  width: 100%;
  max-width: 345px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Large tapok Title */
.main-brand-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 28px;
  text-align: center;
  line-height: 1;
}

/* Sub Views Layer (Соцсети and Проекты) - Slides side-by-side from the right */
.view-sub {
  z-index: 20;
  transform: translateX(100%);
  pointer-events: none;
}

.view-sub.active-view {
  transform: translateX(0);
  pointer-events: auto;
}

.sub-center-group {
  width: 100%;
  max-width: 345px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* iOS Cards (Identical to Screenshots) */
.ios-card {
  width: 100%;
  background-color: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Card Rows */
.card-row {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  text-align: left;
  outline: none;
  transition: background-color 0.15s ease;
}

.card-row:active {
  background-color: var(--card-active);
}

@media (hover: hover) {
  .card-row:hover {
    background-color: var(--card-hover);
  }
}

/* Inset Divider lines (exact iOS style: indent past the icon) */
.card-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 54px;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background-color: var(--divider-color);
}

/* Squircles & Icons */
.row-icon-squircle {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

/* Icon Colors */
.icon-bg-blue {
  background-color: #007aff;
  color: #ffffff;
}

.icon-bg-green {
  background-color: #34c759;
  color: #ffffff;
}

.icon-bg-orange {
  background-color: #ff9500;
  color: #ffffff;
}

.icon-img-wrapper {
  background: transparent;
  overflow: hidden;
  padding: 0;
}

.row-img-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}

.icon-discord {
  background-color: #5865f2;
  color: #ffffff;
}

.icon-youtube {
  background-color: #ff0000;
  color: #ffffff;
}

.icon-tiktok {
  background-color: #000000;
  color: #ffffff;
}

.icon-twitch {
  background-color: #9146ff;
  color: #ffffff;
}

.icon-steam {
  background: linear-gradient(135deg, #171a21 0%, #1b2838 50%, #2a475e 100%);
  color: #ffffff;
}

.icon-alik {
  background-color: #a67c52;
  overflow: hidden;
}

.alik-img-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wall Section Styling */
.view-wall-section {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.wall-scroll-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 68px 16px 40px;
  box-sizing: border-box;
}

.wall-content-group {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wall-menu-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dimmed);
  margin-right: 8px;
}

/* Admin Banner */
.admin-status-banner {
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-banner-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-crown-icon {
  font-size: 16px;
  line-height: 1;
}

.admin-banner-text {
  font-size: 13px;
  font-weight: 600;
  color: #ff9500;
  letter-spacing: -0.01em;
}

.admin-banner-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-btn-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
}

.admin-btn-pill:active {
  transform: scale(0.93);
}

.admin-btn-exit {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.2);
}

/* Composer Card */
.wall-composer-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.composer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.composer-device-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--ios-blue);
  background: rgba(0, 122, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: -0.01em;
}

.composer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.theme-light .composer-row {
  background: rgba(0, 0, 0, 0.035);
  border-color: rgba(0, 0, 0, 0.06);
}

.composer-row:focus-within {
  border-color: var(--ios-blue);
  background: rgba(255, 255, 255, 0.07);
}

body.theme-light .composer-row:focus-within {
  background: #ffffff;
}

.composer-input-icon {
  font-size: 14px;
  opacity: 0.7;
}

.ios-wall-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.ios-wall-input::placeholder,
.ios-wall-textarea::placeholder {
  color: var(--text-dimmed);
}

.composer-row-textarea {
  align-items: flex-start;
  padding: 10px 12px;
}

.ios-wall-textarea {
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
  resize: none;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.composer-chars {
  font-size: 12px;
  color: var(--text-dimmed);
}

.ios-send-btn {
  background: var(--ios-blue);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.ios-send-btn:active {
  transform: scale(0.93);
  opacity: 0.85;
}

/* Feed Header */
.wall-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
}

.feed-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.wall-feed-count {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-secondary);
}

body.theme-light .wall-feed-count {
  background: rgba(0, 0, 0, 0.06);
}

.wall-refresh-btn {
  background: transparent;
  border: none;
  color: var(--ios-blue);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}

.wall-refresh-btn:active {
  opacity: 0.6;
}

/* Messages List */
.wall-messages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wall-msg-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
  animation: msgSlideIn 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.msg-author-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.msg-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.msg-tag-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  letter-spacing: -0.01em;
}

.badge-you {
  background: rgba(0, 122, 255, 0.15);
  color: var(--ios-blue);
  border: 0.5px solid rgba(0, 122, 255, 0.3);
}

.badge-admin {
  background: rgba(255, 149, 0, 0.18);
  color: #ff9500;
  border: 0.5px solid rgba(255, 149, 0, 0.3);
}

.msg-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-date {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.msg-delete-btn {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.25);
  color: #ff3b30;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.msg-delete-btn:hover {
  background: rgba(255, 59, 48, 0.22);
}

.msg-delete-btn:active {
  transform: scale(0.92);
}

.msg-text {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
  white-space: pre-wrap;
  letter-spacing: -0.01em;
}

/* Empty State */
.wall-empty-state {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wall-empty-icon {
  font-size: 36px;
  opacity: 0.6;
  margin-bottom: 4px;
}

.wall-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.wall-empty-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 260px;
  line-height: 1.4;
}

/* iOS Admin Modal */
.ios-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  padding: 20px;
  box-sizing: border-box;
}

.ios-modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.ios-modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 24px 20px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  transform: scale(0.92);
  transition: transform 0.28s var(--spring-bounce);
}

.ios-modal-backdrop.visible .ios-modal-card {
  transform: scale(1);
}

.ios-modal-card.animate-shake {
  animation: iosShake 0.4s ease;
}

@keyframes iosShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-9px); }
  40%, 80% { transform: translateX(9px); }
}

.modal-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.modal-input-container {
  width: 100%;
}

.modal-text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease;
}

body.theme-light .modal-text-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.modal-text-input:focus {
  border-color: var(--ios-blue);
}

.modal-error-text {
  font-size: 12.5px;
  color: #ff3b30;
  font-weight: 600;
  min-height: 16px;
}

.modal-btn-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.modal-action-btn {
  flex: 1;
  padding: 11px 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.modal-action-btn:active {
  transform: scale(0.94);
}

.modal-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

body.theme-light .modal-btn-cancel {
  background: rgba(0, 0, 0, 0.06);
}

.modal-btn-confirm {
  background: var(--ios-blue);
  color: #ffffff;
}

/* Cloud Configuration in Admin Modal */
.admin-cloud-section {
  width: 100%;
  text-align: left;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-divider {
  width: 100%;
  height: 0.5px;
  background-color: var(--divider-color);
  margin: 6px 0;
}

.cloud-header-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.cloud-desc-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.cloud-action-row {
  display: flex;
  gap: 8px;
}

.modal-mini-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.15s ease;
}

.modal-mini-btn:active {
  transform: scale(0.94);
}

.modal-mini-primary {
  background: #34c759;
  color: #ffffff;
}

.modal-mini-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.cloud-status-badge {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  min-height: 14px;
}

/* Row Typography */
.row-label {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.row-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-right: 8px;
  white-space: nowrap;
}

.row-chevron {
  color: var(--text-dimmed);
  flex-shrink: 0;
}

/* Copyright at Bottom of Each Center Group */
.home-copyright {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-copyright);
  text-align: center;
  letter-spacing: -0.01em;
}

/* Extra Mobile Fit Adjustments */
@media (max-width: 360px) {
  .main-brand-title {
    font-size: 54px;
  }
  .card-row {
    padding: 0 12px;
  }
  .card-row:not(:last-child)::after {
    left: 48px;
  }
  .row-label {
    font-size: 16px;
  }
  .row-value {
    font-size: 15px;
  }
}
