/* ══════════════════════════════════════════════
   METEO TINDARO — Stile
   ══════════════════════════════════════════════ */

:root {
  --sky-sunny-top: #42A5F5;
  --sky-sunny-bot: #FFD54F;
  --sky-cloudy-top: #90A4AE;
  --sky-cloudy-bot: #B0BEC5;
  --sky-overcast-top: #607D8B;
  --sky-overcast-bot: #78909C;
  --sky-warning-top: #546E7A;
  --sky-warning-bot: #37474F;
  --sky-rain-top: #37474F;
  --sky-rain-bot: #263238;
  --sky-storm-top: #1A1A2E;
  --sky-storm-bot: #16213E;
  --card-bg: rgba(255,255,255,0.15);
  --card-border: rgba(255,255,255,0.25);
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.8);
  --nav-bg: rgba(10,20,50,0.92);
  --nav-height: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── App Container ─────────────────────────── */
.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Sky Background ────────────────────────── */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--sky-sunny-top) 0%, var(--sky-sunny-bot) 100%);
  transition: background 2s ease;
  overflow: hidden;
}

.sky.sky-sunny   { background: linear-gradient(180deg, #42A5F5 0%, #FFB74D 60%, #FF8F00 100%); }
.sky.sky-cloudy  { background: linear-gradient(180deg, #78909C 0%, #90A4AE 100%); }
.sky.sky-overcast{ background: linear-gradient(180deg, #546E7A 0%, #607D8B 100%); }
.sky.sky-warning { background: linear-gradient(180deg, #37474F 0%, #455A64 100%); }
.sky.sky-rain    { background: linear-gradient(180deg, #263238 0%, #37474F 100%); }
.sky.sky-storm   { background: linear-gradient(180deg, #0a0a1a 0%, #1A237E 100%); }

/* ── Sun & Moon ────────────────────────────── */
.sun, .moon {
  position: absolute;
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(255,200,0,0.8));
  transition: all 2s ease;
}
.sun  { top: 8%; right: 12%; animation: sunFloat 6s ease-in-out infinite; }
.moon { top: 8%; right: 12%; font-size: 2.8rem; opacity: 0; animation: moonFloat 8s ease-in-out infinite; filter: drop-shadow(0 0 15px rgba(200,200,255,0.6)); }
.sky.sky-night .sun  { opacity: 0; }
.sky.sky-night .moon { opacity: 1; }

@keyframes sunFloat  { 0%,100%{ transform: translateY(0) rotate(-5deg); } 50%{ transform: translateY(-8px) rotate(5deg); } }
@keyframes moonFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }

/* ── Stars ─────────────────────────────────── */
.stars { position: absolute; inset: 0; opacity: 0; transition: opacity 2s; }
.sky.sky-night .stars,
.sky.sky-storm .stars { opacity: 0.6; }
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{ opacity:1; } 50%{ opacity:0.2; } }

/* ── Clouds ────────────────────────────────── */
.clouds-container { position: absolute; inset: 0; overflow: hidden; }

.cloud {
  position: absolute;
  border-radius: 50px;
  background: rgba(255,255,255,0.85);
  filter: blur(2px);
  animation: cloudDrift linear infinite;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud-1 { width:120px; height:40px; top:12%; left:-150px; animation-duration: 45s; animation-delay: 0s; }
.cloud-1::before { width:70px; height:50px; top:-20px; left:15px; }
.cloud-1::after  { width:50px; height:40px; top:-12px; left:55px; }

.cloud-2 { width:90px; height:30px; top:22%; left:-120px; animation-duration: 60s; animation-delay:-20s; }
.cloud-2::before { width:55px; height:40px; top:-16px; left:10px; }
.cloud-2::after  { width:40px; height:30px; top:-8px; left:42px; }

.cloud-3 { width:70px; height:25px; top:8%; left:-100px; animation-duration:70s; animation-delay:-35s; }
.cloud-3::before { width:45px; height:35px; top:-14px; left:8px; }
.cloud-3::after  { width:35px; height:28px; top:-8px; left:34px; }

.cloud-dark {
  background: rgba(80,90,110,0.7) !important;
  filter: blur(3px);
  opacity: 0;
  transition: opacity 2s;
}
.cloud-4 { width:160px; height:55px; top:18%; left:-200px; animation-duration:35s; animation-delay:-5s; }
.cloud-4::before { width:90px; height:65px; top:-25px; left:20px; }
.cloud-4::after  { width:70px; height:55px; top:-15px; left:75px; }

.cloud-5 { width:130px; height:45px; top:28%; left:-170px; animation-duration:50s; animation-delay:-15s; }
.cloud-5::before { width:75px; height:55px; top:-22px; left:15px; }
.cloud-5::after  { width:60px; height:48px; top:-12px; left:60px; }

.sky.sky-warning .cloud-dark,
.sky.sky-rain    .cloud-dark,
.sky.sky-storm   .cloud-dark { opacity: 1; }
.sky.sky-warning .cloud,
.sky.sky-rain    .cloud,
.sky.sky-storm   .cloud { opacity: 0.3; }

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 220px)); }
}

/* ── Rain ──────────────────────────────────── */
.rain-container { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.raindrop {
  position: absolute;
  top: -20px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(150,180,255,0.7));
  animation: fall linear infinite;
  border-radius: 2px;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(10deg); }
}

/* ── Lightning ─────────────────────────────── */
.lightning {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.9);
  opacity: 0;
  pointer-events: none;
}
.sky.sky-storm .lightning { animation: lightning 8s ease-in-out infinite; }
@keyframes lightning {
  0%,90%,100% { opacity:0; }
  91% { opacity:0.6; }
  92% { opacity:0; }
  94% { opacity:0.4; }
  95% { opacity:0; }
}

/* ── Header ────────────────────────────────── */
.app-header {
  position: relative;
  z-index: 10;
  padding: 52px 20px 10px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
}
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.location-dot {
  width: 6px; height: 6px;
  background: #76FF03;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(118,255,3,0.6); } 50%{ box-shadow: 0 0 0 4px rgba(118,255,3,0); } }

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.last-update {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Pages ─────────────────────────────────── */
.pages {
  position: relative;
  z-index: 5;
  flex: 1;
  overflow: hidden;
}
.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: all 0.3s ease;
  -webkit-overflow-scrolling: touch;
}
.page.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}
.page-inner { padding: 12px 16px; }

/* ── Tindari Scene ─────────────────────────── */
.tindari-scene {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.tindari-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 -4px 20px rgba(0,0,0,0.3));
}
.status-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(40px);
  transition: background 2s, opacity 2s;
  pointer-events: none;
}

#tindariPath {
  transition: fill 2s ease;
}
.sky.sky-sunny    #tindariPath { fill: #1A237E; }
.sky.sky-cloudy   #tindariPath { fill: #263238; }
.sky.sky-overcast #tindariPath { fill: #1C2833; }
.sky.sky-warning  #tindariPath { fill: #17202A; }
.sky.sky-rain     #tindariPath { fill: #111; }
.sky.sky-storm    #tindariPath { fill: #0a0a0a; }

.tindari-status {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 8px 20px;
  white-space: nowrap;
}
.status-icon { font-size: 1.8rem; line-height: 1; }
.status-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Dialect Card ──────────────────────────── */
.dialect-card {
  margin: -8px 16px 0;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 16px;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}
.dialect-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.dialect-message {
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.dialect-advice {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
  margin-bottom: 8px;
}
.beach-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Weather Grid ──────────────────────────── */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 16px;
}
.weather-item {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 6px;
  text-align: center;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.weather-icon { font-size: 1.4rem; }
.weather-value { font-size: 0.9rem; font-weight: 700; }
.weather-label { font-size: 0.62rem; color: var(--text-secondary); }

/* ── Section Title ─────────────────────────── */
.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 16px 16px 8px;
}

/* ── Hourly Scroll ─────────────────────────── */
.hourly-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hourly-scroll::-webkit-scrollbar { display: none; }

.hourly-item {
  flex-shrink: 0;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 10px;
  text-align: center;
  color: var(--text-primary);
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hourly-time  { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; }
.hourly-icon  { font-size: 1.3rem; }
.hourly-temp  { font-size: 0.85rem; font-weight: 700; }
.hourly-precip{ font-size: 0.65rem; color: #90CAF9; }
.hourly-item.current-hour { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.25); }

.hourly-loading { color: var(--text-secondary); font-size: 0.85rem; padding: 10px 0; }

/* ── Daily List ────────────────────────────── */
.daily-list { margin: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.daily-item {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.daily-date { flex: 1; }
.daily-day   { font-size: 0.9rem; font-weight: 700; }
.daily-desc  { font-size: 0.72rem; color: var(--text-secondary); }
.daily-icon  { font-size: 1.8rem; }
.daily-temps { text-align: right; }
.daily-max   { font-size: 0.95rem; font-weight: 700; }
.daily-min   { font-size: 0.8rem; color: var(--text-secondary); }
.daily-precip{ font-size: 0.7rem; color: #90CAF9; margin-top: 2px; }

/* ── Info Card ─────────────────────────────── */
.info-card {
  margin: 0 16px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.6;
}
.info-card p + p { margin-top: 10px; }
.info-card a { color: #90CAF9; }

/* ── Notifications Page ────────────────────── */
.notif-status-card {
  margin: 0 16px 16px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 14px;
}
.notif-status-icon { font-size: 2rem; }
.notif-status-text { display: flex; flex-direction: column; gap: 2px; }
.notif-status-text strong { font-size: 0.95rem; }
.notif-status-text span { font-size: 0.8rem; color: var(--text-secondary); }

.btn-notif {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px;
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  border: none;
  border-radius: 14px;
  padding: 14px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.btn-notif:active { transform: scale(0.97); }
.btn-notif.enabled { background: linear-gradient(135deg, #2E7D32, #1B5E20); }

.notif-prefs { margin-top: 12px; }

.pref-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 10px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
}
.pref-item input[type="checkbox"] {
  position: absolute;
  right: 16px;
  width: 22px;
  height: 22px;
  accent-color: #42A5F5;
  cursor: pointer;
}
.pref-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.pref-icon { font-size: 1.6rem; }
.pref-info div { display: flex; flex-direction: column; gap: 2px; padding-right: 32px; }
.pref-info strong { font-size: 0.9rem; }
.pref-info p { font-size: 0.75rem; color: var(--text-secondary); }

.btn-save-prefs {
  display: block;
  width: calc(100% - 32px);
  margin: 8px 16px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  padding: 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-save-prefs:active { background: rgba(255,255,255,0.3); }

.btn-disable-notif {
  display: block;
  width: calc(100% - 32px);
  margin: 4px 16px 0;
  background: transparent;
  border: 1px solid rgba(255,100,100,0.4);
  border-radius: 14px;
  padding: 10px;
  color: rgba(255,150,150,0.9);
  font-size: 0.85rem;
  cursor: pointer;
}

/* ── Bottom Navigation ─────────────────────── */
.bottom-nav {
  position: relative;
  z-index: 20;
  display: flex;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--nav-height) + var(--safe-bottom));
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0;
  cursor: pointer;
  padding: 10px 0 6px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: #42A5F5; }
.nav-icon  { font-size: 1.5rem; }
.nav-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; }

/* ── Loading Overlay ───────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(180deg, #1565C0 0%, #0D47A1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.loading-overlay.hidden { opacity: 0; visibility: hidden; }
.loading-content { text-align: center; color: white; }
.loading-icon { font-size: 4rem; animation: loadingBounce 1.2s ease-in-out infinite; }
.loading-text { font-size: 1rem; margin-top: 16px; opacity: 0.8; }
@keyframes loadingBounce {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}

/* ── Alert animations per stato ────────────── */
.status-glow.glow-0 { background: #FFD54F; }
.status-glow.glow-1 { background: #90A4AE; }
.status-glow.glow-2 { background: #607D8B; }
.status-glow.glow-3 { background: #FF9800; opacity: 0.25; }
.status-glow.glow-4 { background: #2196F3; opacity: 0.2; }
.status-glow.glow-5 { background: #E91E63; opacity: 0.3; animation: stormPulse 2s ease-in-out infinite; }

@keyframes stormPulse {
  0%,100%{ opacity: 0.3; transform: translateX(-50%) scale(1); }
  50%{ opacity: 0.6; transform: translateX(-50%) scale(1.2); }
}

/* ── Scrollbar nascosta ────────────────────── */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════════
   INSTALL BANNER
   ══════════════════════════════════════════════ */

.install-banner {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 10px);
  left: 12px;
  right: 12px;
  z-index: 50;
  background: rgba(15, 30, 80, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 14px 14px 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: bannerSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
  color: white;
}

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

.install-banner.hiding {
  animation: bannerSlideDown 0.3s ease forwards;
}
@keyframes bannerSlideDown {
  to { opacity: 0; transform: translateY(20px); }
}

.install-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.install-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.install-banner-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-banner-text span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}

.install-banner-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #42A5F5, #1565C0);
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.install-banner-btn:active { transform: scale(0.95); }

.install-banner-close {
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════════════════
   iOS INSTALL MODAL
   ══════════════════════════════════════════════ */

.ios-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; /* was !important */
  align-items: flex-end;
  padding-bottom: calc(var(--safe-bottom) + 12px);
  animation: overlayFadeIn 0.3s ease;
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ios-modal {
  width: 100%;
  background: rgba(15, 25, 70, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px 24px 16px 16px;
  padding: 24px 24px 28px;
  color: white;
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.34,1.3,0.64,1);
}
@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.ios-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.ios-modal-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
}

.ios-modal h3 {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.ios-modal > p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-bottom: 18px;
}

.ios-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.ios-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 10px 14px;
}
.ios-step-icon {
  background: #1565C0;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.share-icon {
  font-size: 1.1rem;
  display: inline-block;
}

/* Freccia che punta verso il basso (verso la barra Safari) */
.ios-modal::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid rgba(15, 25, 70, 0.98);
}

.ios-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 18px !important;
}

.ios-modal-got-it {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #42A5F5, #1565C0);
  border: none;
  border-radius: 14px;
  padding: 14px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
