/* ============================================================
   FNT Ultimate Plugin – Stylesheet v2.1
   Includes: Ticker (upgraded) + Banner Manager (HTML mode)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;800&family=Hind+Siliguri:wght@400;600;700&display=swap');

/* ──────────────────────────────────────────────────────────
   1. TICKER STYLES
   ────────────────────────────────────────────────────────── */

.fnt-ticker-wrap {
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    width: 100%;
    position: relative;
}

/* Label Badge on the left */
.fnt-ticker-label-badge {
    flex: 0 0 auto;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    background: rgba(0,0,0,.2);
    border-right: 1px solid rgba(255,255,255,.15);
    z-index: 2;
}

/* Scrolling overflow container */
.fnt-ticker-overflow {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 14px 0;
    position: relative;
}

.fnt-ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: fnt-ticker linear infinite;
}

/* Pause on hover */
.fnt-ticker-wrap[data-pause="1"]:hover .fnt-ticker-track {
    animation-play-state: paused;
}

.fnt-ticker-item {
    padding: 0 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: opacity .2s;
}

.fnt-ticker-item:hover { opacity: .75; }

.fnt-ticker-dot {
    width: 4px;
    height: 4px;
    background: #c9a84c;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes fnt-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────────────────
   2. BANNER BASE STYLES
   ────────────────────────────────────────────────────────── */

.tz-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f4c81 100%);
    border-radius: 20px;
    overflow: hidden;
    padding: 48px 52px;
    min-height: 220px;
    position: relative;
    box-shadow: 0 20px 60px rgba(15,23,42,.35), 0 4px 16px rgba(15,76,129,.2);
    max-width: 100%;
    margin: 24px auto;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
}

.tz-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(56,189,248,.08) 0%, transparent 70%);
    pointer-events: none;
}

.tz-banner__left  { flex: 1 1 auto; z-index: 1; min-width: 0; }
.tz-banner__right { flex: 0 0 auto; width: 340px; z-index: 1; }

/* Badge */
.tz-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(251,191,36,.15);
    border: 1px solid rgba(251,191,36,.4);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.tz-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    animation: tz-pulse 1.8s ease-in-out infinite;
}

@keyframes tz-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(1.4); }
}

.tz-banner__title {
    font-size: clamp(22px,4vw,36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: -.02em;
}

.tz-banner__subtitle {
    font-size: clamp(14px,2vw,17px);
    color: rgba(186,230,253,.85);
    margin: 0 0 28px 0;
    line-height: 1.6;
    max-width: 480px;
}

.tz-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg,#f59e0b 0%,#d97706 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 6px 24px rgba(245,158,11,.4);
    letter-spacing: .01em;
    white-space: nowrap;
}

.tz-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(245,158,11,.5);
    filter: brightness(1.08);
    color: #fff;
    text-decoration: none;
}

.tz-banner__btn:active { transform: translateY(0); }

.tz-btn-arrow { width:18px; height:18px; transition:transform .2s ease; }
.tz-banner__btn:hover .tz-btn-arrow { transform: translateX(4px); }

/* Image */
.tz-banner__img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.tz-banner__img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s ease;
}

.tz-banner__img-wrap:hover .tz-banner__img { transform: scale(1.04); }

.tz-banner__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.15) 0%, transparent 60%);
    pointer-events: none;
}

