
/* CreatorTools AI — single clean monochrome design system — full-bleed header fix */
:root{
  color-scheme:light;
  --bg:#ffffff;
  --panel:#ffffff;
  --panel-soft:#f5f5f5;
  --line:#e5e5e5;
  --line-strong:#d6d6d6;
  --text:#171717;
  --muted:#737373;
  --muted-light:#a3a3a3;
  --accent:#171717;
  --radius:18px;
  --shadow:0 2px 10px rgba(0,0,0,.035);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#fff}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
a{color:var(--text)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img,video{max-width:100%}
.hidden{display:none!important}
.wrap,main.wrap{width:100%;max-width:1000px;margin:0 auto;padding:0 16px 42px}

/* Brand and account bar */
.brand{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:var(--text);font-size:20px;font-weight:800;line-height:1.2}
.brand>a{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.brand .ct-logo{display:block;width:40px;height:40px;object-fit:contain;border-radius:11px;flex:0 0 auto}
.brand span{background:transparent;color:inherit;padding:0;margin:0;border-radius:0}
.accountbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:18px;position:relative;z-index:30}
.account-credit{display:flex;align-items:center;gap:10px;min-width:0}
.credit-coin{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#f3f3f3;color:#171717;font-size:21px}
.account-credit b{display:block;font-size:14px;font-weight:750;color:#171717;overflow-wrap:anywhere}
.account-credit small{display:block;color:#737373;font-size:11px;line-height:1.4}
.profile-wrap{position:relative;flex:0 0 auto}
.profile-button{display:flex;align-items:center;gap:8px;white-space:nowrap;background:#fff;color:#171717;border:1px solid #dedede;border-radius:12px;padding:6px 9px;font-size:12px;font-weight:700}
.avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f2f2f2;color:#171717;font-weight:800}
.profile-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:100;width:min(280px,calc(100vw - 32px));padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.12);display:flex;flex-direction:column;gap:7px;color:#171717}
.profile-menu.hidden{display:none!important}
.profile-menu b{font-size:13px;color:#171717}
.profile-menu span{font-size:11px;color:#737373;overflow-wrap:anywhere}
.profile-menu-line{height:1px;background:#eee;margin:4px 0}
.profile-menu .profile-menu-note{font-size:10px}
.signout-button{background:#fff;color:#171717;border:1px solid #d6d6d6;margin-top:5px;font-size:12px;border-radius:9px;padding:9px}
.credit-alert{display:none;margin:-5px 0 14px;padding:11px 13px;border-radius:11px;border:1px solid #e5d6a8;background:#fffaf0;color:#5b4b24;font-size:13px}
.credit-alert.show{display:block}
.nav,.navwrap{display:none!important}

/* Hero area */
.hero{background:#fff;color:#171717;border:1px solid var(--line);border-radius:20px;padding:23px;margin:0 0 18px;overflow:hidden}
.hero .eyebrow{display:inline-block;background:#f5f5f5;color:#525252;border:1px solid #e5e5e5;border-radius:30px;padding:5px 10px;font-size:11px;font-weight:800;letter-spacing:.5px}
.hero .pill{display:inline-block;background:#f5f5f5;color:#525252;border:1px solid #e5e5e5;border-radius:30px;padding:6px 11px;font-size:11px;font-weight:800;letter-spacing:.45px}
.hero h1{font-size:clamp(28px,5vw,40px);line-height:1.12;letter-spacing:-.8px;margin:14px 0 10px;color:#171717;font-weight:800}
.hero p{color:#666;max-width:720px;margin:0;line-height:1.6;font-size:15px}
.gradient,.hero h1 .gradient{color:#171717!important;background:none!important;-webkit-text-fill-color:#171717!important}
.chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}
.chip{font-size:11px;color:#525252;background:#f5f5f5;border:1px solid #e5e5e5;padding:6px 9px;border-radius:9px}
.notice{border:1px solid #e5e5e5;background:#f7f7f7;color:#525252;border-radius:13px;padding:12px 14px;font-size:12px;line-height:1.55;margin:0 0 18px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 2px 12px}
.section-head h2{font-size:20px;margin:0;color:#171717}
.section-head p{font-size:13px;color:#737373;margin:4px 0 0}
.count{font-size:12px;background:#171717;border:1px solid #171717;border-radius:10px;padding:8px 11px;color:#fff;white-space:nowrap}

/* Dashboard tool cards */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tool{display:flex;flex-direction:column;gap:0;min-width:0;min-height:190px;background:#fff;border:1px solid #e3e3e3;border-radius:18px;padding:14px;color:#171717;text-decoration:none;box-shadow:var(--shadow);transition:border-color .15s}
.tool:hover{border-color:#bdbdbd}
.tooltop{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:10px;min-width:0}
.toolicon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;background:#171717;border:1px solid #171717;border-radius:11px;color:#fff;font-size:18px}
.tag{display:inline-block;max-width:62%;font-size:9px;line-height:1.25;color:#555;background:#f4f4f4;border:1px solid #e9e9e9;border-radius:6px;padding:5px 6px;white-space:normal;text-align:center;font-weight:700}
.tool h3{font-size:13px;line-height:1.35;margin:3px 0 5px;color:#171717;font-weight:750}
.tool p{font-size:11px;line-height:1.5;color:#777;margin:0 0 12px}
.cta{display:flex;align-items:center;justify-content:center;text-align:center;margin-top:auto;border-radius:10px;padding:10px 8px;min-height:38px;background:#171717;color:#fff;font-size:11px;font-weight:800}

/* Panels, fields, forms */
.layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:16px;align-items:start}
.panel,.card,.video,.features,.feature,.settings,.result,.tips-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;margin:0 0 14px;color:#171717;box-shadow:none}
.panel h2,.card h2,.card h3,.settings h3{margin:0 0 12px;color:#171717}
.panel h2{font-size:20px}
.card h2,.card h3{font-size:16px}
.subtext,.help,.hint,.meta{color:#737373;font-size:12px;line-height:1.6}
.field{min-width:0;margin:0 0 16px}
label,.label{display:block;color:#292929;font-weight:700;margin:0 0 7px;font-size:13px}
input,select,textarea{display:block;width:100%;min-width:0;background:#fff;color:#171717;border:1px solid #d6d6d6;border-radius:11px;padding:12px 13px;font:inherit;box-shadow:none}
input::placeholder,textarea::placeholder{color:#a3a3a3;opacity:1}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid #888;outline-offset:2px}
input[type=file]{padding:10px;font-size:13px;background:#fff}
input[type=checkbox]{display:inline-block;width:auto;min-height:auto}
textarea{min-height:110px;resize:vertical;line-height:1.55}
select{appearance:auto}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
button,.button{border:1px solid #171717;border-radius:11px;padding:12px 15px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#171717;color:#fff;box-shadow:none}
button:hover,.button:hover{filter:brightness(.94)}
.primary,.submit,.btn{background:#171717;color:#fff;border:1px solid #171717;box-shadow:none}
.secondary,.button.secondary{background:#fff;border:1px solid #d6d6d6;color:#171717}
.danger{background:#fff;border:1px solid #d6d6d6;color:#171717}
.actions button{width:auto}
.wide,.submit{width:100%}
.switch{display:flex;gap:8px;margin-bottom:16px}
.switch button{flex:1;background:#fff;border:1px solid #d6d6d6;color:#171717}
.switch button.active{background:#171717;border-color:#171717;color:#fff}
.status{display:none;margin-top:10px;padding:10px 12px;border:1px solid #e5e5e5;border-radius:10px;background:#f7f7f7;color:#444;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.status.show,.status:not(:empty){display:block}
.status.error{background:#fff7f7;border-color:#f0d4d4;color:#8a2424}
.status.ok{background:#f5f5f5;border-color:#dedede;color:#333}
.status.info{background:#f7f7f7;border-color:#e5e5e5;color:#444}
.result{margin-top:18px;padding:0;overflow:hidden}
.result-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #eee;font-size:12px;font-weight:800}
.result textarea{border:0;border-radius:0;min-height:210px;background:#fff}
.preview{display:block;width:100%;max-height:380px;object-fit:contain;border-radius:12px;background:#f5f5f5;border:1px solid #e5e5e5;margin:10px 0}
.framegrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.frame{width:100%;border-radius:10px;border:1px solid #e5e5e5}
.settings{padding:16px;margin-top:20px}
.settings h3{font-size:15px}
.settings input{padding:12px}
.settings .help{font-size:12px}
.settings p{color:#737373}
#apiKey{background:#fff;color:#171717}
.credit-cost-note{font-size:11px;color:#555;margin:7px 0 0;line-height:1.4;flex:0 0 100%;width:100%}
button[id="go"],button[id="analyze"],button[id="generate"],button[id="template"]{white-space:normal;line-height:1.35}

/* Login landing page */
.page-login .brand{margin-bottom:24px}
.page-login .hero{border:0;border-radius:0;padding:7px 0 20px;margin-bottom:8px}
.page-login .hero h1{max-width:700px;font-size:clamp(30px,6vw,42px);letter-spacing:-.9px}
.page-login .hero p{font-size:16px;max-width:720px}
.page-login .layout{grid-template-columns:minmax(0,1fr);gap:14px}
.page-login .panel{padding:18px}
.page-login .features{padding:16px;margin:0 0 14px;background:#fff;border:1px solid #e5e5e5;border-radius:18px}
.page-login .feature{display:flex;gap:12px;align-items:flex-start;padding:12px;margin:0;border:0;border-bottom:1px solid #eee;border-radius:0}
.page-login .feature:last-child{border-bottom:0}
.page-login .feature b{display:block;color:#171717;font-size:13px;margin-bottom:3px}
.page-login .feature span{display:block;color:#737373;font-size:12px;line-height:1.5}
.page-login .feature-icon{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:10px;background:#f3f3f3;color:#171717}
.page-login .ad-slot{margin:14px 0 16px}
.page-login .footer{margin-top:18px}

/* Dola downloader */
.page-dola .hero{padding:22px;margin-bottom:16px}
.page-dola .hero h1{font-size:clamp(27px,5vw,38px)}
.page-dola .dns-card{background:#fff;border:1px solid #e5e5e5;border-radius:16px;padding:15px;margin:0 0 14px;color:#171717}
.page-dola .dns-card h2{font-size:16px;margin:0 0 8px;color:#171717}
.page-dola .dns-card p,.page-dola .dns-card li{color:#656565;font-size:12px;line-height:1.55}
.page-dola .dns-card ol{padding-left:20px;margin:8px 0}
.page-dola .dns-card .dns-note{font-size:11px;color:#737373;margin-bottom:0}
.page-dola .dns-link{color:#171717;font-weight:700}
.page-dola .section-heading{display:none}
.page-dola .inputrow{display:flex;gap:9px;align-items:stretch}
.page-dola .inputrow input{flex:1}
.page-dola .btn{white-space:normal}
.page-dola .video{padding:14px}
.page-dola .video video{display:block;width:100%;border-radius:12px;border:1px solid #e5e5e5}
.page-dola .open,.page-dola .download{background:#171717!important;color:#fff!important;border:1px solid #171717!important}
.page-dola .ad-slot{margin:14px 0}

/* Ads and footers */
.ad-slot{display:block;box-sizing:border-box;width:100%;min-height:86px;margin:18px 0;padding:14px 12px;border:1px solid #ededed;border-radius:16px;background:#f5f5f5;color:#737373;text-align:center;font:12px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.ad-slot .ad-label,.ad-slot>small{display:block;color:#737373;font-size:10px;letter-spacing:1px;text-transform:uppercase;margin-bottom:6px}
.adsterra-unit{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:8px auto;overflow:hidden}
.ad-space{display:block;box-sizing:border-box;width:100%;min-height:90px;margin:18px 0;padding:16px 14px;border:1px dashed #d6d6d6;border-radius:14px;background:#fafafa;color:#737373;text-align:center;font:12px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
.ad-space strong{display:block;color:#525252;font-size:13px;margin-bottom:4px}
.ad-space small{display:block;color:#888;font-size:11px}
.footer{margin-top:24px;text-align:center;color:#737373;font-size:11px;line-height:1.6}
.footer a,.links a{color:#525252;text-decoration:none}
.footer a:hover,.links a:hover{text-decoration:underline}
.links{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-bottom:10px}
.page-login .footer,.page-dashboard .footer{padding:0 4px}
.page-dashboard .hero,.page-dashboard .notice{display:none}
.page-dashboard .section-head{margin-top:6px}

/* Static information pages */
.page-contact,.page-terms,.page-privacy{background:#fff}
.page-contact main,.page-terms main,.page-privacy main{width:100%;max-width:760px;margin:0 auto;padding:24px 18px 44px}
.page-contact h1,.page-terms h1,.page-privacy h1{font-size:30px;line-height:1.2;margin:18px 0 14px}
.page-contact p,.page-terms p,.page-privacy p{color:#555;line-height:1.7}
.page-contact a,.page-terms a,.page-privacy a{color:#171717}
.page-contact .ad-slot,.page-terms .ad-slot,.page-privacy .ad-slot{margin:24px 0;padding:14px;border:1px solid #ededed;border-radius:14px;text-align:center;min-height:90px;color:#737373}

/* Responsive */
@media(min-width:760px){
  .page-login .layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .page-login .feature{border-bottom:1px solid #eee}
  .page-dashboard .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .wrap,main.wrap{padding:15px 14px 34px}
  .brand{font-size:19px;margin-bottom:17px}
  .brand .ct-logo{width:38px;height:38px}
  .accountbar{gap:8px;padding:8px 9px}
  .account-credit b{font-size:13px}
  .account-credit small{font-size:10px}
  .profile-button{padding:5px 7px}
  .profile-button-label{display:inline}
  .hero{padding:19px 17px;border-radius:17px}
  .hero h1{font-size:clamp(27px,7vw,34px);line-height:1.12}
  .page-login .hero{padding:4px 0 18px}
  .page-login .hero h1{font-size:clamp(30px,8vw,38px)}
  .panel,.card,.video,.settings{padding:15px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .tool{padding:12px;min-height:185px}
  .tool h3{font-size:12px}
  .tool p{font-size:10px}
  .tooltop{gap:5px}
  .toolicon{width:33px;height:33px;flex-basis:33px;font-size:16px}
  .tag{font-size:8px;padding:4px 5px}
  .cta{font-size:10px;padding:9px 6px}
  .two{grid-template-columns:minmax(0,1fr);gap:0}
  .actions button,.actions .button{flex:1 1 140px}
  .page-dola .inputrow{flex-direction:column}
  .page-dola .inputrow .btn{width:100%}
  .page-contact main,.page-terms main,.page-privacy main{padding:20px 16px 36px}
}
@media(max-width:370px){
  .grid{grid-template-columns:minmax(0,1fr)}
  .tool{min-height:160px}
  .profile-button-label{display:none}
  .account-credit b{font-size:12px}
  .switch{gap:6px}
}


.page-login .feature-icon{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:10px;background:#f3f3f3;color:#171717}
.page-login .feature-copy{flex:1;min-width:0}
.page-dola .tips-card{padding:15px;margin:16px 0;background:#fff}
.page-dola .tips-card h2{margin:0 0 9px;font-size:15px}
.page-dola .tips-list{padding-left:20px;margin:0;color:#555;font-size:12px;line-height:1.7}
.page-dola .dns-details{margin-top:10px;padding-top:9px;border-top:1px solid #eee;font-size:12px;color:#666}
.page-dola .dns-details summary{cursor:pointer;font-weight:700;color:#333}
.page-dola .dns-details ol{padding-left:20px}
.page-dola .dns-details a{color:#171717}

.page-login .feature .feature-icon{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:10px;background:#f3f3f3;color:#171717;font-size:17px;line-height:1}

/* Shared top-up action: consistent across all authenticated tool pages */
.topup-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:34px;padding:7px 11px;border:1px solid #171717;border-radius:10px;background:#171717;color:#fff;text-decoration:none;font-size:12px;font-weight:750;white-space:nowrap}
.topup-button:hover,.topup-button:focus-visible{background:#333;color:#fff;outline:2px solid #bdbdbd;outline-offset:2px}
.accountbar{flex-wrap:wrap}
@media(max-width:420px){.accountbar{gap:7px;padding:8px}.account-credit{flex:1 1 100%;}.topup-button{margin-left:auto}.profile-button{padding:5px 7px}}

/* Final monochrome tool icons matching the reference mockup */
.toolicon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;background:#171717!important;border:1px solid #171717!important;border-radius:11px;color:#fff!important;overflow:hidden}.toolicon svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.toolicon svg path,.toolicon svg rect,.toolicon svg circle{vector-effect:non-scaling-stroke}@media(max-width:700px){.toolicon{width:36px;height:36px;flex-basis:36px}.toolicon svg{width:21px;height:21px}}


/* Shared site header: full-width gray background, black bottom border */
.wrap{position:relative}
.wrap>.brand{
  display:flex;
  align-items:center;
  min-height:84px;
  width:100vw;
  box-sizing:border-box;
  margin:0 calc(50% - 50vw) 0;
  padding:16px max(20px,calc((100vw - 1000px)/2 + 16px));
  background:#f0f0f0;
  border-bottom:2px solid #171717;
}
.wrap>.brand>a{
  display:inline-flex;
  align-items:center;
  gap:18px;
  min-width:0;
  color:inherit;
  text-decoration:none;
}
.wrap>.brand .ct-logo{
  display:block;
  width:64px;
  height:64px;
  flex:0 0 64px;
  object-fit:contain;
  border-radius:14px;
}
.wrap>.brand span{
  color:#171717;
  font-size:clamp(20px,3vw,32px);
  font-weight:800;
  line-height:1.2;
}
.wrap>.accountbar{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
  position:relative;
}
.wrap>.accountbar>.profile-wrap{
  position:absolute;
  top:-96px;
  right:0;
  z-index:50;
}
.wrap>.accountbar>.account-credit{margin-right:auto}
.wrap>.accountbar>.topup-button{order:2}
.profile-menu{z-index:100}
@media(max-width:620px){
  .wrap,main.wrap{padding:0 14px 34px}
  .wrap>.brand{
    min-height:64px;
    padding:10px 14px;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
  }
  .wrap>.brand>a{gap:10px}
  .wrap>.brand .ct-logo{
    width:44px;
    height:44px;
    flex-basis:44px;
    border-radius:11px;
  }
  .wrap>.brand span{font-size:clamp(17px,4.6vw,22px)}
  .wrap>.accountbar>.profile-wrap{top:-76px}
}
@media(max-width:370px){
  .wrap>.brand{padding-left:10px;padding-right:10px}
  .wrap>.brand span{font-size:16px}
  .wrap>.brand .ct-logo{width:38px;height:38px;flex-basis:38px}
  .wrap>.accountbar>.profile-wrap{top:-72px}
}

/* FINAL CONSISTENT MONOCHROME POLISH */
.brand .ct-logo{width:40px;height:40px;border-radius:11px;object-fit:contain}
.hero .pill{
  display:inline-flex!important;align-items:center;gap:6px;
  width:max-content;max-width:100%;box-sizing:border-box;
  background:#f5f5f5!important;color:#525252!important;
  border:1px solid #dedede!important;border-radius:999px!important;
  padding:7px 12px!important;font-size:11px!important;font-weight:800!important;
  line-height:1.25!important;letter-spacing:.45px!important;
}
.settings h3{display:flex;align-items:center;gap:9px}
.settings-heading-icon{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:#171717;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}


/* FINAL VISUAL CONSISTENCY v6: monochrome feature and settings icons */
.page-login .feature-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:#f5f5f5;border:1px solid #ededed;border-radius:13px;color:#171717}
.page-login .feature-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.settings-heading-icon{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:#171717;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}


/* HEADER TOP-GAP FIX v8: remove wrapper spacing above the full-width header */
html, body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body {
  background: #ffffff;
}
.wrap, main.wrap {
  padding-top: 0 !important;
}
.wrap > .brand {
  margin-top: 0 !important;
  background: #f0f0f0 !important;
  border-bottom: 2px solid #171717 !important;
}
@media (max-width: 620px) {
  .wrap, main.wrap {
    padding-top: 0 !important;
  }
  .wrap > .brand {
    margin-top: 0 !important;
  }
}

