:root {
    --js-bg: #EDEDED;
    --js-header-bg: #2b2b2b;
    --js-primary: #008374;
    --js-primary-soft: #0aa790;
    --js-primary-dark: #026655;
    --js-secondary-dark: #313131;
    --js-accent: #F6B925;
    --js-card-bg: #ffffff;
    --js-chip-bg: #f9fafb;
    --js-border: #dddddd;
    --js-border-soft: #e5e7eb;
    --js-text-main: #1f2937;
    --js-text-muted: #6b7280;
    --yellow: #f6bb26;
    --teal-light: #008d7f;

    /* px ? em converted */
    --radius-lg: 1em;
    /* 16px */
    --radius-md: 0.875em;
    /* 14px */
    --radius-pill: 62.4375em;
    /* 999px */

    --shadow-soft: 0 0.125em 0.375em rgba(15, 23, 42, .05);
    --shadow-hover: 0 0.625em 1.5625em rgba(15, 23, 42, .16);

    --font-main: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    --ui-scaling: 0.8333vw;
}


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

#topLoader {
    position: fixed;
    top: 0;
    left: 0;
    height: 0.4em;
    width: 0%;
    background: var(--yellow);
    z-index: 999999;
    transition: width 0.4s ease;
}

.custom-scale-wrapper {
    font-size: var(--ui-scaling);
    width: 100%;
}

@media (max-width: 1000px) {
    .custom-scale-wrapper {
        font-size: 10px;
    }
}

@media (min-width: 7680px) {
    .custom-scale-wrapper {
        font-size: 64px;
    }
}

.ico {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.ico {
    font-size: 1em;
    line-height: 1;
}


html,
body {
    height: 100%
}


body {
    font-family: var(--font-main);
    background: var(--js-bg);
    color: var(--js-text-main);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit
}

.hero {
    background: var(--js-primary);
    padding: 3em 1.5em; 
    padding-bottom: 5em; 
    text-align: center;
    color: #ffffff;
}
.hero .icon-circle{
    width: 3em;
    height: 3em;
    border-radius: 0.6em;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 .25em .75em rgba(15, 23, 42, .12);
    flex-shrink: 0;
}
.hero .icon-circle i{
    font-size: 1.5em;
}
.heading-tile{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}
.hero-inner {
    /* Responsive width using em */
    max-width: 75em; /* approx 1200px */
    width: 92%;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.25em;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.hero p {
    opacity: 0.9;
    font-size: 1.4em;
    color: #fff; 
    font-weight: 600;
    margin-top: 0.75em;
    line-height: 1.4;
}

.hero-inner p {
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
}
/* ==========  stepper  ============ */
/* =========================================================
   PROGRESS & CARD (Scaled for --ui-scaling)
   ========================================================= */
.post-stepper-wrap{
    padding-inline: 17em;
    margin-top: -2em;
}

.progress-container {
    background: var(--js-card-bg);
    border-radius: var(--radius-lg);
    padding: 1.25em;
    border: 0.125em solid var(--js-border); /* 2px relative */
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5em;
}

.progress-bar {
    background: var(--js-border);
    border-radius: var(--radius-pill);
    height: 0.5em;
    overflow: hidden;
    margin-bottom: 1.5em;
}

.progress-fill {
    background: var(--js-primary);
    height: 100%;
    width: 25%;
    border-radius: var(--radius-pill);
    transition: width .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-indicator {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75em;
    align-items: start;
}

.step-item {
    text-align: center;
    color: var(--js-text-muted);
    font-size: 1.1em;
    display: grid;
    gap: 0.4em;
    font-weight: 700;
    user-select: none;
    transition: color 0.3s ease;
}

.step-number {
    width: 2.8em;
    height: 2.8em;
    border-radius: var(--radius-pill);
    background: var(--js-border-soft);
    margin: 0 auto;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--js-text-main);
    font-size: 1.23em;
    transition: all 0.3s ease;
}
.step-number-label{
    font-size: 1.23em;
    font-weight: bold;
}
.step-item.active { 
    color: var(--js-primary); 
    font-weight: 800; 
}

.step-item.completed { 
    color: var(--js-primary-soft); 
}

.step-item.active .step-number,
.step-item.completed .step-number { 
    background: var(--js-primary); 
    color: #fff; 
    box-shadow: 0 0.25em 0.75em rgba(0, 131, 116, 0.2);
}

/* =========================================================
   CARD + COMMON
   ========================================================= */
.card {
    background: var(--js-card-bg);
    border-radius: var(--radius-lg);
    padding: 2em;
    border: 0.125em solid var(--js-border-soft);
    box-shadow: var(--shadow-soft);
    min-height: 28em; /* Scaled height */
}

.subtitle {
    color: var(--js-text-muted);
    margin-top: 0.1em;
    margin-bottom: 1.25em;
    font-size: 1.05em;
    line-height: 1.5;
    font-weight: 700;
}

.step-content { 
    display: none; 
    position: relative; 
    font-size: 1.2em;
}

.step-content.active { 
    display: block; 
    animation: fadeIn 0.3s ease-out; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(0.8em); }
    to { opacity: 1; transform: none; }
}

/* Mobile Responsiveness for Progress */
@media (max-width: 600px) {
    .steps-indicator {
        display: flex;
        gap: 1em;
        overflow-x: auto;
        padding-bottom: 0.5em;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for clean UI */
    }
    .steps-indicator::-webkit-scrollbar { display: none; }
    .step-item { min-width: 6em; }
    .step-number {
    width: 2.5em;
    height: 2.5em;
    font-size: 1em;
}
.step-number-label {
    font-size: 1em;
}
.steps-indicator {
    gap: 0.6em;
    justify-content: space-around;
}
}







/* =========================================================
   STEP 1 (Ad Type Grid)
   ========================================================= */
.ad-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25em;
}