/* ── HTML Content Area ────────────────────────────────── */
.tz-banner__html-content {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.tz-banner__html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.tz-banner__html-content iframe {
    border-radius: 10px;
    display: block;
    max-width: 100%;
}

.tz-no-image .tz-banner__left { max-width: 700px; }

.tz-error {
    background: #fff0f0;
    border-left: 4px solid #e02d2d;
    color: #c00;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
}

/* ──────────────────────────────────────────────────────────
   3. SIZE-SPECIFIC OVERRIDES
   ────────────────────────────────────────────────────────── */

.tz-size-leaderboard {
    width: 728px; max-width: 100%; min-height: 90px;
    padding: 0 20px; border-radius: 6px; gap: 16px; margin: 8px auto;
}
.tz-size-leaderboard .tz-banner__title  { font-size: 16px; margin-bottom: 0; }
.tz-size-leaderboard .tz-banner__badge  { font-size: 10px; padding: 3px 8px; margin-bottom: 0; }
.tz-size-leaderboard .tz-banner__btn   { font-size: 12px; padding: 8px 16px; border-radius: 6px; }

.tz-size-billboard {
    width: 970px; max-width: 100%; min-height: 250px; padding: 32px 48px; border-radius: 14px;
}
.tz-size-billboard .tz-banner__right { width: 380px; }
.tz-size-billboard .tz-banner__img   { height: 170px; }

.tz-size-mobile-banner {
    width: 320px; max-width: 100%; min-height: 50px;
    padding: 0 12px; border-radius: 4px; gap: 10px; margin: 4px auto;
}
.tz-size-mobile-banner .tz-banner__title { font-size: 12px; margin-bottom: 0; }
.tz-size-mobile-banner .tz-banner__btn   { font-size: 11px; padding: 5px 10px; border-radius: 4px; }

.tz-size-mobile-leaderboard {
    width: 320px; max-width: 100%; min-height: 100px;
    padding: 10px 16px; border-radius: 8px; gap: 12px; margin: 8px auto;
}
.tz-size-mobile-leaderboard .tz-banner__title    { font-size: 14px; margin-bottom: 4px; }
.tz-size-mobile-leaderboard .tz-banner__subtitle { font-size: 11px; margin-bottom: 8px; }
.tz-size-mobile-leaderboard .tz-banner__btn      { font-size: 12px; padding: 7px 14px; }

.tz-size-medium-rectangle {
    width: 300px; max-width: 100%; min-height: 250px;
    flex-direction: column; padding: 28px 24px; border-radius: 14px; gap: 16px; margin: 12px auto;
}
.tz-size-medium-rectangle .tz-banner__right { width: 100%; order: -1; }
.tz-size-medium-rectangle .tz-banner__img   { height: 120px; border-radius: 8px; }
.tz-size-medium-rectangle .tz-banner__title { font-size: 18px; }

.tz-size-square {
    width: 250px; max-width: 100%; min-height: 250px;
    flex-direction: column; padding: 24px 20px; border-radius: 14px; gap: 12px; margin: 12px auto;
}
.tz-size-square .tz-banner__right { width: 100%; order: -1; }
.tz-size-square .tz-banner__img   { height: 100px; border-radius: 8px; }
.tz-size-square .tz-banner__title { font-size: 16px; }
.tz-size-square .tz-banner__btn   { font-size: 13px; padding: 9px 18px; }

.tz-size-large-rectangle {
    width: 336px; max-width: 100%; min-height: 280px;
    flex-direction: column; padding: 28px 24px; border-radius: 14px; gap: 16px; margin: 12px auto;
}
.tz-size-large-rectangle .tz-banner__right { width: 100%; order: -1; }
.tz-size-large-rectangle .tz-banner__img   { height: 130px; border-radius: 8px; }
.tz-size-large-rectangle .tz-banner__title { font-size: 18px; }

.tz-size-skyscraper {
    width: 160px; max-width: 100%; min-height: 600px;
    flex-direction: column; align-items: flex-start;
    padding: 24px 16px; border-radius: 14px; gap: 16px; margin: 12px auto;
}
.tz-size-skyscraper .tz-banner__right   { width: 100%; order: -1; }
.tz-size-skyscraper .tz-banner__img     { height: 150px; }
.tz-size-skyscraper .tz-banner__title   { font-size: 14px; }
.tz-size-skyscraper .tz-banner__subtitle{ font-size: 12px; }
.tz-size-skyscraper .tz-banner__btn     { font-size: 12px; padding: 9px 12px; width: 100%; justify-content: center; }

.tz-size-half-page {
    width: 300px; max-width: 100%; min-height: 600px;
    flex-direction: column; padding: 36px 28px; border-radius: 18px; gap: 20px; margin: 12px auto;
}
.tz-size-half-page .tz-banner__right { width: 100%; order: -1; }
.tz-size-half-page .tz-banner__img   { height: 200px; }
.tz-size-half-page .tz-banner__title { font-size: 22px; }

.tz-size-default { max-width: 1200px; }

/* ──────────────────────────────────────────────────────────
   4. LAYOUT HELPERS
   ────────────────────────────────────────────────────────── */

.tz-layout-compact .tz-banner__subtitle { display: none !important; }
.tz-layout-compact .tz-banner__badge    { display: none !important; }
.tz-layout-tall { flex-direction: column !important; align-items: flex-start !important; }

/* ──────────────────────────────────────────────────────────
   5. RESPONSIVE
   ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .tz-size-billboard,
    .tz-size-leaderboard { width: 100%; }
    .tz-size-billboard .tz-banner__right { width: 260px; }
}

@media (max-width: 768px) {
    .tz-banner { flex-direction: column; padding: 32px 24px; gap: 24px; }
    .tz-banner__right { width: 100%; order: 2; }
    .tz-banner__left  { order: 1; }
    .tz-banner__img   { height: 200px; }
}

@media (max-width: 480px) {
    .tz-banner       { padding: 24px 18px; border-radius: 14px; }
    .tz-banner__btn  { font-size: 14px; padding: 12px 20px; }
    .tz-size-default { border-radius: 14px; }
}

/* ──────────────────────────────────────────────────────────
   6. ADMIN STYLES – BANNER
   ────────────────────────────────────────────────────────── */

.tz-meta-wrap { padding: 16px 4px; display: flex; flex-direction: column; gap: 20px; }
.tz-field-group { display: flex; flex-direction: column; gap: 6px; }
.tz-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

@media (max-width: 600px) { .tz-field-row { grid-template-columns: 1fr; } }

.tz-label { font-weight: 600; font-size: 13px; color: #1e293b; }

.tz-input {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; color: #0f172a; background: #f8fafc;
    transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.tz-input:focus {
    outline: none; border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15,76,129,.12); background: #fff;
}
.tz-input-lg { font-size: 15px; font-weight: 600; padding: 11px 14px; }
.tz-hint { font-size: 11.5px; color: #94a3b8; margin-top: 3px; }

/* Content mode toggle */
.tz-mode-toggle {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tz-mode-opt {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    transition: all .15s;
    user-select: none;
}

.tz-mode-opt input[type="radio"] { display: none; }

.tz-mode-opt:hover { border-color: #94a3b8; }

.tz-mode-opt.active,
.tz-mode-opt:has(input:checked) {
    border-color: #0f4c81;
    background: #eff6ff;
    color: #0f4c81;
}

/* HTML Editor */
.tz-html-editor-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.tz-html-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.tz-html-toolbar-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-right: auto;
}

.tz-html-snippets { display: flex; gap: 6px; flex-wrap: wrap; }

.tz-snippet-btn {
    font-size: 11px !important;
    padding: 3px 10px !important;
    height: auto !important;
    line-height: 1.6 !important;
}

.tz-html-editor {
    width: 100%;
    min-height: 180px;
    padding: 14px;
    border: none;
    outline: none;
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
    color: #0f172a;
    background: #fff;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.6;
}

.tz-html-editor:focus { background: #fafffe; }

.tz-html-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

/* Image upload */
.tz-image-upload-wrap { display: flex; flex-direction: column; gap: 10px; }

.tz-upload-placeholder {
    border: 2px dashed #cbd5e1; border-radius: 12px;
    text-align: center; padding: 28px;
    color: #94a3b8; background: #f8fafc; cursor: pointer;
}

.tz-upload-placeholder .dashicons { font-size: 32px; width: 32px; height: 32px; color: #94a3b8; margin-bottom: 6px; }
.tz-upload-placeholder p { margin: 0; font-size: 13px; }

.tz-img-preview { position: relative; border-radius: 12px; overflow: hidden; border: 1.5px solid #e2e8f0; }
.tz-img-preview img { display: block; width: 100%; max-height: 180px; object-fit: cover; }

.tz-remove-img {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(15,23,42,.75); color: #fff; border: none;
    cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}

.tz-upload-btn { align-self: flex-start; }

/* Preview & Shortcode */
.tz-live-preview-box { padding: 8px 4px; }
.tz-preview-hint { font-size: 12px; color: #94a3b8; text-align: center; margin: 0; }
.tz-sc-box { display: flex; flex-direction: column; gap: 6px; }
.tz-sc-box code {
    display: block; background: #f1f5f9; border: 1px solid #e2e8f0;
    border-radius: 6px; padding: 8px 10px;
    font-size: 12px; word-break: break-all; color: #0f4c81;
}
.tz-copy-btn { cursor: pointer; }

/* Admin live preview override */
#tz-live-preview .tz-banner {
    margin: 0; padding: 20px 18px; min-height: auto;
    gap: 14px; border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15,23,42,.2);
    width: 100% !important; min-height: 80px !important;
}
#tz-live-preview .tz-banner__title    { font-size: 16px; margin-bottom: 6px; }
#tz-live-preview .tz-banner__subtitle { font-size: 12px; margin-bottom: 14px; }
#tz-live-preview .tz-banner__btn      { font-size: 12px; padding: 9px 16px; }
#tz-live-preview .tz-banner__right    { width: 100px; }
#tz-live-preview .tz-banner__img      { height: 70px; }
#tz-live-preview .tz-banner__html-content { max-height: 80px; overflow: hidden; opacity: .8; }

/* ──────────────────────────────────────────────────────────
   7. ADMIN STYLES – TICKER
   ────────────────────────────────────────────────────────── */

.fnt-ticker-admin-wrap { padding: 8px 0; }

.fnt-ticker-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

@media (max-width: 782px) { .fnt-ticker-row { grid-template-columns: 1fr; } }

.fnt-ticker-field { display: flex; flex-direction: column; gap: 5px; }
.fnt-ticker-label { font-weight: 600; font-size: 13px; color: #1e293b; }

.fnt-ticker-input {
    padding: 8px 11px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color .2s;
}

.fnt-ticker-input:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15,76,129,.1);
    background: #fff;
}

.fnt-ticker-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.7;
    transition: border-color .2s;
}

.fnt-ticker-textarea:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15,76,129,.1);
    background: #fff;
}

/* ──────────────────────────────────────────────────────────
   8. HELP BOX (shared – ticker & banner)
   ────────────────────────────────────────────────────────── */

.fnt-help-box {
    padding: 4px 2px;
    font-family: -apple-system, sans-serif;
}

.fnt-help-title {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.fnt-help-sub {
    font-weight: 600;
    font-size: 12px;
    color: #475569;
    margin: 8px 0 4px 0;
}

.fnt-help-code {
    display: block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    word-break: break-all;
    color: #0f4c81;
    white-space: pre-wrap;
}

.fnt-help-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
}

.fnt-help-table tr { border-top: 1px solid #f1f5f9; }
.fnt-help-table tr:first-child { border-top: none; }

.fnt-help-table td {
    padding: 5px 4px;
    vertical-align: top;
    color: #475569;
}

.fnt-help-table td:first-child {
    width: 80px;
    font-family: monospace;
    color: #0f4c81;
    white-space: nowrap;
}


@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;800&family=Hind+Siliguri:wght@400;600;700&display=swap');

/* ──────────────────────────────────────────────────────────
   1. TICKER STYLES
   ────────────────────────────────────────────────────────── */

.fnt-ticker-wrap {
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
    overflow: hidden;
    padding: 14px 0;
    width: 100%;
}

.fnt-ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: fnt-ticker linear infinite;
}

.fnt-ticker-item {
    padding: 0 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.fnt-ticker-dot {
    width: 4px;
    height: 4px;
    background: #c9a84c;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes fnt-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────────────────
   2. BANNER BASE STYLES (Full-Width / Default)
   ────────────────────────────────────────────────────────── */

.tz-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f4c81 100%);
    border-radius: 20px;
    overflow: hidden;
    padding: 48px 52px;
    min-height: 220px;
    position: relative;
    box-shadow: 0 20px 60px rgba(15,23,42,.35), 0 4px 16px rgba(15,76,129,.2);
    max-width: 100%;
    margin: 24px auto;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
}

.tz-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(56,189,248,.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Left / Right */
.tz-banner__left  { flex: 1 1 auto; z-index: 1; min-width: 0; }
.tz-banner__right { flex: 0 0 auto; width: 340px; z-index: 1; }

/* Badge */
.tz-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(251,191,36,.15);
    border: 1px solid rgba(251,191,36,.4);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.tz-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    animation: tz-pulse 1.8s ease-in-out infinite;
}

@keyframes tz-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(1.4); }
}

