/* ===============================
   GLOBAL RESET
================================ */

*{    
    box-sizing:border-box;
}  

html,
body{
    margin:0;
    padding:0; 
    overflow-x:hidden;
    overflow-y:auto;
    background:#f8fafc;
    position:relative;
}




.header-logo-img{
    width:45px !important;
    height:45px !important;
    max-width:36px !important;
    max-height:36px !important;
    object-fit:contain;
    border-radius:50%;
    display:block;
}




/* ===============================
   HEADER
================================ */

.site-header{
    background:#ffffff;
    border-bottom:1px solid #e5e7eb;
}

.header-inner{
    max-width:1440px;
    margin:0 auto;
    padding:0 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:64px;
}

.logo{
    font-size:22px;
    font-weight:700;
    color:#2563eb;
}

.main-nav a{
    margin-left:20px;
    color:#374151;
    font-weight:500;
    text-decoration:none;
}

.main-nav a:hover{
    color:#2563eb;
}

/* ===============================
   HERO SLIDER
================================ */

.hero-slider{
    width:100%;
    max-width:1200px;
    margin:0 auto 18px;
    border-radius:14px;
    overflow:hidden;
    position:relative;
    background:#fff;
}

.hero-slider .slide{
    display:none;
    width:100%;
}

.hero-slider .slide.active{
    display:block;
}

.hero-slider img,
.hero-slider video{
    display:block;
    width:100%;
    height:auto;
    max-height:320px;
    object-fit:cover;
    border-radius:14px;
}

/* ===============================
   HOME LAYOUT
================================ */

.home-wrapper{
    display:grid;
    grid-template-columns:220px minmax(0,1fr);
    gap:18px;
    width:100%;
    max-width:1440px;
    margin:0 auto;
    padding:18px 16px 30px;
    align-items:start;
}

/* ===============================
   SIDEBAR
================================ */

.filters{
    width:100%;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:14px 10px;
    position:sticky;
    top:16px;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
    height:auto;
    min-height:auto;
    overflow:visible;
}

.filters h3{
    margin:0 0 14px;
    font-size:20px;
}

.filter{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px;
    margin-bottom:8px;
    border-radius:8px;
    background:#f3f4f6;
    text-decoration:none;
    color:#111827;
    font-size:14px;
}

.filter.active{
    background:#2563eb;
    color:#fff;
}

.filter .count{
    font-size:12px;
    opacity:.75;
}

/* ===============================
   ADS WRAPPER
================================ */

.ads-wrapper{
    width:100%;
    min-width:0;
    padding:0;
}

.sort-bar{
    margin:0 0 14px;
    font-size:14px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}

.sort-bar a{
    text-decoration:none;
    color:#2563eb;
}

.sort-bar a.active{
    font-weight:700;
}


/* ===============================
   ADS GRID
================================ */

#ads-container{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
    gap:16px;
    width:100%;
    min-width:0;
    align-items:stretch;
}



/* ===============================
   EMPTY STATE
================================ */

.empty-state,
.ads-placeholder{
    grid-column:1 / -1;
    text-align:center;
    padding:80px 20px;
    background:#ffffff;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,0.05);
}

/* ===============================
   ADS LOADING SPINNER
================================ */

.ads-loading{
    grid-column:1 / -1;
    text-align:center;
    padding:40px;
    color:#6b7280;
}

.spinner{
    width:28px;
    height:28px;
    border:4px solid #e5e7eb;
    border-top:4px solid #2563eb;
    border-radius:50%;
    margin:0 auto 10px;
    animation:spin 0.8s linear infinite;
}

@keyframes spin{
    0%{ transform:rotate(0deg); }
    100%{ transform:rotate(360deg); }
}

