/* =============================================
   RESET + BASE
   ============================================= */
*{ margin:0; padding:0; box-sizing:border-box; }
html, body{ height:100%; overflow:hidden; }
body{ background:#050505; font-family:-apple-system, 'SF Pro Display', Arial, sans-serif; color:white; }
html{ scroll-behavior:smooth; -webkit-overflow-scrolling:touch; }

/* KEYFRAMES */
@keyframes bounce{ 0%,80%,100%{ transform:scale(0); opacity:.3; } 40%{ transform:scale(1); opacity:1; } }
@keyframes fade{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:translateY(0); } }
@keyframes pulse-glow{ 0%,100%{ box-shadow:0 0 15px rgba(68,241,207,.15); } 50%{ box-shadow:0 0 30px rgba(68,241,207,.35); } }
@keyframes glow-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.5; } }
@keyframes shimmer{ 0%{ background-position:200% 0; } 100%{ background-position:-200% 0; } }
@keyframes ai-shimmer{ 0%{ transform:translateX(-100%); } 100%{ transform:translateX(100%); } }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* AI APP */
.ai-app{
  display:flex; flex-direction:column;
  height:100vh; max-width:780px;
  margin:0 auto; position:relative;
}

/* HEADER */
.ai-header{
  display:flex; align-items:center; gap:14px;
  padding:16px 20px;
  background:rgba(5,5,5,.98);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(20px);
  flex-shrink:0; z-index:10;
}
.ai-header-logo{
  width:38px; height:38px; border-radius:50%;
  background:radial-gradient(circle at 40% 35%,#1a1a1a,#080808);
  display:flex; align-items:center; justify-content:center;
  border:1.5px solid rgba(68,241,207,.3);
  position:relative; overflow:hidden; flex-shrink:0;
}
.ai-header-logo img{ width:24px; height:24px; object-fit:contain; }
.ai-header-pulse{ position:absolute; inset:0; border-radius:50%; animation:pulse-glow 3s ease-in-out infinite; }
.ai-header-info{ flex:1; }
.ai-header-name{ font-size:15px; font-weight:700; }
.ai-header-status{ display:flex; align-items:center; gap:5px; font-size:11px; color:rgba(255,255,255,.35); text-transform:uppercase; letter-spacing:.5px; margin-top:2px; }
.status-dot{ width:5px; height:5px; border-radius:50%; background:#44f1cf; box-shadow:0 0 5px rgba(68,241,207,.8); animation:glow-pulse 2s ease-in-out infinite; }

/* CONVERSATION */
.ai-conversation{
  flex:1; overflow-y:auto; min-height:0;
  padding:20px 20px 0;
  scroll-behavior:smooth;
}
.ai-conversation::-webkit-scrollbar{ width:3px; }
.ai-conversation::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.08); border-radius:3px; }

