:root{
  --mys-ai-bg:#070711;
  --mys-ai-surface:rgba(255,255,255,.075);
  --mys-ai-surface-2:rgba(255,255,255,.11);
  --mys-ai-card:#10111d;
  --mys-ai-card-2:#151629;
  --mys-ai-border:rgba(255,255,255,.14);
  --mys-ai-border-strong:rgba(255,255,255,.22);
  --mys-ai-text:#f8fafc;
  --mys-ai-muted:rgba(248,250,252,.68);
  --mys-ai-soft:rgba(248,250,252,.44);
  --mys-ai-accent:#e8187a;
  --mys-ai-accent-2:#ff4ea3;
  --mys-ai-accent-3:#8b5cf6;
  --mys-ai-success:#2fd27b;
  --mys-ai-danger:#ff5b6e;
  --mys-ai-radius:28px;
  --mys-ai-shadow:0 24px 80px rgba(0,0,0,.36);
}

.mcatg-wrap,.mcatg-dashboard,.mcatg-landing,.mcatg-auth-box{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--mys-ai-text);
  box-sizing:border-box;
}
.mcatg-wrap *,.mcatg-dashboard *,.mcatg-landing *,.mcatg-auth-box *,.mcatg-modal *{box-sizing:border-box}

.mcatg-wrap,.mcatg-dashboard,.mcatg-landing{
  width:min(1180px,calc(100vw - 32px));
  margin:0 auto;
}

.mcatg-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 22px;
}
.mcatg-section-kicker,.mcatg-pill,.mcatg-step-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  border:1px solid rgba(232,24,122,.35);
  border-radius:999px;
  padding:8px 12px;
  background:linear-gradient(135deg,rgba(232,24,122,.16),rgba(139,92,246,.13));
  color:#ffd9ec;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.mcatg-section-head h2{
  margin:10px 0 0;
  font-size:clamp(28px,4vw,46px);
  line-height:1.02;
  letter-spacing:-.04em;
  color:#fff;
}
.mcatg-section-head p{max-width:520px;margin:0;color:var(--mys-ai-muted);line-height:1.6}

.mcatg-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:22px;
}
.mcatg-card{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  background:
    radial-gradient(circle at 20% 0%,rgba(232,24,122,.22),transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.105),rgba(255,255,255,.045));
  border:1px solid var(--mys-ai-border);
  box-shadow:0 20px 65px rgba(0,0,0,.28);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
  isolation:isolate;
}
.mcatg-card:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.18),transparent 30%,rgba(232,24,122,.12));
  opacity:.4;
  pointer-events:none;
  z-index:1;
}
.mcatg-card:hover{
  transform:translateY(-7px);
  border-color:rgba(232,24,122,.42);
  box-shadow:0 30px 90px rgba(232,24,122,.16),0 26px 80px rgba(0,0,0,.38);
}
.mcatg-card-img{
  position:relative;
  height:245px;
  background-size:cover;
  background-position:center;
  background-color:#161827;
  transform:scale(1.001);
}
.mcatg-card-img:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 35%,rgba(7,7,17,.78));
}
.mcatg-card-body{position:relative;z-index:2;padding:18px 18px 20px;margin-top:-48px}
.mcatg-card h3{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.1;
  letter-spacing:-.035em;
  color:#fff;
}
.mcatg-card p{margin:0 0 16px;color:var(--mys-ai-muted);line-height:1.55;font-size:14px}
.mcatg-price-row{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 16px}
.mcatg-price-row span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:12px;
  font-weight:800;
  padding:8px 10px;
  backdrop-filter:blur(10px);
}
.mcatg-price-row span:before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  background:var(--mys-ai-accent-2);
  box-shadow:0 0 0 4px rgba(232,24,122,.12);
}