@media (max-width: 820px) { .ad-type-grid { grid-template-columns: 1fr; } }
.step-content h2{
  font-weight: 700;
  font-size: 1.8em;
}
.ad-type-card {
    border: 0.275em solid var(--js-border);
    border-radius: var(--radius-lg);
    padding: 1.5em 1em;
    text-align: center;
    cursor: pointer;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--js-card-bg);
    position: relative;
}

.ad-type-card:hover {
    border-color: var(--js-primary);
    transform: translateY(-0.25em);
    box-shadow: var(--shadow-hover);
}

.ad-type-card.selected {
    border-color: var(--js-primary);
    background: rgba(0, 131, 116, 0.05);
}

.ad-type-icon {
    font-size: 2.5em;
    margin-bottom: 0.3em;
}
.ad-type-title {
    font-weight: 800;
    font-size: 1.425em;
    color: var(--js-text-main);
    margin-bottom: 0.25em;
}

.ad-type-desc {
    color: var(--js-text-muted);
    font-size: 1.1em;
    font-weight: 700;
}
.ad-type-price {
    font-size: 1.25em;
    font-weight: 800;
    color: var(--js-accent);
    margin-top: 0.6em;
}

.icon-box {
    width: 3em;
    height: 3em;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    margin: 0 auto;
    font-weight: 900;
    font-size: 0.6em;
}
.icon-box i{
    font-size: 2em;
    color: var(--js-accent);
}
.icon-box.blue { background: #0066CC; color: #fff; }
.type-icon-circle {
    width: 3em;
    height: 3em;
    border-radius: 0.6em;
    background: var(--teal-light);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 .25em .75em rgba(15, 23, 42, .12);
    flex-shrink: 0;
}
.type-title-badge {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: .15em;
    padding: 0.5426em .97em;
    border-radius: 999em;
    border: 1px solid var(--js-border);
    color: var(--js-primary-dark);
    background-color: #f0f7ff;
    text-wrap: nowrap;
    width: max-content;
    min-width: 40%;
}
.type-badge {
    padding: 0.5426em .97em;
    border-radius: 999em;
    border: 1px solid var(--js-border);
    font-size: .9em;
    line-height: .9em;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff;
    color: var(--js-primary-dark);
    white-space: nowrap;
    position: absolute;
    left: 1em;
    top: 1em;
}
.type-badge.yellow{
    color: var(--js-accent);
    border-color: var(--js-accent);
}
.type_card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    position: relative;
}
.ad-type-card-link a{
    font-size: 1.2em;
    font-weight: 600;
    color: var(--teal-light);
    border-bottom: 0.2em solid transparent;
    transition: 0.3s ease-in-out;
}
.ad-type-card-link a:hover{
        border-bottom: 0.2em solid var(--teal-light);
}
/* =========================================================
   FORMS & INPUTS
   ========================================================= */