/* Title */
.tz-banner__title {
    font-size: clamp(22px,4vw,36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: -.02em;
}

/* Subtitle */
.tz-banner__subtitle {
    font-size: clamp(14px,2vw,17px);
    color: rgba(186,230,253,.85);
    margin: 0 0 28px 0;
    line-height: 1.6;
    max-width: 480px;
}

/* Button */
.tz-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg,#f59e0b 0%,#d97706 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 6px 24px rgba(245,158,11,.4);
    letter-spacing: .01em;
    white-space: nowrap;
}

.tz-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(245,158,11,.5);
    filter: brightness(1.08);
    color: #fff;
    text-decoration: none;
}

.tz-banner__btn:active { transform: translateY(0); }

.tz-btn-arrow { width:18px; height:18px; transition:transform .2s ease; }
.tz-banner__btn:hover .tz-btn-arrow { transform: translateX(4px); }

/* Image */
.tz-banner__img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.tz-banner__img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s ease;
}

.tz-banner__img-wrap:hover .tz-banner__img { transform: scale(1.04); }

.tz-banner__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.15) 0%, transparent 60%);
    pointer-events: none;
}

.tz-no-image .tz-banner__left { max-width: 700px; }

/* Error */
.tz-error {
    background: #fff0f0;
    border-left: 4px solid #e02d2d;
    color: #c00;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
}