.fade-in{
    animation:fadeIn 0.4s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===============================
   POST / FORM PAGES
================================ */

.modern-post{
    display:flex;
    justify-content:center;
    padding:40px 20px;
}

.post-card{
    background:#fff;
    width:100%;
    max-width:760px;
    padding:30px;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.post-title{
    margin-bottom:25px;
    font-size:24px;
}

.status-panel{
    display:flex;
    justify-content:space-between;
    background:#f3f4f6;
    padding:15px;
    border-radius:8px;
    margin-bottom:20px;
    font-size:14px;
}

.status-panel .label{
    display:block;
    color:#6b7280;
}

.status-panel .value{
    font-weight:600;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:10px;
    border:1px solid #d1d5db;
    border-radius:6px;
    font-size:14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#2563eb;
    outline:none;
}

.plan-box{
    display:flex;
    gap:15px;
    margin:20px 0;
}

.plan-option{
    flex:1;
    border:1px solid #d1d5db;
    padding:15px;
    border-radius:8px;
    cursor:pointer;
    display:flex;
    gap:10px;
    align-items:flex-start;
}

.plan-option.premium{
    border-color:#f59e0b;
}

.plan-option input{
    margin-top:4px;
}

.full-width{
    width:100%;
}

/* ===============================
   PHONE FIELD
================================ */

.phone-field{
    position:relative;
    z-index:1000;
}

.phone-container{
    display:flex;
    align-items:center;
    border:1px solid #d1d5db;
    border-radius:8px;
    background:#fff;
}

.country-btn{
    display:flex;
    align-items:center;
    gap:6px;
    padding:10px 12px;
    background:#f9fafb;
    border:none;
    cursor:pointer;
    font-size:14px;
    border-right:1px solid #e5e7eb;
}

.country-btn:hover{
    background:#f3f4f6;
}

#phoneInput{
    flex:1;
    border:none;
    outline:none;
    padding:10px;
    font-size:14px;
}

.country-dropdown{
    position:absolute;
    top:110%;
    left:0;
    width:100%;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    box-shadow:0 15px 30px rgba(0,0,0,0.15);
    display:none;
    z-index:2000;
    max-height:260px;
    overflow-y:auto;
}

.country-dropdown input{
    position:sticky;
    top:0;
    width:100%;
    padding:10px;
    border:none;
    border-bottom:1px solid #eee;
    outline:none;
    background:#fff;
}

.country-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px;
    font-size:14px;
    cursor:pointer;
}

.country-item:hover{
    background:#f3f4f6;
}


/* ===============================
   FOOTER
================================ */

.site-footer{
    text-align:center;
    padding:30px 20px;
    margin-top:40px;
    background:#fff;
    border-top:1px solid #e5e7eb;
}

.footer-links{
    margin-bottom:10px;
}

.footer-links a{
    margin:0 6px;
    color:#374151;
    text-decoration:none;
}

.footer-copy{
    font-size:14px;
    color:#6b7280;
}

/* ===============================
   PASSWORD FIELD
================================ */

.password-wrapper{
    position:relative;
}

.password-wrapper input{
    width:100%;
    padding:12px 40px 12px 12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:14px;
    outline:none;
}

.password-wrapper input:focus{
    border-color:#2563eb;
}

.toggle-password{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    font-size:14px;
    opacity:.6;
}

.toggle-password:hover{
    opacity:1;
}


/* ===============================
   DASHBOARD WRAPPER
================================ */

.dashboard-wrapper{
    max-width:1200px;
    margin:30px auto 50px;
    padding:0 16px;
}

/* ===============================
   DASHBOARD HEADER
================================ */

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.dashboard-header h1{
    font-size:26px;
}

/* ===============================
   HEADER ACTION BUTTONS
================================ */

.header-actions{
    display:flex;
    gap:10px;
}

.btn.premium{
    background:#f59e0b;
    color:#111827;
}

/* ===============================
   STATUS PANEL
================================ */

.status-panel{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    background:#f3f4f6;
    padding:18px;
    border-radius:12px;
    margin-bottom:20px;
}