.form-group { margin-bottom: 1.25em; }

input, textarea, select {
    width: 100%;
    padding: 0.8em 1em;
    border: 0.125em solid var(--js-border);
    border-radius: var(--radius-md);
    font-size: 0.95em;
    background: #fff;
    transition: 0.2s;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--js-text-main);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--js-primary);
    box-shadow: 0 0 0 0.25em rgba(0, 131, 116, 0.1);
}

textarea { min-height: 8.75em; resize: vertical; }

/* =========================================================
   BUTTONS
   ========================================================= */
.buttons { 
    display: flex; 
    gap: 0.75em; 
    margin-top: 1.5em; 
    flex-wrap: wrap; 
}

.btn {
    padding: 1em 2em;
    border: none;
    border-radius: 3em;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    cursor: pointer;
    transition: 0.16s;
    white-space: nowrap;
    box-shadow: 0 0.625em 1.375em rgba(15, 23, 42, .22);
}

.btn-primary {
    background: var(--teal-light);
    color: #fff;
    box-shadow: 0 0.25em 1em rgba(38, 95, 92, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--js-primary-soft);
    transform: translateY(-0.1em);
    box-shadow: 0 0.25em 1em rgba(38, 95, 92, 0.3);
}

.btn-secondary {
    background: #313131;
    color: #fff;
}
.btn-secondary:hover {
    background: #313131;
    transform: translateY(-0.2em);
    opacity: 0.99999;
}
.btn:disabled {
    background: var(--js-border);
    color: var(--js-text-muted);
    cursor: not-allowed;
    box-shadow: none;
}
#step1 .btn-primary{
    width: 100%;
}
.form-button{
    display: grid;
    grid-template-columns: 1fr 1fr 3fr;
}
/* =========================================================
   PROMOTIONS & TOTAL
   ========================================================= */
.promo-row {
    background: #fff;
    border: 0.125em solid var(--js-border);
    border-radius: var(--radius-md);
    padding: 1.25em;
    display: grid;
    gap: 0.75em;
    transition: 0.2s;
}

.promo-row.active {
    border-color: var(--js-primary);
    box-shadow: var(--shadow-soft);
}

.promo-price {
    font-weight: 800;
    color: var(--js-accent);
    font-size: 1.25em;
}

.total-section {
    background: var(--js-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5em;
    margin-top: 1.5em;
    text-align: center;
}

.total-amount {
    font-size: 2.5em;
    font-weight: 900;
}

/* =========================================================
   IMAGE UPLOAD & PREVIEW
   ========================================================= */
.image-upload {
    border: 0.2em dashed var(--js-border);
    border-radius: var(--radius-lg);
    padding: 2em;
    text-align: center;
    cursor: pointer;
    background: var(--js-chip-bg);
    transition: 0.2s;
}

.image-upload:hover {
    border-color: var(--js-primary);
    background: #fff;
}

.image-preview-item {
    position: relative;
    border: 0.125em solid var(--js-border);
    border-radius: var(--radius-md);
    height: 10em;
    padding: 0.25em;
    overflow: hidden;
}
.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5em;
}
.img-del {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    width: 2.2em;
    height: 2.2em;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1em;
    cursor: pointer;
}

 .image-upload input{display:none;}
 .image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8em, 1fr));
    gap: 1em;
    margin-top: 1em;
}
/* =========================================================
   MODALS
   ========================================================= */
.modal {
    width: min(35em, 96vw);
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5em;
    box-shadow: var(--shadow-hover);
}
input,select{
      width: 100%;
  padding: 0.85em 1em;
  border-radius: 0.75em;
  font-size: 1.1em;
  outline: none;
}
input:focus,select:focus {
  border-color: var(--primary);
}
.form-group label {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.3em;
  display: block;
  color: var(--black);
}