.mcatg-btn,.mcatg-open,.mcatg-submit{
  position:relative;
  min-height:46px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--mys-ai-accent),var(--mys-ai-accent-2));
  color:#fff!important;
  font-weight:900;
  letter-spacing:-.01em;
  padding:13px 18px;
  text-decoration:none!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  box-shadow:0 12px 32px rgba(232,24,122,.34);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
  overflow:hidden;
}
.mcatg-btn:before,.mcatg-open:before,.mcatg-submit:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);
  transform:translateX(-120%);
  transition:transform .5s ease;
}
.mcatg-btn:hover,.mcatg-open:hover,.mcatg-submit:hover{transform:translateY(-2px);box-shadow:0 18px 46px rgba(232,24,122,.42);filter:saturate(1.08)}
.mcatg-btn:hover:before,.mcatg-open:hover:before,.mcatg-submit:hover:before{transform:translateX(120%)}
.mcatg-open{width:100%;font-size:15px}
.mcatg-submit{width:100%;font-size:16px;min-height:54px}
.mcatg-submit:disabled,.mcatg-btn:disabled{opacity:.62;cursor:not-allowed;transform:none;filter:grayscale(.25)}
.mcatg-btn-muted{background:linear-gradient(135deg,#293044,#475467);box-shadow:0 12px 30px rgba(0,0,0,.2)}

/* Modal / Generator */
.mcatg-modal{position:fixed;inset:0;z-index:999999;display:none;color:var(--mys-ai-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.mcatg-modal.is-open{display:block}
.mcatg-modal-backdrop{
  position:absolute;inset:0;
  background:radial-gradient(circle at 12% 22%,rgba(232,24,122,.26),transparent 26%),rgba(5,6,14,.82);
  backdrop-filter:blur(18px);
}
.mcatg-modal-panel{
  position:relative;
  width:min(1180px,calc(100vw - 28px));
  max-height:92vh;
  overflow:auto;
  margin:4vh auto;
  border-radius:36px;
  padding:20px;
  background:
    linear-gradient(#10111d,#10111d) padding-box,
    linear-gradient(135deg,rgba(255,255,255,.25),rgba(232,24,122,.48),rgba(139,92,246,.35)) border-box;
  border:1px solid transparent;
  box-shadow:var(--mys-ai-shadow);
}
.mcatg-modal-panel::-webkit-scrollbar{width:9px}.mcatg-modal-panel::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:99px}
.mcatg-close{
  position:absolute;right:18px;top:18px;z-index:5;
  width:46px;height:46px;border:1px solid rgba(255,255,255,.16);
  border-radius:16px;background:rgba(255,255,255,.09);color:#fff;
  font-size:30px;line-height:1;cursor:pointer;backdrop-filter:blur(12px);
  transition:transform .18s ease,background .18s ease;
}
.mcatg-close:hover{transform:rotate(90deg) scale(1.04);background:rgba(232,24,122,.24)}
.mcatg-modal-layout{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(420px,.97fr);gap:18px;align-items:stretch}
.mcatg-ref,.mcatg-generator-card{
  border:1px solid var(--mys-ai-border);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
  box-shadow:0 18px 60px rgba(0,0,0,.2);
}
.mcatg-ref{overflow:hidden;display:flex;flex-direction:column;min-height:560px}
.mcatg-preview-frame{position:relative;min-height:355px;background:#0b0d17;overflow:hidden}
.mcatg-ref img{display:block;width:100%;height:100%;min-height:355px;object-fit:cover;background:#10131f;transform:scale(1.001)}
.mcatg-preview-frame:after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 42%,rgba(7,7,17,.78));
  pointer-events:none;
}
.mcatg-ref-copy{position:relative;padding:22px 24px 26px;margin-top:-54px;z-index:2}
.mcatg-ref h2{margin:10px 0 10px;font-size:clamp(28px,4vw,44px);line-height:1.02;letter-spacing:-.05em;color:#fff}
.mcatg-ref p{margin:0;color:var(--mys-ai-muted);line-height:1.65;font-size:15px;max-width:620px}
.mcatg-generator{min-width:0}.mcatg-generator-card{padding:22px;height:100%;display:flex;flex-direction:column;justify-content:center}
.mcatg-generator-head{margin-bottom:18px}
.mcatg-generator-head h3{margin:12px 0 6px;font-size:28px;line-height:1.08;letter-spacing:-.04em;color:#fff}
.mcatg-generator-head p{margin:0;color:var(--mys-ai-muted);line-height:1.55}
.mcatg-form{display:grid;gap:14px}
.mcatg-upload{
  position:relative;display:flex;align-items:center;gap:14px;
  border:1.5px dashed rgba(255,255,255,.22);
  border-radius:24px;padding:20px;
  background:radial-gradient(circle at 0 0,rgba(232,24,122,.16),transparent 36%),rgba(255,255,255,.055);
  cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.mcatg-upload:hover,.mcatg-upload.is-dragging{border-color:rgba(232,24,122,.72);background:rgba(232,24,122,.12);transform:translateY(-2px)}
.mcatg-upload input{display:none}
.mcatg-upload-icon{
  flex:0 0 56px;width:56px;height:56px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(232,24,122,.26),rgba(139,92,246,.25));
  color:#fff;font-size:24px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
}
.mcatg-upload-main{min-width:0;display:flex;flex-direction:column;gap:4px}
.mcatg-upload-text{font-weight:900;color:#fff;letter-spacing:-.015em}.mcatg-upload-hint{font-size:13px;color:var(--mys-ai-muted)}
.mcatg-file-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;color:#ffd9ec;font-size:13px;font-weight:800;font-style:normal}
.mcatg-quality{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mcatg-quality-option{display:block;min-width:0}.mcatg-quality-option input{display:none}
.mcatg-quality-option>span{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:92px;border:1px solid rgba(255,255,255,.14);border-radius:24px;padding:16px;
  background:rgba(255,255,255,.06);cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.mcatg-quality-option>span:before{
  content:"";width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.34);position:absolute;top:14px;right:14px;
}
.mcatg-quality-option input:checked+span{
  border-color:rgba(232,24,122,.78);
  background:linear-gradient(135deg,rgba(232,24,122,.18),rgba(139,92,246,.16));
  box-shadow:0 0 0 4px rgba(232,24,122,.10),0 16px 42px rgba(232,24,122,.12);
}
.mcatg-quality-option input:checked+span:before{background:var(--mys-ai-accent);border-color:#ffacd4;box-shadow:inset 0 0 0 4px #190a16}
.mcatg-quality-option span:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.28)}
.mcatg-q-copy{display:flex;flex-direction:column;gap:5px;min-width:0;padding-right:20px}.mcatg-q-copy strong{font-size:15px;color:#fff}.mcatg-q-copy small{color:var(--mys-ai-muted);line-height:1.25}
.mcatg-quality-option em{font-style:normal;flex:0 0 auto;color:#fff;font-weight:950;font-size:14px;border-radius:999px;padding:8px 10px;background:rgba(232,24,122,.22);border:1px solid rgba(232,24,122,.38)}
.mcatg-status{min-height:24px;margin:14px 0 0;font-weight:800;color:var(--mys-ai-muted)}
.mcatg-status.ok{color:var(--mys-ai-success)}.mcatg-status.err{color:var(--mys-ai-danger)}
.mcatg-result{margin-top:14px}.mcatg-result img{display:block;width:100%;border-radius:24px;border:1px solid rgba(255,255,255,.12);background:#0f1220;margin:0 0 12px;box-shadow:0 18px 60px rgba(0,0,0,.25)}

/* Credits / dashboard */
.mcatg-credit-packages{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0 0}
.mcatg-credit-package{position:relative;display:flex;flex-direction:column;gap:6px;border:1px solid rgba(255,255,255,.13);border-radius:22px;padding:16px;text-decoration:none!important;color:#fff!important;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));box-shadow:0 14px 40px rgba(0,0,0,.18);transition:transform .18s ease,border-color .18s ease}
.mcatg-credit-package:hover{transform:translateY(-3px);border-color:rgba(232,24,122,.48)}.mcatg-credit-package span{color:var(--mys-ai-muted)}.mcatg-credit-package em{font-style:normal;color:#ff6bb5;font-weight:950}
.mcatg-dashboard{padding:20px 0 40px}.mcatg-balance-card{position:relative;overflow:hidden;background:radial-gradient(circle at 15% 10%,rgba(232,24,122,.36),transparent 36%),linear-gradient(135deg,#111827,#221033 70%,#32113a);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:34px;padding:26px;margin-bottom:22px;box-shadow:var(--mys-ai-shadow)}
.mcatg-balance-card span{color:var(--mys-ai-muted);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.mcatg-balance-card strong{display:block;font-size:clamp(34px,5vw,56px);line-height:1;margin:8px 0 8px;letter-spacing:-.05em}
.mcatg-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.mcatg-panel,.mcatg-auth-box{background:linear-gradient(180deg,rgba(255,255,255,.095),rgba(255,255,255,.045));border:1px solid var(--mys-ai-border);border-radius:28px;padding:22px;box-shadow:0 18px 55px rgba(0,0,0,.22);margin-bottom:18px;color:#fff;backdrop-filter:blur(14px)}
.mcatg-panel h2,.mcatg-auth-box h2,.mcatg-auth-box h3{margin:0 0 14px;font-size:26px;line-height:1.1;letter-spacing:-.035em;color:#fff}.mcatg-panel h3{color:#fff;margin:18px 0 10px}.mcatg-panel p,.mcatg-auth-box p{color:var(--mys-ai-muted)}
.mcatg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mcatg-form-grid label,.mcatg-phone-auth label{font-weight:850;font-size:13px;color:#fff}.mcatg-form-grid input,.mcatg-form-grid textarea,.mcatg-phone-auth input{width:100%;margin-top:7px;border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:13px 14px;font-size:14px;box-sizing:border-box;background:rgba(255,255,255,.06);color:#fff;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.mcatg-form-grid input:focus,.mcatg-form-grid textarea:focus,.mcatg-phone-auth input:focus{border-color:rgba(232,24,122,.7);box-shadow:0 0 0 4px rgba(232,24,122,.12)}.mcatg-form-grid small{display:block;font-weight:600;color:var(--mys-ai-muted);margin-top:4px}.mcatg-full{grid-column:1/-1}
.mcatg-linked-accounts{display:grid;gap:10px;margin-bottom:16px}.mcatg-linked-accounts>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:13px 14px;background:rgba(255,255,255,.05)}.mcatg-linked-accounts span{color:var(--mys-ai-muted)}
.mcatg-mini-table{width:100%;border-collapse:collapse;font-size:13px;color:#fff}.mcatg-mini-table th,.mcatg-mini-table td{border-bottom:1px solid rgba(255,255,255,.11);text-align:left;padding:10px 8px;vertical-align:top}.mcatg-mini-table th{color:var(--mys-ai-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}.mcatg-mini-table code{color:#ffd9ec;white-space:normal}
.mcatg-history{display:grid;gap:14px}.mcatg-history-item{display:flex;gap:14px;align-items:center;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:12px}.mcatg-history-item img{width:112px;height:112px;object-fit:cover;border-radius:18px}.mcatg-history-item strong{color:#fff}.mcatg-history-item p{margin:5px 0 7px;color:var(--mys-ai-muted)}.mcatg-history-item a{color:#ff6bb5;font-weight:900;text-decoration:none}
.mcatg-profile-message,.mcatg-auth-message{min-height:22px;margin:10px 0 0;font-weight:800}.mcatg-profile-message.ok,.mcatg-auth-message.ok{color:var(--mys-ai-success)}.mcatg-profile-message.err,.mcatg-auth-message.err{color:var(--mys-ai-danger)}

/* Landing / auth */
.mcatg-landing{padding:18px 0 44px}.mcatg-hero{position:relative;overflow:hidden;min-height:430px;border-radius:40px;background:radial-gradient(circle at 14% 24%,rgba(232,24,122,.36),transparent 31%),radial-gradient(circle at 82% 16%,rgba(139,92,246,.32),transparent 28%),linear-gradient(135deg,#0b1020,#170923 78%,#2a0e2e);color:#fff;padding:64px 46px;display:flex;align-items:center;margin-bottom:30px;border:1px solid rgba(255,255,255,.14);box-shadow:var(--mys-ai-shadow)}
.mcatg-hero:after{content:"";position:absolute;right:-80px;bottom:-110px;width:360px;height:360px;border-radius:50%;background:rgba(232,24,122,.18);filter:blur(12px)}.mcatg-hero>div{position:relative;z-index:1}.mcatg-hero h1{font-size:clamp(40px,6vw,78px);line-height:.92;max-width:850px;margin:14px 0 18px;letter-spacing:-.07em}.mcatg-hero p{max-width:650px;font-size:18px;color:rgba(255,255,255,.74);line-height:1.65;margin-bottom:22px}
.mcatg-auth-box{max-width:560px;margin:34px auto}.mcatg-auth-actions{display:grid;gap:10px;margin:18px 0}.mcatg-auth-provider{text-align:center;text-decoration:none}.mcatg-phone-auth{display:grid;gap:10px;margin-top:16px}.mcatg-otp-row{display:grid;gap:10px}

@media(max-width:920px){
  .mcatg-modal-panel{width:calc(100vw - 18px);margin:9px auto;border-radius:28px;padding:14px;max-height:calc(100vh - 18px)}
  .mcatg-modal-layout{grid-template-columns:1fr}.mcatg-ref{min-height:auto}.mcatg-preview-frame,.mcatg-ref img{min-height:260px}.mcatg-generator-card{padding:18px}.mcatg-dashboard-grid{grid-template-columns:1fr}.mcatg-form-grid{grid-template-columns:1fr}.mcatg-section-head{display:block}.mcatg-section-head p{margin-top:10px}.mcatg-quality{grid-template-columns:1fr}.mcatg-hero{padding:42px 24px;border-radius:30px}.mcatg-linked-accounts>div{align-items:flex-start;flex-direction:column}.mcatg-history-item{align-items:flex-start}.mcatg-history-item img{width:88px;height:88px}
}
@media(max-width:560px){
  .mcatg-wrap,.mcatg-dashboard,.mcatg-landing{width:min(100%,calc(100vw - 20px))}.mcatg-grid{grid-template-columns:1fr;gap:16px}.mcatg-card{border-radius:24px}.mcatg-card-img{height:210px}.mcatg-card-body{padding:16px;margin-top:-42px}.mcatg-upload{align-items:flex-start}.mcatg-upload-icon{width:48px;height:48px;flex-basis:48px;border-radius:16px}.mcatg-ref h2{font-size:28px}.mcatg-ref-copy{padding:18px;margin-top:-42px}.mcatg-generator-head h3{font-size:24px}.mcatg-balance-card{border-radius:26px}.mcatg-mini-table{font-size:12px}.mcatg-mini-table th,.mcatg-mini-table td{padding:8px 5px}.mcatg-close{right:12px;top:12px;width:42px;height:42px}.mcatg-modal-panel{border-radius:22px}.mcatg-hero h1{font-size:38px}.mcatg-hero{min-height:360px}
}

.mcatg-credit-package small{display:block;margin-top:10px;font-size:12px;letter-spacing:.01em;color:rgba(255,255,255,.62)}
.mcatg-credit-package.is-loading{pointer-events:none;opacity:.75;filter:saturate(.8)}
.mcatg-credit-package.is-loading::after{content:"";width:18px;height:18px;border-radius:999px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;display:inline-block;animation:mcatgspin .8s linear infinite;margin-left:10px;vertical-align:middle}
.mcatg-payment-message{margin:18px 0 0;color:rgba(255,255,255,.78);font-weight:700;text-align:center}.mcatg-payment-message.ok{color:#52ffa8}.mcatg-payment-message.err{color:#ff6b9d}
@keyframes mcatgspin{to{transform:rotate(360deg)}}


/* v1.6 Premium UI alignment fixes */
.mcatg-landing{
  padding:clamp(20px,3vw,34px) 0 56px;
  overflow:visible;
}
.mcatg-hero{
  min-height:unset;
  padding:clamp(52px,7vw,92px) clamp(24px,5vw,62px);
  align-items:center;
  overflow:hidden;
}
.mcatg-hero h1{
  line-height:1.02;
  padding-bottom:.08em;
  margin:16px 0 20px;
  max-width:900px;
}
.mcatg-hero p{
  margin:0 0 26px;
}
.mcatg-section-kicker,.mcatg-pill,.mcatg-step-pill{
  background:linear-gradient(135deg,rgba(232,24,122,.20),rgba(139,92,246,.16));
  border-color:rgba(232,24,122,.42);
  color:#ffe8f4;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.mcatg-card{
  background:linear-gradient(180deg,rgba(16,17,29,.94),rgba(19,20,35,.98));
  border-color:rgba(255,255,255,.16);
}
.mcatg-card:before{
  opacity:.55;
  background:radial-gradient(circle at 16% 0%,rgba(232,24,122,.24),transparent 32%),linear-gradient(135deg,rgba(255,255,255,.14),transparent 38%);
}
.mcatg-card-img{
  height:250px;
}
.mcatg-card-img:after{
  background:linear-gradient(180deg,rgba(3,5,14,.06) 28%,rgba(6,7,16,.74) 72%,rgba(6,7,16,.97) 100%);
}
.mcatg-card-body{
  padding:20px 20px 22px;
  margin-top:-56px;
}
.mcatg-card h3{
  font-size:24px;
  text-shadow:0 2px 18px rgba(0,0,0,.45);
}
.mcatg-price-row{
  gap:8px;
  margin:2px 0 18px;
}
.mcatg-price-row span{
  padding:8px 11px;
  border-color:rgba(255,255,255,.20);
  background:rgba(11,13,25,.58);
  color:rgba(255,255,255,.92);
  font-size:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.mcatg-price-row span:before{
  display:none;
}
.mcatg-open,.mcatg-submit{
  min-height:52px;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(232,24,122,.33), inset 0 1px 0 rgba(255,255,255,.18);
}
.mcatg-submit{
  margin-top:2px;
  min-height:56px;
  font-size:16px;
}
.mcatg-modal-panel{
  padding:22px;
  border-radius:34px;
}
.mcatg-close{
  width:44px;
  height:44px;
  right:18px;
  top:18px;
  border-radius:15px;
  font-size:0;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.085);
  border-color:rgba(255,255,255,.16);
}
.mcatg-close:before,
.mcatg-close:after{
  content:"";
  position:absolute;
  width:18px;
  height:3px;
  border-radius:99px;
  background:#fff;
}
.mcatg-close:before{transform:rotate(45deg)}
.mcatg-close:after{transform:rotate(-45deg)}
.mcatg-modal-layout{
  gap:20px;
}
.mcatg-ref,.mcatg-generator-card{
  border-radius:30px;
  background:linear-gradient(180deg,rgba(255,255,255,.095),rgba(255,255,255,.045));
}
.mcatg-ref-copy{
  padding:24px 26px 30px;
  margin-top:-58px;
}
.mcatg-ref h2{
  margin-top:12px;
  padding-bottom:.06em;
}
.mcatg-generator-card{
  padding:24px;
}
.mcatg-generator-head{
  margin-bottom:20px;
}
.mcatg-generator-head h3{
  padding-bottom:.06em;
}
.mcatg-upload{
  min-height:98px;
  border-radius:24px;
  border-color:rgba(255,255,255,.20);
  background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
}
.mcatg-upload-icon{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.15),0 12px 30px rgba(232,24,122,.16);
}
.mcatg-quality{
  gap:14px;
}
.mcatg-quality-option>span{
  min-height:96px;
  padding:18px 16px;
  align-items:flex-start;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
}
.mcatg-quality-option>span:before{
  display:none!important;
}
.mcatg-quality-option input:checked+span{
  border-color:rgba(232,24,122,.88);
  background:radial-gradient(circle at 16% 0%,rgba(232,24,122,.23),transparent 42%),linear-gradient(180deg,rgba(232,24,122,.14),rgba(255,255,255,.045));
  box-shadow:0 0 0 3px rgba(232,24,122,.10),0 18px 48px rgba(232,24,122,.16),inset 0 1px 0 rgba(255,255,255,.10);
}
.mcatg-quality-option input:checked+span:before{
  display:none!important;
}
.mcatg-quality-option span:hover{
  border-color:rgba(232,24,122,.42);
  background:linear-gradient(180deg,rgba(255,255,255,.095),rgba(255,255,255,.05));
}
.mcatg-q-copy{
  padding-right:0;
  gap:7px;
  max-width:calc(100% - 82px);
}
.mcatg-q-copy strong{
  font-size:15.5px;
  letter-spacing:-.015em;
}
.mcatg-q-copy small{
  color:rgba(255,255,255,.66);
  font-weight:700;
}
.mcatg-quality-option em{
  align-self:flex-start;
  margin-top:0;
  padding:9px 12px;
  min-width:62px;
  text-align:center;
  border-radius:999px;
  color:#fff;
  background:rgba(232,24,122,.24);
  border-color:rgba(232,24,122,.45);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
.mcatg-quality-option input:checked+span em{
  background:linear-gradient(135deg,rgba(232,24,122,.95),rgba(255,78,163,.88));
  border-color:rgba(255,255,255,.18);
  box-shadow:0 10px 28px rgba(232,24,122,.22);
}
.mcatg-quality-option input:checked+span em:after{
  content:"✓";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  margin-left:7px;
  border-radius:50%;
  background:rgba(255,255,255,.20);
  font-size:11px;
  line-height:1;
}
.mcatg-status{
  margin-top:12px;
  font-size:13px;
}
.mcatg-result img{
  border-radius:26px;
}
@media(max-width:920px){
  .mcatg-modal-panel{padding:16px;border-radius:28px;}
  .mcatg-quality{grid-template-columns:1fr;}
  .mcatg-q-copy{max-width:calc(100% - 78px);}
}
@media(max-width:560px){
  .mcatg-hero{padding:38px 22px;min-height:unset;border-radius:28px;}
  .mcatg-hero h1{font-size:40px;line-height:1.02;}
  .mcatg-card-img{height:220px;}
  .mcatg-card-body{margin-top:-52px;}
  .mcatg-close{width:40px;height:40px;right:12px;top:12px;border-radius:14px;}
  .mcatg-close:before,.mcatg-close:after{width:16px;height:3px;}
  .mcatg-generator-card{padding:18px;}
  .mcatg-ref-copy{padding:18px 18px 22px;margin-top:-48px;}
}

/* v1.7 staged generator flow: no quality/download-like controls before photo upload */
.mcatg-modal [hidden]{display:none!important}
.mcatg-template-flow-note{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:4px 0 18px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  background:rgba(8,10,20,.44);
  color:rgba(255,255,255,.74);
  font-size:13px;
  font-weight:750;
  line-height:1.35;
}
.mcatg-template-flow-note strong{
  width:max-content;
  max-width:100%;
  color:#fff;
  background:rgba(47,210,123,.16);
  border:1px solid rgba(47,210,123,.28);
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
}
.mcatg-quality-step{
  display:grid;
  gap:12px;
  margin-top:2px;
}
.mcatg-quality-title{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:0 2px;
}
.mcatg-quality-title strong{
  color:#fff;
  font-size:16px;
  letter-spacing:-.02em;
}
.mcatg-quality-title small{
  color:rgba(255,255,255,.58);
  line-height:1.35;
  font-size:12.5px;
}
.mcatg-quality-option>span{
  cursor:pointer;
  min-height:88px;
  padding:17px 16px;
}
.mcatg-quality-option em{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-width:82px;
  line-height:1.05;
  white-space:nowrap;
}
.mcatg-quality-option em small{
  display:block;
  color:rgba(255,255,255,.66);
  font-size:10px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.mcatg-quality-option input:checked+span em:after{display:none!important;content:none!important}
.mcatg-quality-option input:checked+span em{
  background:linear-gradient(135deg,rgba(232,24,122,.84),rgba(255,78,163,.78));
}
.mcatg-result .mcatg-download{
  width:100%;
  margin-top:10px;
  min-height:52px;
}
@media(max-width:560px){
  .mcatg-template-flow-note{font-size:12.5px}
  .mcatg-quality-option em{min-width:76px;font-size:13px}
}


/* v1.8 light redesign + direct page layout */
@font-face {
  font-family: "Archy EDT";
  src: local("Archy EDT"), local("ArchyEDT-Bold"), local("ArchyEDT");
  font-display: swap;
}
:root{
  --mys-ai-bg:#f6f7fb;
  --mys-ai-surface:#ffffff;
  --mys-ai-surface-2:#fbfbfe;
  --mys-ai-card:#ffffff;
  --mys-ai-card-2:#f8faff;
  --mys-ai-border:rgba(117,130,164,.18);
  --mys-ai-border-strong:rgba(117,130,164,.28);
  --mys-ai-text:#101828;
  --mys-ai-muted:#667085;
  --mys-ai-soft:#98a2b3;
  --mys-ai-accent:#ff2d8d;
  --mys-ai-accent-2:#7c3aed;
  --mys-ai-accent-3:#25b7ff;
  --mys-ai-success:#12b76a;
  --mys-ai-danger:#f04438;
  --mys-ai-shadow:0 20px 60px rgba(16,24,40,.08);
}
.mcatg-wrap,.mcatg-dashboard,.mcatg-landing,.mcatg-auth-box,.mcatg-modal,.mcatg-inline-generator{
  font-family:"Archy EDT", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--mys-ai-text);
}
.mcatg-landing-direct .mcatg-hero{display:none !important}
.mcatg-page-head{margin:0 0 24px;padding:6px 2px}
.mcatg-page-head h1{margin:12px 0 8px;font-size:clamp(34px,5vw,58px);line-height:1;letter-spacing:-.05em;color:#101828}
.mcatg-page-head p{margin:0;max-width:760px;color:#667085;font-size:17px;line-height:1.6}
.mcatg-section-kicker,.mcatg-pill,.mcatg-step-pill{
  background:linear-gradient(135deg,rgba(255,45,141,.10),rgba(37,183,255,.10));
  color:#c21874;border:1px solid rgba(255,45,141,.18);box-shadow:none;
}
.mcatg-section-head h2,.mcatg-section-head p,.mcatg-card h3,.mcatg-card p,.mcatg-generator-head h3,.mcatg-generator-head p,.mcatg-ref h2,.mcatg-ref p{color:inherit}
.mcatg-section-head p,.mcatg-card p,.mcatg-generator-head p,.mcatg-ref p,.mcatg-quality-title small,.mcatg-upload-hint,.mcatg-status,.mcatg-linked-accounts span,.mcatg-panel p,.mcatg-auth-box p{color:#667085}
.mcatg-direct-wrap{width:min(1320px, calc(100vw - 40px));}
.mcatg-direct-layout{display:grid;grid-template-columns:minmax(320px,440px) minmax(0,1fr);gap:24px;align-items:start}
.mcatg-template-column,.mcatg-workspace-column{min-width:0}
.mcatg-grid-templates{grid-template-columns:1fr;gap:18px}
.mcatg-card,.mcatg-ref,.mcatg-generator-card,.mcatg-panel,.mcatg-auth-box,.mcatg-balance-card,.mcatg-credit-package{
  background:var(--mys-ai-surface);border:1px solid var(--mys-ai-border);box-shadow:var(--mys-ai-shadow);
}
.mcatg-card{border-radius:24px;overflow:hidden}
.mcatg-card:before{display:none}
.mcatg-card.is-selected{border-color:rgba(255,45,141,.55);box-shadow:0 22px 64px rgba(255,45,141,.10)}
.mcatg-card-img{height:220px;background-color:#eef2ff}
.mcatg-card-img:after{background:linear-gradient(180deg,transparent 48%,rgba(255,255,255,.84) 75%,#fff 100%)}
.mcatg-card-body{margin-top:-16px;padding:18px 18px 20px}
.mcatg-card-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#f2f4f7;color:#344054;font-size:12px;font-weight:800;margin-bottom:10px}
.mcatg-card h3{font-size:24px;color:#101828}
.mcatg-card p{font-size:14px}
.mcatg-template-flow-note{background:#f8fafc;border:1px solid #e4e7ec;color:#475467;border-radius:16px}
.mcatg-template-flow-note strong{background:#ecfdf3;border:1px solid #abefc6;color:#067647}
.mcatg-open,.mcatg-btn,.mcatg-submit{background:linear-gradient(135deg,#ff2d8d,#ff6aad);box-shadow:0 12px 30px rgba(255,45,141,.18);border-radius:16px;min-height:52px;font-weight:800}
.mcatg-open:hover,.mcatg-btn:hover,.mcatg-submit:hover{box-shadow:0 18px 38px rgba(255,45,141,.22)}
.mcatg-inline-panel{background:linear-gradient(180deg,#ffffff,#f9fbff);border:1px solid var(--mys-ai-border);border-radius:28px;padding:24px;box-shadow:var(--mys-ai-shadow);position:sticky;top:20px}
.mcatg-inline-panel-head{margin-bottom:18px}
.mcatg-inline-panel-head h3{margin:12px 0 8px;font-size:30px;line-height:1.02;color:#101828;letter-spacing:-.04em}
.mcatg-inline-panel-head p{margin:0;color:#667085;line-height:1.6}
.mcatg-inline-layout{display:grid;grid-template-columns:minmax(320px,.92fr) minmax(360px,1.08fr);gap:20px;align-items:start}
.mcatg-ref,.mcatg-generator-card{border-radius:24px}
.mcatg-ref-inline{min-height:unset}
.mcatg-preview-frame{min-height:340px;background:#eef2ff}
.mcatg-ref img{min-height:340px}
.mcatg-preview-frame:after{background:linear-gradient(180deg,transparent 52%,rgba(255,255,255,.64) 78%,#fff 100%)}
.mcatg-ref-copy{margin-top:-8px;padding:18px 22px 22px}
.mcatg-ref h2{font-size:34px;color:#101828;margin:10px 0 8px}
.mcatg-ref p{font-size:15px;line-height:1.6}
.mcatg-generator-card{padding:22px;background:#fff}
.mcatg-generator-head h3{font-size:32px;color:#101828;margin:12px 0 8px}
.mcatg-upload{background:#f8fafc;border:1.5px dashed #d0d5dd;border-radius:20px;min-height:96px}
.mcatg-upload:hover,.mcatg-upload.is-dragging{background:#fff1f7;border-color:#ff2d8d;transform:none}
.mcatg-upload-icon{background:linear-gradient(135deg,#ffe2ef,#f0e8ff);color:#c21874;box-shadow:none}
.mcatg-upload-text{color:#101828}
.mcatg-file-name{color:#c21874}
.mcatg-quality-title strong{color:#101828}
.mcatg-quality-step{margin-top:6px}
.mcatg-quality{grid-template-columns:1fr 1fr;gap:14px}
.mcatg-quality-option>span{background:#fff;border:1px solid #d0d5dd;border-radius:20px;min-height:104px;box-shadow:none}
.mcatg-quality-option span:hover{border-color:#ff8ac0;background:#fffafd}
.mcatg-quality-option input:checked+span{border-color:#ff2d8d;background:linear-gradient(180deg,#fff8fc,#ffffff);box-shadow:0 0 0 4px rgba(255,45,141,.08)}
.mcatg-q-copy strong{color:#101828;font-size:16px}
.mcatg-q-copy small{color:#667085}
.mcatg-quality-option em{background:#f2f4f7;border:1px solid #e4e7ec;color:#101828;box-shadow:none;min-width:88px}
.mcatg-quality-option em small{color:#667085}
.mcatg-quality-option input:checked+span em{background:linear-gradient(135deg,#ff2d8d,#ff6aad);color:#fff;border-color:transparent;box-shadow:none}
.mcatg-status{font-weight:700;color:#667085}
.mcatg-status.ok{color:#067647}.mcatg-status.err{color:#b42318}
.mcatg-result img{border:1px solid #e4e7ec;background:#fff;border-radius:22px;box-shadow:var(--mys-ai-shadow)}
.mcatg-result .mcatg-download{background:linear-gradient(135deg,#7c3aed,#25b7ff)}
.mcatg-credit-package,.mcatg-linked-accounts>div,.mcatg-history-item{background:#fff;border:1px solid #e4e7ec;color:#101828}
.mcatg-credit-package span,.mcatg-credit-package small,.mcatg-panel .mcatg-mini-table th,.mcatg-panel .mcatg-mini-table td,.mcatg-history-item p{color:#667085}
.mcatg-balance-card{background:linear-gradient(135deg,#ffffff,#f8f9ff);color:#101828;border:1px solid #e4e7ec}
.mcatg-balance-card span{color:#667085}.mcatg-balance-card strong{color:#101828}
.mcatg-panel h2,.mcatg-auth-box h2,.mcatg-auth-box h3,.mcatg-panel h3,.mcatg-mini-table,.mcatg-form-grid label,.mcatg-phone-auth label{color:#101828}
.mcatg-form-grid input,.mcatg-form-grid textarea,.mcatg-phone-auth input{background:#fff;border:1px solid #d0d5dd;color:#101828}
.mcatg-form-grid input:focus,.mcatg-form-grid textarea:focus,.mcatg-phone-auth input:focus{border-color:#ff2d8d;box-shadow:0 0 0 4px rgba(255,45,141,.10)}
.mcatg-mini-table th,.mcatg-mini-table td{border-bottom:1px solid #eaecf0}
.mcatg-history-item a{color:#7c3aed}
.mcatg-auth-box{max-width:none}
.mcatg-modal{display:none!important}
@media(max-width:1180px){
  .mcatg-direct-layout{grid-template-columns:1fr}
  .mcatg-inline-panel{position:static}
}
@media(max-width:920px){
  .mcatg-inline-layout{grid-template-columns:1fr}
  .mcatg-direct-wrap{width:min(100%, calc(100vw - 24px));}
}
@media(max-width:560px){
  .mcatg-page-head h1{font-size:36px}
  .mcatg-inline-panel{padding:16px;border-radius:22px}
  .mcatg-card h3{font-size:22px}
  .mcatg-ref h2,.mcatg-generator-head h3{font-size:28px}
  .mcatg-quality{grid-template-columns:1fr}
}


/* v1.9 professional auth/profile fields */
.mcatg-auth-shell{width:min(1180px,calc(100vw - 36px));margin:48px auto;color:#101828;font-family:"Archy EDT",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.mcatg-auth-card{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch;background:#fff;border:1px solid #e4e7ec;border-radius:32px;padding:24px;box-shadow:0 28px 80px rgba(16,24,40,.10)}
.mcatg-auth-visual{position:relative;overflow:hidden;border-radius:26px;padding:34px;min-height:460px;background:radial-gradient(circle at 18% 18%,rgba(255,45,141,.18),transparent 34%),radial-gradient(circle at 82% 12%,rgba(37,183,255,.18),transparent 30%),linear-gradient(135deg,#fff7fb,#f6fbff 55%,#f7f2ff);border:1px solid #eef2f6;display:flex;flex-direction:column;justify-content:center}
.mcatg-auth-visual:after{content:"";position:absolute;right:-50px;bottom:-70px;width:230px;height:230px;border-radius:50%;background:linear-gradient(135deg,rgba(255,45,141,.18),rgba(37,183,255,.18));filter:blur(4px)}
.mcatg-auth-visual>*{position:relative;z-index:1}.mcatg-auth-visual h1{margin:16px 0 14px;font-size:clamp(36px,4.8vw,58px);line-height:1;letter-spacing:-.055em;color:#101828}.mcatg-auth-visual p{font-size:17px;line-height:1.65;color:#475467;margin:0 0 22px;max-width:560px}.mcatg-auth-visual ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}.mcatg-auth-visual li{display:flex;align-items:center;gap:10px;color:#344054;font-weight:800}.mcatg-auth-visual li:before{content:"✓";display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#ecfdf3;color:#067647;font-size:13px}
.mcatg-auth-methods{border-radius:26px;background:#fbfcff;border:1px solid #eef2f6;padding:34px;display:flex;flex-direction:column;justify-content:center}.mcatg-auth-methods h2{margin:0 0 8px;color:#101828;font-size:32px;line-height:1.08;letter-spacing:-.04em}.mcatg-auth-methods>p{margin:0 0 18px;color:#667085}.mcatg-auth-actions{display:grid;gap:12px;margin:18px 0}.mcatg-auth-provider{display:flex!important;align-items:center;gap:12px;min-height:58px;border-radius:18px;border:1px solid #d0d5dd;background:#fff;color:#101828!important;text-decoration:none!important;padding:12px 15px;box-shadow:0 12px 30px rgba(16,24,40,.04);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.mcatg-auth-provider:hover{transform:translateY(-2px);border-color:#ff8ac0;box-shadow:0 18px 40px rgba(255,45,141,.10)}.mcatg-auth-provider span{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;font-weight:950;background:#f2f4f7;color:#101828}.mcatg-auth-google span{background:#fff1f3;color:#c21874}.mcatg-auth-facebook span{background:#eff4ff;color:#175cd3}.mcatg-auth-divider{display:flex;align-items:center;gap:14px;margin:8px 0 18px;color:#98a2b3;font-weight:800}.mcatg-auth-divider:before,.mcatg-auth-divider:after{content:"";height:1px;flex:1;background:#e4e7ec}.mcatg-phone-auth{gap:12px}.mcatg-auth-phone-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.mcatg-auth-phone-row .mcatg-btn{white-space:nowrap;min-height:50px}.mcatg-auth-empty{margin-top:16px;padding:16px;border-radius:18px;background:#fff8e8;border:1px solid #fedf89;color:#93370d}.mcatg-auth-empty p{margin:6px 0 0;color:#93370d}.mcatg-auth-logged{display:block;max-width:620px;margin:0 auto}.mcatg-auth-logged h2{font-size:34px;color:#101828}.mcatg-auth-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.mcatg-profile-form .mcatg-form-grid{gap:16px}.mcatg-profile-form label{display:flex;flex-direction:column;gap:7px;color:#101828;font-size:13px;font-weight:850}.mcatg-profile-form input,.mcatg-profile-form textarea{margin-top:0!important}.mcatg-profile-form input[type="date"]{min-height:48px;color:#101828}.mcatg-profile-form small{color:#667085!important}.mcatg-profile-form .mcatg-btn{margin-top:18px}.mcatg-panel{border-radius:26px}.mcatg-dashboard .mcatg-panel h2{font-size:28px;color:#101828}.mcatg-dashboard .mcatg-balance-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.mcatg-dashboard .mcatg-balance-card:after{content:"კრედიტები";display:inline-flex;align-items:center;justify-content:center;min-width:112px;height:44px;border-radius:999px;background:#fff1f7;color:#c21874;font-weight:900}
@media(max-width:980px){.mcatg-auth-card{grid-template-columns:1fr}.mcatg-auth-visual{min-height:320px}.mcatg-auth-methods{padding:24px}.mcatg-auth-phone-row{grid-template-columns:1fr}}
@media(max-width:560px){.mcatg-auth-shell{width:min(100%,calc(100vw - 20px));margin:24px auto}.mcatg-auth-card{padding:14px;border-radius:24px}.mcatg-auth-visual,.mcatg-auth-methods{padding:22px;border-radius:20px}.mcatg-auth-visual h1{font-size:36px}.mcatg-auth-methods h2{font-size:28px}}


/* v3.1 quality selector cleanup */
.mcatg-quality-step{
  display:block;
  margin-top:18px;
}
.mcatg-quality-title{
  margin:0 0 12px;
}
.mcatg-quality-title strong{
  display:block;
  font-size:18px;
  line-height:1.2;
}
.mcatg-quality-title small{
  display:block;
  margin-top:6px;
  font-size:13px;
  line-height:1.45;
  max-width:680px;
}
.mcatg-quality{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
}
.mcatg-quality-option{
  display:block;
  min-width:0;
}
.mcatg-quality-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.mcatg-quality-option > .mcatg-q-card,
.mcatg-quality-option > span{
  width:100%;
  min-height:82px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:16px !important;
  padding:18px 18px !important;
  border-radius:22px !important;
  box-sizing:border-box !important;
}
.mcatg-q-copy{
  min-width:0;
  display:block !important;
}
.mcatg-q-copy strong{
  display:block !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
  hyphens:auto;
  font-size:18px !important;
  line-height:1.18 !important;
  letter-spacing:-.02em;
}
.mcatg-q-copy small{
  display:block !important;
  margin-top:6px !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
  font-size:13px !important;
  line-height:1.35 !important;
}
.mcatg-quality-option .mcatg-q-price,
.mcatg-quality-option em{
  margin:0 !important;
  min-width:104px !important;
  height:auto !important;
  min-height:52px !important;
  padding:10px 14px !important;
  border-radius:999px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:2px !important;
  white-space:nowrap !important;
  text-align:center !important;
  font-style:normal !important;
}
.mcatg-q-price small{
  font-size:10px !important;
  line-height:1 !important;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.mcatg-q-price b{
  font-size:15px !important;
  line-height:1.05 !important;
}
.mcatg-submit{
  width:100%;
  margin-top:14px;
  opacity:1 !important;
}
.mcatg-submit:disabled{
  opacity:.55 !important;
  cursor:not-allowed;
  box-shadow:none !important;
}
@media(max-width:640px){
  .mcatg-quality-option > .mcatg-q-card,
  .mcatg-quality-option > span{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .mcatg-quality-option .mcatg-q-price,
  .mcatg-quality-option em{
    width:max-content;
    min-width:120px !important;
    align-items:flex-start !important;
  }
}


/* v3.2 hard cleanup: no unfinished pills, no quality before upload */
.mcatg-quality-step[hidden],
.mcatg-submit[hidden],
[hidden]{
  display:none !important;
}
.mcatg-section-kicker:empty,
.mcatg-step-pill:empty,
.mcatg-card-chip:empty,
.mcatg-template-flow-note:empty,
.mcatg-template-flow-note span:empty,
.mcatg-template-flow-note strong:empty{
  display:none !important;
}
.mcatg-inline-panel-head .mcatg-step-pill,
.mcatg-generator-head .mcatg-step-pill,
.mcatg-section-kicker,
.mcatg-card-chip{
  max-width:100%;
  white-space:normal;
}
.mcatg-template-flow-note{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:0;
}
.mcatg-template-flow-note:not(:has(span:not(:empty), strong:not(:empty))){
  display:none !important;
}

/* Only show quality cards after upload step is opened */
.mcatg-quality-step:not([hidden]) .mcatg-quality{
  display:grid !important;
}
.mcatg-quality-step[hidden] .mcatg-quality{
  display:none !important;
}
.mcatg-form .mcatg-submit[disabled]{
  display:none !important;
}
.mcatg-form .mcatg-submit:not([hidden]):not(:disabled){
  display:flex !important;
}

/* Cleaner card composition */
.mcatg-quality-option > .mcatg-q-card,
.mcatg-quality-option > span{
  grid-template-columns:minmax(0,1fr) minmax(104px,auto) !important;
}
.mcatg-quality-option .mcatg-q-price,
.mcatg-quality-option em{
  flex-shrink:0 !important;
}
.mcatg-q-copy strong,
.mcatg-q-copy small{
  max-width:100%;
}
