/* ==========================================================================
   VAISPERIA MODERN NEUMORPHIC LIGHT DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-primary: #F8F9FA;
  --bg-card: #FFFFFF;
  
  --text-main: #334155;
  --text-muted: #64748B;
  --text-on-dark: #FFFFFF;
  
  --eco-forest: #0F5A3E;
  --eco-emerald: #10B981;
  --eco-emerald-hover: #059669;
  --eco-mint-light: #ECFDF5;
  --eco-mint-deep: #D1FAE5;
  
  --status-new: #EF4444;
  --status-progress: #F59E0B;
  --status-resolved: #10B981;
  
  /* Neumorphic & soft shadows styling */
  --shadow-sm: 4px 4px 10px rgba(163, 177, 198, 0.2), -4px -4px 10px rgba(255, 255, 255, 0.85);
  --shadow-md: 6px 6px 16px rgba(163, 177, 198, 0.25), -6px -6px 16px rgba(255, 255, 255, 0.85);
  --shadow-lg: 10px 10px 25px rgba(163, 177, 198, 0.3), -10px -10px 25px rgba(255, 255, 255, 0.9);
  --shadow-inset: inset 2px 2px 6px rgba(163, 177, 198, 0.15), inset -2px -2px 6px rgba(255, 255, 255, 0.8);
  
  --font-family: 'Inter', -apple-system, sans-serif;
  --font-title: 'Outfit', sans-serif;
  
  --border-radius: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* ==========================================================================
   1. ЭКРАН ВХОДА (LOGIN SCREEN)
   ========================================================================== */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.login-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 380px;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: slideUp 0.5s ease;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo-symbol {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

.login-logo h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--eco-forest);
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.form-group-login {
  margin-bottom: 20px;
}

.form-group-login label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group-login input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-main);
  background: #F8FAFC;
  box-shadow: var(--shadow-inset);
  transition: var(--transition-smooth);
}

.form-group-login input:focus {
  border-color: var(--eco-emerald);
  background: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--eco-forest) 0%, var(--eco-emerald) 100%);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: var(--transition-smooth);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

/* ==========================================================================
   2. ЕДИНАЯ СТРУКТУРА ПРИЛОЖЕНИЯ (APP WRAPPER)
   ========================================================================== */
.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-primary);
  box-shadow: 0 0 40px rgba(0,0,0,0.05);
  position: relative;
  border-left: 1px solid rgba(0,0,0,0.03);
  border-right: 1px solid rgba(0,0,0,0.03);
}

.app-header {
  height: 60px;
  background: #FFFFFF;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-emoji {
  font-size: 1.5rem;
}

.app-header h1 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--eco-forest) 0%, var(--eco-emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-logout {
  background: #F1F5F9;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-logout:hover {
  background: #E2E8F0;
  color: var(--text-main);
  transform: scale(1.05);
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 110px !important;
  position: relative;
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
  display: none;
}

.tab-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-section.active {
  display: block;
}

/* ==========================================================================
   3. ЭКРАН: ГЛАВНАЯ (HOME SECTION)
   ========================================================================== */
.welcome-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F1FBF7 100%);
  color: var(--text-main);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.welcome-text .user-greeting {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.welcome-text .user-name {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--eco-forest);
  margin-top: 2px;
}

.points-badge-box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px 14px;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
  text-align: right;
}

.points-title {
  font-size: 0.72rem;
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.points-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
}

.points-num {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--eco-emerald);
}

.welcome-box .points-icon {
  font-size: 1.25rem;
}

.stats-overview-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.stats-overview-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--eco-mint-light);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px dashed var(--eco-emerald);
}

.rank-emoji {
  font-size: 2.2rem;
}

.rank-details {
  display: flex;
  flex-direction: column;
}

.rank-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rank-name {
  font-size: 1.15rem;
  color: var(--eco-forest);
  font-weight: 800;
}

.info-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--eco-forest);
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. ЭКРАН: КАРТА (MAP SCREEN & INTERNAL LEAFLET UI)
   ========================================================================== */
.map-container-wrapper {
  width: 100%;
  height: calc(100vh - 130px);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 2px solid #FFFFFF;
}

#map {
  width: 100%;
  height: 100%;
}

/* Custom leaflet control buttons override */
#stats-btn, #hotzones-btn {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid #E2E8F0;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: absolute;
  z-index: 1000;
}

#stats-btn {
  top: 15px !important;
  right: 15px !important;
}