/* =========================================================
   PROMOTIONS (Balanced Scale)
   ========================================================= */
.promo-list {
    display: grid; 
    gap: 1em; /* 1.25em se halka kam */
}

.promo-row {
    background: #fff;
    border: 0.125em solid var(--js-border); /* 0.15em se 0.125em (Standard) */
    border-radius: var(--radius-md);
    padding: 1.25em; /* 1.5em se halka kam */
    display: grid;
    gap: 0.75em;
    cursor: pointer;
    transition: 0.25s ease;
}

.promo-row:hover {
    border-color: var(--js-primary-soft);
}

.promo-row.active {
    border-color: var(--js-primary);
    box-shadow: 0 0.5em 1.25em rgba(0, 131, 116, 0.1);
    background: rgba(0, 131, 116, 0.02);
}

.promo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
}

.promo-left {
    display: flex;
    align-items: flex-start;
    gap: 0.8em;
    min-width: 14em; /* 15em se kam */
}

.promo-check {
    width: 1.3em; /* 1.5em se halka chhota */
    height: 1.3em;
    accent-color: var(--js-primary);
    margin-top: 0.15em;
    cursor: pointer;
}

.promo-title {
    font-weight: 800;
    color: var(--js-text-main);
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 0.2em;
}
.promo-icon {
    margin-right: 0.1em;
    background-color: var(--js-secondary-dark);
    width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.1em solid var(--js-accent);
    border-radius: 10em;
}
.promo-icon img {
    width: 1em;
    aspect-ratio: 1/ 1;
    height: 100%;
    object-fit: contain;
}
.promo-sub {
    color: var(--js-text-muted);
    font-size: 0.95em; /* 1em se refined */
    margin-top: 0.2em;
    line-height: 1.4;
}

.promo-price {
    font-weight: 800;
    color: var(--js-accent);
    font-size: 1.25em; /* 1.4em se compact */
    margin-left: auto;
}

/* Settings area intact */
.promo-settings {
    display: none;
    border-top: 0.1em solid var(--js-border-soft);
    padding-top: 1em;
    gap: 1em;
    cursor: default;
}

.promo-row.active .promo-settings {
    display: grid;
}

/* Radio buttons intact */
.radio-group {
    display: flex;
    gap: 1.25em;
    flex-wrap: wrap;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 1.15em;
    height: 1.15em;
    accent-color: var(--js-primary);
}

.promo-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75em;
    align-items: center;
}


/* Pills intact */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: rgba(0, 131, 116, 0.08);
    border: 0.08em solid rgba(0, 131, 116, 0.15);
    color: var(--js-primary);
    font-weight: 800;
    padding: 0.5em 1em;
    border-radius: 62.5em;
    font-size: 0.9em;
    white-space: nowrap;
}

.promo-hint {
    color: var(--js-text-muted);
    font-size: 0.9em;
    line-height: 1.5;
}
.promo-title i.feature{
        color: #8bc9ff;
}
.promo-title i.boost{
     color: #dc3545;
}
.promo-title i.star,
.promo-title i.urgent{
            color: var(--js-accent);
}
/* =========================================================
   TOTAL SECTION (Refined View)
   ========================================================= */
.total-section {
    background: var(--js-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5em 1.25em; /* 2em se kam */
    margin-top: 1.5em;
    text-align: center;
    display: none;
    box-shadow: 0 0.4em 1.25em rgba(0, 131, 116, 0.15);
}

.total-section.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(0.8em); }
    to { opacity: 1; transform: none; }
}

.total-label {
    opacity: 0.9;
    margin-bottom: 0.4em;
    font-size: 1.1em;
    font-weight: 700;
}

.total-amount {
    font-size: 2.5em; /* 3em se compact but clear */
    font-weight: 900;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}
/* =========================================================
    REVIEW (Balanced Scaling)
    ========================================================= */
.preview-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5em; /* Balanced padding */
    border: 0.125em solid var(--js-border);
}