/* ──────────────────────────────────────────────────────────
   3. SIZE-SPECIFIC OVERRIDES
   ────────────────────────────────────────────────────────── */

/* --- Leaderboard: 728×90 --- */
.tz-size-leaderboard {
    width: 728px;
    max-width: 100%;
    min-height: 90px;
    padding: 0 20px;
    border-radius: 6px;
    gap: 16px;
    margin: 8px auto;
}

.tz-size-leaderboard .tz-banner__title   { font-size: 16px; margin-bottom: 0; }
.tz-size-leaderboard .tz-banner__badge   { font-size: 10px; padding: 3px 8px; margin-bottom: 0; }
.tz-size-leaderboard .tz-banner__btn     { font-size: 12px; padding: 8px 16px; border-radius: 6px; }

/* --- Billboard: 970×250 --- */
.tz-size-billboard {
    width: 970px;
    max-width: 100%;
    min-height: 250px;
    padding: 32px 48px;
    border-radius: 14px;
}

.tz-size-billboard .tz-banner__right { width: 380px; }
.tz-size-billboard .tz-banner__img   { height: 170px; }

/* --- Mobile Banner: 320×50 --- */
.tz-size-mobile-banner {
    width: 320px;
    max-width: 100%;
    min-height: 50px;
    padding: 0 12px;
    border-radius: 4px;
    gap: 10px;
    margin: 4px auto;
}