/* ===============================
   BOOST PROGRESS CARD
================================ */

.boost-progress-card{
    background:#fff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 4px 14px rgba(0,0,0,.05);
    margin-bottom:20px;
}

.progress-wrapper{
    height:10px;
    background:#e5e7eb;
    border-radius:999px;
    overflow:hidden;
    margin:12px 0;
}

.progress-bar{
    height:100%;
    background:#22c55e;
}

/* ===============================
   TABLE CARD SHELL
================================ */

.card-table{
    background:#fff;
    border-radius:10px;  /* I CHANGED it*/
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    overflow:hidden;
}

/* ===============================
   TABLE STYLE
================================ */

.dashboard-table{
    width:100%;
    border-collapse:collapse;
}

.dashboard-table th{
    text-align:left;
    font-size:14px;
    background:#f9fafb;
    padding:14px;
}

.dashboard-table td{
    padding:14px;
    border-top:1px solid #eee;
    font-size:14px;
}

/* ===============================
   BADGES
================================ */

.badge{
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

.badge.active{ background:#dcfce7; color:#166534; }
.badge.expired{ background:#fee2e2; color:#991b1b; }
.badge.premium{ background:#fef3c7; color:#92400e; }
.badge.free{ background:#e5e7eb; color:#374151; }
.badge.boosted{ background:#dbeafe; color:#1e40af; }

/* ===============================
   ACTION BUTTONS
================================ */

.actions{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    justify-content:center;
}

.btn.small{
    padding:6px 10px;
    font-size:13px;
}

/* ===============================
   EMPTY STATE CARD
================================ */

.empty-card{
    background:#fff;
    padding:40px;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    text-align:center;
}




/* ===============================
   MY ADVERTS POLISH
================================ */

.inline-form{
    display:inline;
    margin:0;
}

.dashboard-table td.actions{
    width:320px;
}

.dashboard-table td strong,
.dashboard-table td .strong{
    color:#111827;
}

.dashboard-table td .verified-badge,
.dashboard-table td .boost-badge{
    margin-left:6px;
    vertical-align:middle;
}

.progress-text{
    margin-top:8px;
    font-size:14px;
    color:#4b5563;
}

#shareBox{
    margin-top:20px;
    text-align:center;
}

#shareBox input{
    max-width:600px;
}

@media (max-width:900px){
    .dashboard-header{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .header-actions{
        flex-wrap:wrap;
    }

    .status-panel{
        grid-template-columns:1fr;
    }

    .card-table{
        overflow-x:auto;
    }

    .dashboard-table{
        min-width:980px;
    }
}



/* ===============================
   PREMIUM UPGRADE PAGE
=============================== */

.upgrade-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.upgrade-header {
    background: #eef5ff;
    border-left: 5px solid #2563eb;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.price-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.price-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 26px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 8px;
}

.price-duration {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.pay-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.pay-btn:hover {
    background: #1e40af;
}

.pricing-footer-note {
    margin-top: 25px;
    font-size: 14px;
    color: #6b7280;
}





/* ===============================
   HOMEPAGE ADS GRID + CARD
================================ */

#ads-container{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:16px;
    width:100%;
    min-width:0;
    align-items:stretch;
}

.ad-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}


.verified-badge{
    font-size:12px;
    font-weight:700;
    color:#16a34a;
    margin-bottom:6px;
}

.boost-badge{
    font-size:12px;
    font-weight:700;
    color:#2563eb;
    margin-bottom:6px;
}


.hero-fallback{
    max-width:1200px;
    margin:0 auto 18px;
    border-radius:16px;
    overflow:hidden;
    background:linear-gradient(135deg,#1d4ed8,#0f172a);
    color:#fff;
    min-height:260px;

    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;

    padding:48px 40px;
}

.hero-fallback-content{
    max-width:820px;
}

.hero-fallback h1{
    font-size:42px;
    line-height:1.15;
    margin-bottom:16px;
    color:#fff;
}

.hero-fallback p{
    font-size:18px;
    line-height:1.6;
    margin-bottom:26px;
    color:rgba(255,255,255,.92);
}

.hero-fallback .primary-btn{
    font-size:16px;
    padding:12px 26px;
}color:rgba(255,255,255,.9);
}

/* ===============================
   POST-BANNER SIZE GUIDE ONLY
================================ */

.banner-size-guide{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:20px;
    margin:22px 0;
}

.banner-size-guide h3{
    margin:0 0 16px;
    font-size:20px;
    color:#111827;
}

.banner-size-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px;
}

.size-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:16px;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.size-card h4{
    margin:0 0 10px;
    font-size:16px;
    color:#111827;
}

.size-card p{
    margin:0 0 8px;
    font-size:14px;
    color:#4b5563;
    line-height:1.5;
}

.size-card p:last-child{
    margin-bottom:0;
}

@media (max-width:768px){
    .banner-size-grid{
        grid-template-columns:1fr;
    }
}


/* ===============================
   BANNER SLOTS
================================ */
#ads-container .banner-slot-mid{
    grid-column: 1 / -1;
    width: 100%;
}

/* ===============================
   CHECKOUT / UPGRADE PLAN CARDS
================================ */

.upgrade-container{
    max-width:1100px;
    margin:40px auto;
    padding:0 16px 40px;
}

.upgrade-header{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:18px 20px;
    margin-bottom:22px;
    line-height:1.6;
    color:#374151;
}

.pricing-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:18px;
}

.price-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:20px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:260px;
}