.preview-title {
    font-size: 1.6em; /* Balanced heading size */
    font-weight: 900;
    color: var(--js-text-main);
    margin-bottom: 0.4em;
}

.preview-price {
    font-size: 1.5em;
    font-weight: 900;
    color: var(--js-primary);
    margin-bottom: 0.6em;
}

.preview-desc {
    color: var(--js-text-muted);
    line-height: 1.5;
    font-size: 1em;
    margin-bottom: 1em;
}

.preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    padding-top: 1em;
    border-top: 0.1em solid var(--js-border-soft);
}

.preview-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: var(--js-text-muted);
    font-size: 0.95em;
    font-weight: 700;
}

/* =========================================================
    MODALS (Balanced Scaling)
    ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1em;
    z-index: 9999;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    width: min(38em, 96vw); /* Width controlled by em */
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8em; /* Balanced internal padding */
    box-shadow: 0 1.25em 3.75em rgba(0, 0, 0, 0.25);
    animation: popIn .18s ease-out forwards;
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(0.8em) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal-top {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    margin-bottom: 0.8em;
}

.modal-icon {
    width: 3em;
    height: 3em;
    border-radius: var(--radius-pill);
    display: grid;
    place-items: center;
    font-size: 1.2em;
    font-weight: 900;
    flex-shrink: 0;
}

.modal h3 {
    font-size: 1.4em;
    color: var(--js-text-main);
    margin-bottom: 0.25em;
    font-weight: 900;
}

.modal p {
    color: var(--js-text-muted);
    line-height: 1.5;
    white-space: pre-line;
    font-size: 1em;
}

.modal-actions {
    display: flex;
    gap: 0.75em;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 1.5em;
}
/* =========================================================
    CUSTOM CATEGORY SELECTOR (Balanced Scaling)
    ========================================================= */
.category-selector {
    position: relative;
}

.category-input {
    width: 100%;
    padding: 1em 1.25em; /* Balanced padding */
    border: 0.125em solid var(--js-primary); /* 2px scaled */
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em; /* Increased for readability */
    font-weight: 600;
    transition: .2s;
    user-select: none;
}

.category-input:hover {
    box-shadow: 0 0 0 0.25em rgba(0, 131, 116, 0.1);
}

.dropdown-arrow {
    color: var(--js-primary);
    font-size: 0.8em;
    transition: .2s;
}

