/* Enhanced Clinical + Tech theme for CanScan.ca
   - Improved fonts (Inter + DM Sans for crisp readability)
   - Better icons, centering, spacing
   - Professional medical aesthetic with subtle animations
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --primary: #0369a1; /* clinical blue */
  --primary-dark: #075985;
  --accent: #06b6d4;  /* cyan accent */
  --success: #059669;
  --warning: #f59e0b;
  --danger: #dc2626;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --card-border: #e2e8f0;
  --text-dark: #0f172a;
  --text-light: #475569;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(3, 105, 161, 0.08);
  --shadow-lg: 0 20px 60px rgba(3, 105, 161, 0.12);
}

html, body {
  background: var(--bg) !important;
  color: var(--text-dark) !important;
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  line-height: 1.6 !important;
  font-size: 16px !important;
}

/* Better text rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header - Light professional medical theme */
header {
  border-radius: var(--radius) !important;
  padding: 48px 24px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.08) !important;
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-bottom: 2rem !important;
  border-bottom: 3px solid var(--primary);
}

/* Subtle medical cross pattern overlay */
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(90deg, rgba(3, 105, 161, 0.02) 0px, transparent 2px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(3, 105, 161, 0.02) 0px, transparent 2px, transparent 40px);
  opacity: 0.5;
  pointer-events: none;
  border-radius: var(--radius) 0 0 0;
}

.header-content {
  position: relative;
  z-index: 1;
}

.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo img {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(3, 105, 161, 0.15));
}

.logo span {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 2.25rem !important;
  letter-spacing: -0.5px !important;
  font-family: 'DM Sans', 'Inter', sans-serif !important;
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: #475569 !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  max-width: 720px !important;
  margin: 0 auto 1.75rem !important;
  font-weight: 500 !important;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(3, 105, 161, 0.1);
}

/* Main content card */
main {
  border-radius: var(--radius) !important;
  padding: 3rem 2.5rem !important;
  background: var(--card) !important;
  box-shadow: var(--shadow) !important;
  border: 1px solid var(--card-border) !important;
  text-align: center;
}

main h2 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 0.75rem !important;
  font-family: 'DM Sans', 'Inter', sans-serif !important;
}

main > p {
  color: var(--text-light) !important;
  font-size: 1.05rem !important;
  margin-bottom: 2rem !important;
}

/* Forms and inputs */
.form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.95rem !important;
}

label i {
  margin-right: 6px;
  color: var(--primary);
}

input[type="text"], 
input[type="email"] {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  border: 2px solid var(--card-border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  background: var(--bg) !important;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  background: white !important;
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.1) !important;
}

/* Buttons */
button, .button-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 1rem 1.75rem !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-family: inherit !important;
  text-decoration: none !important;
  box-shadow: var(--shadow) !important;
}

button[type="submit"],
.button-link {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: white !important;
}

button:hover:not(:disabled),
.button-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

button i, .button-link i {
  font-size: 1.1em;
}

/* File upload wrapper */
.input-wrapper {
  border: 3px dashed var(--card-border) !important;
  border-radius: var(--radius) !important;
  padding: 3rem 2rem !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  background: var(--bg) !important;
  position: relative;
}

.input-wrapper:hover:not(.disabled) {
  border-color: var(--accent) !important;
  background: white !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.1) !important;
}

.input-wrapper i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.input-wrapper p {
  color: var(--text-light) !important;
  font-weight: 500 !important;
}

/* Scan status badges */
.scan-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3) !important;
}

.scan-status i {
  font-size: 1.1em;
}

.scan-status.free {
  background: rgba(5, 150, 105, 0.15) !important;
  color: #065f46 !important;
  border-color: rgba(5, 150, 105, 0.3) !important;
}

.scan-status.paid {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #0e7490 !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
}

.scan-status.blocked {
  background: rgba(220, 38, 38, 0.15) !important;
  color: #991b1b !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
}

/* Next free scan date badge */
.next-free-scan {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: white !important;
  color: var(--primary) !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  border: 2px solid rgba(3, 105, 161, 0.1) !important;
}

.next-free-scan i {
  animation: pulse 2s infinite;
}

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

/* Alerts with icons */
.alert {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  margin-bottom: 1.5rem !important;
  border-left: 4px solid !important;
}

