.iphone-device {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 180px auto 0 auto;
  background: var(--fundo-escuro);
  border-radius: 60px;
  padding: var(--espaco-md);
  box-shadow: 
    0 40px 80px -10px rgba(0,0,0,0.8),
    0 0 0 2px #2a3a4a,
    inset 0 0 0 2px #1e2a34;
  transition: transform var(--transicao-rapida);
  animation: floatIn 0.6s ease-out;
}

.iphone-frame {
  background: var(--fundo-escuro-sec);
  border-radius: 52px;
  padding: var(--espaco-xs);
  box-shadow: inset 0 0 0 1px #3d4e60;
}

.iphone-screen {
  background: var(--fundo-escuro);
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    inset 0 0 0 1px rgba(80, 160, 255, 0.2),
    0 0 0 1px rgba(255,255,255,0.05);
  background-image: radial-gradient(circle at 20% 10%, rgba(30, 80, 130, 0.3) 0%, transparent 50%);
}

.iphone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%, transparent 70%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
  z-index: 5;
}

.screen-content {
  padding: var(--espaco-xl) var(--espaco-md) var(--espaco-xl);
  position: relative;
  z-index: var(--z-base);
}

.notch-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--espaco-lg);
}

.dynamic-island {
  background: var(--fundo-escuro);
  width: 110px;
  height: 34px;
  border-radius: var(--raio-completo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--espaco-md);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.3);
  border: 0.5px solid #2e4258;
  backdrop-filter: blur(4px);
}

.camera-lens {
  width: 14px;
  height: 14px;
  background: #142130;
  border-radius: 20px;
  border: 1px solid #1e3a55;
  box-shadow: inset 0 0 4px #000000;
}

.sensor-dot {
  width: 8px;
  height: 8px;
  background: #0c1a28;
  border-radius: 10px;
  border: 0.5px solid #1a334b;
}

.speaker-grill {
  width: 30px;
  height: 4px;
  background: var(--fundo-escuro);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px black;
}

.form-header {
  text-align: center;
  margin-bottom: var(--espaco-xl);
}

.form-header h2 {
  font-weight: 650;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--texto-claro), #b8d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--espaco-2xs);
}

.form-header p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.input-group {
  margin-bottom: var(--espaco-md);
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--espaco-2xs);
  margin-left: var(--espaco-xs);
  color: #b0c9e8;
  letter-spacing: 0.2px;
}

.input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 180, 255, 0.25);
  border-radius: var(--raio-completo);
  padding: var(--espaco-md) var(--espaco-lg);
  font-size: 0.95rem;
  color: var(--texto-claro);
  outline: none;
  transition: all var(--transicao-rapida);
  font-family: var(--fonte-principal);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.3);
}

.input-field:focus {
  border-color: var(--marca);
  background: rgba(20, 50, 90, 0.5);
  box-shadow: var(--borda-foco-sombra), inset 0 2px 6px rgba(0,0,0,0.4);
}

.input-field::placeholder {
  color: #8da3c2;
  opacity: 0.6;
  font-weight: 300;
}

textarea.input-field {
  min-height: 100px;
  resize: vertical;
}

.send-btn {
  width: 100%;
  background: linear-gradient(145deg, var(--marca), var(--marca-hover));
  border: none;
  border-radius: var(--raio-completo);
  padding: var(--espaco-lg) var(--espaco-xl);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--texto-claro);
  cursor: pointer;
  box-shadow: 0 12px 20px -5px #0e3a6e, inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transicao-rapida);
  margin-top: var(--espaco-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--espaco-xs);
}

.send-btn:hover {
  background: linear-gradient(145deg, #5a9eff, #307df0);
  transform: translateY(-2px);
  box-shadow: 0 18px 28px -8px #1e4f8a;
}

.home-bar {
  display: flex;
  justify-content: center;
  margin-top: var(--espaco-lg);
  margin-bottom: var(--espaco-xs);
}

.home-indicator {
  width: 130px;
  height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: var(--raio-completo);
  backdrop-filter: blur(4px);
}

.side-buttons {
  position: absolute;
  left: -4px;
  top: 120px;
  width: 4px;
  height: 35px;
  background: #1f2e3c;
  border-radius: 4px 0 0 4px;
  box-shadow: inset 0 2px 4px black;
}

.side-buttons.right {
  left: auto;
  right: -4px;
  border-radius: 0 4px 4px 0;
  top: 150px;
  height: 55px;
}

.side-buttons.small {
  top: 200px;
  height: 25px;
}

/* Responsividade Progressiva */
@media (max-width: 900px) {
  .iphone-device {
    max-width: 460px;
    margin-top: 100px;
  }
  .screen-content {
    padding: var(--espaco-lg) var(--espaco-md);
  }
  .form-header h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .iphone-device {
    max-width: 100%;
    margin: 60px auto 0 auto;
    border-radius: 36px;
    padding: var(--espaco-sm);
  }
  .iphone-frame {
    border-radius: 30px;
  }
  .iphone-screen {
    border-radius: 26px;
  }
  .dynamic-island {
    width: 90px;
    height: 28px;
  }
  .camera-lens { width: 10px; height: 10px; }
  .sensor-dot { width: 6px; height: 6px; }
  .speaker-grill { width: 20px; height: 3px; }
  .screen-content {
    padding: var(--espaco-md) var(--espaco-xs);
  }
  .form-header h2 {
    font-size: 1.4rem;
  }
  .form-header p {
    font-size: 0.8rem;
  }
  .side-buttons { display: none; }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Styles (Mantidos conforme original) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out forwards;
}

.modal-box {
  background: rgba(20, 30, 45, 0.9);
  border: 1px solid rgba(100, 180, 255, 0.2);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-icon i {
  font-size: 4rem;
  color: #1eb84a;
  display: block;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(30, 184, 74, 0.4);
}

.modal-box h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.modal-box p {
  color: #a0b4cc;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.loader-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #1eb84a;
  animation: loadProgress 3s linear forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  to { transform: scale(1); }
}

@keyframes loadProgress {
  to { width: 100%; }
}