.price-title{
    font-size:18px;
    font-weight:700;
    color:#111827;
    margin-bottom:10px;
}

.price-amount{
    font-size:30px;
    font-weight:800;
    color:#1d4ed8;
    margin-bottom:8px;
    line-height:1.1;
}

.price-duration{
    font-size:14px;
    color:#6b7280;
    line-height:1.6;
    margin-bottom:16px;
}

.pay-btn{
    width:100%;
    border:none;
    border-radius:12px;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    padding:12px 16px;
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
}

.pay-btn:hover{
    background:#1d4ed8;
    transform:translateY(-1px);
}

.custom-plan-form{
    margin-top:8px;
}

.custom-plan-form label{
    display:block;
    font-size:13px;
    font-weight:600;
    color:#374151;
    margin-bottom:6px;
}

.custom-plan-form input,
.custom-plan-form select{
    width:100%;
    padding:11px 12px;
    border:1px solid #d1d5db;
    border-radius:10px;
    background:#fff;
    font-size:14px;
}

.custom-plan-form input:focus,
.custom-plan-form select:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.pricing-footer-note{
    margin-top:18px;
    font-size:14px;
    color:#6b7280;
    line-height:1.6;
}

@media (max-width:768px){
    .price-card{
        min-height:auto;
    }

    .price-amount{
        font-size:26px;
    }
}

.how-prompt-card{
    background:#ffffff;
    border-radius:16px;
    padding:18px 20px;
    margin-bottom:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.how-prompt-card h3{
    margin:0 0 4px;
}

.how-prompt-card p{
    margin:0;
    color:#6b7280;
}

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.65);
    z-index:9999;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.modal-box{
    width:100%;
    max-width:850px;
    max-height:85vh;
    overflow:auto;
    background:#ffffff;
    border-radius:18px;
    padding:28px;
    position:relative;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.modal-close{
    position:absolute;
    top:14px;
    right:16px;
    border:none;
    background:#ef4444;
    color:#fff;
    width:32px;
    height:32px;
    border-radius:50%;
    font-size:20px;
    cursor:pointer;
}

.how-content p{
    line-height:1.75;
    color:#374151;
}


#ads-container .banner-slot-mid{
    grid-column:1 / -1;
    width:100%;
}