.alert i {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert.error {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border-color: var(--danger) !important;
}

.alert.error i {
  color: var(--danger);
}

.alert.info,
.alert.success {
  background: #f0fdf4 !important;
  color: #065f46 !important;
  border-color: var(--success) !important;
}

.alert.info i,
.alert.success i {
  color: var(--success);
}

.alert.warning {
  background: #fffbeb !important;
  color: #92400e !important;
  border-color: var(--warning) !important;
}

.alert.warning i {
  color: var(--warning);
}

/* Modal improvements */
.modal {
  backdrop-filter: blur(8px);
}

.modal-content {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3) !important;
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  padding: 1.75rem 2rem !important;
}

.modal-header h2 {
  color: white !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.modal-body {
  padding: 2rem !important;
  max-height: 75vh;
  overflow-y: auto;
}

.price-display {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  text-align: center !important;
  margin: 1.5rem 0 !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Subscription buttons */
.deferred-subscribe {
  padding: 12px 20px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 0.95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.deferred-subscribe:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* Footer */
footer {
  text-align: center !important;
  padding: 2.5rem 1rem !important;
  margin-top: 3rem !important;
  color: var(--text-light) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.95rem !important;
}

footer a {
  color: var(--primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s !important;
}

footer a:hover {
  color: var(--accent) !important;
  text-decoration: underline !important;
}

/* Keep Pay button visible on mobile */
.sticky-pay {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 50%);
  padding-top: 8px;
  z-index: 2;
}

/* Responsive purchase button improvements */
.responsive-purchase-btn {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  white-space: normal !important;
  text-align: center !important;
  justify-content: center !important;
  line-height: 1.35 !important;
  gap: 4px 6px !important;
}

.responsive-purchase-btn .price-line {
  display: inline;
}

@media (max-width: 640px) {
  .responsive-purchase-btn {
    font-size: 1rem !important;
    padding: 0.9rem 1rem !important;
    border-width: 2px !important;
  }
  .responsive-purchase-btn i {
    font-size: 1.2rem !important;
  }
  .responsive-purchase-btn .price-line {
    display: block;
  }
}

/* Result cards */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  padding: 1.75rem !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: var(--shadow) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  text-align: center;
}

.result-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important;
}

.result-card .title {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: var(--text-dark) !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.result-card .title i {
  color: var(--primary);
  font-size: 1.2em;
}

.result-card .value {
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
}

.result-card .value.suspicious { color: var(--danger) !important; }
.result-card .value.high { color: var(--danger) !important; }
.result-card .value.medium { color: var(--warning) !important; }
.result-card .value.low { color: var(--success) !important; }

/* Mobile responsive */
@media (max-width: 768px) {
  header {
    padding: 32px 20px !important;
  }
  .logo img {
    height: 72px;
    max-width: 90vw;
    width: auto;
  }
  
  .logo span {
    font-size: 1.5rem !important;
  }
  
  .tagline {
    font-size: 1rem !important;
  }
  
  main {
    padding: 2rem 1.5rem !important;
  }
  
  .result-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95% !important;
    margin: 5% auto !important;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: auto;
    max-width: 80vw;
  }
}

/* --- Appended original inline styles from index.php ---
   These were moved here to consolidate styling. Keep this section
   near the top for easier overrides if needed.
*/

:root {
  /* Medical, professional color palette */
  --primary-color: #006f9a; /* clinical teal/blue */
  --secondary-color: #045d75; /* deeper teal */
  --success-color: #16a34a; /* medical green */
  --danger-color: #dc2626;  /* clear clinical red */
  --warning-color: #f59e0b;
  --info-color: #0ea5a4;
  --dark-color: #102a43;
  --light-bg: #f6fbff;
  --light-text: #FFFFFF;
  --border-color: #e6eef6;
  --success-bg: #e6ffef;
  --success-text: #064e3b;
  --warning-bg: #fff7ed;
  --warning-text: #92400e;
  --warning-border: #f59e0b;
  --error-bg: #fff1f2;
  --error-text: #7f1d1d;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --card-shadow: 0 12px 36px rgba(2,12,27,0.08);
  --border-radius: 12px;
}

*, *::before, *::after { 
  box-sizing: border-box; 
}

body { 
  margin: 0; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--dark-color); 
  line-height: 1.7; 
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container { 
  max-width: 760px; 
  margin: 2rem auto; 
  padding: 1rem; 
}

header { 
  text-align: center; 
  margin-bottom: 2rem; 
  position: relative; 
  background: var(--gradient);
  color: white;
  padding: 30px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header-content { 
  display: flex; 
  flex-direction: column; 
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.75rem; 
  font-size: 2.5rem; 
  font-weight: 700; 
  color: white; 
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.tagline { 
  font-size: 1.2rem; 
  color: rgba(255,255,255,0.9); 
  max-width: 600px; 
  margin: 0.5rem auto 1rem auto; 
  font-weight: 500;
}

.scan-status { 
  margin-top: 1.5rem; 
  padding: 1.2rem 2rem; 
  background: rgba(255,255,255,0.2);
  border-radius: 25px; 
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  display: inline-block;
}

.scan-status.free { 
  background: rgba(46, 204, 113, 0.2); 
  border-color: rgba(46, 204, 113, 0.4); 
}

.scan-status.paid { 
  background: rgba(52, 152, 219, 0.2); 
  border-color: rgba(52, 152, 219, 0.4); 
}

.scan-status.blocked { 
  background: rgba(231, 76, 60, 0.2); 
  border-color: rgba(231, 76, 60, 0.4); 
}

/* Fancy next free scan date styling */
.next-free-scan {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.next-free-scan::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.next-free-scan:hover::before {
  left: 100%;
}

.next-free-scan .icon {
  font-size: 1rem;
  animation: pulse 2s infinite;
}

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

main { 
  background: var(--light-text); 
  padding: 2.5rem; 
  border-radius: var(--border-radius); 
  box-shadow: var(--card-shadow); 
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

main p {
  text-align: center;
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.form-group { 
  margin-bottom: 1.5rem; 
}

label { 
  display: block; 
  font-weight: 600; 
  margin-bottom: 0.5rem; 
  color: var(--dark-color);
}

input[type="text"], input[type="email"] { 
  width: 100%; 
  padding: 0.85rem 1rem; 
  border: 2px solid var(--border-color); 
  border-radius: 10px; 
  font-size: 1rem; 
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus, input[type="email"]:focus { 
  outline: none; 
  border-color: var(--primary-color); 
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

button, .button-link { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem; 
  width: 100%; 
  padding: 1.2rem; 
  text-align: center; 
  text-decoration: none; 
  font-size: 1.1rem; 
  font-weight: 600; 
  color: var(--light-text); 
  background: var(--gradient); 
  border: none; 
  border-radius: 12px; 
  cursor: pointer; 
  transition: all 0.3s ease;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

button::before, .button-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

button:hover, .button-link:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

button:hover::before, .button-link:hover::before {
  left: 100%;
}

button:disabled { 
  background: #ccc; 
  cursor: not-allowed; 
  transform: none; 
}

button:disabled::before {
  display: none;
}

.input-wrapper { 
  position: relative; 
  border: 3px dashed var(--border-color); 
  border-radius: var(--border-radius); 
  padding: 3rem 2rem; 
  text-align: center; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.input-wrapper:hover { 
  border-color: var(--primary-color); 
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.input-wrapper.disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  transform: none;
}

.input-wrapper.disabled:hover {
  border-color: var(--border-color);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transform: none;
  box-shadow: none;
}

input[type="file"] { 
  position: absolute; 
  width: 100%; 
  height: 100%; 
  top: 0; 
  left: 0; 
  opacity: 0; 
  cursor: pointer; 
}

input[type="file"]:disabled { 
  cursor: not-allowed; 
}

.alert { 
  padding: 1.5rem; 
  margin-bottom: 1.5rem; 
  border-radius: 12px; 
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.alert::before {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.alert.error { 
  background: var(--error-bg); 
  color: var(--error-text); 
  border-color: var(--danger-color);
}

.alert.error::before {
  content: '⚠️';
}

.alert.info { 
  background: var(--success-bg); 
  color: var(--success-text); 
  border-color: var(--success-color);
}

.alert.info::before {
  content: '✅';
}

.alert.warning { 
  background: var(--warning-bg); 
  color: var(--warning-text); 
  border-color: var(--warning-border);
}

.alert.warning::before {
  content: '⚠️';
}

/* Mobile-friendly report sent message */
.alert.info.report-sent {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.alert.info.report-sent .main-message {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.alert.info.report-sent .email-display {
  word-break: break-all;
  word-wrap: break-word;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  display: inline-block;
  font-weight: 700;
  color: var(--success-text);
  background: rgba(255,255,255,0.8);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.95em;
  margin: 4px 0;
}

.alert.info.report-sent .scan-type-info {
  font-size: 0.9em;
  margin-top: 8px;
  opacity: 0.9;
  font-weight: 500;
}

.data-usage-disclaimer { 
  margin-top: 2rem; 
  padding: 1.5rem; 
  background: linear-gradient(135deg, #fff3e0 0%, #fef7ed 100%); 
  border: 1px solid var(--warning-border); 
  border-radius: 12px; 
  font-size: 0.9rem; 
  color: var(--warning-text); 
  text-align: left;
  border-left: 4px solid var(--warning-border);
}

.diagnosis-result .scanned-image { 
  width: 100%; 
  max-width: 300px; 
  height: auto; 
  border-radius: var(--border-radius); 
  border: 5px solid var(--light-text); 
  box-shadow: var(--card-shadow); 
  display: block; 
  margin: 0 auto 2.5rem auto; 
}

.result-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 2rem; 
  margin-bottom: 2rem; 
}

.result-card { 
  background: var(--light-bg); 
  padding: 2rem; 
  border-radius: var(--border-radius); 
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.result-card.full-width { 
  grid-column: 1 / -1; 
}

.card-header .title { 
  font-weight: 600; 
  font-size: 1.2rem; 
  margin: 0; 
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-body .value { 
  font-size: 1.8rem; 
  font-weight: 700; 
  margin: 0; 
}

.card-body .value.suspicious { color: var(--danger-color); } 
.card-body .value.high { color: var(--danger-color); } 
.card-body .value.medium { color: var(--warning-color); } 
.card-body .value.low { color: var(--success-color); }

.indicator-list .indicator-item { 
  padding: 1.5rem 0; 
  margin-bottom: 1rem; 
  border-bottom: 2px solid var(--border-color); 
}

.indicator-list .indicator-item:last-child { 
  border-bottom: none; 
  margin-bottom: 0; 
  padding-bottom: 0;
}

.recommendation-card { 
  background: var(--warning-bg); 
  color: var(--warning-text); 
  border-left: 5px solid var(--warning-border); 
  padding: 2rem;
  border-radius: var(--border-radius);
}

.risk-meter { 
  width: 100%; 
  height: 30px; 
  background: linear-gradient(90deg, var(--success-color) 0%, var(--success-color) 40%, var(--warning-color) 65%, var(--danger-color) 100%);
  border-radius: 15px;
  position: relative;
  margin: 1rem 0;
  box-shadow: inset 0 2px 6px rgba(2,12,27,0.06);
  padding-top: 6px;
}

.risk-indicator { 
  position: absolute; 
  top: -10px; 
  width: 4px; 
  height: 50px; 
  background: var(--dark-color); 
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.risk-meter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dark-color);
}

.risk-meter-labels { display:flex; justify-content:space-between; font-size:12px; margin-top:6px; color:var(--dark-color); }

.loader-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%); 
  display: none; 
  justify-content: center; 
  align-items: center; 
  z-index: 9999; 
  flex-direction: column; 
  gap: 1rem; 
  transition: opacity 0.3s;
  backdrop-filter: blur(5px);
}
        
.loader {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 120px;
}

.loader:after {
  content: " ";
  display: block;
  width: 80px;
  height: 80px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid var(--primary-color);
  border-color: var(--primary-color) transparent var(--primary-color) transparent;
  animation: lds-dual-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes lds-dual-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.percentage-counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: -30px;
}

/* Image-specific overlay while scanning (sits on top of the uploaded mole image) */
.scanned-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.scanned-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  object-fit: contain;
}

.image-overlay {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(250,250,250,0.6));
  border-radius: 8px;
  z-index: 50;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

.image-overlay-content { 
  text-align: center;
  pointer-events: none;
}

.image-percentage {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

/* Payment Modal Styles */
.modal { 
  display: none; 
  position: fixed; 
  z-index: 10000; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.modal-content { 
  background: var(--light-text); 
  margin: 5% auto; 
  padding: 0; 
  border-radius: var(--border-radius); 
  width: 90%; 
  max-width: 500px; 
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 25px 30px;
  background: var(--gradient);
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h2 { 
  margin: 0; 
  color: white;
  font-size: 1.5rem;
}

.modal-body {
  padding: 30px;
}

.close { 
  color: rgba(255,255,255,0.8); 
  font-size: 28px; 
  font-weight: bold; 
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover { 
  color: white; 
}

.payment-options { 
  margin: 20px 0; 
}

.price-display { 
  font-size: 2.5rem; 
  font-weight: 700; 
  color: var(--primary-color); 
  text-align: center; 
  margin: 25px 0;
}

.payment-form { 
  text-align: center; 
}

footer { 
  text-align: center; 
  margin-top: 3rem; 
  padding: 2.5rem 1rem; 
  font-size: 0.9rem; 
  color: #6c757d; 
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

footer a { 
  color: var(--primary-color); 
  font-weight: 600; 
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color);
}

.article-content { 
  margin-top: 3rem; 
  padding: 2.5rem; 
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: left; 
}

.article-content h2 { 
  font-size: 1.8rem; 
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: left;
}

.article-content h3 { 
  font-size: 1.4rem; 
  margin-top: 2rem; 
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.article-content p, .article-content li { 
  color: #495057; 
}

.article-content ul, .article-content ol { 
  padding-left: 20px; 
  line-height: 1.8; 
}

.sharing-buttons { 
  text-align: center; 
  margin: 2.5rem 0; 
  padding: 2.5rem; 
  background: white; 
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.sharing-buttons h3 { 
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.share-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 12px 24px; 
  margin: 8px; 
  border-radius: 25px; 
  color: #fff; 
  text-decoration: none; 
  font-weight: 600; 
  transition: all 0.3s ease; 
  border: none; 
  font-size: 1rem;
}

.share-btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.share-btn.facebook { background: linear-gradient(135deg, #1877F2, #166FE5); } 
.share-btn.twitter { background: linear-gradient(135deg, #1DA1F2, #1991DB); } 
.share-btn.whatsapp { background: linear-gradient(135deg, #25D366, #20BD5F); } 
.share-btn.email { background: linear-gradient(135deg, #777, #666); }

.differential-list { 
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%); 
  padding: 1.5rem; 
  border-radius: 12px; 
  margin-top: 1rem;
  border-left: 4px solid var(--info-color);
}

.differential-list h5 { 
  margin: 0 0 0.5rem 0; 
  color: var(--info-color);
  font-weight: 600;
}

.differential-list ul { 
  margin: 0; 
  padding-left: 20px; 
}
        
@media (max-width: 700px) { 
  main { padding: 2rem 1.5rem; } 
  .result-grid { grid-template-columns: 1fr; } 
  .modal-content { margin: 10% auto; width: 95%; }
  .logo { font-size: 2rem; }
  .tagline { font-size: 1rem; }
  .scan-status { padding: 1rem 1.5rem; }
            
  /* Mobile improvements for report sent alert */
  .alert.info.report-sent {
    padding: 1.2rem;
    text-align: left;
  }
            
  .alert.info.report-sent .email-display {
    font-size: 0.9em;
    padding: 6px 10px;
    margin: 4px 0;
    display: block;
    text-align: center;
  }

  .next-free-scan {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .alert.info.report-sent .email-display {
    font-size: 0.85em;
    line-height: 1.4;
  }
}

/* ===== Fancy Bubble Cloud Pricing Section ===== */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubbleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.pricing-bubble-container {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.08) 0%, rgba(14, 165, 148, 0.08) 100%);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(3, 105, 161, 0.15);
  backdrop-filter: blur(10px);
}

.pricing-bubble-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pricing-bubble-header h3 {
  margin: 0 0 0.5rem 0 !important;
  font-size: 2rem !important;
  color: transparent;
}

.pricing-bubble-header p {
  margin: 0.5rem 0 0 0;
  color: #6c757d;
  font-size: 1rem;
}

.bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.bubble-card {
  background: white;
  border-radius: 18px;
  padding: 1.8rem;
  position: relative;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(3, 105, 161, 0.08);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: floatIn 0.6s ease-out forwards;
}

.bubble-card:nth-child(1) {
  animation-delay: 0.1s;
}

.bubble-card:nth-child(2) {
  animation-delay: 0.2s;
}

.bubble-card:nth-child(3) {
  animation-delay: 0.3s;
}

.bubble-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(3, 105, 161, 0.3), transparent);
}

.bubble-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 35px rgba(3, 105, 161, 0.18);
  border-color: #0369a1;
}

.bubble-card-highlight {
  border-color: #0369a1;
  border-width: 2px;
  box-shadow: 0 8px 28px rgba(3, 105, 161, 0.25);
  transform: scale(1.02);
}

.bubble-card-highlight:hover {
  transform: scale(1.02) translateY(-12px);
  box-shadow: 0 15px 40px rgba(3, 105, 161, 0.35);
}

.bubble-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.bubble-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  font-size: 2rem;
  line-height: 1;
}

.bubble-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: #0f172a;
}

.bubble-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.bubble-price {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0369a1, #0ea5a4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.bubble-details {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.bubble-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bubble-features li {
  font-size: 0.9rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.5;
}

.bubble-features li::before {
  content: '✓';
  color: #0ea5a4;
  font-weight: 800;
  font-size: 1.1rem;
}

.bubble-btn {
  margin-top: 1.5rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.bubble-btn-primary {
  background: linear-gradient(135deg, #0369a1, #0ea5a4);
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.3);
}

.bubble-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(3, 105, 161, 0.4);
}

.bubble-btn-secondary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.bubble-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
  .bubble-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .bubble-card-highlight {
    transform: scale(1);
  }
  
  .bubble-card-highlight:hover {
    transform: scale(1) translateY(-12px);
  }
  
  .pricing-bubble-header h3 {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 480px) {
  .bubble-card {
    padding: 1.4rem;
  }
  
  .bubble-price {
    font-size: 1.8rem;
  }
  
  .bubble-title {
    font-size: 1.15rem;
  }
}

/* ============================================
   TESTIMONIALS SECTION STYLES
   ============================================ */

.testimonials-container {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.05) 0%, rgba(14, 165, 148, 0.05) 100%);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  border: 1px solid rgba(3, 105, 161, 0.1);
  margin-top: 3rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  background: linear-gradient(135deg, #0369a1 0%, #0ea5a4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.testimonials-header p {
  margin: 0.5rem 0 0 0;
  color: #6c757d;
  font-size: 1.05rem;
  font-weight: 500;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(3, 105, 161, 0.1);
  border: 2px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(3, 105, 161, 0.06);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(3, 105, 161, 0.15);
  border-color: #0369a1;
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #0369a1;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
  flex-shrink: 0;
  margin: 0 auto;
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
  text-align: left;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid #f1f5f9;
  text-align: center;
}

.testimonial-author strong {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.testimonial-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  border: 2px solid rgba(3, 105, 161, 0.2);
}

.testimonial-cta p {
  margin: 0;
}

.testimonial-cta i {
  color: #0369a1;
  margin-right: 8px;
}

/* Responsive Design for Testimonials */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .testimonials-container {
    padding: 2rem 1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonials-header h3 {
    font-size: 1.6rem;
  }
  
  .testimonials-header p {
    font-size: 0.95rem;
  }
  
  .testimonial-cta {
    padding: 1.5rem;
  }
  
  .testimonial-cta p {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .testimonials-container {
    padding: 1.5rem 0.75rem;
    margin-top: 2rem;
  }
  
  .testimonials-header h3 {
    font-size: 1.4rem;
  }
  
  .testimonials-header p {
    font-size: 0.9rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-photo {
    width: 70px;
    height: 70px;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
  
  .testimonial-cta {
    padding: 1.25rem;
  }
}

/* ===== Fancy Tagline Section - Mobile Optimized ===== */
.fancy-tagline-wrapper {
  text-align: center;
  margin: 1.5rem auto 0 auto;
  padding: 1.5rem 1rem;
  animation: taglineSlideIn 0.6s ease-out;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.fancy-tagline-main {
  margin: 0 0 1rem 0;
  font-size: 1.9rem;
  font-weight: 800;
  color: #0c4a6e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  line-height: 1.3;
  flex-wrap: wrap;
  word-break: break-word;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
  letter-spacing: -0.5px;
}

.fancy-tagline-main i {
  font-size: 2.2rem;
  color: #fbbf24;
  animation: pulseShield 2.5s ease-in-out infinite;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
}

@keyframes pulseShield {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.fancy-tagline-subtitle {
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  color: #10b981;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.6;
  word-wrap: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.fancy-tagline-highlight {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  width: 100%;
}

.highlight-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
  padding: 0.9rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  color: #0c4a6e;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
  font-weight: 600;
}

.highlight-item:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0.2) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.highlight-item:active {
  transform: translateY(-1px);
}

.highlight-item i {
  font-size: 1.3rem;
  color: #f59e0b;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
}

.highlight-item strong {
  font-weight: 700;
  color: #065f46;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Desktop: 1025px+ */
@media (min-width: 1025px) {
  .fancy-tagline-main {
    font-size: 1.75rem;
  }
  
  .fancy-tagline-main i {
    font-size: 2rem;
  }
}

/* Tablet: 769px - 1024px */
@media (max-width: 1024px) {
  .fancy-tagline-main {
    font-size: 1.55rem;
  }
  
  .fancy-tagline-main i {
    font-size: 1.8rem;
  }
  
  .fancy-tagline-subtitle {
    font-size: 1rem;
  }
  
  .highlight-item {
    padding: 0.75rem 1.15rem;
    font-size: 0.9rem;
  }
}

/* Tablet: 641px - 768px */
@media (max-width: 768px) {
  .fancy-tagline-wrapper {
    margin: 0.8rem auto 0 auto;
    padding: 0 0.8rem;
  }
  
  .fancy-tagline-main {
    font-size: 1.4rem;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }
  
  .fancy-tagline-main i {
    font-size: 1.6rem;
  }
  
  .fancy-tagline-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
  }
  
  .fancy-tagline-highlight {
    gap: 1rem;
  }
  
  .highlight-item {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .highlight-item i {
    font-size: 1rem;
  }
}

/* Small Tablet / Large Mobile: 481px - 640px */
@media (max-width: 640px) {
  .fancy-tagline-wrapper {
    margin: 0.6rem auto 0 auto;
    padding: 0 0.75rem;
  }
  
  .fancy-tagline-main {
    font-size: 1.25rem;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }
  
  .fancy-tagline-main i {
    font-size: 1.4rem;
  }
  
  .fancy-tagline-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
    line-height: 1.4;
  }
  
  .fancy-tagline-highlight {
    gap: 0.9rem;
  }
  
  .highlight-item {
    padding: 0.6rem 0.95rem;
    font-size: 0.8rem;
    gap: 0.45rem;
    white-space: normal;
  }
  
  .highlight-item i {
    font-size: 0.95rem;
  }
}

/* Mobile: 380px - 480px */
@media (max-width: 480px) {
  .fancy-tagline-wrapper {
    margin: 0.5rem auto 0 auto;
    padding: 0 0.6rem;
  }
  
  .fancy-tagline-main {
    font-size: 1.1rem;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
  
  .fancy-tagline-main i {
    font-size: 1.3rem;
  }
  
  .fancy-tagline-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
  
  .fancy-tagline-highlight {
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
  }
  
  .highlight-item {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
    gap: 0.4rem;
    white-space: normal;
  }
  
  .highlight-item i {
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile: up to 380px */
@media (max-width: 380px) {
  .fancy-tagline-wrapper {
    padding: 0 0.5rem;
  }
  
  .fancy-tagline-main {
    font-size: 1rem;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
  }
  
  .fancy-tagline-main i {
    font-size: 1.2rem;
  }
  
  .fancy-tagline-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
  }
  
  .highlight-item {
    padding: 0.55rem 0.85rem;
    font-size: 0.75rem;
    gap: 0.35rem;
  }
  
  .highlight-item i {
    font-size: 0.85rem;
  }
}
