:root {    
  --bg: #f4f6fb;    
  --text: #222;    
  --card: #fff;    
  --accent: #4f5bff;    
  --border: #dcdfff;    

  --footer-bg:#222;
  --footer-text:#aaa;
}    
    
/* ===== DARK MODE ===== */    
@media (prefers-color-scheme: dark) {    
  :root {    
    --bg: #0f1115;    
    --text: #eaeaea;    
    --card: #232730;    
    --border: #3a3f8f;    

    --footer-bg:#000;
    --footer-text:rgba(255,255,255,0.7);
  }    
}    
    
/* ===== RESET ===== */    
* {    
  box-sizing: border-box;    
  font-family: Arial, sans-serif;    
  margin:0;
  padding:0;
}    

html,body{
  min-height:100%;
}
    
/* ===== BODY ===== */    
body {    
  background: var(--bg);    
  color: var(--text);    
  padding:0;
  padding-top:72px; /* ✅ navbar height fix */
}    
    
/* ===== NAVBAR ===== */
.navbar{
  position:fixed;        /* ✅ FIX */
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  background:rgba(0,0,0,0.35);
  backdrop-filter:blur(10px);
}

@media (prefers-color-scheme: dark){
  .navbar{
    background:rgba(0,0,0,0.6);
  }
}

.nav-container{
  max-width:1100px;
  margin:auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  color:#fff;
  font-size:18px;
  font-weight:bold;
  text-decoration:none;
}

/* ===== HAMBURGER BUTTON ===== */
.menu-btn{
  width:28px;
  height:22px;
  position:relative;
  cursor:pointer;
}

.menu-btn span{
  position:absolute;
  height:3px;
  width:100%;
  background:#fff;
  border-radius:2px;
  transition:0.3s;
}

.menu-btn span:nth-child(1){ top:0 }
.menu-btn span:nth-child(2){ top:9px }
.menu-btn span:nth-child(3){ top:18px }

/* ===== CROSS STATE ===== */
.menu-btn.active span:nth-child(1){
  transform:rotate(45deg);
  top:9px;
}
.menu-btn.active span:nth-child(2){
  opacity:0;
}
.menu-btn.active span:nth-child(3){
  transform:rotate(-45deg);
  top:9px;
}

/* ===== MENU ===== */
.nav-menu{
  display:none;
  flex-direction:column;
  background:rgba(0,0,0,0.95);
}

.nav-menu a{
  padding:14px 20px;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.nav-menu a:hover{
  background:rgba(255,255,255,0.1);
}

/* ===== DESKTOP ===== */
@media(min-width:768px){
  .menu-btn{display:none}

  .nav-menu{
    display:flex !important;
    flex-direction:row;
    background:none;
    justify-content:center;
    padding-bottom:10px;
  }

  .nav-menu a{
    border:none;
    padding:0 14px;
  }
}

/* ===== CONTAINER ===== */    
.container {    
  max-width: 900px;    
  margin: 20px auto;    
  background: var(--card);    
  padding: 20px;    
  border-radius: 14px;    
}    
    
h1 { text-align:center }    
.sub { text-align:center;font-size:14px;opacity:.8 }    
    
/* ===== BUTTON ===== */    
.btn {    
  background: var(--accent);    
  color: #fff;    
  border: none;    
  padding: 10px 16px;    
  border-radius: 6px;    
  cursor: pointer;    
  font-weight: bold;    
  margin: 5px 0;    
  display: inline-block;    
  text-decoration: none;    
}    
    
/* ===== UPLOAD BOX ===== */    
.upload-box {    
  border: 2px dashed var(--accent);    
  padding: 20px;    
  text-align: center;    
  margin: 20px 0;    
  border-radius: 10px;    
}    
    
input { display:none }    
    
/* ===== TABS ===== */    
.tabs {    
  display: flex;    
  justify-content: center;    
  gap: 10px;    
  margin: 15px 0;    
}    
    
.tab {    
  padding: 8px 14px;    
  border: 1px solid var(--border);    
  background: none;    
  color: var(--text);    
  cursor: pointer;    
  border-radius: 6px;    
}    
    
.tab.active {    
  background: var(--accent);    
  color: #fff;    
}    
    
.panel { display:none }    
.panel.active { display:block }    
    
#processing {    
  text-align:center;    
  color:var(--accent);    
  display:none;    
  margin:10px 0;    
}    
    
.image-box {    
  margin:15px 0;    
  text-align:center;    
}    
    
.image-box img {    
  width:100%;    
  max-width:100%;    
  height:auto;    
  display:block;    
  margin:0 auto 8px;    
}    
    
.preview img {    
  max-width:100%;    
  border:1px solid var(--border);    
  border-radius:8px;    
}    
    
.seo-text {    
  margin-top:30px;    
  font-size:15px;    
  line-height:1.6;    
  background:var(--card);    
  padding:20px;    
  border-radius:10px;    
  border:1px solid var(--border);    
}    
    
    
    
    
/* ===== FOOTER ===== */
footer{
  background:var(--footer-bg);
  color:var(--footer-text);
  text-align:center;
  padding:15px;
  font-size:15px;
  width:100%;
  margin-top:30px;
}

footer a{
  color:var(--footer-text);
  text-decoration:none;
  margin:0 6px;
}

footer a:hover{
  text-decoration:underline;
}

/* ===== RESPONSIVE ===== */    
@media (max-width:600px) {    
  body { padding-top:72px }    
  .container { padding:16px }    
}