#hotzones-btn {
  top: 55px !important;
  right: 15px !important;
}

#stats-btn:hover, #hotzones-btn:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
}

#hotzones-btn.active {
  background: var(--eco-emerald);
  color: #FFFFFF;
  border-color: var(--eco-emerald);
}

/* Leaflet Filters Override */
#map-filters {
  z-index: 1000;
  position: absolute;
  bottom: 85px !important;
  left: 50% !important;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #E2E8F0;
  border-radius: 30px;
  padding: 4px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 4px;
  width: max-content;
}

.filter-btn {
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active {
  background: var(--eco-forest);
  color: #FFFFFF;
}

/* Stats Panel override */
#stats-panel {
  position: absolute;
  top: 15px !important;
  right: 15px !important;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 250px;
  border: 1px solid #E2E8F0;
  z-index: 1001;
  display: none;
  flex-direction: column;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
}

.stats-header h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--eco-forest);
}

#stats-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.stats-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.stat-block {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #E2E8F0;
}

.stat-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.stat-number {
  font-weight: 700;
  color: var(--text-main);
}

.color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.color-dot.red { background: var(--status-new); }
.color-dot.yellow { background: var(--status-progress); }
.color-dot.green { background: var(--status-resolved); }

/* ==========================================================================
   5. ЭКРАН: ДОБАВИТЬ ЗАЯВКУ (REPORT FORM) & MONTHLY PROGRESS
   ========================================================================== */
.progress-card {
  background: #FFFFFF;
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.7);
}

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

.progress-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-value-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--eco-forest);
}

.progress-bar-container {
  background: #EDF2F7;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--eco-forest) 0%, var(--eco-emerald) 100%);
  height: 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Category Tiles container */
.category-tiles-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width: 380px) {
  .category-tiles-container {
    gap: 4px;
  }
}

.category-tile {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 6px 3px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-sm);
  min-height: 60px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.category-tile:hover {
  transform: translateY(-2px);
  border-color: var(--eco-emerald);
}

.category-tile.selected {
  background: var(--eco-mint-light);
  border-color: var(--eco-emerald);
  box-shadow: inset 1px 1px 3px rgba(16, 185, 129, 0.15);
}

.category-icon {
  font-size: 1.3rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.category-icon img,
.category-icon svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.category-label {
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  display: block;
  margin-top: 2px;
}

.report-form-wrapper {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.report-form-wrapper h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--eco-forest);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  background: #F8FAFC;
  box-shadow: var(--shadow-inset);
  resize: vertical;
  min-height: 100px;
  transition: var(--transition-smooth);
}

.form-group textarea:focus {
  border-color: var(--eco-emerald);
  background: #FFFFFF;
  outline: none;
}

/* File Upload Field UI (Button style camera capture) */
.file-upload-wrapper {
  position: relative;
  width: 100%;
  height: 60px;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
}

.file-upload-dummy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  min-width: 0;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.file-upload-wrapper:hover .file-upload-dummy {
  border-color: var(--eco-emerald);
  background: var(--eco-mint-light);
}

.file-dummy-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.file-dummy-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

/* Coordinate Inputs Layout */
.location-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-bottom: 6px;
}

.location-fields input {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #F1F5F9;
  color: var(--text-muted);
  box-shadow: var(--shadow-inset);
}

#locationStatus {
  font-size: 0.78rem;
  color: #D97706;
  font-weight: 600;
}

.location-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
  line-height: 1.3;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--eco-forest) 0%, var(--eco-emerald) 100%);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: var(--transition-smooth);
}

.btn-submit:disabled {
  background: #E2E8F0;
  color: #94A3B8;
  box-shadow: none;
  cursor: not-allowed;
}

.alert {
  padding: 12px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
  margin-bottom: 16px;
  display: none;
}

.alert.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  display: block;
}

.alert.success {
  background: var(--eco-mint-light);
  color: var(--eco-forest);
  border: 1px solid var(--eco-mint-deep);
  display: block;
}

/* ==========================================================================
   6. ЭКРАН: МАГАЗИН (SHOP SECTION)
   ========================================================================== */
.shop-wrapper {
  margin-bottom: 20px;
}

.section-title-box {
  margin-bottom: 14px;
}

.section-title-box h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--eco-forest);
}

.section-title-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Shop Category Filter Chips (Touch Scrollable) */
.shop-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shop-category-chips::-webkit-scrollbar {
  display: none;
}

