* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
:root {
  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-red: #FF3B30;
  --ios-orange: #FF9500;
  --ios-purple: #AF52DE;
  --ios-gray: #8E8E93;
  --ios-bg: #000000;
  --ios-card: rgba(28, 28, 30, 0.6);
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--ios-bg);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--ios-purple);
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--ios-blue);
  top: 50%;
  right: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--ios-pink);
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
}
@keyframes float {
  0%, 100% {
  transform: translate(0, 0) scale(1);
}
33% {
  transform: translate(30px, -30px) scale(1.1);
}
66% {
  transform: translate(-20px, 20px) scale(0.9);
}

}
.ios-container {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
}
.ios-header {
  text-align: center;
  margin-bottom: 30px;
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from {
  opacity: 0;
  transform: translateY(-20px);
}
to {
  opacity: 1;
  transform: translateY(0);
}

}
.ios-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ios-purple), var(--ios-blue));
  border-radius: 22px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 10px 30px rgba(175, 82, 222, 0.3);
}
.ios-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.ios-subtitle {
  font-size: 15px;
  color: var(--ios-gray);
}
.ios-card {
  background: var(--ios-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(20px);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}
.ios-card:nth-child(2) {
  animation-delay: 0.1s;
}
.ios-card:nth-child(3) {
  animation-delay: 0.2s;
}
.ios-card:nth-child(4) {
  animation-delay: 0.3s;
}
@keyframes slideUp {
  to {
  opacity: 1;
  transform: translateY(0);
}

}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ios-green);
}
.ios-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}
.ios-dropzone:active {
  transform: scale(0.96);
}
.ios-dropzone.drag-over {
  border-color: var(--ios-blue);
  background: rgba(0, 122, 255, 0.1);
}
.ios-dropzone.has-file {
  border-color: var(--ios-green);
  background: rgba(52, 199, 89, 0.1);
}
.drop-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}
.drop-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.drop-subtitle {
  font-size: 13px;
  color: var(--ios-gray);
}
.file-preview {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
}
.file-preview.show {
  display: flex;
}
.file-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FFD60A, #FF9500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.file-info {
  flex: 1;
  text-align: left;
}
.file-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size {
  font-size: 13px;
  color: var(--ios-gray);
}
.file-remove {
  width: 28px;
  height: 28px;
  background: rgba(255, 59, 48, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ios-red);
  font-size: 16px;
  cursor: pointer;
}
.ios-input-group {
  margin-top: 16px;
}
.ios-label {
  font-size: 13px;
  color: var(--ios-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}
.ios-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 17px;
  font-family: inherit;
  outline: none;
}
.ios-input:focus {
  border-color: var(--ios-blue);
}
.ios-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ios-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ios-item:last-child {
  border-bottom: none;
}
.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.item-icon.green {
  background: rgba(52, 199, 89, 0.2);
  color: var(--ios-green);
}
.item-icon.blue {
  background: rgba(0, 122, 255, 0.2);
  color: var(--ios-blue);
}
.item-icon.purple {
  background: rgba(175, 82, 222, 0.2);
  color: var(--ios-purple);
}
.item-icon.orange {
  background: rgba(255, 149, 0, 0.2);
  color: var(--ios-orange);
}
.item-icon.red {
  background: rgba(255, 59, 48, 0.2);
  color: var(--ios-red);
}
.item-icon.pink {
  background: rgba(255, 45, 85, 0.2);
  color: var(--ios-pink);
}
.item-text {
  font-size: 16px;
  font-weight: 500;
}
.item-sub {
  font-size: 12px;
  color: var(--ios-gray);
  margin-top: 2px;
}
.ios-toggle {
  position: relative;
  width: 51px;
  height: 31px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15.5px;
  cursor: pointer;
  transition: background 0.3s;
}
.ios-toggle.active {
  background: var(--ios-green);
}
.ios-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ios-toggle.active .ios-toggle-knob {
  transform: translateX(20px);
}
.security-meter {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
}
.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.meter-title {
  font-size: 13px;
  color: var(--ios-gray);
  font-weight: 600;
}
.meter-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--ios-green);
}
.meter-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ios-red), var(--ios-orange), var(--ios-green));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ios-button {
  width: 100%;
  padding: 16px;
  background: var(--ios-blue);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ios-button:active {
  transform: scale(0.96);
  opacity: 0.8;
}
.ios-button:disabled {
  background: var(--ios-gray);
  opacity: 0.5;
  cursor: not-allowed;
}
.ios-button.success {
  background: var(--ios-green);
}
.ios-progress {
  margin-top: 20px;
  display: none;
}
.ios-progress.show {
  display: block;
}
.progress-text {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ios-blue);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.ios-terminal {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  height: 200px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.log-line {
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn {
  to {
  opacity: 1;
}

}
.log-time {
  color: var(--ios-gray);
  margin-right: 8px;
}
.log-info {
  color: var(--ios-blue);
}
.log-success {
  color: var(--ios-green);
}
.log-error {
  color: var(--ios-red);
}
.result-card {
  display: none;
  border: 2px solid var(--ios-green);
}
.result-card.show {
  display: block;
}
.code-preview {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 16px;
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
  color: rgba(255, 255, 255, 0.6);
  max-height: 300px;
  overflow-y: auto;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.protection-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.protection-badge {
  background: rgba(52, 199, 89, 0.2);
  color: var(--ios-green);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(52, 199, 89, 0.3);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ios-blue);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: var(--ios-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ios-toast {
  position: fixed;
  top: calc(20px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(40, 40, 40, 0.9);
  backdrop-filter: blur(20px);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ios-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.ios-toast.success {
  border-color: rgba(52, 199, 89, 0.5);
}
.ios-toast.error {
  border-color: rgba(255, 59, 48, 0.5);
}
.download-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(52, 199, 89, 0.1);
  border: 2px solid rgba(52, 199, 89, 0.3);
  border-radius: 16px;
  text-align: center;
  display: none;
  animation: bounceIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.download-section.show {
  display: block;
}
@keyframes bounceIn {
  0% {
  opacity: 0;
  transform: scale(0.8);
}
50% {
  transform: scale(1.05);
}
100% {
  opacity: 1;
  transform: scale(1);
}

}
.download-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% {
  transform: scale(1);
}
50% {
  transform: scale(1.1);
}

}
.download-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ios-green);
}
.download-meta {
  font-size: 13px;
  color: var(--ios-gray);
  margin-bottom: 16px;
}
input[type="file"] {
  display: none;
}