/* ===============================
   AIRBNB-STYLE adsfloo CARDS
================================ */

#ads-container{
    align-items:start;
    grid-template-columns:repeat(auto-fill,minmax(165px,1fr));
    gap:16px;
}

.ad-card{
    height:220px !important;
    min-height:0 !important;
    padding:10px !important;
    border-radius:16px;
    background:#fff;
    display:flex;
    flex-direction:column;
    gap:5px;
    overflow:hidden;
    cursor:pointer;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.verified-badge,
.boost-badge{
    font-size:11px;
    font-weight:700;
    line-height:1;
    color:#16a34a;
}

.ad-badge{
    display:block;
    background:#e5e7eb;
    border-radius:999px;
    padding:5px 9px;
    font-size:11px;
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.ad-title{
    font-size:13px;
    line-height:1.15;
    margin:1px 0 !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.media-box{
    height:75px;
    width:100%;
	 aspect-ratio: 4 / 3;   /* clean universal card ratio */
    border-radius:10px;
    overflow:hidden;
    background:#f3f4f6;
    flex-shrink:0;
}

.media-box img,
.media-box video{
    width:100%;
    height:100%;
   /* object-fit:cover;*/
    display:block;
}

.description{
    font-size:10.5px;
    line-height:1.25;
    margin:0 !important;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.read-more-link{
    display:none;
}

.card-bottom{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-top:0 !important;
}

.ad-location{
    font-size:10.5px;
    line-height:1;
    color:#6b7280;
    margin:0 !important;
}

.contact-btn{
    display:block;
    width:100%;
    background:#22c55e;
    color:#fff;
    text-align:center;
    padding:7px 8px !important;
    border-radius:9px;
    font-size:10.5px !important;
    font-weight:700;
    line-height:1.1;
    text-decoration:none;
}

.contact-btn:hover{
    background:#16a34a;
    text-decoration:none;
}

.footer-banner{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:40px 0 20px;
}

.footer-banner img,
.footer-banner video{
    max-width:600px;
    width:100%;
    height:auto;
    border-radius:12px;
    display:block;
}

.hero-banner img,
.hero-banner video{
    width:100%;
    max-height:480px;
    object-fit:cover;
    border-radius:14px;
}

.mid-banner img,
.mid-banner video{
    width:100%;
    max-height:300px;
    object-fit:cover;
    border-radius:12px;
}
.media-box:empty{
    background:#eef2f7 url('/assets/img/no-image.svg') center/40px no-repeat;
}

.ad-stats{
    font-size:12px;
    color:#6b7280;
    margin-top:6px;
}
/*    dailcode*/
.iti{
    width:100%;
}

.iti input{
    width:100%;
}


/* pages styles*/
/* ===============================
   LEGAL / INFO PAGES
================================ */
.legal-page{
    max-width:1050px;
    margin:42px auto;
    padding:0 18px;
}

.legal-hero{
    background:linear-gradient(135deg,#2563eb,#0f172a);
    color:#fff;
    border-radius:22px;
    padding:42px 34px;
    margin-bottom:26px;
    box-shadow:0 18px 45px rgba(15,23,42,.16);
}

.legal-hero h1{
    margin:0 0 10px;
    font-size:38px;
    line-height:1.1;
}

.legal-hero p{
    margin:0;
    max-width:820px;
    color:rgba(255,255,255,.92);
    line-height:1.75;
}

.legal-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:26px;
    margin-bottom:18px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.legal-card h2{
    margin:0 0 12px;
    color:#0f172a;
    font-size:24px;
}

.legal-card p,
.legal-card li{
    color:#374151;
    line-height:1.8;
    font-size:15px;
}

.legal-card ul{
    padding-left:20px;
}

.legal-note{
    background:#eff6ff;
    border-left:5px solid #2563eb;
    color:#1e3a8a;
} color:#1e3a8a;
}