.shop-chip {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.shop-chip:hover, .shop-chip.active {
  background: var(--eco-forest);
  color: #FFFFFF;
  border-color: var(--eco-forest);
}

/* Partner Cards Grid */
.shop-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 360px) {
  .shop-partners-grid {
    grid-template-columns: 1fr;
  }
}

.partner-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: var(--eco-emerald);
  box-shadow: var(--shadow-lg);
}

.partner-icon {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.partner-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.partner-tag {
  font-size: 0.7rem;
  color: var(--eco-emerald);
  font-weight: 700;
  margin-top: 2px;
}

.partner-offers-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-back-partners {
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  margin-bottom: 14px;
  transition: var(--transition-smooth);
}

.btn-back-partners:hover {
  background: #F8FAFC;
  border-color: var(--eco-emerald);
}

.partner-header-card {
  background: var(--eco-mint-light);
  border: 1.5px dashed var(--eco-emerald);
  border-radius: var(--border-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.shop-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-item-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: var(--transition-smooth);
}

.shop-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.shop-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--eco-mint-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid var(--eco-mint-deep);
}

.shop-item-info {
  flex: 1;
  min-width: 0;
}

.shop-item-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.shop-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.offer-disclaimer {
  font-size: 0.68rem;
  color: #D97706;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.shop-price {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--eco-emerald);
}

.btn-buy-reward {
  background: var(--eco-forest);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-buy-reward:hover {
  background: var(--eco-emerald);
}

.shop-item-card.disabled {
  opacity: 0.7;
}

.shop-item-card.disabled .shop-item-icon {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.shop-item-card.disabled .btn-buy-reward {
  background: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
}

/* Profile Coupons Section */
.badge-active-count {
  background: var(--eco-emerald);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.coupon-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coupon-partner {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--eco-forest);
  display: flex;
  align-items: center;
  gap: 6px;
}

.coupon-code-tag {
  background: #F1F5F9;
  border: 1px dashed var(--eco-emerald);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.coupon-qr-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.coupon-qr-svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.coupon-terms {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-use-coupon {
  background: linear-gradient(135deg, var(--eco-forest) 0%, var(--eco-emerald) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-smooth);
}

.btn-use-coupon:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ==========================================================================
   7. ЭКРАН: ПРОФИЛЬ (PROFILE SECTION & TIMELINES)
   ========================================================================== */
.profile-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.profile-main-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar-circle {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, var(--eco-emerald) 0%, var(--eco-forest) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.avatar-circle img,
#profile-avatar-img,
#tg-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

.avatar-leaf {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.profile-text h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--eco-forest);
}

.profile-rank-badge {
  font-size: 0.78rem;
  background: var(--eco-mint-light);
  color: var(--eco-forest);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 2px;
  font-weight: 700;
}

.profile-stats-row {
  display: flex;
  border-top: 1px solid #E2E8F0;
  padding-top: 14px;
  justify-content: space-around;
}

.p-stat {
  text-align: center;
}

.p-stat-val {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
  color: var(--eco-emerald);
}

.p-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* XP/Level progress layout on Profile tab */
.xp-level-card {
  background: #FFFFFF;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.xp-level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.xp-level-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

.xp-detail-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.xp-progress-bar-wrapper {
  background: #EDF2F7;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.xp-progress-bar-fill {
  background: linear-gradient(90deg, var(--eco-emerald) 0%, var(--eco-forest) 100%);
  height: 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievements-section h3, .history-section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--eco-forest);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.achievement-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.achievement-card.locked {
  opacity: 0.6;
  background: #F8FAFC;
  box-shadow: var(--shadow-sm);
  border-color: #E2E8F0;
}

.ach-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.ach-text h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.ach-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* History lists timeline */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.7);
}

.history-item-img {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #F1F5F9;
}

.history-item-noimg {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #94A3B8;
}

.history-item-details {
  flex: 1;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.history-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Status Badge */
.status-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

.status-badge.new {
  background: #FEE2E2;
  color: var(--status-new);
}

.status-badge.in_progress {
  background: #FEF3C7;
  color: var(--status-progress);
}

.status-badge.resolved {
  background: var(--eco-mint-light);
  color: var(--status-resolved);
}

.history-desc {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  max-height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.history-coords {
  font-size: 0.7rem;
  color: var(--eco-emerald);
  font-weight: 700;
}

.history-placeholder {
  text-align: center;
  padding: 30px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 2px dashed #E2E8F0;
}

/* ==========================================================================
   8. ФИКСИРОВАННАЯ НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ (BOTTOM NAV)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) 10px;
  border-radius: 20px 20px 0 0;
}

.nav-tab {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  flex: 1;
}

.nav-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
  transition: var(--transition-smooth);
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 700;
}

.nav-tab:hover .nav-icon {
  transform: translateY(-2px);
}

.nav-tab.active {
  color: var(--eco-forest);
  background: var(--eco-mint-light);
}

.nav-tab.active .nav-icon {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(16,185,129,0.15));
}

/* ==========================================================================
   9. МОДАЛЬНОЕ ОКНО QR КУПОНОВ (QR MODAL SYSTEM)
   ========================================================================== */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 90, 62, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.8);
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-card h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--eco-forest);
  margin-bottom: 4px;
}

#qr-coupon-item-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.qr-container {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 16px;
  display: inline-block;
  width: 180px;
  box-shadow: var(--shadow-inset);
}

#coupon-qr {
  width: 130px;
  height: 130px;
  background: #FFFFFF;
  border-radius: 6px;
}

.qr-code-text {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--eco-forest);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.qr-instruction {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-close-modal {
  width: 100%;
  padding: 12px;
  background: var(--eco-forest);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  background: var(--eco-emerald);
  transform: translateY(-1px);
}

/* ==========================================================================
   10. АНИМАЦИИ (KEYFRAME ANIMATIONS)
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Popup design system tweaks */
.leaflet-popup-content-wrapper {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid #E2E8F0;
  padding: 6px;
  max-width: 260px !important;
}

.leaflet-popup-content {
  max-width: 260px !important;
  max-height: 350px !important;
  overflow-y: auto;
  margin: 10px;
}

.popup-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 120px;
}

.popup-details {
  font-size: 0.85rem;
  color: var(--text-main);
}

.popup-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-resolve {
  width: 100%;
  padding: 8px;
  background: var(--eco-emerald);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-resolve:hover {
  background: var(--eco-emerald-hover);
}

/* ==========================================================================
   11. MOBILE BOTTOM SHEET FOR MAP MARKERS
   ========================================================================== */
.report-bottom-sheet {
  position: fixed;
  bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translate(-50%, 120%);
  width: calc(100% - 24px);
  max-width: 450px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 10000;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  max-height: 80vh;
  overflow-y: auto;
}

.report-bottom-sheet.active {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
}

.bottom-sheet-close:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

.sheet-img, .popup-img {
  width: 100%;
  max-height: 250px;
  height: auto;
  object-fit: contain;
  background: #F1F5F9;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E2E8F0;
}

.sheet-no-img {
  width: 100%;
  height: 90px;
  background: #F1F5F9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  border: 1px dashed #CBD5E1;
}

.sheet-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

.sheet-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
}

.sheet-resolved-date {
  font-size: 0.78rem;
  color: var(--status-resolved);
  font-weight: 700;
}

.sheet-btn-resolve {
  margin-top: 6px;
  padding: 12px;
  font-size: 0.9rem;
}

/* ==========================================================================
   12. ACCOUNT SETTINGS & PROFILE LOGOUT
   ========================================================================== */
.settings-section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--eco-forest);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.settings-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.settings-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-logout-profile {
  background: #FEE2E2;
  color: #EF4444;
  border: 1px solid #FECACA;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-logout-profile:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

/* ==========================================================================
   11. UX MICRO-HINT & SAFETY WARNING MODAL
   ========================================================================== */
.ux-micro-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--eco-mint-light);
  border: 1px solid var(--eco-mint-deep);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--eco-forest);
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