.category-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown {
    position: absolute;
    top: calc(100% + 0.5em);
    left: 0;
    width: 100%;
    background: #fff;
    border: 0.125em solid var(--js-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 0.5em 1.5em rgba(0,0,0,0.12);
    max-height: 25em; /* em based max-height */
    display: none;
    flex-direction: column;
    z-index: 100;
}

.category-selector.open .category-dropdown {
    display: flex;
}

.category-search {
    padding: 1em;
    border-bottom: 0.1em solid var(--js-border-soft);
}

.category-search input {
    width: 100%;
    padding: 0.8em 1em;
    border: 0.08em solid var(--js-border);
    border-radius: var(--radius-md);
    font-size: 0.95em;
    font-family: var(--font-main);
    font-weight: 600;
}

.category-search input:focus {
    outline: none;
    border-color: var(--js-primary);
    box-shadow: none;
}

.category-list {
    overflow-y: auto;
    max-height: 20em; /* em based height */
}

.category-item {
    padding: 0.9em 1.25em;
    cursor: pointer;
    transition: .15s;
    font-size: 1.05em;
    font-weight: 600;
    border-left: 0.2em solid transparent;
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.category-item:hover {
    background: rgba(0, 131, 116, 0.06);
    border-left-color: var(--js-primary);
}

.category-item.selected {
    background: rgba(0, 131, 116, 0.1);
    border-left-color: var(--js-primary);
    color: var(--js-primary);
    font-weight: 800;
}

.category-item.parent {
    font-weight: 800;
    color: var(--js-text-main);
    background: #f8f8f8;
    position: sticky;
    top: 0;
    z-index: 1;
}

.category-item.child {
    padding-left: 2.2em; /* Balanced indentation */
    font-size: 1em;
}

.category-item.child-2 {
    padding-left: 3.2em; /* Level 2 indentation */
    font-size: 0.95em;
}

.category-item mark {
    background: var(--js-accent);
    color: var(--js-text-main);
    padding: 0.1em 0.3em;
    border-radius: 0.2em;
    font-weight: 800;
}

.category-expand {
    margin-left: auto;
    color: var(--js-primary);
    font-size: 0.85em;
    transition: .2s;
}

.category-item.expanded .category-expand {
    transform: rotate(90deg);
}

.category-children {
    display: none;
}

.category-item.expanded + .category-children {
    display: block;
}
/* =========================================================
    DESCRIPTION TABS (Balanced Scaling)
    ========================================================= */
.desc-tabs-wrapper {
    border: 0.125em solid var(--js-primary);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.desc-tabs-header {
    display: flex;
    gap: 0;
    background: #fcfcfc;
    border-bottom: 0.125em solid var(--js-border-soft);
    overflow-x: auto;
    scrollbar-width: thin;
}

.desc-tabs-header::-webkit-scrollbar { height: 0.25em; }
.desc-tabs-header::-webkit-scrollbar-thumb { 
    background: var(--js-primary); 
    border-radius: 0.25em; 
}
.desc-tabs-header {
    display: flex;
    gap: 0;
    background: #fcfcfc;
    border-bottom: 0.125em solid var(--js-border-soft);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #2b2b2b #f0f0f0; 
}

.desc-tabs-header::-webkit-scrollbar {
    height: 2px;
}

.desc-tabs-header::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.desc-tabs-header::-webkit-scrollbar-thumb {
    background-color: #2b2b2b;
    border-radius: 2px;
    border: 2px solid #f0f0f0;
}

.desc-tabs-header::-webkit-scrollbar-thumb:hover {
    background-color: #2b2b2b;
}

.desc-tab {
    padding: 1em 1.25em; /* Balanced tab padding */
    cursor: pointer;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1.05em; /* Standard readable size */
    color: var(--js-text-muted);
    transition: .2s;
    white-space: nowrap;
    position: relative;
    border-bottom: 0.2em solid transparent;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.desc-tab:hover { color: var(--js-primary); background: rgba(0,131,116,0.04); }
.desc-tab.active { 
    color: var(--js-primary); 
    border-bottom-color: var(--js-primary); 
    background: #fff; 
}

.desc-tab .remove-tab {
    color: var(--js-accent);
    margin-left: 0.3em;
    font-size: 1.1em;
    line-height: 1;
    padding: 0 0.2em;
    opacity: 0;
    transition: .2s;
}

.desc-tab:hover .remove-tab { opacity: 1; }
.desc-tab .remove-tab:hover { transform: scale(1.2); }

.desc-tab .edit-tab {
    color: var(--js-primary);
    margin-left: 0.3em;
    font-size: 1em;
    line-height: 1;
    padding: 0 0.2em;
    opacity: 0;
    transition: .2s;
    cursor: pointer;
}

.desc-tab:hover .edit-tab { opacity: 1; }
.desc-tab .edit-tab:hover { transform: scale(1.15); }

.add-tab-btn {
    padding: 1em 1.25em;
    background: transparent;
    border: none;
    color: var(--js-primary);
    cursor: pointer;
    font-weight: 800;
    font-size: 1em;
    transition: .2s;
    white-space: nowrap;
    font-family: var(--font-main);
}

.add-tab-btn:hover { background: rgba(0,131,116,0.06); }

.desc-tab-content {
    display: none;
    padding: 1.5em; /* Increased content padding */
}

.desc-tab-content.active { display: block; }

.desc-tab-content textarea {
    width: 100%;
    min-height: 10em; /* em based height */
    border: none;
    font-size: 1.1em;
    resize: vertical;
    font-family: var(--font-main);
    font-weight: 600;
    padding: 0;
    display: none;
}

.desc-tab-content .format-editor {
    width: 100%;
    min-height: 10em;
    border: none;
    font-size: 1.1em;
    font-family: var(--font-main);
    font-weight: 600;
    padding: 0;
    outline: none;
    overflow-y: auto;
    max-height: 25em;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 0.6em;
}

.format-editor:empty:before {
    content: attr(data-placeholder);
    color: #999;
    font-weight: 400;
}

.format-editor .text-small { font-size: 0.85em; }
.format-editor .text-large { font-size: 1.25em; }

/* =========================================================
    FORMATTING TOOLBAR (Balanced)
    ========================================================= */
.formatting-toolbar {
    display: flex;
    gap: 0.5em;
    padding: 0.75em;
    border-bottom: 0.08em solid var(--js-border-soft);
    background: #fcfcfc;
    flex-wrap: wrap;
    align-items: center;
    background: #f8f8f8;
}

.format-hint {
    font-size: 1em;
    color: var(--js-text-muted);
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
}

.format-btn {
    padding: 0.5em 0.8em;
    border: 0.08em solid var(--js-border);
    background: #fff;
    border-radius: 0.4em;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 700;
    transition: .2s;
    color: var(--js-text-main);
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.format-btn:hover, .format-btn.active {
    background: var(--js-primary);
    color: #fff;
    border-color: var(--js-primary);
}

.format-btn-group {
    display: flex;
    gap: 0;
    border: 0.08em solid var(--js-border);
    border-radius: 0.4em;
    overflow: hidden;
}

.format-btn-group .format-btn {
    border: none;
    border-radius: 0;
    border-right: 0.08em solid var(--js-border);
}

/* =========================================================
    GLOBAL INPUTS RE-BALANCED
    ========================================================= */
input, textarea, select {
    width: 100%;
    padding: 1em 1.2em;
    border: 0.125em solid var(--js-primary);
    border-radius: var(--radius-md);
    font-size: 1.05em;
    background: #fff;
    transition: .2s;
    font-family: var(--font-main);
    font-weight: 600;
}

textarea { min-height: 9em; }

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 0.25em rgba(0,131,116,0.12);
}
/* =========================================================
    BUTTONS (Back/Skip dark) - Refined Scaling
    ========================================================= */
.buttons {
    display: flex; 
    gap: 0.8em; /* Gaps balanced */
    margin-top: 1.5em; 
    flex-wrap: wrap; 
    align-items: center;
}

.btn-preview {
    background: linear-gradient(180deg, #F6B925, #e5a615);
    color: #fff;
    border: none;
    border-radius: 62.5em; /* 999px equivalent */
    padding: 1em 2em; /* Balanced padding for a chunky feel */
    cursor: pointer;
    font-weight: 800;
    transition: .18s ease;
    font-size: 1.05em; /* Slightly increased for visibility */
    box-shadow: 0 0.8em 1.8em rgba(246,185,37,0.3);
    min-height: 3.5em; /* Proportional to font size */
    letter-spacing: .25px;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.btn-preview:hover {
    filter: brightness(1.08);
    transform: translateY(-0.15em); /* Scaled hover lift */
    box-shadow: 0 1.1em 2.2em rgba(246,185,37,0.4);
}

.btn-preview:active {
    transform: translateY(0);
}
/* =========================================================
    MODALS & LIVE PREVIEW (Balanced Scaling)
    ========================================================= */
.modal-overlay {
    position: fixed; 
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none; 
    align-items: center; 
    justify-content: center;
    padding: 1.25em; 
    z-index: 9999;
}

.modal-overlay.show { display: flex; }

/* Live Preview Modal Specific */
.preview-modal .modal {
    max-width: 50em; /* 800px equivalent but scales with font */
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.preview-ad-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.75em; /* pad-3 balanced */
    margin: 1.25em 0;
}

.preview-ad-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5em; /* gap-3 balanced */
    margin-bottom: 1.5em;
}

.preview-ad-images {
    flex: 0 0 16em; /* 250px balanced */
    height: 16em;
    background: #f5f5f5;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.preview-ad-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-ad-images.no-image {
    display: grid;
    place-items: center;
    color: var(--js-text-muted);
    font-size: 2.5em;
}

.preview-ad-info {
    flex: 1;
}

.preview-ad-title {
    font-size: 1.5em; /* fs-3 scaled */
    font-weight: 900;
    color: var(--js-text-main);
    margin-bottom: 0.5em;
}

.preview-ad-price {
    font-size: 1.8em; /* Highlighted price */
    font-weight: 900;
    color: var(--js-primary);
    margin-bottom: 0.8em;
}

.preview-ad-meta {
    display: flex;
    gap: 0.8em;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

.preview-meta-tag {
    background: #f0f0f0;
    padding: 0.4em 1em;
    border-radius: 62.5em;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--js-text-muted);
}

.preview-ad-description {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 0.125em solid var(--js-border-soft);
}

.preview-desc-section {
    margin-bottom: 1.5em;
}

.preview-desc-title {
    font-size: 1.15em;
    font-weight: 900;
    color: var(--js-text-main);
    margin-bottom: 0.5em;
}

.preview-desc-content {
    font-size: 1.05em;
    font-weight: 600;
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Responsive adjustment for Preview */
@media (max-width: 768px) {
    .preview-ad-header {
        flex-direction: column;
    }
    .preview-ad-images {
        flex: 0 0 auto;
        width: 100%;
        height: 12em; /* Height reduced for mobile view */
    }
}

/* Standard Modal Styles */
.modal {
    width: min(35em, 96vw); /* 560px equivalent */
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8em; /* Balanced padding */
    box-shadow: 0 1.25em 3.75em rgba(0,0,0,0.25);
    animation: popIn .18s ease-out forwards;
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(0.8em) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal-top {
    display: flex; 
    align-items: flex-start; 
    gap: 1em; 
    margin-bottom: 0.8em;
}

.modal-icon {
    width: 2.5em;
    height: 2.5em;
    border-radius: 62.5em;
    display: grid;
    place-items: center;
    font-size: 1em;
    font-weight: 900;
    flex-shrink: 0;
    background-color: var(--teal-light);
    color: #fff;
}

.modal h3 {
    font-size: 1.4em; 
    color: var(--js-text-main); 
    margin-bottom: 0.25em; 
    font-weight: 900;
}

.modal p {
    color: var(--js-text-muted); 
    line-height: 1.5; 
    white-space: pre-line; 
    font-size: 1.05em;
}

.modal-actions {
    display: flex; 
    gap: 0.75em; 
    justify-content: flex-end; 
    flex-wrap: wrap; 
    margin-top: 1.5em;
}
.buttons.step-2{
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 0.8fr 1.2fr;
}
.buttons.step-3{
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
}
.buttons.step-4{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.preview-ad-images {
    flex: 0 0 13em;
    height: 13em;
    position: relative;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.3em;
}
.remember-me input {
    height: 1.1em;
    width: 1.1em;
    accent-color: var(--teal-light);
}
.remember-me label{
    margin: 0;
    font-size: 1.1em;
}
.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 1.3em;
}
.remember-me input[type="checkbox"]{
    box-shadow: none;
}
.remember-me input[type="radio"]{
    box-shadow: none;
}
.form-group h4 {
    font-size: 1.5em;
    color: var(--js-header-bg);
    font-weight: 700;
    margin-bottom: .5em;
}
@media (max-width: 820px) {
    .promo-input-wrap { grid-template-columns: 1fr; }
    .promo-price { margin-left: 0; }
    .promo-head { align-items: flex-start; }
    .post-stepper-wrap {
    padding-inline: 2em;
    margin-top: -2em;
}
.hero-inner {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}
}

@media (max-width: 991px) {
    .post-stepper-wrap {
    padding-inline: 8em;
    margin-top: -2em;
}
}
@media (max-width: 768px) {
    .buttons.step-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.modal {
    width: 90%;
}
.buttons.step-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.buttons.step-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.buttons.step-3 .btn-primary{
    grid-column: 1 / span 2;
}
    .post-stepper-wrap {
        padding-inline: 2em;
        margin-top: -2em;
    }
    .feature-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6em;
    flex-wrap: wrap;
}
}
@media (min-width: 769px) {
    .preview-ad-header {
    display: block;
    align-items: flex-start;
    gap: 1.5em;
    margin-bottom: 1.5em;
}
.preview-ad-info {
    margin-top: 1em;
}
}