/* CartoonMakerApp v5.5 — Vibrant Colorful 2D Cartoon Studio Theme */
:root{
  --cma-comic-blue:#2563EB;
  --cma-comic-violet:#7C3AED;
  --cma-comic-pink:#EC4899;
  --cma-comic-orange:#F97316;
  --cma-comic-yellow:#FACC15;
  --cma-comic-green:#10B981;
  --cma-comic-ink:#1E1B4B;
  --cma-comic-muted:#4C4B63;
}

/* Sunny Playful Page Canvas (non-studio pages) */
body.cma-body-page{
  background:linear-gradient(180deg,#FFF7E6 0%,#FFFDF9 42%,#EFF6FF 100%)!important;
  color:var(--cma-comic-ink)!important;
}

/* Vibrant Cartoon Header */
.cma-header{
  background:linear-gradient(90deg,#2563EB 0%,#7C3AED 52%,#F97316 100%)!important;
  border-bottom:3px solid rgba(255,255,255,.28)!important;
  box-shadow:0 8px 26px rgba(37,99,235,.22)!important;
}
.cma-brand-text{color:#FFFFFF!important;font-weight:900!important;letter-spacing:-.02em}
.cma-brand-tag{color:#FEF08A!important;font-weight:700!important}
.cma-brand-logo{
  background:linear-gradient(135deg,#FACC15,#FB923C)!important;
  color:#1E1B4B!important;
  box-shadow:0 4px 12px rgba(30,27,75,.25)!important;
}
.cma-nav-link{
  color:#FFFDF8!important;
  border-radius:12px!important;
  font-weight:750!important;
  transition:transform .14s ease,background .14s ease!important;
}
.cma-nav-link:hover{
  background:rgba(255,255,255,.18)!important;
  color:#FEF08A!important;
  transform:translateY(-1px);
}
.cma-nav-link.is-active{
  background:#FACC15!important;
  color:#1E1B4B!important;
  font-weight:850!important;
  box-shadow:0 4px 0 rgba(30,27,75,.28)!important;
}

/* 2-Column Colorful Cartoon Hero */
.cma-home .cma-hero{
  background:linear-gradient(135deg,#4F46E5 0%,#9333EA 46%,#EC4899 78%,#F97316 100%)!important;
  padding:clamp(32px,4.5vw,58px) 18px clamp(38px,5vw,60px)!important;
  position:relative;
  overflow:hidden;
  border-bottom:5px solid #FACC15;
}
.cma-home .cma-hero-inner{
  max-width:1280px!important;
  margin:0 auto!important;
  text-align:left!important;
}
.cma-hero-split{
  display:grid;
  grid-template-columns:1.12fr .98fr;
  gap:32px;
  align-items:center;
}
.cma-home .cma-hero-pill{
  display:inline-flex!important;
  background:#FACC15!important;
  color:#1E1B4B!important;
  border:2px solid #FEF08A!important;
  font-weight:900!important;
  letter-spacing:.03em;
  box-shadow:0 4px 0 rgba(30,27,75,.22);
}
.cma-home .cma-hero h1{
  color:#FFFFFF!important;
  font-weight:900!important;
  text-shadow:0 4px 18px rgba(30,27,75,.28);
  margin:14px 0 14px!important;
}
.cma-home .cma-hero h1 span{
  color:#FEF08A!important;
  background:none!important;
  -webkit-text-fill-color:#FEF08A!important;
}
.cma-home .cma-hero-sub{
  color:#FFF7ED!important;
  margin:0 0 22px!important;
  max-width:600px!important;
  font-size:16px!important;
  line-height:1.65!important;
}
.cma-home .cma-hero-cta{
  justify-content:flex-start!important;
  gap:12px!important;
}
.cma-home .cma-btn-primary{
  background:#FACC15!important;
  color:#1E1B4B!important;
  border:2px solid #FEF08A!important;
  font-weight:900!important;
  border-radius:16px!important;
  box-shadow:0 6px 0 #CA8A04,0 14px 28px rgba(30,27,75,.28)!important;
  transition:transform .14s ease,box-shadow .14s ease!important;
}
.cma-home .cma-btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 0 #CA8A04,0 18px 34px rgba(30,27,75,.34)!important;
}
.cma-home .cma-btn-outline{
  background:rgba(255,255,255,.16)!important;
  color:#FFFFFF!important;
  border:2px solid rgba(255,255,255,.55)!important;
  border-radius:16px!important;
  font-weight:800!important;
}
.cma-home .cma-btn-outline:hover{
  background:rgba(255,255,255,.26)!important;
}
.cma-home .cma-hero-bug-note{
  margin:16px 0 0!important;
  max-width:580px!important;
  padding:9px 13px!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.94)!important;
  color:#B91C1C!important;
  font-weight:750!important;
  font-size:12.5px!important;
  border-left:4px solid #EF4444!important;
  box-shadow:0 8px 20px rgba(30,27,75,.18);
}

/* Hero Cartoon Stage Frame */
.cma-hero-art{
  position:relative;
  background:#FFFFFF;
  padding:10px;
  border-radius:26px;
  border:4px solid #FEF08A;
  box-shadow:0 12px 0 rgba(30,27,75,.25),0 26px 56px rgba(30,27,75,.36);
}
.cma-hero-art img{
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  border-radius:18px;
}
.cma-hero-stickers{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
  justify-content:center;
}
.cma-sticker{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:850;
}
.cma-sticker.s1{background:#DBEAFE;color:#1D4ED8}
.cma-sticker.s2{background:#DCFCE7;color:#047857}
.cma-sticker.s3{background:#FCE7F3;color:#BE185D}

/* Hero 4 Highlights Strip */
.cma-home .cma-hero-highlights{
  margin-top:28px!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.cma-home .cma-hl-item{
  background:rgba(255,255,255,.95)!important;
  color:#1E1B4B!important;
  border:2px solid rgba(255,255,255,.8)!important;
  border-radius:18px!important;
  box-shadow:0 6px 0 rgba(30,27,75,.18)!important;
}
.cma-home .cma-hl-item strong{color:#1E1B4B!important}
.cma-home .cma-hl-item span{color:#4C4B63!important}
.cma-home .cma-hl-ico{
  background:linear-gradient(135deg,#FACC15,#FB923C)!important;
  color:#1E1B4B!important;
  border-radius:12px!important;
}

/* Visual 2-Card Cartoon Showcase */
.cma-visual-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.cma-visual-card{
  background:#FFFFFF;
  border-radius:24px;
  overflow:hidden;
  border:3px solid #E0E7FF;
  box-shadow:0 8px 0 #C7D2FE,0 18px 36px rgba(30,27,75,.08);
  display:flex;
  flex-direction:column;
}
.cma-visual-card.v2{
  border-color:#FBCFE8;
  box-shadow:0 8px 0 #F9A8D4,0 18px 36px rgba(30,27,75,.08);
}
.cma-visual-card img{
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}
.cma-visual-body{padding:20px 22px 22px}
.cma-visual-body h3, .cma-visual-body h2{margin:0 0 6px;font-size:20px;font-weight:900;color:#1E1B4B}
.cma-visual-body p{margin:0;font-size:14px;line-height:1.6;color:#4C4B63}

/* Colorful Section Cards, Spotlight, Features, Who-Can-Use & FAQ */
.cma-home .cma-sec-head h2,
.cma-home .cma-spotlight-card h2{
  color:#1E1B4B!important;
  font-weight:900!important;
}
.cma-home .cma-sub{color:#4C4B63!important}
.cma-home .cma-pill{
  background:#FEF08A!important;
  color:#1E1B4B!important;
  border:1px solid #FDE047!important;
  font-weight:850!important;
}
.cma-home .cma-spotlight-card{
  background:#FFFFFF!important;
  border:3px solid #DDD6FE!important;
  border-radius:26px!important;
  box-shadow:0 8px 0 #C4B5FD,0 18px 40px rgba(79,70,229,.08)!important;
}
.cma-home .cma-mjo-pt{
  background:#FAF5FF!important;
  border:2px solid #E9D5FF!important;
  border-radius:18px!important;
}
.cma-home .cma-mjo-pt strong{color:#1E1B4B!important}
.cma-home .cma-mjo-pt span{color:#4C4B63!important}

.cma-home .cma-feat-card{
  background:#FFFFFF!important;
  border:2px solid #E2E8F0!important;
  border-top:5px solid #7C3AED!important;
  border-radius:22px!important;
  box-shadow:0 6px 0 #E2E8F0,0 14px 28px rgba(30,27,75,.06)!important;
  transition:transform .16s ease!important;
}
.cma-home .cma-feat-card:nth-child(2){border-top-color:#10B981!important}
.cma-home .cma-feat-card:nth-child(3){border-top-color:#F97316!important}
.cma-home .cma-feat-card:nth-child(4){border-top-color:#EC4899!important}
.cma-home .cma-feat-card:nth-child(5){border-top-color:#2563EB!important}
.cma-home .cma-feat-card:nth-child(6){border-top-color:#FACC15!important}
.cma-home .cma-feat-card:hover{transform:translateY(-3px)}
.cma-home .cma-feat-card h3,
.cma-home .cma-who-card h3{color:#1E1B4B!important;font-weight:850!important}
.cma-home .cma-feat-card p,
.cma-home .cma-who-card p{color:#4C4B63!important}

.cma-home .cma-who-card{
  background:#FFFFFF!important;
  border:2px solid #FDE68A!important;
  border-radius:20px!important;
  box-shadow:0 6px 0 #FDE68A!important;
}
.cma-home .cma-who-card:nth-child(2){border-color:#A7F3D0!important;box-shadow:0 6px 0 #A7F3D0!important}
.cma-home .cma-who-card:nth-child(3){border-color:#BFDBFE!important;box-shadow:0 6px 0 #BFDBFE!important}
.cma-home .cma-who-card:nth-child(4){border-color:#FBCFE8!important;box-shadow:0 6px 0 #FBCFE8!important}

.cma-home .cma-community-banner{
  background:linear-gradient(135deg,#2563EB 0%,#7C3AED 55%,#EC4899 100%)!important;
  border:3px solid #FEF08A!important;
  border-radius:28px!important;
  color:#FFFFFF!important;
  box-shadow:0 10px 0 rgba(30,27,75,.18),0 22px 44px rgba(79,70,229,.22)!important;
}
.cma-home .cma-community-banner h2{color:#FFFFFF!important}
.cma-home .cma-community-banner .cma-sub{color:#F3E8FF!important}
.cma-home .cma-community-actions .cma-btn:not(.cma-btn-primary){
  background:rgba(255,255,255,.16)!important;
  color:#FFFFFF!important;
  border:2px solid rgba(255,255,255,.55)!important;
  border-radius:14px!important;
}

.cma-home .cma-faq-item{
  background:#FFFFFF!important;
  border:2px solid #E0E7FF!important;
  border-radius:18px!important;
  box-shadow:0 4px 0 #E0E7FF!important;
}
.cma-home .cma-faq-item summary{color:#1E1B4B!important;font-weight:800!important}
.cma-home .cma-faq-item p{color:#4C4B63!important}

/* Vibrant Cartoon Indigo-Violet Footer */
.cma-footer{
  background:linear-gradient(160deg,#1E1B4B 0%,#4C1D95 55%,#7E22CE 100%)!important;
  color:#F3E8FF!important;
  border-top:4px solid #FACC15!important;
}
.cma-footer h4, .cma-footer .cma-footer-heading,.cma-footer strong{color:#FFFFFF!important}
.cma-footer-desc,.cma-footer-list a,.cma-footer-note,.cma-footer-bottom{color:#E9D5FF!important}
.cma-footer-list a:hover{color:#FACC15!important}
.cma-btn-support{
  background:#FACC15!important;
  color:#1E1B4B!important;
  border:0!important;
  font-weight:850!important;
  border-radius:12px!important;
}

@media (max-width:960px){
  .cma-hero-split,.cma-visual-grid{grid-template-columns:1fr}
  .cma-home .cma-hero-highlights{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:520px){
  .cma-home .cma-hero-highlights{grid-template-columns:1fr!important}
}

/* =====================================================================
   ALL INNER PAGES HIGH-CONTRAST LIGHT CARTOON THEME
   (Admin, Backup/Deploy, My Projects, Profile, Privacy, Terms, Guides)
   Fixes dark-on-dark invisible text on legacy dark cards & tables!
   ===================================================================== */
body.cma-body-page h1,
body.cma-body-page h2,
body.cma-body-page h3,
body.cma-body-page h4,
body.cma-body-page .cma-page-head h1,
body.cma-body-page .cma-card-head h2,
body.cma-body-page .cma-card-head h3,
body.cma-body-page .cma-proj-title,
body.cma-body-page .cma-stat-card strong{
  color:#1E1B4B!important;
}
body.cma-body-page p,
body.cma-body-page li,
body.cma-body-page .cma-sub,
body.cma-body-page .cma-stat-sub,
body.cma-body-page .cma-proj-date,
body.cma-body-page .cma-proj-meta,
body.cma-body-page .cma-msg-date,
body.cma-body-page .cma-msg-preview,
body.cma-body-page .cma-bar-lbl,
body.cma-body-page .cma-bar-val{
  color:#475569!important;
}

/* Cards, Stat Boxes, Project Cards, Message Cards & Banners */
body.cma-body-page .cma-card,
body.cma-body-page .cma-stat-card,
body.cma-body-page .cma-proj-card,
body.cma-body-page .cma-msg-card,
body.cma-body-page .cma-admin-msg-item,
body.cma-body-page .cma-admin-msg-summary,
body.cma-body-page .cma-logo-preview-box,
body.cma-body-page .cma-empty,
body.cma-body-page .cma-status-box,
body.cma-body-page .cma-bar-chart{
  background:#FFFFFF!important;
  color:#1E1B4B!important;
  border:2px solid #E0E7FF!important;
  border-radius:18px!important;
  box-shadow:0 6px 0 #E0E7FF,0 14px 28px rgba(30,27,75,.06)!important;
}
body.cma-body-page .cma-card code,
body.cma-body-page .cma-table code{
  background:#EEF2FF!important;
  color:#3730A3!important;
  padding:2px 6px;
  border-radius:6px;
  font-weight:700;
}
body.cma-body-page .cma-live-banner{
  background:linear-gradient(135deg,#ECFDF5,#EEF2FF)!important;
  border:2px solid #6EE7B7!important;
  color:#065F46!important;
}
body.cma-body-page .cma-live-banner strong,
body.cma-body-page .cma-live-meta{
  color:#065F46!important;
}

/* Tables (Saved Backups, Users, Visits, Logs) */
body.cma-body-page .cma-table-wrap{
  background:#FFFFFF!important;
  border-radius:14px;
}
body.cma-body-page .cma-table{
  background:#FFFFFF!important;
  color:#1E1B4B!important;
}
body.cma-body-page .cma-table thead th{
  background:#EEF2FF!important;
  color:#3730A3!important;
  border-bottom:2px solid #C7D2FE!important;
  font-weight:800!important;
}
body.cma-body-page .cma-table tbody td{
  background:#FFFFFF!important;
  color:#1E1B4B!important;
  border-bottom:1px solid #E2E8F0!important;
}
body.cma-body-page .cma-table tbody tr:hover td{
  background:#F8FAFC!important;
}

/* Admin Tabs & Pills */
body.cma-body-page .cma-admin-tab{
  background:#FFFFFF!important;
  color:#1E1B4B!important;
  border:2px solid #E0E7FF!important;
  border-radius:12px!important;
  font-weight:750!important;
}
body.cma-body-page .cma-admin-tab.is-active,
body.cma-body-page .cma-admin-tab:hover{
  background:#FACC15!important;
  color:#1E1B4B!important;
  border-color:#EAB308!important;
  font-weight:850!important;
}
body.cma-body-page .cma-pill-live{
  background:#DCFCE7!important;
  color:#047857!important;
  border:1px solid #86EFAC!important;
}
body.cma-body-page .cma-pill-general,
body.cma-body-page .cma-role-badge,
body.cma-body-page .cma-cat-pill{
  background:#EEF2FF!important;
  color:#3730A3!important;
  border:1px solid #C7D2FE!important;
}
body.cma-body-page .cma-pill-bug{
  background:#FEE2E2!important;
  color:#B91C1C!important;
  border:1px solid #FCA5A5!important;
}

/* Buttons on Light Cards */
body.cma-body-page .cma-btn:not(.cma-btn-primary):not(.cma-btn-green):not(.cma-btn-warn):not(.cma-btn-danger):not(.cma-btn-support):not(.cma-btn-outline){
  background:#EEF2FF!important;
  color:#1E1B4B!important;
  border:1.5px solid #C7D2FE!important;
  font-weight:750!important;
}
body.cma-body-page .cma-btn:not(.cma-btn-primary):not(.cma-btn-green):not(.cma-btn-warn):not(.cma-btn-danger):not(.cma-btn-support):not(.cma-btn-outline):hover{
  background:#E0E7FF!important;
}
body.cma-body-page .cma-btn-green{background:#10B981!important;color:#FFFFFF!important;border-color:#059669!important}
body.cma-body-page .cma-btn-warn{background:#F59E0B!important;color:#1E1B4B!important;border-color:#D97706!important;font-weight:800!important}
body.cma-body-page .cma-btn-danger{background:#EF4444!important;color:#FFFFFF!important;border-color:#DC2626!important}

/* Form Inputs, Labels, Dropdowns & Mobile Drawer */
body.cma-body-page .cma-field span,
body.cma-body-page label{
  color:#1E1B4B!important;
  font-weight:700;
}
body.cma-body-page input[type="text"],
body.cma-body-page input[type="email"],
body.cma-body-page input[type="url"],
body.cma-body-page input[type="number"],
body.cma-body-page input[type="search"],
body.cma-body-page input[type="password"],
body.cma-body-page input[type="file"],
body.cma-body-page select,
body.cma-body-page textarea,
body.cma-body-page .cma-search-inp{
  background:#FFFFFF!important;
  color:#1E1B4B!important;
  border:2px solid #CBD5E1!important;
  border-radius:10px!important;
}
body.cma-body-page .cma-user-dd,
body.cma-body-page .cma-mob-drawer{
  background:#FFFFFF!important;
  color:#1E1B4B!important;
  border:2px solid #E0E7FF!important;
  box-shadow:0 18px 40px rgba(30,27,75,.18)!important;
}
body.cma-body-page .cma-user-dd-head strong,
body.cma-body-page .cma-dd-item,
body.cma-body-page .cma-mob-link{
  color:#1E1B4B!important;
}
body.cma-body-page .cma-dd-item:hover,
body.cma-body-page .cma-mob-link:hover{
  background:#EEF2FF!important;
}
body.cma-body-page .cma-dd-danger{
  color:#DC2626!important;
}
body.cma-body-page a:not(.cma-btn):not(.cma-nav-link):not(.cma-brand):not(.cma-dd-item):not(.cma-mob-link):not(.cma-footer a){
  color:#4F46E5;
}
/* Keep hero & community banner text crisp white */
body.cma-body-page .cma-hero h1,
body.cma-body-page .cma-community-banner h2{
  color:#FFFFFF!important;
}
body.cma-body-page .cma-hero p:not(.cma-hero-bug-note),
body.cma-body-page .cma-community-banner p{
  color:#FFF7ED!important;
}
body.cma-body-page .cma-footer p,
body.cma-body-page .cma-footer li,
body.cma-body-page .cma-footer span{
  color:#E9D5FF!important;
}

/* v5.11: 3-Section Footer Links Layout (Brand + Studio, Also Check, Legal & Info) */
.cma-footer-grid {
  grid-template-columns: minmax(250px, 1.55fr) repeat(3, minmax(150px, 1fr)) !important;
  gap: 28px !important;
}
@media (max-width: 960px) {
  .cma-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 18px !important;
  }
  .cma-footer-col:first-child { grid-column: 1 / -1 !important; }
}
@media (max-width: 560px) {
  .cma-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.cma-brand-title-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.cma-ver-pill { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; background: rgba(250, 204, 21, 0.22); border: 1px solid rgba(250, 204, 21, 0.58); color: #FEF08A; font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; line-height: 1.45; white-space: nowrap; }