.ux-micro-hint .hint-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.ux-micro-hint .hint-text {
  color: #065F46;
}

/* Safety Warning Modal */
.safety-modal-card {
  max-width: 380px;
  border-top: 4px solid var(--status-new);
}

.safety-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.safety-modal-card h3 {
  color: #DC2626;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.safety-modal-text {
  font-size: 0.88rem;
  color: var(--text-main);
  background: #FEF2F2;
  border-left: 3px solid #EF4444;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
  line-height: 1.5;
  margin-bottom: 20px;
}

.safety-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-emergency-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: #DC2626;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-emergency-call:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

.btn-safety-continue {
  width: 100%;
  padding: 12px 16px;
  background: #F1F5F9;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-safety-continue:hover {
  background: #E2E8F0;
}

/* Toggle Switch Styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: var(--transition-smooth);
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition-smooth);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
  background-color: var(--eco-emerald);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Geolocation Permission Modal */
.geo-modal-card {
  max-width: 360px;
  border-top: 4px solid var(--eco-emerald);
}

.geo-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.geo-modal-card h3 {
  font-family: var(--font-title);
  color: var(--eco-forest);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.geo-modal-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.geo-modal-actions {
  display: flex;
  gap: 10px;
}

.btn-geo-allow {
  flex: 1;
  padding: 12px 16px;
  background: var(--eco-emerald);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-geo-allow:hover {
  background: var(--eco-emerald-hover);
  transform: translateY(-1px);
}

.btn-geo-later {
  flex: 1;
  padding: 12px 16px;
  background: #F1F5F9;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-geo-later:hover {
  background: #E2E8F0;
}

/* ==========================================================================
   12. TELEGRAM-STYLE SETTINGS & AUTHOR AVATAR STYLES
   ========================================================================== */

/* Gear Button in Profile */
.btn-settings-gear {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

.btn-settings-gear:hover {
  background: #E2E8F0;
  transform: rotate(45deg);
}

/* Telegram Settings Modal Card */
.tg-settings-card {
  width: 100%;
  max-width: 400px;
  padding: 16px 16px 120px 16px;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 20px;
  text-align: left;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.tg-settings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
}

.tg-back-btn {
  background: transparent;
  border: none;
  color: var(--eco-emerald);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.tg-back-btn:hover {
  background: var(--eco-mint-light);
}

.tg-settings-header h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--eco-forest);
  margin: 0;
}

/* Avatar Upload Item */
.avatar-upload-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--eco-mint-light);
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--eco-emerald);
  margin-bottom: 16px;
}