/* MESSAGES */
.message-row{ display:flex; gap:10px; margin-bottom:16px; align-items:flex-end; }
.user-row{ display:flex; justify-content:flex-end; margin-bottom:16px; }
.ai-avatar{ width:28px; height:28px; object-fit:contain; border-radius:50%; flex-shrink:0; }
.message{
  padding:12px 16px; line-height:1.75; font-size:14.5px;
  max-width:80%; word-wrap:break-word; animation:fade .3s ease;
}
.ai-message{
  background:rgba(16,16,16,.95);
  border:1px solid rgba(255,255,255,.07);
  border-radius:4px 18px 18px 18px;
  backdrop-filter:blur(10px);
}
.user-message{
  background:linear-gradient(135deg,#44f1cf,#2dd4b4);
  color:black; font-weight:600;
  border-radius:18px 4px 18px 18px;
}

/* TYPING */
.typing-loader{ margin-bottom:16px; }
.typing-wrap{ display:flex; gap:10px; align-items:center; }
.typing-bubble{
  background:rgba(16,16,16,.95); border:1px solid rgba(255,255,255,.07);
  padding:12px 16px; border-radius:4px 18px 18px 18px;
  display:flex; gap:5px; align-items:center;
}
.typing-bubble span{ width:6px; height:6px; border-radius:50%; background:#44f1cf; animation:bounce 1s infinite; }
.typing-bubble span:nth-child(2){ animation-delay:.15s; }
.typing-bubble span:nth-child(3){ animation-delay:.3s; }

/* SUGGESTIONS */
.ai-suggestions{
  display:flex; gap:8px; padding:10px 20px;
  overflow-x:auto; flex-shrink:0;
}
.ai-suggestions::-webkit-scrollbar{ display:none; }
.ai-chip{
  white-space:nowrap; padding:7px 14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:30px; color:rgba(255,255,255,.6);
  font-size:13px; cursor:pointer;
  transition:all .2s; flex-shrink:0;
}
.ai-chip:hover{ border-color:#44f1cf; color:#44f1cf; background:rgba(68,241,207,.05); }

/* COMPOSER */
.ai-composer{
  padding:12px 20px 20px;
  background:rgba(5,5,5,.98);
  border-top:1px solid rgba(255,255,255,.06);
  flex-shrink:0;
  padding-bottom:max(20px, env(safe-area-inset-bottom));
}
.ai-composer-wrap{
  display:flex; gap:10px; align-items:center;
  background:rgba(14,14,14,.95);
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px; padding:11px 14px;
}
.ai-composer-wrap:focus-within{ border-color:rgba(68,241,207,.35); box-shadow:0 0 20px rgba(68,241,207,.05); }
.ai-input{
  flex:1; background:none; border:none; outline:none;
  color:white; font-size:16px; font-family:inherit;
  resize:none; line-height:1.4; padding:8px 0;
  min-height:24px; max-height:120px;
  overflow-y:auto;
}
textarea.ai-input { display:block; width:100%; }
.ai-input::placeholder{ color:rgba(255,255,255,.2); }
.ai-send{
  width:34px; height:34px; border-radius:10px;
  background:linear-gradient(135deg,#44f1cf,#2dd4b4);
  border:none; cursor:pointer; color:black;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.ai-send:hover{ transform:scale(1.08); box-shadow:0 4px 14px rgba(68,241,207,.4); }

/* PRODUCT CARDS */
.product-card-wrap{ margin-bottom:16px; }
.product-card{
  background:rgba(12,12,12,.95);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  display:flex;
  flex-direction:row;
  gap:0;
  position:relative;
  overflow:hidden;
}
.product-card:hover{ border-color:rgba(68,241,207,.15); }

.card-image-col{
  width:160px;
  min-width:160px;
  height:160px;
  max-height:160px;
  flex-shrink:0;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  order:0;
}
.card-image{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:160px;
  object-fit:contain;
  object-position:center;
  display:block;
  background:#fff;
  padding:8px;
}
.card-body{
  flex:1;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  order:1;
  min-width:0;
}

/* Mobile */
@media(max-width:600px){
  .product-card{ flex-direction:column; }
  .card-image-col{
    width:100%;
    min-width:100%;
    height:280px;
  }
}
.card-image.switching{ opacity:.2; transform:scale(1.04); filter:blur(5px); }

.card-meta{ font-size:10px; color:#44f1cf; font-weight:600; text-transform:uppercase; letter-spacing:1.5px; }
.card-title{ font-size:15px; font-weight:700; line-height:1.4; }
.card-price{ font-size:20px; font-weight:800; color:#44f1cf; letter-spacing:-.3px; }

.card-variants{ display:flex; flex-direction:column; gap:8px; }
.card-variant-group{ display:flex; flex-direction:column; gap:5px; }
.card-variant-label{ font-size:9px; font-weight:700; opacity:.3; text-transform:uppercase; letter-spacing:1.5px; }
.card-variant-options{ display:flex; flex-wrap:wrap; gap:5px; }

.card-variants .metal-swatch{ gap:4px; }
.card-variants .metal-swatch-circle{ width:26px; height:26px; }
.card-variants .metal-swatch-label{ display:block; font-size:9px; }
.card-variants .stone-swatch{ gap:4px; }
.card-variants .stone-swatch-gem{ width:26px; height:26px; }
.card-variants .stone-swatch-label{ display:block; font-size:9px; }
.card-variants .opt-btn{ padding:5px 10px; font-size:11px; }
.card-variants .size-btn{ padding:5px 10px; font-size:11px; }

.metal-swatch-circle, .stone-swatch-gem{
  width:46px; height:46px; border-radius:50%;
  border:2px solid rgba(255,255,255,.1); cursor:pointer;
}
.metal-swatch-circle.active, .stone-swatch-gem.active{ border-color:#44f1cf; }
.opt-btn, .size-btn{
  padding:8px 18px; border-radius:30px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.7); cursor:pointer;
}
.opt-btn.active, .size-btn.active{ border-color:#44f1cf; color:#44f1cf; }

.card-actions{ display:flex; gap:8px; margin-top:4px; }
.card-cart-btn{
  flex:1; padding:10px 12px; border-radius:12px;
  background:linear-gradient(135deg,#44f1cf,#2dd4b4);
  color:black; font-weight:700; font-size:13px;
  border:none; cursor:pointer;
}
.card-cart-btn:hover{ transform:translateY(-1px); box-shadow:0 4px 14px rgba(68,241,207,.35); }
.card-cart-btn.loading{ opacity:.7; cursor:not-allowed; }
.card-cart-btn.success{ background:linear-gradient(135deg,#44f1cf,#2dd4b4); }
.card-cart-btn.error{ background:#ff4444; color:white; }

/* AI DESIGNER */
.card-ai-main-btn{
  width:100%; height:48px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:linear-gradient(135deg, #4a1a8a, #1a2a9a, #4a1a8a);
  border:none; border-radius:14px; color:white;
  font-size:14px; font-weight:700;
  cursor:pointer; position:relative; overflow:hidden;
  margin-top:8px;
  box-shadow:0 4px 20px rgba(107,33,214,.35);
}
.card-ai-main-btn:hover{ box-shadow:0 8px 28px rgba(107,33,214,.6); transform:translateY(-2px); }
.card-ai-glow{
  position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(150,80,255,.15), transparent);
  animation:ai-shimmer 2.5s ease-in-out infinite;
}
.card-ai-main-arrow{ font-size:10px; opacity:.6; margin-left:auto; }

.card-ai-section{ padding-top:10px; display:flex; flex-direction:column; gap:8px; }
.card-ai-input{
  width:100%; background:rgba(8,8,8,.9); border:1px solid rgba(150,80,255,.15);
  border-radius:10px; padding:10px 12px; color:white; font-size:13px;
  resize:none; outline:none; font-family:inherit;
  direction:rtl; line-height:1.5;
}
.card-ai-input:focus{ border-color:rgba(150,80,255,.4); }

.card-ai-generate-btn{
  width:100%; height:46px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:linear-gradient(135deg, #6b21d6, #3b4fd4);
  border:none; border-radius:12px; color:white;
  font-size:13px; font-weight:700; cursor:pointer;
  box-shadow:0 4px 16px rgba(107,33,214,.4);
}
.card-ai-generate-btn:hover{ transform:translateY(-2px); }
.card-ai-generate-btn:disabled{ opacity:.6; cursor:not-allowed; }

/* AI RESULT */
.ai-result{ margin-top:8px; }
.ai-generating{ text-align:center; padding:16px; color:rgba(255,255,255,.4); font-size:12px; }
.ai-stage-text{ font-size:11px; color:#44f1cf; font-weight:600; margin-top:6px; }
.ai-gen-dots{ display:flex; justify-content:center; gap:5px; margin-bottom:8px; }
.ai-gen-dots span{ width:6px; height:6px; background:#44f1cf; border-radius:50%; animation:bounce 1.2s infinite; }
.ai-gen-dots span:nth-child(2){ animation-delay:.2s; }
.ai-gen-dots span:nth-child(3){ animation-delay:.4s; }

.ai-result{ margin-top:8px; }
.ai-result{ margin-top:8px; }
.ai-email-input{ width:100%; padding:9px 11px; background:#0d0d0d; border:1px solid rgba(255,255,255,.08); border-radius:10px; color:white; font-size:12px; outline:none; margin-bottom:8px; }
.ai-btn-spinner{ width:12px; height:12px; border:2px solid rgba(0,0,0,.3); border-top-color:#000; border-radius:50%; display:inline-block; animation:spin .7s linear infinite; }

.ai-watermark{
  position:absolute; top:10px; left:10px;
  padding:6px 12px; border-radius:999px;
  background:rgba(0,0,0,.72);
  border:1px solid rgba(68,241,207,.35);
  color:#72f2dc; font-size:11px; font-weight:700;
  z-index:10;
}

/* ACTION BUTTONS */
.action-buttons{ display:flex; gap:10px; width:100%; margin-top:16px; }
.action-btn{
  flex:1; height:52px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:14px; font-weight:700;
  gap:6px; padding:0 12px;
}
.action-btn:hover{ transform:translateY(-2px); }
.primary-btn{ background:#67f5d6; color:#000; border:none; }
.primary-btn.loading{ opacity:.7; cursor:not-allowed; transform:none; }
.primary-btn.success{ background:linear-gradient(135deg,#44f1cf,#2dd4b4); }
.primary-btn.error{ background:#ff4444; color:white; }
.secondary-btn{ background:#67f5d6; color:#000; border:none; font-size:13px; }
.regen-btn{ background:linear-gradient(135deg,#44f1cf,#2dd4b4); }
.whatsapp-btn{ background:linear-gradient(135deg,#25d366,#128c7e); color:white; }

/* SKELETON */
.product-skeleton{ background:rgba(12,12,12,.95); border-radius:20px; overflow:hidden; margin-bottom:16px; border:1px solid rgba(255,255,255,.06); display:flex; }
.skeleton-img{ width:160px; min-height:160px; background:linear-gradient(90deg,#111 25%,#1a1a1a 50%,#111 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; flex-shrink:0; }
.skeleton-content{ flex:1; padding:16px; display:flex; flex-direction:column; gap:10px; }
.skeleton-line{ height:13px; border-radius:7px; background:linear-gradient(90deg,#111 25%,#1a1a1a 50%,#111 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; }
.skeleton-title{ height:16px; width:70%; }
.skeleton-price{ height:20px; width:40%; }
.skeleton-text{ width:90%; }
.skeleton-text.short{ width:55%; }

/* RING SIZER */
.ring-sizer-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px; border-radius:20px;
  background:rgba(68,241,207,.08);
  border:1px solid rgba(68,241,207,.25);
  color:#44f1cf; font-size:11px; font-weight:600;
  text-decoration:none; cursor:pointer;
  margin-top:4px; width:fit-content;
}
.ring-sizer-btn:hover{ background:rgba(68,241,207,.15); border-color:rgba(68,241,207,.5); transform:translateY(-1px); }

/* RECOMMENDATIONS */
.recommendations-section{ margin-top:16px; }
.rec-title{ font-size:12px; color:rgba(255,255,255,.5); font-weight:600; text-transform:uppercase; letter-spacing:1.2px; margin-bottom:10px; padding:0 4px; }
.rec-scroll{ display:flex; gap:10px; overflow-x:auto; padding:4px; scrollbar-width:none; }
.rec-scroll::-webkit-scrollbar{ display:none; }
.rec-card{ flex-shrink:0; width:120px; background:rgba(12,12,12,.95); border:1px solid rgba(255,255,255,.06); border-radius:14px; overflow:hidden; cursor:pointer; transition:transform .2s, border-color .2s; }
.rec-card:hover{ transform:translateY(-2px); border-color:rgba(68,241,207,.25); }
.rec-img{ width:100%; height:120px; object-fit:contain; background:#f8f8f8; padding:8px; }
.rec-info{ padding:10px; }
.rec-name{ font-size:11px; font-weight:600; line-height:1.3; height:30px; overflow:hidden; }
.rec-price{ font-size:13px; font-weight:700; color:#44f1cf; margin-top:4px; }

/* WISHLIST */
.wishlist-heart-btn{
  position:absolute; top:10px; right:10px; z-index:5;
  width:34px; height:34px; border-radius:50%;
  background:rgba(0,0,0,.5); border:none;
  color:white; font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(8px); transition:all .2s;
}
.wishlist-heart-btn.active{ color:#ff4d6d; }
.wishlist-heart-btn:hover{ transform:scale(1.1); }
#wishlist-badge{
  position:absolute; top:-4px; right:-4px;
  min-width:16px; height:16px; padding:0 4px;
  background:#ff4d6d; color:white; border-radius:8px;
  font-size:10px; font-weight:700;
  display:none; align-items:center; justify-content:center;
}
.wishlist-empty{ text-align:center; padding:40px 20px; color:rgba(255,255,255,.4); font-size:14px; }
.wishlist-section-title{ font-size:12px; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:1.2px; margin:16px 0 10px; }
.wishlist-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.wishlist-card{ position:relative; background:rgba(12,12,12,.95); border:1px solid rgba(255,255,255,.06); border-radius:12px; overflow:hidden; }
.wishlist-card img{ width:100%; height:120px; object-fit:contain; background:#f8f8f8; padding:8px; }
.wishlist-card-body{ padding:10px; }
.wishlist-card-title{ font-size:11px; font-weight:600; }
.wishlist-card-price{ font-size:13px; font-weight:700; color:#44f1cf; margin-top:4px; }
.wishlist-remove, .wishlist-remove-design{ position:absolute; top:6px; right:6px; width:22px; height:22px; border-radius:50%; background:rgba(0,0,0,.6); border:none; color:white; cursor:pointer; }

/* TOUCH + MOBILE */
.touch-active{ transform:scale(.96) !important; transition:transform .1s ease; }
button{ -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent; }

@media(max-width:600px){
  .ai-app{ max-width:100%; }
  .message{ font-size:14px; padding:11px 14px; max-width:85%; }
}
@media(max-width:480px){
  .action-buttons{ gap:8px; }
  .action-btn{ height:46px; font-size:12px; border-radius:14px; }
}

/* iOS SAFE AREA */
@supports(padding:max(0px)){
  .ai-composer{ padding-bottom:max(20px, env(safe-area-inset-bottom)); }
}

/* SMOOTH ANIMATIONS - disabled slideUp (breaks Safari/Chrome image rendering) */
.message{ animation:messageIn .35s cubic-bezier(.16,1,.3,1); }
@keyframes messageIn{ from{ opacity:0; transform:translateY(10px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }

/* Smooth button presses */
button{ transition:transform .15s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, background .2s ease; }
button:active{ transform:scale(.96); }

/* Momentum scroll */
.rec-scroll, .ai-suggestions, .ai-conversation{
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  overscroll-behavior:contain;
}

/* Native-feel image loading - only hide truly empty images */
.card-image[src=""],
.card-image:not([src]){ opacity:0 !important; }

/* FORCE all valid card images to be visible */
.card-image[src]:not([src=""]){
  visibility:visible !important;
  opacity:1 !important;
}
.rec-img{
  visibility:visible !important;
  opacity:1 !important;
}

/* Smooth swatch transitions */
.metal-swatch-circle, .stone-swatch-gem, .opt-btn, .size-btn{
  transition:all .25s cubic-bezier(.16,1,.3,1);
}
.metal-swatch-circle.active, .stone-swatch-gem.active{
  transform:scale(1.1);
  box-shadow:0 0 0 2px #44f1cf, 0 4px 12px rgba(68,241,207,.3);
}

/* AI JEWELRY CREATOR */
.creator-panel{
  background:linear-gradient(135deg, rgba(74,26,138,.15), rgba(26,42,154,.15));
  border:1px solid rgba(150,80,255,.25);
  border-radius:20px; padding:18px; margin-bottom:16px;
  animation:slideUp .4s ease;
}
.creator-header{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.creator-icon{ font-size:28px; }
.creator-title{ font-size:16px; font-weight:800; }
.creator-sub{ font-size:12px; color:rgba(255,255,255,.5); margin-top:2px; }
.creator-input{
  width:100%; background:rgba(8,8,8,.9);
  border:1px solid rgba(150,80,255,.2); border-radius:12px;
  padding:12px 14px; color:white; font-size:14px;
  resize:none; outline:none; font-family:inherit;
  direction:rtl; line-height:1.6; margin-bottom:12px;
}
.creator-input:focus{ border-color:rgba(150,80,255,.5); }
.creator-btn{
  width:100%; height:50px; border:none; border-radius:14px;
  background:linear-gradient(135deg, #6b21d6, #3b4fd4);
  color:white; font-size:15px; font-weight:700; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 4px 20px rgba(107,33,214,.4);
}
.creator-btn:hover{ transform:translateY(-2px); box-shadow:0 8px 28px rgba(107,33,214,.6); }
.creator-btn:disabled{ opacity:.7; cursor:not-allowed; }
.creator-spinner{ width:14px; height:14px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; display:inline-block; animation:spin .7s linear infinite; }
.creator-result{ margin-top:14px; }
.creator-loading{ text-align:center; padding:20px; }
.creator-stage{ font-size:13px; color:#a78bfa; font-weight:600; margin-top:8px; }
.creator-output{ animation:fade .4s ease; }

.creator-product-title{ font-size:17px; font-weight:800; margin-bottom:6px; }
.creator-product-desc{ font-size:13px; color:rgba(255,255,255,.6); line-height:1.6; margin-bottom:10px; }
.creator-specs{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.creator-spec{ font-size:11px; padding:5px 10px; background:rgba(255,255,255,.06); border-radius:20px; color:rgba(255,255,255,.7); }
.creator-price{ font-size:24px; font-weight:800; color:#44f1cf; margin-bottom:14px; }
.creator-actions{ display:flex; gap:10px; }
.creator-action-btn{
  flex:1; height:48px; border-radius:14px; border:none;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; cursor:pointer; text-decoration:none;
}
.creator-action-btn.primary{ background:#67f5d6; color:#000; }
.creator-action-btn.whatsapp{ background:linear-gradient(135deg,#25d366,#128c7e); color:white; }
.creator-limit{ text-align:center; padding:16px; color:rgba(255,150,150,.8); font-size:13px; }

/* CREATOR CHIP - special highlight */
.creator-chip{
  background:linear-gradient(135deg, #6b21d6, #3b4fd4) !important;
  border-color:transparent !important;
  color:white !important;
  font-weight:700 !important;
}

/* WHATSAPP CARD BUTTON */
.card-wa-btn{
  width:42px; padding:10px; border-radius:12px;
  background:linear-gradient(135deg,#25d366,#128c7e);
  border:none; cursor:pointer; font-size:16px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:transform .2s, box-shadow .2s;
}
.card-wa-btn:hover{ transform:translateY(-1px); box-shadow:0 4px 14px rgba(37,211,102,.4); }

/* =========================================
   AI IMAGE SYSTEM — FINAL (no overrides above)
   ========================================= */
.ai-image-wrapper,
.ai-generated-wrap{
  width:100%;
  max-width:420px;
  margin:18px auto;
  padding:12px;
  background:#0b0b0b;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  box-sizing:border-box;
}
.ai-generated-image,
.ai-result-img,
.creator-img,
.ai-compare-img,
.ai-generated-wrap img,
.ai-image-wrapper img{
  width:100%;
  height:auto;
  max-height:420px;
  aspect-ratio:1/1;
  object-fit:contain;
  object-position:center;
  display:block;
  border-radius:18px;
  background:#111;
}
.ai-compare-wrap{
  display:flex; gap:10px; justify-content:center;
  width:100%; margin-bottom:12px;
}
.ai-compare-side{
  flex:1; max-width:48%;
  display:flex; flex-direction:column; gap:6px; align-items:center;
}
.ai-compare-side .ai-image-wrapper,
.ai-compare-side .ai-generated-wrap{
  max-width:100%; padding:6px; margin:0;
}
.ai-compare-side img{ max-height:200px; }

@media(max-width:600px){
  .ai-image-wrapper, .ai-generated-wrap{ max-width:92%; padding:8px; }
  .ai-generated-image, .ai-result-img, .creator-img,
  .ai-image-wrapper img, .ai-generated-wrap img{ max-height:340px; }
  .ai-compare-side img{ max-height:150px; }
}
