.tik64-state{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0}.tik64-state>span{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 14px;border-radius:999px;background:#eef4ff;color:#34547d;font-size:12px;font-weight:700;border:1px solid #e3ebf7}.tik64-state>span i{color:#3479e8}.tik64-state.is-powered{padding:10px;border-radius:18px;background:linear-gradient(100deg,#fff9e8,#fff,#fff3cf);border:1px solid #ffdc78;box-shadow:0 8px 25px rgba(245,158,11,.12)}.tik64-state .tik64-vip{color:#92400e;background:linear-gradient(135deg,#fff4bd,#ffd970);border-color:#f3b934;box-shadow:0 0 0 4px rgba(251,191,36,.14),0 5px 18px rgba(245,158,11,.18)}.tik64-state .tik64-vip i{color:#a95d0a}.tik64-actions{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px}.tik64-actions form{margin:0}.tik64-actions .tik-action-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-width:118px;min-height:38px;padding:8px 17px!important;border:0!important;border-radius:999px!important;color:#fff!important;font:700 12px/1.4 inherit;cursor:pointer;text-decoration:none!important;box-shadow:0 6px 15px rgba(15,23,42,.09);transition:transform .18s,filter .18s}.tik64-actions .tik-action-btn:hover{transform:translateY(-2px);filter:saturate(1.1)}.tik64-actions .edit-btn{background:#3ba0ee!important}.tik64-actions .delete-btn{background:#f44f56!important}.tik64-actions .expire-btn{background:#df1f27!important}.tik64-actions .save-btn{background:#55b961!important}.tik64-actions .save-btn.saved{background:#6d54c6!important}.tik64-actions .upgrade-btn{background:linear-gradient(135deg,#ff7848,#ff5c34)!important}.tik64-upgrade-overlay[hidden]{display:none!important}.tik64-upgrade-overlay{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:12px;background:rgba(15,23,42,.62);backdrop-filter:blur(5px)}.tik64-upgrade-dialog{position:relative;direction:rtl;width:min(600px,100%);max-height:calc(100vh - 24px);overflow:auto;padding:24px 16px 16px;border-radius:30px;background:#fff;color:#172033;box-shadow:0 30px 80px rgba(0,0,0,.32)}.tik64-modal-close{position:absolute;left:16px;top:15px;width:36px;height:36px;border:0;border-radius:50%;background:#3b82f6;color:#fff;font-size:25px;line-height:1;cursor:pointer}.tik64-upgrade-dialog h2{margin:3px 42px 7px;text-align:center;font-size:24px}.tik64-upgrade-dialog h2 i{margin-left:8px;color:#e12c31}.tik64-modal-sub{text-align:center;color:#64748b;font-size:12px;margin:0 0 16px}.tik64-current{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;background:#e1f2ff;border-radius:19px;padding:15px 7px;margin-bottom:18px}.tik64-current span{display:flex;align-items:center;flex-direction:column;gap:5px;text-align:center}.tik64-current i{font-style:normal;font-size:22px}.tik64-current small{font-size:11px;color:#1565aa}.tik64-current b{font-size:17px;color:#064594}.tik64-control{padding:0 0 14px;margin-bottom:14px;border-bottom:1px dashed #e2e8f0}.tik64-control>label{display:block;text-align:center;font-size:15px;font-weight:800;margin-bottom:11px}.tik64-control>label i{margin-left:8px;color:#1674da}.tik64-stepper{direction:ltr;display:grid;grid-template-columns:50px 1fr 50px;gap:12px;align-items:center}.tik64-stepper>button{height:50px;border:0;border-radius:50%;color:#fff;background:#0878ed;font-size:30px;font-weight:800;cursor:pointer}.tik64-stepper>button:first-child{background:#f34c51}.tik64-stepper>div{position:relative}.tik64-stepper input{box-sizing:border-box;width:100%;height:48px;border:1px solid #d7dde5;border-radius:14px;background:#f9fafb;text-align:center;font-size:18px;font-weight:800;color:#253047}.tik64-stepper span{position:absolute;left:14px;top:15px;color:#98a1ae;font-size:12px}.tik64-control>small{display:block;margin-top:7px;color:#7b8492;font-size:10px}.tik64-control>small em{display:block;color:#f59e0b;font-style:normal;margin-top:5px}.tik64-invoice{padding:13px 15px;border-radius:16px;background:#f7faff;margin-bottom:13px}.tik64-invoice>div{display:flex;justify-content:space-between;gap:12px;padding:5px;font-size:12px}.tik64-invoice .total{font-size:15px;border-top:1px solid #d8e3f1;margin-top:6px;padding-top:10px}.tik64-invoice .total b{color:#0878ed}.tik64-invoice p{text-align:center;margin:8px 0 0;color:#50627a;font-size:11px}.tik64-submit{width:100%;min-height:58px;border:0;border-radius:22px;background:#0878ed;color:#fff;font:800 17px inherit;cursor:pointer}.tik64-submit:disabled{background:#d8d8d8;color:#fff;cursor:not-allowed}.tik64-form-message{padding:10px;border-radius:10px;background:#fee2e2;color:#991b1b;margin-bottom:12px;font-size:12px}.tik64-control-scope .tik61-video iframe,.tik64-control-scope .tik61-video video{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:14px;background:#111}.tik64-control-scope .tik61-video>a{display:flex;min-height:180px;align-items:center;justify-content:center;gap:10px;border-radius:14px;background:#111827;color:#fff}.tik64-control-scope .tik63-prev-next{display:grid;gap:9px}.tik64-control-scope .tik63-prev-next a{display:flex;align-items:center;gap:10px;padding:9px;border-radius:14px;background:#f5f8fc;color:#1e293b;text-decoration:none}.tik64-control-scope .tik63-prev-next img{width:44px;height:44px;object-fit:cover;border-radius:9px}.tik64-control-scope .tik63-prev-next span{min-width:0;flex:1}.tik64-control-scope .tik63-prev-next small{display:block;color:#718096;font-size:10px}.tik64-control-scope .tik63-prev-next strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px}
html[data-theme=dark] .tik64-state>span{background:#18243a;border-color:#293852;color:#d8e6fa}html[data-theme=dark] .tik64-state.is-powered{background:linear-gradient(110deg,#302513,#151b28,#29200f);border-color:#6d5221}html[data-theme=dark] .tik64-state .tik64-vip{background:linear-gradient(135deg,#795816,#a57217);color:#fff4c4}html[data-theme=dark] .tik64-upgrade-dialog{background:#131b2a;color:#ecf3ff}html[data-theme=dark] .tik64-modal-sub{color:#aab8ca}html[data-theme=dark] .tik64-current{background:#102e4b}html[data-theme=dark] .tik64-current small{color:#9dccf5}html[data-theme=dark] .tik64-current b{color:#e1f2ff}html[data-theme=dark] .tik64-control{border-color:#334155}html[data-theme=dark] .tik64-stepper input{background:#1b2535;border-color:#35445a;color:#fff}html[data-theme=dark] .tik64-invoice{background:#1b2638}html[data-theme=dark] .tik64-invoice .total{border-color:#34445b}
.tik64-control-scope .tik-stats-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tik64-control-scope .tik-stats-mini-card{padding:10px;text-align:center;border:1px solid var(--j-line,#dfe8f3);border-radius:12px;background:var(--j-card2,#f7faff)}.tik64-control-scope .tik-stats-mini-label{display:block;color:var(--j-muted,#64748b);font-size:9px}.tik64-control-scope .tik-stats-mini-value{color:#287cf0;font-size:17px}.tik64-control-scope .tik63-chart{margin:16px 0;color:var(--j-muted,#64748b)}.tik64-control-scope .tik63-chart svg{display:block;width:100%;height:auto;min-height:120px;direction:ltr}.tik64-control-scope .tik63-chart text{font-size:11px;fill:currentColor;font-family:inherit}.tik64-control-scope .tik63-grid{fill:none;stroke:currentColor;opacity:.2}.tik64-control-scope .tik63-line{fill:none;stroke:#5484ff;stroke-width:2}.tik64-control-scope .tik63-dot{fill:var(--j-card,#fff);stroke:#5484ff;stroke-width:1.5}.tik64-control-scope .tik63-chart figcaption,.tik64-control-scope .tik63-chart summary{font-size:10px;text-align:center}.tik64-control-scope .tik63-table-wrap{max-height:220px;overflow:auto}.tik64-control-scope .tik-contact-label{color:var(--j-text,#172033)!important}.tik64-control-scope .tik-contact-item{color:var(--j-text,#172033)!important}.tik64-control-scope .tik64-vip i,.tik64-control-scope .tik-vip-badge i,.tik64-control-scope .tik-chip-vip i{color:#8b4b00!important;text-shadow:0 0 8px rgba(255,190,40,.25)}
html[data-theme=dark] .tik64-control-scope .tik-contact-label,html[data-theme=dark] .tik64-control-scope .tik-contact-item,html[data-theme=dark] .tik64-control-scope .tik-advertiser-box strong,html[data-theme=dark] .tik64-control-scope .tik-sidebar-box h3{color:#f4f8ff!important}html[data-theme=dark] .tik64-control-scope .tik-contact-icon{background:#eaf2ff!important}html[data-theme=dark] .tik64-control-scope .tik64-vip i,html[data-theme=dark] .tik64-control-scope .tik-vip-badge i,html[data-theme=dark] .tik64-control-scope .tik-chip-vip i{color:#fff2a6!important;filter:drop-shadow(0 0 4px #f59e0b)}html[data-theme=dark] .tik64-control-scope .tik63-prev-next a{background:#101d30;color:#edf5ff}html[data-theme=dark] .tik64-control-scope .tik63-prev-next small{color:#b4c3d7}html[data-theme=dark] .tik64-control-scope .tik63-dot{fill:#0f2034}
@media(max-width:680px){.tik64-state{gap:6px}.tik64-state>span{padding:5px 10px;font-size:10px}.tik64-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.tik64-actions form{display:block}.tik64-actions .tik-action-btn{width:100%;min-width:0}.tik64-upgrade-dialog{border-radius:25px;padding:20px 14px 14px}.tik64-upgrade-dialog h2{font-size:20px}.tik64-current{padding:12px 3px}.tik64-current b{font-size:13px}.tik64-current small{font-size:9px}.tik64-stepper{grid-template-columns:46px 1fr 46px;gap:8px}}

/* v0.66: viewport-level modal, refined dark luxury palette, deterministic mobile grid. */
.tik64-upgrade-overlay{position:fixed!important;inset:0!important;width:100vw;height:100vh;height:100dvh;z-index:2147483000!important;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;isolation:isolate;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(5,12,25,.72);backdrop-filter:blur(7px)}
.tik64-upgrade-dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain;box-shadow:0 30px 80px rgba(0,0,0,.38)}
body.tik64-modal-open{overflow:hidden;touch-action:none}
html[data-theme=dark] .tik64-state>span{background:#14243b;border-color:#2d4667;color:#e7f1ff}
html[data-theme=dark] .tik64-state.is-powered{background:linear-gradient(120deg,#0c1b31,#122945 58%,#10233d);border-color:#d6a62b;box-shadow:0 0 0 1px rgba(255,213,79,.08),0 12px 30px rgba(0,0,0,.28),0 0 24px rgba(255,193,7,.10)}
html[data-theme=dark] .tik64-state .tik64-vip{background:linear-gradient(135deg,#ffe89a,#f7bd32);border-color:#ffdc68;color:#3f2900;box-shadow:0 0 0 3px rgba(255,211,72,.12),0 5px 18px rgba(0,0,0,.22)}
html[data-theme=dark] .tik64-state .tik64-vip i{color:#6e4300}
html[data-theme=dark] .tik64-upgrade-dialog{background:#101b2c;color:#ecf3ff;border:1px solid #2d405c}
@media(max-width:680px){
 .tik64-state{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;box-sizing:border-box}
 .tik64-state>span{justify-content:center;padding:6px 8px;font-size:10px;text-align:center}
 .tik64-state .tik64-vip{grid-column:1/-1}
 .tik64-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}
 .tik64-actions form{display:block;min-width:0}
 .tik64-actions .tik-action-btn{width:100%;min-width:0;min-height:42px;padding:8px 9px!important}
 .tik64-actions>.upgrade-btn:last-child{grid-column:1/-1;width:min(220px,100%);justify-self:center}
 .tik64-upgrade-overlay{align-items:center;padding:10px}
 .tik64-upgrade-dialog{width:100%;max-height:calc(100dvh - 20px);border-radius:24px;padding:20px 13px 13px}
 .tik64-upgrade-dialog h2{font-size:20px;margin-inline:38px}
}
@media(max-width:380px){.tik64-state>span{font-size:9px;padding-inline:5px}.tik64-actions{gap:7px}.tik64-actions .tik-action-btn{font-size:10px!important}.tik64-current{grid-template-columns:1fr}.tik64-current span{padding:5px}.tik64-upgrade-dialog h2{font-size:18px}.tik64-stepper{grid-template-columns:42px 1fr 42px}}

/* v0.67: exact legacy upgrade proportions and stable action placement. */
.tik64-upgrade-overlay{display:flex;justify-content:center;align-items:center;padding:16px}
.tik64-upgrade-dialog{box-sizing:border-box;width:100%;max-width:480px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:12px;border-radius:24px}
.tik64-modal-close{top:12px;left:12px;width:26px;height:26px;padding:0;font-size:20px;display:flex;align-items:center;justify-content:center}
.tik64-upgrade-dialog h2{margin:0 34px 6px;padding-top:4px;font-size:20px;line-height:1.5}
.tik64-modal-sub{margin:0 28px 12px;font-size:11px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tik64-current{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;margin-bottom:14px;border-radius:16px}
.tik64-current span{gap:2px;min-width:0}
.tik64-current i{font-size:20px;line-height:1.3}
.tik64-current small{font-size:10px;line-height:1.6;white-space:nowrap}
.tik64-current b{font-size:15px;line-height:1.6;white-space:nowrap}
.tik64-control{padding:0;margin:0 0 12px;border-bottom:0}
.tik64-control>label{margin-bottom:6px;font-size:13px;font-weight:700}
.tik64-control>label i{font-size:14px}
.tik64-stepper{display:flex;align-items:center;gap:10px}
.tik64-stepper>button{flex:0 0 40px;width:40px;min-width:40px;height:40px;min-height:40px;border-radius:50%;padding:0;font-size:28px;line-height:1}
.tik64-stepper>div{flex:1;min-width:0;height:40px}
.tik64-stepper input{height:40px;border-radius:12px;font-size:18px;padding:0 40px 0 12px}
.tik64-stepper span{left:12px;top:12px;font-size:11px}
.tik64-control>small{margin-top:4px;padding-top:3px;border-top:1px dashed #eee;text-align:left;font-size:10px;line-height:1.7}
.tik64-control>small em{margin-top:2px}
.tik64-invoice{padding:10px;margin:8px 0 0;border:1px solid #e9ecef;border-radius:16px}
.tik64-invoice>div{padding:2px 4px;font-size:12px;line-height:1.7}
.tik64-invoice .total{margin-top:6px;padding-top:8px;font-size:14px;border-top-width:2px}
.tik64-invoice .total b{font-size:16px}
.tik64-invoice p{margin:7px 0 0;font-size:10px;line-height:1.8}
.tik64-submit{min-height:44px;margin-top:12px;border-radius:50px;font-size:14px}

@media(max-width:768px){
 .tik64-control-scope .tik64-state{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;padding:9px}
 .tik64-control-scope .tik64-state>.tik64-vip{grid-column:1/-1}
 .tik64-control-scope .tik64-state>span:not(.tik64-vip){min-width:0;padding:6px 4px;justify-content:center;font-size:9px;white-space:nowrap}
 .tik64-control-scope .tik64-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%;margin-top:8px}
 .tik64-control-scope .tik64-actions>form,.tik64-control-scope .tik64-actions>a,.tik64-control-scope .tik64-actions>button{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important}
 .tik64-control-scope .tik64-actions>form{display:block!important}
 .tik64-control-scope .tik64-actions>form>.tik-action-btn,.tik64-control-scope .tik64-actions>.tik-action-btn{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;min-height:40px!important;padding:7px 8px!important;font-size:11px!important}
 .tik64-control-scope .tik64-actions>.upgrade-btn:last-child{grid-column:1/-1;width:calc(50% - 4px)!important;justify-self:center}
 .tik64-upgrade-dialog{padding:10px}
}
@media(max-width:480px){
 .tik64-upgrade-overlay{padding:10px}
 .tik64-upgrade-dialog{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:10px;border-radius:22px}
 .tik64-upgrade-dialog h2{font-size:18px}
 .tik64-current{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px;padding:8px 4px}
 .tik64-current i{font-size:16px}
 .tik64-current small{font-size:9px}
 .tik64-current b{font-size:12px}
 .tik64-stepper>button{flex-basis:38px;width:38px;min-width:38px;height:38px;min-height:38px;font-size:26px}
 .tik64-stepper>div,.tik64-stepper input{height:38px}
 .tik64-stepper input{font-size:16px;padding:0 32px 0 8px}
 .tik64-stepper span{top:11px}
}
@media(max-width:360px){
 .tik64-upgrade-overlay{padding:6px}
 .tik64-upgrade-dialog{max-height:calc(100dvh - 12px);border-radius:20px}
 .tik64-current small{font-size:8px}
 .tik64-current b{font-size:11px}
 .tik64-control-scope .tik64-state{gap:5px;padding:7px 5px}
 .tik64-control-scope .tik64-state>span:not(.tik64-vip){font-size:8px;padding-inline:2px;gap:3px}
 .tik64-control-scope .tik64-actions{gap:6px!important}
 .tik64-control-scope .tik64-actions>form>.tik-action-btn,.tik64-control-scope .tik64-actions>.tik-action-btn{font-size:10px!important;padding-inline:5px!important}
}
