/* ==========================================================================
   ARZVERSE — Ray-Ban Meta EXIF Converter & Photo Studio
   Design System & Styling
   ========================================================================== */

:root {
  --bg-space: #060813;
  --bg-deep: #0a0e21;
  --card-bg: rgba(14, 20, 40, 0.78);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(99, 102, 241, 0.25);
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  
  --gradient-main: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  --gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 50%, #be185d 100%);
  --gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, rgba(124, 58, 237, 0.4) 50%, rgba(219, 39, 119, 0.4) 100%);
  --gradient-card: linear-gradient(180deg, rgba(20, 28, 58, 0.85) 0%, rgba(10, 14, 33, 0.9) 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, 0.14);
  --ok-border: rgba(16, 185, 129, 0.3);
  
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.14);
  --danger-border: rgba(239, 68, 68, 0.3);
  
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.14);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-btn: 0 12px 30px -5px rgba(59, 130, 246, 0.45);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-space);
}

body {
  background: var(--bg-space);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #060813 0%, #0a0e24 50%, #060813 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: env(safe-area-inset-top, 16px) 16px env(safe-area-inset-bottom, 24px) 16px;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 14, 33, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* App Wrapper */
.app-wrapper {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
}

/* Ambient Cyber Grid Overlay */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  z-index: 0;
}

.content-layer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

/* Top Navbar / Brand */
.brand-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.logo-symbol {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.logo-symbol.logo-insta {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 35%, #8134af 70%, #515bd4 100%);
  box-shadow: 0 4px 20px rgba(221, 42, 123, 0.45);
}

.logo-symbol svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.btn-icon-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-icon-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Header Banner */
.hero-header {
  text-align: center;
  padding: 10px 8px 4px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}

.meta-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 10%, #e2e8f0 70%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* Glass Card */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tab-btn .badge-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

/* Mobile Quick Source Buttons */
.source-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.source-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.source-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.source-btn:active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
  transform: scale(0.98);
}

.source-btn .btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.source-btn .btn-icon svg {
  width: 18px;
  height: 18px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed rgba(99, 102, 241, 0.35);
  background: rgba(10, 15, 33, 0.55);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.drop-zone:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(14, 21, 48, 0.65);
}

.drop-zone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  transform: scale(1.01);
}

.drop-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: #60a5fa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.drop-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.drop-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}

.drop-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.drop-formats {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.format-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

input[type="file"] {
  display: none;
}

/* Framing & Options Configuration */
.config-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.config-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.config-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.option-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s ease;
  user-select: none;
}

.option-pill:hover {
  background: rgba(255, 255, 255, 0.07);
}

.option-pill.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}

.option-pill-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-pill.active .option-pill-title {
  color: #60a5fa;
}

.option-pill-desc {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Custom Select Dropdowns */
.select-input {
  width: 100%;
  background: rgba(10, 14, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f1f5f9;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.select-input option {
  background: #0a0e24;
  color: #ffffff;
}

/* Image Preview Workspace */
.preview-card {
  display: none;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #030611;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-img-wrapper {
  position: relative;
  width: 100%;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030611;
  overflow: hidden;
}

.preview-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  user-select: auto;
  -webkit-user-select: auto;
}

.preview-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.preview-badge-status {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  pointer-events: auto;
}

.preview-badge-size {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  pointer-events: auto;
}

.preview-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Quick Download Button on Preview */
.preview-download-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.preview-download-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.preview-download-btn:active {
  transform: scale(0.97);
}

/* Post-Conversion Download Result Card */
.download-result-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%), rgba(10, 15, 33, 0.85);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 36px -8px rgba(16, 185, 129, 0.25), 0 0 20px rgba(16, 185, 129, 0.15);
  animation: slideResult 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideResult {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.result-dimensions {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  font-family: monospace;
}

/* Big Glowing Hero Download Button */
.btn-download-hero {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #06b6d4 100%);
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45), 0 0 25px rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-download-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: shimmer 3s infinite linear;
}

.btn-download-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.6), 0 0 35px rgba(6, 182, 212, 0.4);
}

.btn-download-hero:active {
  transform: scale(0.98);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-download-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-download-icon svg {
  width: 22px;
  height: 22px;
  animation: bounceDown 1.8s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.btn-download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-download-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.btn-download-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 2px;
}

.result-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Action Buttons */
.action-cluster {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary-action {
  background: var(--gradient-main);
  border: none;
  border-radius: var(--radius-md);
  padding: 17px 20px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary-action::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.btn-primary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -5px rgba(59, 130, 246, 0.6);
}

.btn-primary-action:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 6px 20px -3px rgba(59, 130, 246, 0.4);
}

.btn-primary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.5);
}

.sub-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 13px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-secondary:active:not(:disabled) {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.15);
}

.btn-secondary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Status Banner / Feedback */
.status-toast {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  animation: slideToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-toast.success {
  border: 1px solid var(--ok-border);
  color: #34d399;
  background: var(--ok-bg);
}

.status-toast.error {
  border: 1px solid var(--danger-border);
  color: #f87171;
  background: var(--danger-bg);
}

.status-toast.loading {
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
}

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

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinAnim 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spinAnim {
  to { transform: rotate(360deg); }
}

/* Specs Badges Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-card .spec-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.spec-card .spec-val {
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-card .spec-val .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

/* EXIF Details Accordion */
.exif-details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.exif-details summary {
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.exif-details summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.exif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  padding: 0 16px 12px;
}

.exif-table tr {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.exif-table td {
  padding: 8px 12px;
}

.exif-table td.tag {
  color: var(--text-muted);
  font-family: monospace;
  width: 40%;
}

.exif-table td.val {
  color: #38bdf8;
  font-weight: 600;
  word-break: break-all;
}

/* Batch Mode Styles */
.batch-section {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.batch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
}

.batch-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.batch-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}

.batch-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.batch-name {
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.batch-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.batch-progress-bar-wrap {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 4px;
}

.batch-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  transition: width 0.2s ease;
}

#downloadZipBtn:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: rgba(16, 185, 129, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
  cursor: pointer;
}

#downloadZipBtn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

/* Features Grid */
.features-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.feature-box {
  background: rgba(14, 20, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.feature-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.feature-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Hostinger & Help Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: #0c1126;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.modal-body {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.code-box {
  background: #04060d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 12px;
  color: #38bdf8;
  overflow-x: auto;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 12px 6px 20px;
  font-size: 11.5px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-footer a {
  color: #60a5fa;
  text-decoration: none;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  color: #94a3b8;
}

/* Mobile Small Screen Enhancements */
@media (max-width: 440px) {
  body {
    padding: env(safe-area-inset-top, 12px) 10px env(safe-area-inset-bottom, 20px) 10px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .glass-card {
    padding: 18px 14px;
    border-radius: 20px;
  }
  
  .config-pill-grid {
    grid-template-columns: 1fr;
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
}
