* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Verdana, Geneva, sans-serif;
  color: #234;
  overflow-x: hidden;
}

/* drifting clouds (subtle overlay over wallpaper) */
#clouds {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(closest-side, rgba(255,255,255,.35), rgba(255,255,255,0) 70%),
    radial-gradient(closest-side, rgba(255,255,255,.28), rgba(255,255,255,0) 70%);
  background-size: 340px 160px, 260px 130px;
  background-position: -200px 12%, 60% 6%;
  background-repeat: no-repeat;
  animation: drift 60s linear infinite;
}
@keyframes drift {
  from { background-position: -200px 12%, 60% 6%; }
  to   { background-position: 110% 12%, 180% 6%; }
}

.app-shell {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto; padding: 22px 14px 60px;
}

/* header */
.app-header { text-align: center; margin-bottom: 18px; }
.app-logo {
  display: inline-block;
  font-weight: 900; line-height: 1;
  text-shadow: 0 2px 0 rgba(255,255,255,.6), 0 3px 8px rgba(0,60,120,.35);
}
.logo-mono {
  font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  font-size: 1.6rem; color: #2b6fd0;
  background: linear-gradient(#eaf7ff,#fff); padding: 2px 8px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.8);
}
.logo-big { font-size: 2.4rem; color: #3c7a20; letter-spacing: -1px; }
.app-tag {
  margin-top: 10px; font-weight: 300; font-size: .95rem; color: #1c4a30;
  background: rgba(255,255,255,.55); display: inline-block;
  padding: 6px 14px; border-radius: 20px; backdrop-filter: blur(4px);
}

/* glossy card look */
.control-panel, .loading-panel, .preview-wrap, .history {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(20,60,110,.28), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  padding: 16px; margin-bottom: 18px;
}

.cp-label { display:block; font-weight:700; font-size:.85rem; color:#2b6fd0; margin-bottom:6px; letter-spacing:.5px; text-transform:uppercase; }
.cp-input {
  width: 100%; resize: vertical;
  font-family: 'Tahoma', sans-serif; font-size: 1rem;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid #a9c7e6;
  background: linear-gradient(#f0f7ff,#fff);
  box-shadow: inset 0 2px 5px rgba(20,60,110,.15);
  outline: none;
}
.cp-input:focus { border-color: #4a9f2f; box-shadow: inset 0 2px 5px rgba(20,60,110,.15), 0 0 0 3px rgba(120,200,90,.35); }

.cp-flavors { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.flavor-btn {
  font-family:'Rubik',sans-serif; font-size:.8rem; font-weight:700;
  padding:6px 12px; border-radius:20px; cursor:pointer;
  border:1px solid #9cc; background:linear-gradient(#fff,#e8f2ff); color:#356;
  transition:transform .1s;
}
.flavor-btn:hover { transform:translateY(-1px); }
.flavor-active { background:linear-gradient(#bfe7a8,#7fc44a); color:#1c3a10; border-color:#5aa02f; box-shadow:0 2px 8px rgba(90,160,47,.4); }

/* ---- Customization studio ---- */
.custom-studio {
  margin:12px 0; padding:12px; border-radius:12px;
  background:linear-gradient(#f4faff,#e6f2ff);
  border:1px solid #cfe0f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.custom-studio .cp-label { margin-bottom:10px; }
.custom-row {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-bottom:10px;
}
.custom-row:last-child { margin-bottom:0; }
.custom-tag {
  flex:0 0 82px; font-size:.72rem; font-weight:700; color:#2b6fd0;
  text-transform:uppercase; letter-spacing:.5px;
}
.font-chips { display:flex; gap:6px; flex-wrap:wrap; flex:1; }
.font-chip {
  font-size:.78rem; padding:5px 10px; border-radius:8px; cursor:pointer;
  border:1px solid #a9c7e6; background:linear-gradient(#fff,#eaf4ff); color:#356;
  transition:transform .1s;
}
.font-chip:hover { transform:translateY(-1px); }
.font-chip-on {
  background:linear-gradient(#bfe7a8,#7fc44a); color:#1c3a10;
  border-color:#5aa02f; box-shadow:0 2px 6px rgba(90,160,47,.4);
}
.custom-toggle {
  font-size:.78rem; color:#356; cursor:pointer; display:inline-flex;
  align-items:center; gap:4px; font-weight:600;
}
.custom-toggle input { accent-color:#5aa02f; }
.color-pick {
  width:38px; height:30px; padding:0; border:1px solid #a9c7e6;
  border-radius:8px; cursor:pointer; background:#fff;
}
.color-pick:disabled { opacity:.4; cursor:not-allowed; }
.color-preview {
  width:44px; height:26px; border-radius:8px;
  border:1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 5px rgba(20,60,110,.3);
}
.custom-slider { flex:1; min-width:120px; accent-color:#2b6fd0; }
.custom-val {
  font-family:'IBM Plex Mono',monospace; font-size:.72rem; font-weight:600;
  color:#2b6fd0; min-width:40px; text-align:right;
}

.cp-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.gen-btn {
  flex: 1 1 auto; min-width: 200px;
  font-family:'Rubik',sans-serif; font-weight:900; font-size:1.1rem; letter-spacing:.5px;
  color:#fff; text-shadow:0 -1px 1px rgba(0,50,0,.4);
  padding:14px 18px; border:1px solid #3c7a20; border-radius:12px; cursor:pointer;
  background:linear-gradient(#c6f09a 0%,#8fd45f 45%,#5aa02f 55%,#4a8f22 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 12px rgba(70,140,30,.5);
  animation: pulse 2.4s ease-in-out infinite;
}
.gen-btn:hover { filter:brightness(1.06); }
.gen-btn:disabled { opacity:.6; cursor:wait; animation:none; }
@keyframes pulse {
  0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 12px rgba(70,140,30,.5); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 22px rgba(90,200,40,.75); }
}
.reroll-btn {
  font-family:'Rubik',sans-serif; font-weight:700; font-size:.85rem;
  padding:10px 14px; border-radius:10px; cursor:pointer;
  border:1px solid #6aa; color:#245; background:linear-gradient(#eaf7ff,#c9e6ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 6px rgba(40,90,150,.35);
}
.reroll-btn:hover { filter:brightness(1.05); }

.errbox {
  margin-top:12px; padding:10px 12px; border-radius:10px;
  background:#fff0f0; border:1px solid #f0a0a0; color:#a02020; font-size:.85rem;
}

/* loading */
.loading-panel { text-align:center; }
.load-msg {
  font-family:'Segoe UI', Tahoma, sans-serif; font-size:.95rem;
  color:#204a86; margin-bottom:12px; font-weight:400;
}

/* Windows XP style segmented green progress bar (ref image 4) */
.xp-progress {
  height:19px; width:100%;
  border:1px solid #a0a0a0;
  border-radius:3px;
  background:#e9e9e9;
  box-shadow: inset 1px 1px 1px rgba(0,0,0,.18), inset -1px -1px 0 rgba(255,255,255,.6);
  padding:2px;
  overflow:hidden;
}
.xp-progress-fill {
  height:100%;
  transition: width .3s linear;
  /* vertical glossy green + vertical segment separators */
  background-image:
    /* segment gaps */
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0) 0 9px,
      rgba(233,233,233,1) 9px 11px),
    /* glossy vertical gradient */
    linear-gradient(180deg,
      #b6f39a 0%, #6ecb3c 40%, #2f8f16 55%, #57bd2f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  border-radius:1px;
}

/* Background / wallpaper chooser */
.bg-chooser { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 4px; }
.bg-thumb {
  position:relative; width:96px; height:58px; border-radius:6px; cursor:pointer;
  background-size:cover; background-position:center;
  border:2px solid rgba(255,255,255,.85);
  box-shadow:0 2px 6px rgba(20,60,110,.35);
  overflow:hidden; padding:0;
  transition:transform .1s;
}
.bg-thumb:hover { transform:translateY(-2px); }
.bg-active { border-color:#2b6fd0; box-shadow:0 0 0 2px #2b6fd0, 0 2px 8px rgba(43,111,208,.5); }
.bg-thumb-label {
  position:absolute; left:0; right:0; bottom:0;
  font-size:.62rem; font-weight:700; color:#fff;
  background:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.65));
  padding:8px 4px 2px; text-align:center;
  font-family:'Segoe UI', Tahoma, sans-serif;
}

/* ============ BROWSER WINDOW ============ */
.preview-wrap { padding:12px; overflow:hidden; }
.browser {
  border-radius:12px; overflow:hidden;
  border:1px solid rgba(120,170,220,.7);
  box-shadow:0 6px 22px rgba(20,60,110,.4);
  background:#fff;
}
.titlebar {
  display:flex; align-items:center; justify-content:center; position:relative;
  height:30px; color:#fff; font-size:.8rem; text-shadow:0 1px 1px rgba(0,40,90,.6);
  border-bottom:1px solid rgba(255,255,255,.4);
}
.winctrls { position:absolute; right:6px; display:flex; gap:4px; }
.wc {
  width:22px; height:18px; line-height:18px; text-align:center; font-size:.7rem;
  background:linear-gradient(#eaf5ff,#b8d8f5); color:#245; border-radius:4px;
  border:1px solid rgba(255,255,255,.7); cursor:default;
}
.wc-close { background:linear-gradient(#ff8a7a,#e03b28); color:#fff; }

.addrbar {
  display:flex; align-items:center; gap:6px; padding:6px 8px;
  background:linear-gradient(#eaf4ff,#d0e6fb); border-bottom:1px solid #b8d0ea;
}
.navarrow {
  width:30px; height:26px; line-height:24px; text-align:center; font-weight:700; color:#2b6fd0;
  border-radius:14px; border:1px solid #9cc;
  background:linear-gradient(#fff,#cfe6ff); box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.urlfield {
  flex:1; height:26px; line-height:24px; padding:0 10px; font-size:.78rem; color:#356;
  border-radius:13px; border:1px solid #a9c7e6; background:#fff;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
.gobtn {
  width:30px; height:26px; line-height:24px; text-align:center;
  border-radius:13px; border:1px solid #9cc; background:linear-gradient(#fff,#cfe6ff);
}

.bookmarks {
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  padding:5px 10px; font-size:.72rem; color:#3c7a20; font-weight:700;
  background:linear-gradient(#f4fbef,#e6f4dd); border-bottom:1px solid #cfe6bd;
}

.tabs { display:flex; gap:3px; padding:5px 8px 0; background:linear-gradient(#dcecfa,#cfe4f7); }
.tab {
  padding:6px 14px; font-size:.78rem; color:#356; cursor:pointer;
  border:1px solid #a9c7e6; border-bottom:none; border-radius:8px 8px 0 0;
  background:linear-gradient(#e6f2ff,#c9def5); text-transform:lowercase;
}
.tab-active { color:#2b5fb0; font-weight:700; box-shadow:0 -2px 4px rgba(20,60,110,.1); position:relative; top:1px; }

.marquee-wrap { overflow:hidden; background:#fffbe6; border-bottom:1px solid #eede9a; }
.marquee {
  white-space:nowrap; font-size:.78rem; color:#a86b0c; font-weight:700;
  padding:4px 0; animation: scroll 16s linear infinite;
}
@keyframes scroll { from { transform:translateX(100%); } to { transform:translateX(-100%); } }

.sitebody { display:flex; background:#fff; }
.sidebar {
  width:150px; flex-shrink:0; padding:12px; text-align:center;
  background:linear-gradient(#f6fbff,#e8f4ff); border-right:1px solid #dbe8f5;
}
.avatar-frame {
  width:118px; height:118px; margin:0 auto 8px; border-radius:12px; overflow:hidden;
  border:3px solid #fff; box-shadow:0 3px 10px rgba(40,90,150,.35);
  background:linear-gradient(#d8f0c8,#a0d878);
  display:flex; align-items:center; justify-content:center;
}
.avatar-img { width:100%; height:100%; object-fit:cover; }
.avatar-ph { font-size:3rem; opacity:.6; }
.site-title { font-weight:900; font-size:1.35rem; line-height:1.05; }
.site-sub { font-size:.8rem; color:#79a; margin-bottom:12px; }
.status-list { text-align:left; margin-bottom:14px; }
.status-row { display:flex; gap:6px; align-items:baseline; margin-bottom:5px; font-size:.82rem; }
.status-icon { font-size:.9rem; }
.status-label { font-weight:700; }
.socials { display:flex; gap:8px; justify-content:center; }
.social-btn {
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; color:#fff; border:2px solid #fff; box-shadow:0 2px 6px rgba(40,90,150,.35);
}

.maincol { flex:1; padding:14px 16px; min-width:0; }
.page-title { font-weight:300; font-size:1.7rem; margin-bottom:10px; text-shadow:0 1px 0 rgba(255,255,255,.7); }
.hero {
  width:100%; height:190px; border-radius:8px; overflow:hidden; margin-bottom:12px;
  border:1px solid #cfe0f0; box-shadow:0 2px 8px rgba(40,90,150,.25);
  background:linear-gradient(#bfe7ff,#d9f4c8); display:flex; align-items:center; justify-content:center;
}
.hero-img { width:100%; height:100%; object-fit:cover; }
.hero-ph { font-size:.85rem; color:#3c7a90; }
.lead { font-size:.85rem; line-height:1.5; color:#456; margin-bottom:12px; }
.boxes { display:flex; gap:10px; flex-wrap:wrap; }
.ibox {
  flex:1 1 45%; min-width:140px; font-size:.78rem; line-height:1.45; color:#567;
  background:linear-gradient(#f6fbff,#eef6ff); border:1px solid #dbe8f5;
  border-radius:6px; padding:8px 10px;
}
.ibox-title { font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:.72rem; }
.construction {
  margin-top:14px; text-align:center; font-size:.78rem; font-weight:700; color:#c47a00;
  background:repeating-linear-gradient(45deg,#ffd24d 0 12px,#333 12px 24px);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity:.35; } }

.sitefooter {
  display:flex; align-items:center; gap:8px; padding:8px 10px;
  background:linear-gradient(#eaf4ff,#d0e6fb); border-top:1px solid #b8d0ea;
}
.globe { font-size:1.3rem; }
.tray { margin-left:auto; font-size:.9rem; opacity:.8; }

.glossy-btn {
  flex:1; padding:9px 8px; border-radius:20px; border:1px solid rgba(255,255,255,.6);
  color:#fff; font-family:'Rubik',sans-serif; font-weight:700; font-size:.9rem;
  text-shadow:0 1px 1px rgba(0,40,90,.5); cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 2px 6px rgba(20,60,110,.35);
}

.madewith { text-align:center; padding:6px; font-size:.72rem; color:#8aa; font-style:italic; background:#f4f8fc; }

/* history */
.history-title { font-weight:700; color:#2b6fd0; font-size:.9rem; margin-bottom:10px; }
.history-list { display:flex; flex-direction:column; gap:6px; }
.history-item {
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  text-align:left; padding:8px 12px; border-radius:8px; cursor:pointer;
  border:1px solid #cfe0f0; background:linear-gradient(#f6fbff,#eaf4ff);
}
.history-item:hover { border-color:#5aa02f; background:linear-gradient(#f0fbe8,#e0f4d0); }
.hi-title { font-weight:700; color:#345; font-size:.85rem; }
.hi-domain { font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:#79a; }

/* footer */
.app-footer { text-align:center; font-size:.8rem; color:#1c4a30; }
.visitor {
  display:inline-block; font-family:'IBM Plex Mono',monospace; font-weight:600;
  background:#000; color:#0f0; padding:3px 10px; border-radius:4px; margin-bottom:8px;
  border:1px solid #333; letter-spacing:2px;
}
.app-footer a { color:#2b6fd0; font-weight:700; text-decoration:none; }
.app-footer a:hover { text-decoration:underline; }

@media (max-width:560px) {
  .sitebody { flex-direction:column; }
  .sidebar { width:100%; border-right:none; border-bottom:1px solid #dbe8f5; }
  .logo-big { font-size:1.8rem; }
  .logo-mono { font-size:1.2rem; }
  .gen-btn { min-width:100%; }
}