.tz-size-mobile-banner .tz-banner__title { font-size: 12px; margin-bottom: 0; }
.tz-size-mobile-banner .tz-banner__btn   { font-size: 11px; padding: 5px 10px; border-radius: 4px; }

/* --- Mobile Leaderboard: 320×100 --- */
.tz-size-mobile-leaderboard {
    width: 320px;
    max-width: 100%;
    min-height: 100px;
    padding: 10px 16px;
    border-radius: 8px;
    gap: 12px;
    margin: 8px auto;
}

.tz-size-mobile-leaderboard .tz-banner__title    { font-size: 14px; margin-bottom: 4px; }
.tz-size-mobile-leaderboard .tz-banner__subtitle { font-size: 11px; margin-bottom: 8px; }
.tz-size-mobile-leaderboard .tz-banner__btn      { font-size: 12px; padding: 7px 14px; }

/* --- Medium Rectangle: 300×250 --- */
.tz-size-medium-rectangle {
    width: 300px;
    max-width: 100%;
    min-height: 250px;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: 14px;
    gap: 16px;
    margin: 12px auto;
}

.tz-size-medium-rectangle .tz-banner__right { width: 100%; order: -1; }
.tz-size-medium-rectangle .tz-banner__img   { height: 120px; border-radius: 8px; }
.tz-size-medium-rectangle .tz-banner__title { font-size: 18px; }