.tg-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--eco-emerald);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  position: relative;
}

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

.tg-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.btn-upload-avatar {
  background: var(--eco-emerald);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-upload-avatar:hover {
  background: var(--eco-emerald-hover);
}

.avatar-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Telegram Settings Group & Input Rows */
.tg-setting-group {
  margin-bottom: 16px;
}

.tg-setting-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 6px;
}

.tg-input-row {
  display: flex;
  gap: 8px;
}

.tg-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: var(--font-family);
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  transition: var(--transition-smooth);
}

.tg-input:focus {
  border-color: var(--eco-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.tg-btn-save {
  padding: 10px 14px;
  background: var(--eco-forest);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tg-btn-save:hover {
  background: var(--eco-emerald);
}

.tg-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}

.tg-setting-info {
  display: flex;
  flex-direction: column;
}

.tg-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.tg-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Clear Cache Button */
.btn-clear-cache {
  width: 100%;
  padding: 12px 14px;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-clear-cache:hover {
  background: #FFEDD5;
}

/* Map Author Badge */
.sheet-author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  margin-top: 8px;
  display: inline-flex;
}

.sheet-author-badge .author-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.sheet-author-badge .author-avatar-letter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--eco-emerald);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-author-badge .author-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.sheet-author-badge.anon .author-name {
  color: var(--text-muted);
  font-weight: 600;
}

/* Report Modal Carousel Navigation */
.sheet-img-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 6;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.88);
  color: var(--eco-forest);
  border: 1px solid #CBD5E1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 6;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.carousel-arrow:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev {
  left: 8px;
}

.carousel-arrow.next {
  right: 8px;
}

/* ==========================================================================
   i18n MULTILINGUAL LANGUAGE SELECTOR STYLES
   ========================================================================== */
.login-card {
  position: relative;
}

.lang-selector-wrapper {
  position: relative;
  display: inline-block;
  z-index: 100;
}

.login-lang-selector {
  position: absolute;
  top: 18px;
  right: 18px;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.lang-dropdown-btn:hover {
  border-color: var(--eco-emerald);
  background: #FFFFFF;
  transform: translateY(-1px);
}

.lang-dropdown-btn .lang-code-text {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--eco-forest);
  letter-spacing: 0.3px;
}

.lang-dropdown-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 145px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(10px);
  z-index: 1000;
  animation: fadeInDown 0.2s ease;
}

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

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-option:hover {
  background: var(--eco-mint-light);
  color: var(--eco-forest);
}

.lang-option.active {
  background: var(--eco-mint-light);
  color: var(--eco-forest);
  font-weight: 700;
}

.lang-option .flag {
  font-size: 1rem;
}

.lang-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #E2E8F0;
}

.settings-lang-selector .lang-dropdown-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  padding: 6px 12px;
}