/* --- Square: 250×250 --- */
.tz-size-square {
    width: 250px;
    max-width: 100%;
    min-height: 250px;
    flex-direction: column;
    padding: 24px 20px;
    border-radius: 14px;
    gap: 12px;
    margin: 12px auto;
}

.tz-size-square .tz-banner__right { width: 100%; order: -1; }
.tz-size-square .tz-banner__img   { height: 100px; border-radius: 8px; }
.tz-size-square .tz-banner__title { font-size: 16px; }
.tz-size-square .tz-banner__btn   { font-size: 13px; padding: 9px 18px; }

/* --- Large Rectangle: 336×280 --- */
.tz-size-large-rectangle {
    width: 336px;
    max-width: 100%;
    min-height: 280px;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: 14px;
    gap: 16px;
    margin: 12px auto;
}

.tz-size-large-rectangle .tz-banner__right { width: 100%; order: -1; }
.tz-size-large-rectangle .tz-banner__img   { height: 130px; border-radius: 8px; }
.tz-size-large-rectangle .tz-banner__title { font-size: 18px; }

/* --- Wide Skyscraper: 160×600 --- */
.tz-size-skyscraper {
    width: 160px;
    max-width: 100%;
    min-height: 600px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
    border-radius: 14px;
    gap: 16px;
    margin: 12px auto;
}

.tz-size-skyscraper .tz-banner__right { width: 100%; order: -1; }
.tz-size-skyscraper .tz-banner__img   { height: 150px; }
.tz-size-skyscraper .tz-banner__title    { font-size: 14px; }
.tz-size-skyscraper .tz-banner__subtitle { font-size: 12px; }
.tz-size-skyscraper .tz-banner__btn      { font-size: 12px; padding: 9px 12px; width: 100%; justify-content: center; }

/* --- Half Page: 300×600 --- */
.tz-size-half-page {
    width: 300px;
    max-width: 100%;
    min-height: 600px;
    flex-direction: column;
    padding: 36px 28px;
    border-radius: 18px;
    gap: 20px;
    margin: 12px auto;
}

.tz-size-half-page .tz-banner__right { width: 100%; order: -1; }
.tz-size-half-page .tz-banner__img   { height: 200px; }
.tz-size-half-page .tz-banner__title { font-size: 22px; }

/* --- Default (Full-Width Responsive) --- */
.tz-size-default {
    max-width: 1200px;
}

/* ──────────────────────────────────────────────────────────
   4. LAYOUT HELPERS
   ────────────────────────────────────────────────────────── */

/* Compact layout – hide subtitle, smaller everything */
.tz-layout-compact .tz-banner__subtitle { display: none !important; }
.tz-layout-compact .tz-banner__badge    { display: none !important; }

/* Tall layout – stack vertically */
.tz-layout-tall {
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* ──────────────────────────────────────────────────────────
   5. RESPONSIVE
   ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .tz-size-billboard,
    .tz-size-leaderboard { width: 100%; }
    .tz-size-billboard .tz-banner__right { width: 260px; }
}

@media (max-width: 768px) {
    .tz-banner {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
    }

    .tz-banner__right { width: 100%; order: 2; }
    .tz-banner__left  { order: 1; }
    .tz-banner__img   { height: 200px; }

    /* Keep fixed-size banners fixed on mobile */
    .tz-size-square,
    .tz-size-medium-rectangle,
    .tz-size-large-rectangle,
    .tz-size-skyscraper,
    .tz-size-half-page,
    .tz-size-mobile-banner,
    .tz-size-mobile-leaderboard {
        /* These are already column or compact – no override needed */
    }
}

@media (max-width: 480px) {
    .tz-banner          { padding: 24px 18px; border-radius: 14px; }
    .tz-banner__btn     { font-size: 14px; padding: 12px 20px; }
    .tz-size-default    { border-radius: 14px; }
}

/* ──────────────────────────────────────────────────────────
   6. ADMIN STYLES
   ────────────────────────────────────────────────────────── */

.tz-meta-wrap {
    padding: 16px 4px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tz-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tz-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .tz-field-row { grid-template-columns: 1fr; }
}

.tz-label {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}

.tz-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.tz-input:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15,76,129,.12);
    background: #fff;
}

.tz-input-lg { font-size: 15px; font-weight: 600; padding: 11px 14px; }

.tz-hint { font-size: 11.5px; color: #94a3b8; margin-top: 3px; }

/* Image upload */
.tz-image-upload-wrap { display: flex; flex-direction: column; gap: 10px; }

.tz-upload-placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    padding: 28px;
    color: #94a3b8;
    background: #f8fafc;
    cursor: pointer;
}

.tz-upload-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.tz-upload-placeholder p { margin: 0; font-size: 13px; }

.tz-img-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
}

.tz-img-preview img { display: block; width: 100%; max-height: 180px; object-fit: cover; }

.tz-remove-img {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(15,23,42,.75);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tz-upload-btn { align-self: flex-start; }

/* Preview box */
.tz-live-preview-box { padding: 8px 4px; }
.tz-preview-hint { font-size: 12px; color: #94a3b8; text-align: center; margin: 0; }

/* Shortcode box */
.tz-sc-box { display: flex; flex-direction: column; gap: 6px; }

.tz-sc-box code {
    display: block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    word-break: break-all;
    color: #0f4c81;
}

.tz-copy-btn { cursor: pointer; }

/* Admin live preview */
#tz-live-preview .tz-banner {
    margin: 0;
    padding: 20px 18px;
    min-height: auto;
    gap: 14px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15,23,42,.2);
    /* Override fixed sizes inside preview */
    width: 100% !important;
    min-height: 80px !important;
}

#tz-live-preview .tz-banner__title    { font-size: 16px; margin-bottom: 6px; }
#tz-live-preview .tz-banner__subtitle { font-size: 12px; margin-bottom: 14px; }
#tz-live-preview .tz-banner__btn      { font-size: 12px; padding: 9px 16px; }
#tz-live-preview .tz-banner__right    { width: 100px; }
#tz-live-preview .tz-banner__img      { height: 70px; }
