/* WelcomeTV Core Frontend
   Scoped because themes/Elementor enjoy vandalism.
*/

/* Base */

.wtv-dashboard {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    color: #34324a;
}

.wtv-dashboard *,
.wtv-dashboard *::before,
.wtv-dashboard *::after {
    box-sizing: border-box;
}

.wtv-dashboard-header {
    margin-bottom: 28px;
}

.wtv-dashboard-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.wtv-dashboard-header h2,
.wtv-dashboard h2 {
    margin: 0 0 8px !important;
    color: #34324a !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.wtv-dashboard-header p,
.wtv-dashboard p {
    color: #5c6173 !important;
}

.wtv-dashboard-header p {
    margin: 0 !important;
    opacity: 1 !important;
}

/* Cards */

.wtv-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wtv-card {
    background: #ffffff !important;
    border: 1px solid rgba(52, 50, 74, 0.18) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    color: #34324a !important;
    box-shadow: none !important;
}

.wtv-card h3 {
    margin: 0 0 12px !important;
    color: #34324a !important;
    font-size: 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wtv-card p {
    margin: 0 0 14px !important;
    color: #5c6173 !important;
    opacity: 1 !important;
}

.wtv-big-number {
    color: #34324a;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}

/* Buttons */

.wtv-button,
.wtv-blue-button,
.wtv-dark-button,
.wtv-dashboard button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 16px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #1d2530 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.wtv-button:hover,
.wtv-blue-button:hover,
.wtv-dark-button:hover,
.wtv-dashboard button:hover {
    background: #2a3442 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.wtv-button.small {
    min-height: 30px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
}

.wtv-danger-link {
    background: #1d2530 !important;
}

/* Status */

.wtv-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(52, 50, 74, 0.08);
    color: #34324a;
}

.wtv-status-active {
    background: rgba(46, 204, 113, 0.2);
}

.wtv-status-suspended,
.wtv-status-expired {
    background: rgba(255, 0, 2, 0.18);
}

/* Tables */

.wtv-table-wrap {
    width: 100%;
    overflow-x: hidden;
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid rgba(52, 50, 74, 0.18) !important;
}

.wtv-table {
    width: 100%;
    border-collapse: collapse;
    color: #34324a !important;
}

.wtv-table th,
.wtv-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(52, 50, 74, 0.12);
    text-align: left;
    vertical-align: middle;
    color: #34324a !important;
}

.wtv-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.wtv-table tr:last-child td {
    border-bottom: 0;
}

.wtv-table code {
    color: #34324a !important;
    background: rgba(52, 50, 74, 0.08);
    padding: 3px 6px;
    border-radius: 6px;
}

.wtv-table a {
    color: #1d2530 !important;
}

/* Messages */

.wtv-dashboard-message {
    max-width: 760px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(52, 50, 74, 0.18);
    color: #34324a;
}

/* Forms */

.wtv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wtv-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.wtv-field label {
    color: #34324a !important;
    font-weight: 800 !important;
}

.wtv-field input,
.wtv-field select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(52, 50, 74, 0.18);
    background: #ffffff;
    color: #111111;
}

.wtv-field input:focus,
.wtv-field select:focus {
    outline: none;
    border-color: rgba(52, 50, 74, 0.45);
}

.wtv-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wtv-muted {
    opacity: 0.7;
    font-size: 14px;
    color: #5c6173 !important;
}

/* Templates */

.wtv-templates-page {
    max-width: 1220px;
}

.wtv-template-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 160px;
    gap: 10px;
    margin: 20px 0 16px;
    padding: 12px;
    border: 1px solid #e3e6ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(20, 24, 40, 0.025);
}

.wtv-template-toolbar input,
.wtv-template-toolbar select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d9dde8;
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
    color: #171b2d;
    font-size: 13px;
    font-weight: 700;
}

.wtv-templates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wtv-template-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #e3e6ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(20, 24, 40, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wtv-template-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 27, 45, 0.20);
    box-shadow: 0 24px 70px rgba(20, 24, 40, 0.08);
}

.wtv-template-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
}

.wtv-template-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .22s ease;
}

.wtv-template-card:hover .wtv-template-thumb img {
    transform: scale(1.035);
}

.wtv-template-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #ffffff;
    text-align: center;
    font-weight: 900;
    background: #171b2d;
}

.wtv-template-body {
    padding: 14px 0 16px;
}

.wtv-template-ratio {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0f2f7;
    color: #34324a;
    font-size: 11px;
    font-weight: 900;
}

.wtv-template-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.wtv-template-ratio,
.wtv-template-slides {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.wtv-template-ratio {
    margin-bottom: 0;
    background: #f0f2f7;
    color: #34324a;
}

.wtv-template-slides {
    background: rgba(255, 0, 2, 0.10);
    color: #b10000;
}

.wtv-template-body h3 {
    margin: 0 !important;
    color: #25263a !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wtv-template-button {
    margin-top: auto;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #171b2d !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.wtv-template-button:hover {
    background: #252b43 !important;
    color: #ffffff !important;
}

.wtv-template-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.wtv-template-count {
    margin: 16px 0 0 !important;
    color: #697086 !important;
    font-size: 13px !important;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .wtv-templates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .wtv-template-toolbar {
        grid-template-columns: 1fr;
    }

    .wtv-templates-grid {
        grid-template-columns: 1fr;
    }
}

/* Slides list */

.wtv-slides-page {
    max-width: 1220px;
}

.wtv-slide-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 180px;
    gap: 14px;
    margin: 26px 0 18px;
    padding: 18px;
    border: 1px solid #e3e6ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(20, 24, 40, 0.04);
}

.wtv-slide-toolbar input,
.wtv-slide-toolbar select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d9dde8;
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
    color: #171b2d;
    font-size: 13px;
    font-weight: 700;
}

.wtv-slides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wtv-slide-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 18px;
    border: 1px solid #e3e6ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(20, 24, 40, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wtv-slide-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 27, 45, 0.20);
    box-shadow: 0 24px 70px rgba(20, 24, 40, 0.08);
}

.wtv-slide-card-main {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(160px, 1.25fr);
    gap: 18px;
    align-items: start;
    flex: 1;
}

.wtv-slide-meta h3 {
    margin: 0 0 6px !important;
    color: #25263a !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
    word-break: break-word;
}

.wtv-slide-meta > span {
    display: block;
    color: #697086;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.wtv-slide-meta p {
    margin: 0 !important;
    color: #697086 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.wtv-slide-meta p strong {
    color: #25263a;
    font-weight: 800;
}

.wtv-slide-preview-box {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 11px;
    overflow: hidden;
    background: #111827;
    text-decoration: none;
}

.wtv-slide-preview-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .22s ease;
}

.wtv-slide-card:hover .wtv-slide-preview-box img {
    transform: scale(1.035);
}

.wtv-video-placeholder {
    width: 100%;
    height: 100%;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wtv-video-placeholder span {
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.wtv-slide-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 42px;
    gap: 10px;
    margin-top: 16px;
}

.wtv-light-button,
.wtv-icon-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    border: 1px solid #d9dde8 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #171b2d !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.wtv-light-button:hover,
.wtv-icon-button:hover {
    background: #f8f9fc !important;
    color: #171b2d !important;
}

.wtv-icon-button {
    font-size: 22px !important;
    padding: 0 !important;
}

.wtv-icon-button.wtv-danger-link {
    color: #b10000 !important;
}

.wtv-add-slide-card {
    min-height: 230px;
    border: 2px dashed #d7dce8;
    border-radius: 16px;
    background: #fbfcff;
    color: #34324a !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.wtv-add-slide-card:hover {
    border-color: #171b2d;
    background: #ffffff;
    transform: translateY(-2px);
}

.wtv-add-slide-card span {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #edf0f6;
    display: grid;
    place-items: center;
    color: #171b2d;
    font-size: 32px;
    font-weight: 700;
}

.wtv-add-slide-card strong {
    color: #25263a;
    font-size: 16px;
    font-weight: 900;
}

.wtv-add-slide-card small {
    color: #697086;
    font-size: 13px;
}

.wtv-slide-count {
    margin: 16px 0 0 !important;
    color: #697086 !important;
    font-size: 13px !important;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .wtv-slides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .wtv-slide-toolbar {
        grid-template-columns: 1fr;
    }

    .wtv-slides-grid {
        grid-template-columns: 1fr;
    }

    .wtv-slide-card-main {
        grid-template-columns: 1fr;
    }

    .wtv-slide-actions {
        grid-template-columns: 1fr;
    }
}

.wtv-slide-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111827;
}

.wtv-video-play-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 900;
}

.wtv-slide-preview-box {
    position: relative;
}

/* Slideshows list */

.wtv-slideshow-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

.wtv-slideshow-card {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgba(52, 50, 74, 0.28) !important;
    border-radius: 10px !important;
    padding: 22px !important;
    color: #34324a !important;
    box-shadow: none !important;
}

.wtv-slideshow-card-header {
    display: block !important;
    margin-bottom: 18px !important;
}

.wtv-slideshow-card-header h3 {
    margin: 0 !important;
    color: #34324a !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.wtv-slideshow-card-header code {
    display: none !important;
}

.wtv-slideshow-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 16px 0 20px !important;
}

.wtv-slideshow-meta-grid div {
    border: 1px solid rgba(52, 50, 74, 0.14) !important;
    border-radius: 7px !important;
    padding: 10px 12px !important;
    background: #f9f9fb !important;
    color: #34324a !important;
}

.wtv-slideshow-meta-grid span {
    display: block !important;
    margin-bottom: 5px !important;
    color: #34324a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    opacity: 0.65 !important;
}

.wtv-slideshow-meta-grid strong {
    display: block !important;
    color: #34324a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    word-break: break-word !important;
}

.wtv-slideshow-actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

.wtv-slideshow-actions .wtv-blue-button {
    min-width: 96px !important;
}

/* Slideshow editor */

.wtv-slideshow-editor .wtv-card {
    margin-bottom: 18px;
}

.wtv-slideshow-rows {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.wtv-dashboard .wtv-slideshow-row {
    display: grid !important;
    grid-template-columns: 38px 220px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: center !important;
    min-height: auto !important;
    padding: 18px !important;
    border: 1px solid rgba(52, 50, 74, 0.18) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    cursor: grab !important;
}

.wtv-dashboard .wtv-slideshow-row:active {
    cursor: grabbing !important;
}

.wtv-dashboard .wtv-sortable-ghost {
    opacity: 0.35 !important;
}

.wtv-dashboard .wtv-sortable-chosen {
    border-color: rgba(52, 50, 74, 0.45) !important;
}

.wtv-dashboard .wtv-row-drag {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    color: #34324a !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    cursor: grab !important;
    user-select: none !important;
}

.wtv-dashboard .wtv-row-preview {
    grid-column: 2 !important;
    width: 220px !important;
    max-width: 220px !important;
    justify-self: start !important;
}

.wtv-dashboard .wtv-row-main {
    grid-column: 3 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 180px !important;
    gap: 18px !important;
    align-items: end !important;
    width: 100% !important;
    min-width: 0 !important;
}

.wtv-dashboard .wtv-row-main > .wtv-field {
    margin-bottom: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.wtv-dashboard .wtv-row-main select {
    width: 100% !important;
}

.wtv-dashboard .wtv-row-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: end !important;
    width: 180px !important;
    min-width: 180px !important;
}

.wtv-dashboard .wtv-row-meta .wtv-field {
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.wtv-dashboard .wtv-row-meta .wtv-dark-button {
    width: 100% !important;
}

.wtv-dashboard .wtv-row-image-thumb,
.wtv-dashboard .wtv-row-video-thumb,
.wtv-dashboard .wtv-row-empty {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #111111 !important;
}

.wtv-dashboard .wtv-row-image-thumb img,
.wtv-dashboard .wtv-row-video-thumb video {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

.wtv-dashboard .wtv-row-empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.wtv-dashboard .wtv-row-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.72) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
}

.wtv-dashboard .wtv-duration-input.is-readonly {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

.wtv-total-duration {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f9f9fb;
    border: 1px solid rgba(52, 50, 74, 0.14);
    color: #34324a;
    font-weight: 800;
}

.wtv-audio-select-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.wtv-audio-select-row select {
    flex: 1;
    min-width: 0;
}

.wtv-audio-preview-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #171b2d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.wtv-audio-preview-button:hover {
    opacity: 0.9;
}

/* Responsive */

@media (max-width: 1100px) {
    .wtv-slides-grid,
    .wtv-slideshow-card-grid {
        grid-template-columns: 1fr !important;
    }

    .wtv-dashboard .wtv-slideshow-row {
        grid-template-columns: 38px 180px minmax(0, 1fr) !important;
    }

    .wtv-dashboard .wtv-row-preview {
        width: 180px !important;
        max-width: 180px !important;
    }

    .wtv-dashboard .wtv-row-main {
        grid-template-columns: minmax(0, 1fr) 170px !important;
    }

    .wtv-dashboard .wtv-row-meta {
        width: 170px !important;
        min-width: 170px !important;
    }
}

@media (max-width: 900px) {
    .wtv-dashboard-grid,
    .wtv-template-grid {
        grid-template-columns: 1fr;
    }

    .wtv-dashboard {
        padding: 18px;
    }
}

@media (max-width: 820px) {
    .wtv-dashboard .wtv-slideshow-row {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        align-items: start !important;
    }

    .wtv-dashboard .wtv-row-drag {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
    }

    .wtv-dashboard .wtv-row-preview {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 360px !important;
        justify-self: start !important;
    }

    .wtv-dashboard .wtv-row-main {
        grid-column: 2 !important;
        grid-row: 2 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .wtv-dashboard .wtv-row-meta {
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr 140px !important;
        align-items: end !important;
    }
}

@media (max-width: 780px) {
    .wtv-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .wtv-dashboard-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .wtv-slide-card-content {
        grid-template-columns: 1fr;
    }

    .wtv-slide-preview-box {
        justify-self: start;
        max-width: 100%;
    }

    .wtv-slideshow-meta-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 520px) {
    .wtv-dashboard .wtv-slideshow-row {
        grid-template-columns: 1fr !important;
    }

    .wtv-dashboard .wtv-row-drag,
    .wtv-dashboard .wtv-row-preview,
    .wtv-dashboard .wtv-row-main {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .wtv-dashboard .wtv-row-preview {
        max-width: 100% !important;
    }

    .wtv-dashboard .wtv-row-meta {
        grid-template-columns: 1fr !important;
    }
}

/* TEMP HARD FIX — Slideshow editor layout */

.wtv-dashboard .wtv-slideshow-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(52, 50, 74, 0.18) !important;
    border-radius: 10px !important;
    cursor: grab !important;
}

.wtv-dashboard .wtv-row-drag {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wtv-dashboard .wtv-row-preview {
    flex: 0 0 220px !important;
    width: 220px !important;
    max-width: 220px !important;
    min-width: 220px !important;
    order: 2 !important;
}

.wtv-dashboard .wtv-row-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    gap: 18px !important;
    order: 3 !important;
}

.wtv-dashboard .wtv-row-main > .wtv-field {
    flex: 1 1 auto !important;
    min-width: 220px !important;
    margin-bottom: 0 !important;
}

.wtv-dashboard .wtv-row-meta {
    flex: 0 0 180px !important;
    width: 180px !important;
    min-width: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.wtv-dashboard .wtv-row-meta .wtv-field {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.wtv-dashboard .wtv-row-meta .wtv-dark-button {
    width: 100% !important;
}

.wtv-dashboard .wtv-row-image-thumb,
.wtv-dashboard .wtv-row-video-thumb,
.wtv-dashboard .wtv-row-empty {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #111111 !important;
}

.wtv-dashboard .wtv-row-image-thumb img,
.wtv-dashboard .wtv-row-video-thumb video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 900px) {
    .wtv-dashboard .wtv-slideshow-row {
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }

    .wtv-dashboard .wtv-row-drag {
        flex: 0 0 34px !important;
    }

    .wtv-dashboard .wtv-row-preview {
        flex: 0 0 calc(100% - 52px) !important;
        width: calc(100% - 52px) !important;
        max-width: 360px !important;
        min-width: 0 !important;
    }

    .wtv-dashboard .wtv-row-main {
        flex: 0 0 calc(100% - 52px) !important;
        margin-left: 52px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .wtv-dashboard .wtv-row-meta {
        width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        flex-direction: row !important;
    }
}

@media (max-width: 520px) {
    .wtv-dashboard .wtv-row-main {
        margin-left: 0 !important;
        flex: 0 0 100% !important;
    }

    .wtv-dashboard .wtv-row-preview {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wtv-dashboard .wtv-row-meta {
        flex-direction: column !important;
    }
}

:root {
    --wtv-bg: #F5F7FB;
    --wtv-border: #E5E7EB;
    --wtv-muted: #6B7280;
    --wtv-fg: #0F172A;
    --wtv-primary: #191B2C;
    --wtv-accent: #FF0002;
    --wtv-ok: #16A34A;
    --wtv-bad: #DC2626;
    --wtv-warn: #F59E0B;
}

.wtv-lg,
.wtv-lg * {
    font-size: 16px;
    line-height: 1.6;
}

.wtv-card {
    background: #fff;
    padding: 22px;
    border: 1px solid var(--wtv-border);
    border-radius: 14px;
    max-width: 900px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
    margin-bottom: 18px;
}

.wtv-title {
    margin: 0 0 14px;
    color: var(--wtv-primary);
    letter-spacing: .3px;
    font-size: 22px;
}

.wtv-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 10px 0 12px;
}

.wtv-stat {
    background: #F3F4F6;
    border: 1px solid var(--wtv-border);
    border-radius: 10px;
    padding: 12px;
}

.wtv-stat .k {
    font-size: 14px;
    color: var(--wtv-muted);
}

.wtv-stat .v {
    font-weight: 700;
}

.wtv-progress {
    position: relative;
    height: 28px;
    background: #EEF2FF;
    border: 1px solid var(--wtv-border);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}

.wtv-progress .bar {
    height: 100%;
    border-radius: 999px;
    transition: width .25s ease;
}

.wtv-progress.wtv-green .bar {
    background: #22C55E;
}

.wtv-progress.wtv-orange .bar {
    background: #F59E0B;
}

.wtv-progress.wtv-red .bar {
    background: #EF4444;
}

.wtv-progress .label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
}

.wtv-days-mini {
    display: none;
    margin-top: 6px;
    font-size: 14px;
    color: var(--wtv-muted);
    font-weight: 600;
}

.wtv-progress.mini .label {
    display: none;
}

.wtv-progress.mini + .wtv-days-mini {
    display: block;
}

.wtv-renew-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 16px;
    align-items: start;
}

.wtv-renew-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.wtv-renew-left .wtv-label {
    display: block;
    margin: 0 0 6px;
    color: var(--wtv-fg);
    font-weight: 600;
}

.wtv-renew-left select {
    display: block;
    width: 100%;
    min-width: 260px;
    padding: 10px 12px;
    border: 1px solid var(--wtv-border);
    border-radius: 10px;
    background: #fff;
}

.wtv-renew-left .wtv-btn {
    width: 100%;
    margin-top: 10px;
}

.wtv-btn {
    background: var(--wtv-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
}

.wtv-btn:hover {
    opacity: .92;
}

.wtv-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.wtv-help {
    font-size: 12px;
    color: var(--wtv-muted);
    margin-top: 6px;
}

.wtv-preview {
    background: #fff;
    border: 1px dashed var(--wtv-border);
    border-radius: 10px;
    padding: 12px;
}

.wtv-preview .wtv-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.wtv-preview .wtv-calc-row .label {
    flex: 0 0 200px;
    color: var(--wtv-muted);
    font-size: 14px;
    text-align: left;
}

.wtv-preview .wtv-calc-row .value {
    flex: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wtv-preview strong.value {
    font-size: 18px;
}

.wtv-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--wtv-border);
    background: #fff;
}

.wtv-badge.ok {
    color: var(--wtv-ok);
    border-color: #BBF7D0;
    background: #ECFDF5;
}

.wtv-badge.bad {
    color: var(--wtv-bad);
    border-color: #FECACA;
    background: #FEF2F2;
}

@media (max-width: 900px) {
    .wtv-stats {
        grid-template-columns: 1fr 1fr;
    }

    .wtv-renew-grid {
        grid-template-columns: 1fr;
    }

    .wtv-card {
        padding: 18px;
    }

    .wtv-preview .wtv-calc-row .label {
        flex-basis: 150px;
    }

    .wtv-preview .wtv-calc-row .value {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .wtv-stats {
        grid-template-columns: 1fr;
    }

    .wtv-preview .wtv-calc-row {
        align-items: flex-start;
    }
}

/* Account Settings */

.wtv-account-settings {
    max-width: 980px;
}

.wtv-account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.wtv-account-card {
    max-width: 100%;
}

.wtv-message-success {
    border-color: rgba(22, 163, 74, 0.35) !important;
    background: #ecfdf5 !important;
    color: #166534 !important;
}

.wtv-message-error {
    border-color: rgba(220, 38, 38, 0.35) !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}

@media (max-width: 780px) {
    .wtv-account-settings {
        padding: 18px;
    }
}

/* Dashboard home V1.1 */

.wtv-dashboard-home .wtv-dashboard-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.wtv-dashboard-home .wtv-home-card {
    min-height: 215px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wtv-dashboard-home .wtv-home-card .wtv-button {
    margin-top: auto;
}

.wtv-dashboard-home .wtv-card-small {
    font-size: 13px !important;
    margin-top: -6px !important;
}

.wtv-dashboard-player-summary {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 8px 0 18px !important;
}

.wtv-dashboard-player-summary span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
}

.wtv-player-online {
    background: rgba(46, 204, 113, 0.2);
    color: #166534;
}

.wtv-player-offline {
    background: rgba(255, 0, 2, 0.14);
    color: #991b1b;
}

.wtv-mini-list {
    width: 100%;
    display: grid;
    gap: 10px;
}

.wtv-mini-list-item {
    display: grid;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(52, 50, 74, 0.12);
}

.wtv-mini-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wtv-mini-list-item span {
    color: #5c6173;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wtv-mini-list-item strong {
    color: #34324a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
}

.wtv-mini-list-item em {
    color: #5c6173;
    font-size: 13px;
    font-style: normal;
}

.wtv-latest-update-date {
    color: #5c6173;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.wtv-latest-update-title {
    display: block;
    color: #34324a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 8px;
}

.wtv-dashboard-section {
    width: 100%;
    margin-top: 8px;
}

.wtv-dashboard-home,
.wtv-dashboard-home .wtv-dashboard-section,
.wtv-dashboard-home .wtv-ps,
.wtv-dashboard-home .wtv-ps-table-wrap {
    max-width: 100% !important;
    min-width: 0 !important;
}

.wtv-dashboard-home .wtv-ps {
    overflow: hidden !important;
}

.wtv-dashboard-home .wtv-ps-table-wrap {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.wtv-dashboard-home .wtv-ps-table {
    width: 100% !important;
    min-width: 680px !important;
    border-collapse: collapse !important;
}

/* Make old MU player status block visually fit Core dashboard */

.wtv-dashboard-home .wtv-ps {
    border: 1px solid rgba(52, 50, 74, 0.18) !important;
    border-radius: 10px !important;
    padding: 18px !important;
    background: #ffffff !important;
}

.wtv-dashboard-home .wtv-ps-head {
    margin-bottom: 12px !important;
}

.wtv-dashboard-home .wtv-section-title {
    margin: 0 !important;
    color: #34324a !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-weight: 900 !important;
}

.wtv-dashboard-home .wtv-ps-meta {
    color: #5c6173 !important;
}

.wtv-dashboard-home .wtv-ps-table {
    color: #34324a !important;
}

.wtv-dashboard-home .wtv-ps-table th,
.wtv-dashboard-home .wtv-ps-table td {
    padding: 14px 16px !important;
    border-bottom: 1px solid rgba(52, 50, 74, 0.12) !important;
}

.wtv-dashboard-home .wtv-ps-table th {
    color: #34324a !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    opacity: 0.7 !important;
}

@media (max-width: 900px) {
    .wtv-dashboard-home .wtv-dashboard-grid-six {
        grid-template-columns: 1fr;
    }

    .wtv-dashboard-home .wtv-home-card {
        min-height: auto;
    }

    .wtv-dashboard-home .wtv-ps-head {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .wtv-dashboard-home .wtv-ps-table th,
    .wtv-dashboard-home .wtv-ps-table td {
        white-space: nowrap !important;
    }
}

/* Slide Editor V1.5 */

.wtv-slide-editor .wtv-dashboard-header {
    margin-bottom: 24px;
}

.wtv-slide-editor-card {
    max-width: 100% !important;
}

.wtv-slide-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.wtv-slide-editor-main {
    min-width: 0;
}

.wtv-slide-editor-preview {
    border: 1px solid rgba(52, 50, 74, 0.14);
    border-radius: 12px;
    background: #f9f9fb;
    padding: 16px;
}

.wtv-slide-editor-preview h3 {
    margin: 0 0 14px !important;
    color: #34324a !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

.wtv-current-media-empty {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px dashed rgba(52, 50, 74, 0.28);
    background: #ffffff;
    color: #5c6173;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.wtv-current-media-meta {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(52, 50, 74, 0.12);
}

.wtv-current-media-meta span {
    color: #5c6173;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtv-current-media-meta strong {
    color: #34324a;
    font-size: 13px;
    font-weight: 900;
}

.wtv-slide-upload-box {
    border: 1px dashed rgba(52, 50, 74, 0.28);
    border-radius: 12px;
    background: #f9f9fb;
    padding: 14px;
}

.wtv-slide-upload-box input[type="file"] {
    background: #ffffff !important;
}

.wtv-upload-help {
    margin-top: 10px;
    color: #5c6173;
    font-size: 13px;
    line-height: 1.45;
}

.wtv-slide-audio-setting {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(52, 50, 74, 0.14);
    border-radius: 12px;
    background: #ffffff;
}

.wtv-toggle-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    color: #34324a;
    margin: 0;
}

.wtv-toggle-row input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin-top: 3px;
    flex: 0 0 18px;
}

.wtv-toggle-row span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wtv-toggle-row strong {
    color: #34324a;
    font-size: 14px;
    font-weight: 900;
}

.wtv-toggle-row small {
    color: #5c6173;
    font-size: 13px;
    line-height: 1.4;
}

.wtv-upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(25, 27, 44, 0.72);
    padding: 22px;
}

.wtv-upload-overlay.is-visible {
    display: flex;
}

.wtv-upload-overlay-card {
    width: 100%;
    max-width: 460px;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    color: #34324a;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.wtv-upload-overlay-card strong {
    display: block;
    margin-bottom: 8px;
    color: #34324a;
    font-size: 20px;
    font-weight: 900;
}

.wtv-upload-overlay-card p {
    margin: 0 0 16px !important;
    color: #5c6173 !important;
}

.wtv-upload-progress {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(52, 50, 74, 0.12);
}

.wtv-upload-progress span {
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 100%;
    border-radius: 999px;
    background: #ff0002;
    animation: wtv-upload-loading 1.1s infinite ease-in-out;
}

@keyframes wtv-upload-loading {
    0% {
        left: -35%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 960px) {
    .wtv-slide-editor-grid {
        grid-template-columns: 1fr;
    }

    .wtv-slide-editor-preview {
        order: -1;
    }
}

/* HARD FIX — Slide editor media preview must fit inside the box */

.wtv-slide-editor .wtv-current-media-preview {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wtv-slide-editor .wtv-current-media-preview img,
.wtv-slide-editor .wtv-current-media-preview video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    background: #000000 !important;
}

/* Player page layout */

.wtv-players-page {
    max-width: 1180px;
    margin: 0 auto;
}

.wtv-players-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.wtv-players-header h1 {
    margin-bottom: 6px;
}

.wtv-players-header p {
    margin: 0;
    color: #5d6278;
}

.wtv-players-shell {
    border: 1px solid #e3e6ef;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 24, 40, 0.04);
}

.wtv-players-table-head,
.wtv-player-summary {
    display: grid;
    grid-template-columns: 34px 1.5fr 1fr 1.1fr 1.2fr 1fr;
    align-items: center;
    gap: 18px;
}

.wtv-players-table-head {
    padding: 16px 26px;
    color: #697086;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #edf0f6;
    background: #fbfcff;
}

.wtv-players-table-head span:first-child {
    grid-column: 2;
}

.wtv-player-card {
    display: block;
    border-bottom: 1px solid #edf0f6;
    background: #fff;
}

.wtv-player-card:last-child {
    border-bottom: 0;
}

.wtv-player-summary {
    min-height: 74px;
    padding: 14px 26px;
    cursor: pointer;
    list-style: none;
    transition: background .18s ease;
}

.wtv-player-summary:hover {
    background: #fbfcff;
}

.wtv-player-summary::-webkit-details-marker {
    display: none;
}

.wtv-player-card[open] .wtv-player-summary {
    background: #fff;
    border-bottom: 1px solid #edf0f6;
}

.wtv-player-chevron {
    width: 11px;
    height: 11px;
    border-right: 3px solid #171b2d;
    border-bottom: 3px solid #171b2d;
    transform: rotate(-45deg);
    transition: transform .18s ease;
    margin-left: 2px;
}

.wtv-player-card[open] .wtv-player-chevron {
    transform: rotate(45deg);
}

.wtv-player-main strong {
    display: block;
    color: #25263a;
    font-size: 16px;
    font-weight: 900;
}

.wtv-player-main small {
    display: block;
    margin-top: 4px;
    color: #697086;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.wtv-player-last-seen,
.wtv-player-slideshow-name,
.wtv-player-welcome-state {
    color: #25263a;
    font-size: 13px;
    font-weight: 700;
}

.wtv-status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    background: #eef1f6;
    color: #697086;
    margin: 2px 4px 2px 0;
}

.wtv-status-active {
    background: #ddf8e7;
    color: #217a3f;
}

.wtv-status-pending {
    background: #fff4d6;
    color: #9a6a00;
}

.wtv-status-inactive {
    background: #ffe2e2;
    color: #a72727;
}

.wtv-status-welcome,
.wtv-mini-badge {
    background: #e8f1ff;
    color: #405d95;
}

.wtv-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c5cad6;
    margin-right: 7px;
}

.wtv-dot-green {
    background: #22c55e;
}

.wtv-player-expanded {
    padding: 26px;
    background: #fff;
}

.wtv-player-expanded-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.wtv-player-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wtv-player-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 0, 2, 0.10);
    color: #ff0002;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.wtv-player-title-group h2 {
    margin: 0;
    font-size: 24px;
    color: #25263a;
}

.wtv-player-title-group p {
    margin: 3px 0 0;
    color: #697086;
    font-size: 13px;
    font-weight: 800;
}

.wtv-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 18px;
}

.wtv-settings-card {
    border: 1px solid #e3e6ef;
    border-radius: 16px;
    padding: 22px;
    background: #fff;
}

.wtv-settings-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f6;
}

.wtv-settings-card-title span {
    color: #ff0002;
    font-weight: 900;
}

.wtv-settings-card-title h3 {
    margin: 0;
    color: #25263a;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.wtv-mini-badge {
    margin-left: auto;
    border-radius: 999px;
    padding: 5px 10px;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.wtv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wtv-field-full {
    grid-column: 1 / -1;
}

.wtv-field label {
    display: block;
    margin-bottom: 7px;
    color: #25263a;
    font-size: 13px;
    font-weight: 900;
}

.wtv-field input,
.wtv-field select,
.wtv-field textarea {
    width: 100%;
    border: 1px solid #d9dde8;
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 12px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.wtv-field input:disabled {
    background: #f8f9fc;
    color: #6b7280;
}

.wtv-field textarea {
    resize: vertical;
    min-height: 86px;
}

.wtv-checkbox-field {
    display: flex;
    align-items: end;
}

.wtv-checkbox-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
}

.wtv-checkbox-field input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    accent-color: #ff0002;
}

.wtv-meta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
    padding: 18px;
    border-radius: 14px;
    background: #fbfcff;
    border: 1px solid #edf0f6;
}

.wtv-meta-row span {
    display: block;
    color: #697086;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.wtv-meta-row strong {
    color: #25263a;
    font-size: 13px;
}

.wtv-player-actions,
.wtv-clear-form {
    margin-top: 16px;
}

.wtv-player-actions {
    display: flex;
    gap: 10px;
}

.wtv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    padding: 10px 18px;
    background: #171b2d;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.wtv-button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.wtv-button-secondary {
    background: #fff;
    color: #171b2d;
    border: 1px solid #d9dde8;
}

.wtv-button-secondary:hover {
    color: #171b2d;
}

.wtv-button-danger {
    background: rgba(255, 0, 2, 0.10);
    color: #b10000;
}

.wtv-button-danger:hover {
    color: #b10000;
}

.wtv-notice {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 800;
}

.wtv-notice-success {
    background: #ddf8e7;
    color: #217a3f;
}

.wtv-notice-error {
    background: #ffe2e2;
    color: #a72727;
}

@media (max-width: 980px) {
    .wtv-players-table-head {
        display: none;
    }

    .wtv-player-summary {
        grid-template-columns: 28px 1fr auto;
    }

    .wtv-player-status-cell {
        text-align: right;
    }

    .wtv-player-last-seen,
    .wtv-player-slideshow-name,
    .wtv-player-welcome-state {
        display: none;
    }

    .wtv-settings-grid {
        grid-template-columns: 1fr;
    }

    .wtv-form-grid {
        grid-template-columns: 1fr;
    }

    .wtv-player-expanded-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.wtv-welcome-preview-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    border-radius: 14px;
    overflow: hidden;
    background: #171b2d;
    border: 1px solid #e3e6ef;
}

.wtv-welcome-preview-box img,
.wtv-welcome-preview-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wtv-welcome-preview-bg {
    background:
        radial-gradient(circle at top left, rgba(255,0,2,.25), transparent 38%),
        #171b2d;
}

.wtv-welcome-preview-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72%;
    transform: translate(-50%, -50%);
    padding: 18px;
    border-radius: 18px;
    background: rgba(23, 27, 45, 0.66);
    border: 1px solid rgba(255,255,255,.22);
    text-align: center;
    color: #fff;
    backdrop-filter: blur(6px);
}

.wtv-welcome-preview-overlay span {
    display: block;
    margin-bottom: 6px;
    color: #ff0002;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.wtv-welcome-preview-overlay strong {
    display: block;
    font-size: clamp(20px, 3vw, 36px);
    line-height: 1.05;
    font-weight: 900;
}

.wtv-welcome-preview-overlay p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.3;
    opacity: .9;
}

/* end player page */

/* Slideshow create/delete controls */

.wtv-slideshows-page .wtv-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.wtv-inline-form {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wtv-limit-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f3f4f8;
    color: #34324a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(52, 50, 74, 0.12);
}

.wtv-danger-button,
.wtv-dashboard .wtv-danger-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    min-width: 96px !important;
    padding: 8px 16px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #ff0002 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.wtv-danger-button:hover,
.wtv-dashboard .wtv-danger-button:hover {
    background: #c90002 !important;
    color: #ffffff !important;
}

.wtv-dashboard button:disabled,
.wtv-dashboard button:disabled:hover {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

@media (max-width: 820px) {
    .wtv-slideshows-page .wtv-dashboard-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .wtv-slideshows-page .wtv-header-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Slideshow list action buttons - match All Slides cards */
.wtv-slideshows-page .wtv-slideshow-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr 42px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-top: 16px !important;
}

.wtv-slideshows-page .wtv-slideshow-actions .wtv-inline-form {
    display: block !important;
    width: 42px !important;
}

.wtv-slideshows-page .wtv-slideshow-actions .wtv-light-button,
.wtv-slideshows-page .wtv-slideshow-actions .wtv-icon-button,
.wtv-slideshows-page .wtv-slideshow-actions button.wtv-icon-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    border: 1px solid #d9dde8 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #171b2d !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.wtv-slideshows-page .wtv-slideshow-actions .wtv-light-button:hover,
.wtv-slideshows-page .wtv-slideshow-actions .wtv-icon-button:hover,
.wtv-slideshows-page .wtv-slideshow-actions button.wtv-icon-button:hover {
    background: #f8f9fc !important;
    color: #171b2d !important;
}

.wtv-slideshows-page .wtv-slideshow-actions button.wtv-icon-button {
    padding: 0 !important;
    font-size: 22px !important;
}

.wtv-slideshows-page .wtv-slideshow-actions button.wtv-icon-button.wtv-danger-link {
    color: #b10000 !important;
}

/* =========================================================
   WelcomeTV Core Visual Refresh V1
   Goal: one product family, fewer spreadsheet-funeral vibes.
   ========================================================= */

:root {
    --wtv-core-red: #ff0002;
    --wtv-core-red-dark: #c90002;
    --wtv-core-ink: #171b2d;
    --wtv-core-ink-soft: #2c3047;
    --wtv-core-text: #34324a;
    --wtv-core-muted: #667085;
    --wtv-core-bg: #f5f7fb;
    --wtv-core-card: #ffffff;
    --wtv-core-line: #e3e6ef;
    --wtv-core-line-strong: #d9dde8;
    --wtv-core-shadow: 0 18px 50px rgba(20, 24, 40, 0.06);
    --wtv-core-shadow-hover: 0 24px 70px rgba(20, 24, 40, 0.10);
    --wtv-core-radius: 18px;
    --wtv-core-radius-sm: 11px;
}

.wtv-dashboard {
    max-width: 1240px !important;
    padding: 34px 28px !important;
    color: var(--wtv-core-text) !important;
}

.wtv-dashboard-header {
    position: relative;
    margin-bottom: 26px !important;
    padding-left: 28px !important;
}

.wtv-dashboard-header::before,
.wtv-dashboard-home .wtv-section-title::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff3436 0%, var(--wtv-core-red) 62%, #b00002 100%);
    box-shadow: 0 0 0 5px rgba(255, 0, 2, 0.08), 0 10px 22px rgba(255, 0, 2, 0.22);
}

.wtv-dashboard-header::before {
    position: absolute;
    left: 0;
    top: 4px;
}

.wtv-dashboard-header h2,
.wtv-dashboard h2 {
    color: var(--wtv-core-ink) !important;
    font-size: clamp(25px, 2.2vw, 34px) !important;
    font-weight: 950 !important;
    letter-spacing: 0.10em !important;
}

.wtv-dashboard-header p,
.wtv-dashboard p,
.wtv-muted {
    color: var(--wtv-core-muted) !important;
}

.wtv-card,
.wtv-template-card,
.wtv-slide-card,
.wtv-slideshow-card,
.wtv-settings-card,
.wtv-dashboard-home .wtv-ps,
.wtv-players-shell,
.wtv-slide-editor-preview,
.wtv-dashboard-message {
    border: 1px solid var(--wtv-core-line) !important;
    border-radius: var(--wtv-core-radius) !important;
    background: var(--wtv-core-card) !important;
    box-shadow: var(--wtv-core-shadow) !important;
}

.wtv-card,
.wtv-slideshow-card,
.wtv-settings-card,
.wtv-dashboard-home .wtv-ps {
    padding: 24px !important;
}

.wtv-card:hover,
.wtv-template-card:hover,
.wtv-slide-card:hover,
.wtv-slideshow-card:hover {
    border-color: rgba(23, 27, 45, 0.18) !important;
    box-shadow: var(--wtv-core-shadow-hover) !important;
}

.wtv-card h3,
.wtv-template-body h3,
.wtv-slide-meta h3,
.wtv-slideshow-card-header h3,
.wtv-settings-card-title h3,
.wtv-title {
    color: var(--wtv-core-ink) !important;
    font-weight: 950 !important;
}

.wtv-button,
.wtv-blue-button,
.wtv-dark-button,
.wtv-template-button,
.wtv-btn,
.wtv-dashboard button:not(.wtv-icon-button):not(.wtv-template-button) {
    min-height: 42px !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, #22273a 0%, var(--wtv-core-ink) 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 20px rgba(23, 27, 45, 0.14) !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}

.wtv-button::after,
.wtv-blue-button::after,
.wtv-dark-button::after,
.wtv-template-button::after {
    content: "›";
    margin-left: 10px;
    font-size: 19px;
    line-height: 0;
    opacity: .85;
}

.wtv-button:hover,
.wtv-blue-button:hover,
.wtv-dark-button:hover,
.wtv-template-button:hover,
.wtv-btn:hover,
.wtv-dashboard button:not(.wtv-icon-button):not(.wtv-template-button):hover {
    background: linear-gradient(180deg, #30354d 0%, #1f2438 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 26px rgba(23, 27, 45, 0.18) !important;
}

.wtv-light-button,
.wtv-icon-button,
.wtv-button-secondary {
    border: 1px solid var(--wtv-core-line-strong) !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: var(--wtv-core-ink) !important;
    box-shadow: none !important;
}

.wtv-light-button:hover,
.wtv-icon-button:hover,
.wtv-button-secondary:hover {
    background: #f8f9fc !important;
    color: var(--wtv-core-ink) !important;
    transform: translateY(-1px);
}

.wtv-danger-button,
.wtv-dashboard .wtv-danger-button,
.wtv-button-danger {
    background: rgba(255, 0, 2, 0.10) !important;
    color: #b10000 !important;
    border: 1px solid rgba(255, 0, 2, 0.18) !important;
    box-shadow: none !important;
}

.wtv-danger-button:hover,
.wtv-dashboard .wtv-danger-button:hover,
.wtv-button-danger:hover {
    background: rgba(255, 0, 2, 0.16) !important;
    color: #8f0000 !important;
}

.wtv-icon-button.wtv-danger-link,
.wtv-slideshows-page .wtv-slideshow-actions button.wtv-icon-button.wtv-danger-link {
    color: #b10000 !important;
    background: rgba(255, 0, 2, 0.06) !important;
    border-color: rgba(255, 0, 2, 0.16) !important;
}

.wtv-dashboard-grid,
.wtv-dashboard-home .wtv-dashboard-grid-six,
.wtv-templates-grid,
.wtv-slides-grid,
.wtv-slideshow-card-grid {
    gap: 20px !important;
}

.wtv-dashboard-home .wtv-home-card {
    position: relative;
    min-height: 220px !important;
    padding-left: 86px !important;
}

.wtv-dashboard-home .wtv-home-card::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 24px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 0, 2, 0.13), rgba(255, 0, 2, 0.06));
    box-shadow: inset 0 0 0 1px rgba(255, 0, 2, 0.06);
}

.wtv-dashboard-home .wtv-home-card::after {
    content: "";
    position: absolute;
    left: 35px;
    top: 35px;
    width: 24px;
    height: 24px;
    background: var(--wtv-core-red);
    -webkit-mask: var(--wtv-card-icon) center / contain no-repeat;
    mask: var(--wtv-card-icon) center / contain no-repeat;
}

.wtv-dashboard-home .wtv-home-card:nth-child(1) { --wtv-card-icon: url('../icons/film.svg'); }
.wtv-dashboard-home .wtv-home-card:nth-child(2) { --wtv-card-icon: url('../icons/layers.svg'); }
.wtv-dashboard-home .wtv-home-card:nth-child(3) { --wtv-card-icon: url('../icons/monitor-play.svg'); }
.wtv-dashboard-home .wtv-home-card:nth-child(4) { --wtv-card-icon: url('../icons/user.svg'); }
.wtv-dashboard-home .wtv-home-card:nth-child(5) { --wtv-card-icon: url('../icons/activity.svg'); }
.wtv-dashboard-home .wtv-home-card:nth-child(6) { --wtv-card-icon: url('../icons/concierge-bell.svg'); }

.wtv-big-number {
    color: var(--wtv-core-ink) !important;
    font-size: 44px !important;
    font-weight: 950 !important;
}

.wtv-dashboard-player-summary span,
.wtv-status-pill,
.wtv-badge,
.wtv-mini-badge,
.wtv-template-ratio,
.wtv-template-slides,
.wtv-limit-pill {
    border-radius: 999px !important;
    font-weight: 950 !important;
    letter-spacing: 0.055em !important;
}

.wtv-player-online,
.wtv-status-active,
.wtv-badge.ok {
    background: #ddf8e7 !important;
    color: #166534 !important;
}

.wtv-player-offline,
.wtv-status-suspended,
.wtv-status-expired,
.wtv-badge.bad,
.wtv-status-inactive {
    background: #ffe2e2 !important;
    color: #991b1b !important;
}

.wtv-dashboard-home .wtv-section-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.wtv-dashboard-home .wtv-section-title::before {
    width: 6px;
    height: 25px;
    box-shadow: 0 0 0 4px rgba(255, 0, 2, 0.07), 0 8px 18px rgba(255, 0, 2, 0.16);
}

.wtv-table-wrap,
.wtv-dashboard-home .wtv-ps-table-wrap,
.wtv-admin-table-wrap {
    border-radius: 14px !important;
    border: 1px solid var(--wtv-core-line) !important;
    overflow: hidden !important;
}

.wtv-table th,
.wtv-dashboard-home .wtv-ps-table th,
.wtv-table td,
.wtv-dashboard-home .wtv-ps-table td {
    border-color: #edf0f6 !important;
}

.wtv-table th,
.wtv-dashboard-home .wtv-ps-table th {
    background: #fbfcff !important;
    color: var(--wtv-core-muted) !important;
    opacity: 1 !important;
    font-weight: 950 !important;
}

.wtv-table tr:hover td,
.wtv-dashboard-home .wtv-ps-table tr:hover td {
    background: #fbfcff !important;
}

.wtv-slide-toolbar,
.wtv-template-toolbar,
.wtv-meta-row,
.wtv-total-duration,
.wtv-preview,
.wtv-slide-editor-preview,
.wtv-slide-upload-box {
    border: 1px solid var(--wtv-core-line) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 35px rgba(20, 24, 40, 0.035) !important;
}

.wtv-field input,
.wtv-field select,
.wtv-field textarea,
.wtv-slide-toolbar input,
.wtv-slide-toolbar select,
.wtv-template-toolbar input,
.wtv-template-toolbar select,
.wtv-renew-left select {
    min-height: 44px !important;
    border: 1px solid var(--wtv-core-line-strong) !important;
    border-radius: 10px !important;
    color: var(--wtv-core-ink) !important;
    font-weight: 750 !important;
    box-shadow: 0 1px 1px rgba(20, 24, 40, 0.02) !important;
}

.wtv-field input:focus,
.wtv-field select:focus,
.wtv-field textarea:focus,
.wtv-slide-toolbar input:focus,
.wtv-slide-toolbar select:focus,
.wtv-template-toolbar input:focus,
.wtv-template-toolbar select:focus,
.wtv-renew-left select:focus {
    border-color: rgba(255, 0, 2, 0.44) !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 2, 0.08) !important;
    outline: none !important;
}

.wtv-template-thumb,
.wtv-slide-preview-box,
.wtv-row-image-thumb,
.wtv-row-video-thumb,
.wtv-row-empty,
.wtv-welcome-preview-box,
.wtv-current-media-preview,
.wtv-current-media-empty {
    border-radius: 13px !important;
}

.wtv-slideshow-card-header {
    position: relative;
    padding-left: 18px;
}

.wtv-slideshow-card-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 5px;
    height: 26px;
    border-radius: 999px;
    background: var(--wtv-core-red);
    box-shadow: 0 0 0 4px rgba(255, 0, 2, 0.07);
}

.wtv-slideshow-meta-grid div,
.wtv-stat {
    border: 1px solid #edf0f6 !important;
    border-radius: 13px !important;
    background: #fbfcff !important;
}

.wtv-dashboard .wtv-slideshow-row {
    border-radius: 16px !important;
    border-color: var(--wtv-core-line) !important;
    box-shadow: 0 10px 30px rgba(20, 24, 40, 0.035) !important;
}

.wtv-row-drag {
    color: var(--wtv-core-red) !important;
}

.wtv-audio-preview-button {
    background: var(--wtv-core-ink) !important;
    border-radius: 10px !important;
}

.wtv-players-header {
    position: relative;
    padding-left: 28px;
}

.wtv-players-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 34px;
    border-radius: 999px;
    background: var(--wtv-core-red);
    box-shadow: 0 0 0 5px rgba(255, 0, 2, 0.08), 0 10px 22px rgba(255, 0, 2, 0.22);
}

.wtv-players-header h1,
.wtv-player-title-group h2 {
    color: var(--wtv-core-ink) !important;
    font-weight: 950 !important;
    letter-spacing: .04em;
}

.wtv-player-card[open] .wtv-player-summary,
.wtv-player-summary:hover {
    background: #fbfcff !important;
}

.wtv-player-icon,
.wtv-settings-card-title .wtv-section-icon {
    background: rgba(255, 0, 2, 0.10) !important;
    color: var(--wtv-core-red) !important;
}

.wtv-notice,
.wtv-dashboard-message,
.wtv-message-success,
.wtv-message-error {
    border-radius: 14px !important;
}

@media (max-width: 900px) {
    .wtv-dashboard {
        padding: 24px 18px !important;
    }

    .wtv-dashboard-home .wtv-home-card {
        padding-left: 82px !important;
    }
}

@media (max-width: 640px) {
    .wtv-dashboard-home .wtv-home-card {
        padding-left: 22px !important;
        padding-top: 82px !important;
    }
}

/* Player page section icons cleanup */

.wtv-players-page .wtv-settings-card-title h3::before,
.wtv-players-page .wtv-player-expanded h2::before {
    content: none !important;
}

.wtv-players-page .wtv-player-icon,
.wtv-players-page .wtv-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: rgba(255, 0, 2, 0.08) !important;
    border: 1px solid rgba(255, 0, 2, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    position: relative;
}

.wtv-players-page .wtv-player-icon::before,
.wtv-players-page .wtv-section-icon::before {
    content: "";
    width: 21px;
    height: 21px;
    display: block;
    background-color: #ff0002;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.wtv-players-page .wtv-player-icon-screen::before,
.wtv-players-page .wtv-section-icon-playback::before {
    mask-image: url("../icons/monitor-play.svg");
    -webkit-mask-image: url("../icons/monitor-play.svg");
}

.wtv-players-page .wtv-section-icon-welcome::before {
    mask-image: url("../icons/concierge-bell.svg");
    -webkit-mask-image: url("../icons/concierge-bell.svg");
}

.wtv-players-page .wtv-settings-card-title {
    gap: 12px;
}

/* Welcome Screen modules */

.wtv-module-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wtv-module-toggle {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #e3e6ef;
    border-radius: 10px;
    background: #fbfcff;
    color: #25263a;
    font-size: 12px !important;
    font-weight: 900;
}

.wtv-module-toggle input {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    accent-color: #ff0002;
}

.wtv-field-hint {
    margin: 10px 0 0 !important;
    color: #697086 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.wtv-welcome-preview-luxury {
    inset: 0;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
    padding: 0;
    background: linear-gradient(90deg, rgba(5,10,24,.52), rgba(5,10,24,.18));
    border: 0;
    border-radius: 0;
    text-align: left;
    overflow: hidden;
}

.wtv-preview-logo {
    position: absolute;
    left: 8%;
    top: 10%;
    color: rgba(255,255,255,.9);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.wtv-preview-main-panel {
    position: absolute;
    left: 7%;
    top: 27%;
    width: 52%;
    padding: 18px;
    border-radius: 18px;
    background: rgba(23, 27, 45, 0.46);
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(8px);
}

.wtv-preview-main-panel span {
    color: #e8c47a;
}

.wtv-preview-main-panel strong {
    font-size: clamp(22px, 3.2vw, 42px);
}

.wtv-preview-mini-row {
    display: flex;
    gap: 18px;
    margin-top: 16px;
    color: rgba(255,255,255,.86);
}

.wtv-preview-top-widgets {
    position: absolute;
    right: 7%;
    top: 9%;
    display: flex;
    gap: 8px;
}

.wtv-preview-top-widgets span,
.wtv-preview-side-panel {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(23, 27, 45, 0.44);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 70px rgba(0,0,0,.22);
}

.wtv-preview-top-widgets span {
    min-width: 64px;
    padding: 11px 12px;
    border-radius: 15px;
    color: #fff;
    font-weight: 900;
    text-align: center;
}

.wtv-preview-side-panel {
    position: absolute;
    right: 7%;
    top: 31%;
    width: 30%;
    padding: 14px;
    border-radius: 18px;
    display: grid;
    gap: 11px;
    color: rgba(255,255,255,.9);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .wtv-module-toggle-grid {
        grid-template-columns: 1fr;
    }
}


/* Welcome preview stacking/layout hard fix */
.wtv-welcome-preview-box {
    isolation: isolate;
}

.wtv-welcome-preview-box > img,
.wtv-welcome-preview-box > .wtv-welcome-preview-bg {
    z-index: 1 !important;
}

.wtv-welcome-preview-box > .wtv-welcome-preview-overlay {
    z-index: 5 !important;
}

.wtv-welcome-preview-box .wtv-welcome-preview-luxury {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    display: block !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.wtv-welcome-preview-box .wtv-preview-main-panel,
.wtv-welcome-preview-box .wtv-preview-top-widgets,
.wtv-welcome-preview-box .wtv-preview-side-panel,
.wtv-welcome-preview-box .wtv-preview-logo {
    z-index: 6 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.wtv-welcome-preview-box .wtv-preview-main-panel strong,
.wtv-welcome-preview-box .wtv-preview-main-panel p,
.wtv-welcome-preview-box .wtv-preview-main-panel span,
.wtv-welcome-preview-box .wtv-preview-main-panel small,
.wtv-welcome-preview-box .wtv-preview-top-widgets span,
.wtv-welcome-preview-box .wtv-preview-side-panel span,
.wtv-welcome-preview-box .wtv-preview-logo {
    opacity: 1 !important;
    visibility: visible !important;
}

.wtv-welcome-preview-box .wtv-preview-main-panel strong {
    color: #ffffff !important;
    display: block !important;
    font-size: clamp(18px, 3vw, 34px) !important;
    line-height: 1.05 !important;
}

.wtv-welcome-preview-box .wtv-preview-main-panel p {
    color: rgba(255,255,255,.9) !important;
    display: block !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

/* Welcome preview exact player-layout pass */
.wtv-welcome-preview-box {
    position: relative !important;
    isolation: isolate !important;
    aspect-ratio: 16 / 9 !important;
    background: #101426 !important;
}

.wtv-welcome-preview-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 10, 22, .76), rgba(6, 10, 22, .32) 48%, rgba(6, 10, 22, .62)),
        radial-gradient(circle at 50% 45%, rgba(255,255,255,.12), transparent 36%);
}

.wtv-welcome-preview-box > img,
.wtv-welcome-preview-box > .wtv-welcome-preview-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
}

.wtv-welcome-preview-box .wtv-welcome-preview-exact {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 4.4% 4.2% !important;
    box-sizing: border-box !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    text-align: left !important;
    overflow: hidden !important;
}

.wtv-welcome-preview-box .wtv-welcome-preview-exact * {
    box-sizing: border-box !important;
}

.wtv-welcome-preview-box .wtv-welcome-logo {
    position: absolute !important;
    top: 6% !important;
    left: 6% !important;
    margin: 0 !important;
    color: rgba(255,255,255,.94) !important;
    font-size: clamp(7px, 1.05vw, 14px) !important;
    font-weight: 900 !important;
    letter-spacing: .22em !important;
    text-transform: uppercase !important;
    z-index: 6 !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-card,
.wtv-welcome-preview-box .wtv-welcome-glass-card,
.wtv-welcome-preview-box .wtv-welcome-side-card,
.wtv-welcome-preview-box .wtv-welcome-language-bar {
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(15, 18, 34, .46) !important;
    box-shadow: 0 10px 34px rgba(0,0,0,.28) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-card {
    position: absolute !important;
    left: 4.2% !important;
    top: 24% !important;
    width: 49% !important;
    min-height: 43% !important;
    padding: 4% !important;
    border-radius: 5% / 8% !important;
    z-index: 6 !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-card .wtv-welcome-kicker {
    margin: 0 0 4% !important;
    color: #e8c47a !important;
    font-size: clamp(7px, 1vw, 13px) !important;
    font-weight: 900 !important;
    letter-spacing: .26em !important;
    text-transform: uppercase !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-card h1 {
    margin: 0 !important;
    color: #fff !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(20px, 4vw, 46px) !important;
    line-height: .96 !important;
    font-weight: 600 !important;
    letter-spacing: -.045em !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-card p {
    max-width: none !important;
    margin: 5% 0 0 !important;
    color: rgba(255,255,255,.9) !important;
    font-size: clamp(8px, 1.25vw, 14px) !important;
    line-height: 1.24 !important;
    font-weight: 500 !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7% !important;
    margin-top: 7% !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-meta div {
    min-width: 0 !important;
    margin: 0 !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-meta span,
.wtv-welcome-preview-box .wtv-welcome-side-card span,
.wtv-welcome-preview-box .wtv-welcome-weather-card span,
.wtv-welcome-preview-box .wtv-welcome-time-card span {
    display: block !important;
    margin: 0 !important;
    color: #e8c47a !important;
    font-size: clamp(5px, .75vw, 10px) !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

.wtv-welcome-preview-box .wtv-welcome-main-meta strong {
    display: block !important;
    margin-top: 3px !important;
    color: #fff !important;
    font-size: clamp(8px, 1.35vw, 16px) !important;
    line-height: 1.1 !important;
}

.wtv-welcome-preview-box .wtv-welcome-top-widgets {
    position: absolute !important;
    top: 4.4% !important;
    right: 4.2% !important;
    display: flex !important;
    gap: 2% !important;
    z-index: 6 !important;
}

.wtv-welcome-preview-box .wtv-welcome-glass-card {
    min-width: 14% !important;
    min-height: 11% !important;
    padding: 2.4% 2.1% !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.wtv-welcome-preview-box .wtv-welcome-icon {
    color: #e8c47a !important;
    font-size: clamp(12px, 2vw, 24px) !important;
    line-height: 1 !important;
}

.wtv-welcome-preview-box .wtv-welcome-glass-card strong {
    display: block !important;
    color: #fff !important;
    font-size: clamp(11px, 2vw, 22px) !important;
    line-height: 1 !important;
}

.wtv-welcome-preview-box .wtv-welcome-side-card {
    position: absolute !important;
    top: 24% !important;
    right: 4.2% !important;
    width: 31% !important;
    padding: 2.5% !important;
    border-radius: 5% / 8% !important;
    z-index: 6 !important;
}

.wtv-welcome-preview-box .wtv-welcome-info-row {
    display: grid !important;
    grid-template-columns: 18% 1fr auto !important;
    align-items: center !important;
    gap: 5% !important;
    padding: 6% 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.17) !important;
}

.wtv-welcome-preview-box .wtv-welcome-info-row:first-child { padding-top: 0 !important; }
.wtv-welcome-preview-box .wtv-welcome-info-row:last-child { padding-bottom: 0 !important; border-bottom: 0 !important; }

.wtv-welcome-preview-box .wtv-welcome-info-row i {
    color: #e8c47a !important;
    font-style: normal !important;
    font-size: clamp(12px, 2vw, 24px) !important;
    text-align: center !important;
}

.wtv-welcome-preview-box .wtv-welcome-info-row strong {
    display: block !important;
    margin-top: 3px !important;
    color: #fff !important;
    font-size: clamp(7px, 1.05vw, 13px) !important;
    line-height: 1.18 !important;
    font-weight: 600 !important;
}

.wtv-welcome-preview-box .wtv-welcome-fake-qr {
    width: clamp(22px, 4vw, 48px) !important;
    aspect-ratio: 1 !important;
    border-radius: 4px !important;
    background:
        linear-gradient(90deg, #111 10%, transparent 10% 20%, #111 20% 30%, transparent 30% 40%, #111 40% 50%, transparent 50% 60%, #111 60% 70%, transparent 70% 80%, #111 80% 90%, transparent 90%),
        linear-gradient(#fff, #fff) !important;
    background-size: 6px 6px, 100% 100% !important;
    border: 4px solid #fff !important;
}

.wtv-welcome-preview-box .wtv-welcome-language-bar {
    position: absolute !important;
    left: 6% !important;
    right: 6% !important;
    bottom: 4.4% !important;
    min-height: 8% !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 2% !important;
    padding: 0 3% !important;
    z-index: 6 !important;
}

.wtv-welcome-preview-box .wtv-welcome-language-bar span {
    color: rgba(255,255,255,.92) !important;
    font-size: clamp(6px, 1vw, 12px) !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Welcome preview V2: render a real 1920x1080 mini-TV instead of crushing the layout into the card. */
.wtv-welcome-preview-box {
    position: relative !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #101426 !important;
    isolation: isolate !important;
    container-type: size;
}

.wtv-welcome-preview-stage {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1920px !important;
    height: 1080px !important;
    transform: scale(calc(100cqw / 1920)) !important;
    transform-origin: top left !important;
    overflow: hidden !important;
    background: #101426 !important;
}

@supports not (width: 1cqw) {
    .wtv-welcome-preview-stage {
        transform: scale(.22) !important;
    }
}

.wtv-welcome-preview-stage > img,
.wtv-welcome-preview-stage > .wtv-welcome-preview-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 1920px !important;
    height: 1080px !important;
    object-fit: cover !important;
    z-index: 1 !important;
}

.wtv-welcome-preview-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 10, 22, .76), rgba(6, 10, 22, .32) 48%, rgba(6, 10, 22, .62)),
        radial-gradient(circle at 50% 45%, rgba(255,255,255,.12), transparent 36%);
}

.wtv-welcome-preview-stage .wtv-welcome-preview-exact {
    position: absolute !important;
    inset: 0 !important;
    z-index: 10 !important;
    width: 1920px !important;
    height: 1080px !important;
    padding: 48px 80px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    color: #fff !important;
    background: transparent !important;
    text-align: left !important;
}

.wtv-welcome-preview-stage .wtv-welcome-logo {
    position: absolute !important;
    top: 66px !important;
    left: 115px !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    letter-spacing: .22em !important;
    text-transform: uppercase !important;
}

.wtv-welcome-preview-stage .wtv-welcome-main-card,
.wtv-welcome-preview-stage .wtv-welcome-glass-card,
.wtv-welcome-preview-stage .wtv-welcome-side-card,
.wtv-welcome-preview-stage .wtv-welcome-language-bar {
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(15, 18, 34, .46) !important;
    box-shadow: 0 28px 110px rgba(0,0,0,.36) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

.wtv-welcome-preview-stage .wtv-welcome-main-card {
    position: absolute !important;
    left: 80px !important;
    top: 260px !important;
    width: 940px !important;
    min-height: 465px !important;
    padding: 72px !important;
    border-radius: 42px !important;
}

.wtv-welcome-preview-stage .wtv-welcome-main-card .wtv-welcome-kicker {
    margin: 0 0 30px !important;
    color: #e8c47a !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: .26em !important;
    text-transform: uppercase !important;
}

.wtv-welcome-preview-stage .wtv-welcome-main-card h1 {
    margin: 0 !important;
    color: #fff !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 94px !important;
    line-height: .96 !important;
    font-weight: 600 !important;
    letter-spacing: -.045em !important;
}

.wtv-welcome-preview-stage .wtv-welcome-main-card p {
    max-width: 820px !important;
    margin: 42px 0 0 !important;
    color: rgba(255,255,255,.9) !important;
    font-size: 31px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

.wtv-welcome-preview-stage .wtv-welcome-main-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    margin-top: 48px !important;
}

.wtv-welcome-preview-stage .wtv-welcome-main-meta span,
.wtv-welcome-preview-stage .wtv-welcome-side-card span,
.wtv-welcome-preview-stage .wtv-welcome-weather-card span,
.wtv-welcome-preview-stage .wtv-welcome-time-card span {
    display: block !important;
    color: #e8c47a !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

.wtv-welcome-preview-stage .wtv-welcome-main-meta strong {
    display: block !important;
    margin-top: 8px !important;
    color: #fff !important;
    font-size: 38px !important;
    line-height: 1.1 !important;
}

.wtv-welcome-preview-stage .wtv-welcome-top-widgets {
    position: absolute !important;
    top: 48px !important;
    right: 80px !important;
    display: flex !important;
    gap: 20px !important;
}

.wtv-welcome-preview-stage .wtv-welcome-glass-card {
    min-width: 270px !important;
    min-height: 120px !important;
    padding: 24px 28px !important;
    border-radius: 34px !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

.wtv-welcome-preview-stage .wtv-welcome-icon {
    color: #e8c47a !important;
    font-size: 54px !important;
    line-height: 1 !important;
}

.wtv-welcome-preview-stage .wtv-welcome-glass-card strong {
    display: block !important;
    color: #fff !important;
    font-size: 48px !important;
    line-height: 1 !important;
}

.wtv-welcome-preview-stage .wtv-welcome-side-card {
    position: absolute !important;
    top: 260px !important;
    right: 80px !important;
    width: 595px !important;
    padding: 42px !important;
    border-radius: 42px !important;
}

.wtv-welcome-preview-stage .wtv-welcome-info-row {
    display: grid !important;
    grid-template-columns: 74px 1fr auto !important;
    align-items: center !important;
    gap: 28px !important;
    padding: 30px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.17) !important;
}

.wtv-welcome-preview-stage .wtv-welcome-info-row:first-child { padding-top: 0 !important; }
.wtv-welcome-preview-stage .wtv-welcome-info-row:last-child { padding-bottom: 0 !important; border-bottom: 0 !important; }

.wtv-welcome-preview-stage .wtv-welcome-info-row i {
    color: #e8c47a !important;
    font-style: normal !important;
    font-size: 58px !important;
    text-align: center !important;
}

.wtv-welcome-preview-stage .wtv-welcome-info-row strong {
    display: block !important;
    margin-top: 10px !important;
    color: #fff !important;
    font-size: 29px !important;
    line-height: 1.22 !important;
    font-weight: 500 !important;
}

.wtv-welcome-preview-stage .wtv-welcome-fake-qr {
    width: 112px !important;
    aspect-ratio: 1 !important;
    border-radius: 10px !important;
    background:
        linear-gradient(90deg, #111 10%, transparent 10% 20%, #111 20% 30%, transparent 30% 40%, #111 40% 50%, transparent 50% 60%, #111 60% 70%, transparent 70% 80%, #111 80% 90%, transparent 90%),
        linear-gradient(#fff, #fff) !important;
    background-size: 18px 18px, 100% 100% !important;
    border: 10px solid #fff !important;
}

.wtv-welcome-preview-stage .wtv-welcome-language-bar {
    position: absolute !important;
    left: 115px !important;
    right: 115px !important;
    bottom: 48px !important;
    min-height: 86px !important;
    border-radius: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 34px !important;
    padding: 0 58px !important;
}

.wtv-welcome-preview-stage .wtv-welcome-language-bar span {
    color: rgba(255,255,255,.92) !important;
    font-size: 27px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Welcome module settings: collapsible, because otherwise this form becomes a dishwasher manual. */
.wtv-module-settings-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.wtv-module-settings-item {
    border: 1px solid #d9e0ee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.wtv-module-settings-item summary {
    cursor: pointer;
    padding: 13px 15px;
    font-weight: 900;
    color: #171b2d;
    list-style: none;
}

.wtv-module-settings-item summary::-webkit-details-marker {
    display: none;
}

.wtv-module-settings-item summary::after {
    content: "›";
    float: right;
    font-size: 18px;
    line-height: 1;
    transform: rotate(90deg);
    opacity: .55;
}

.wtv-module-settings-item[open] summary::after {
    transform: rotate(-90deg);
}

.wtv-module-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 15px 15px;
}

.wtv-module-setting-field {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: #34324a;
}

.wtv-module-setting-field input {
    width: 100%;
}

@media (max-width: 820px) {
    .wtv-module-settings-grid {
        grid-template-columns: 1fr;
    }
}
.wtv-welcome-preview-box::after { display: none !important; }

/* Welcome screen cleanup: fit preview via JS, real logo upload, and more breathing room above meta rows. */
.wtv-welcome-preview-box {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
}

.wtv-welcome-preview-stage {
    transform: scale(.2) !important; /* JS replaces this with an exact contain scale. */
}

.wtv-welcome-preview-stage .wtv-welcome-main-meta {
    margin-top: 82px !important;
}

.wtv-welcome-preview-stage .wtv-welcome-logo img {
    display: block !important;
    max-width: 300px !important;
    max-height: 105px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.wtv-module-logo-preview {
    display: block;
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
    padding: 8px;
    border: 1px solid #d9e0ee;
    border-radius: 10px;
    background: #f7f9fd;
}


/* Welcome preview/player form cleanup V3. */
.wtv-welcome-preview-stage {
    left: 0;
    top: 0;
}

/* Keep the two cards side-by-side on normal dashboard widths. */
.wtv-settings-grid {
    grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.15fr) !important;
    align-items: start !important;
}

@media (max-width: 760px) {
    .wtv-settings-grid {
        grid-template-columns: 1fr !important;
    }

    .wtv-settings-grid .wtv-settings-card + .wtv-settings-card {
        margin-top: 28px !important;
    }
}

/* More breathing room between the welcome message and the ROOM/custom rows. */
.wtv-welcome-preview-stage .wtv-welcome-main-meta {
    margin-top: 104px !important;
}

/* Welcome preview final fit: let JS set true cover scale and avoid thin right/bottom bars. */
.wtv-welcome-preview-box {
    overflow: hidden !important;
    line-height: 0 !important;
}

.wtv-welcome-preview-stage {
    top: 0 !important;
    left: 0 !important;
    transform: translate(var(--wtv-preview-x, 0px), var(--wtv-preview-y, 0px)) scale(var(--wtv-preview-scale, .22)) !important;
    transform-origin: top left !important;
}

/* If the welcome card stacks underneath playback, give it room like a civilized interface. */
.wtv-settings-grid > .wtv-settings-card:nth-child(2) {
    margin-top: 0 !important;
}

@media (max-width: 980px) {
    .wtv-settings-grid {
        grid-template-columns: 1fr !important;
    }

    .wtv-settings-grid > .wtv-settings-card:nth-child(2) {
        margin-top: 32px !important;
    }
}



/* WTV players width fit patch */
.wtv-admin-page,
.wtv-admin-card,
.wtv-admin-table-wrap,
.wtv-player-expanded,
.wtv-player-panel,
.wtv-player-detail,
.wtv-player-main,
.wtv-player-sidebar,
.wtv-inline-fields,
.wtv-mini-grid,
.wtv-command-grid,
.wtv-admin-toolbar {
    max-width: 100%;
    box-sizing: border-box;
}

.wtv-admin-page *,
.wtv-admin-page *::before,
.wtv-admin-page *::after {
    box-sizing: border-box;
}

.wtv-admin-table-wrap {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

.wtv-admin-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
}

.wtv-admin-table th,
.wtv-admin-table td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.wtv-admin-table th:nth-child(1),
.wtv-admin-table td:nth-child(1) { width: 12%; }

.wtv-admin-table th:nth-child(2),
.wtv-admin-table td:nth-child(2) { width: 14%; }

.wtv-admin-table th:nth-child(3),
.wtv-admin-table td:nth-child(3) { width: 14%; }

.wtv-admin-table th:nth-child(4),
.wtv-admin-table td:nth-child(4) { width: 16%; }

.wtv-admin-table th:nth-child(5),
.wtv-admin-table td:nth-child(5) { width: 13%; }

.wtv-admin-table th:nth-child(6),
.wtv-admin-table td:nth-child(6) { width: 12%; }

.wtv-admin-table th:nth-child(7),
.wtv-admin-table td:nth-child(7) { width: 11%; }

.wtv-admin-table th:nth-child(8),
.wtv-admin-table td:nth-child(8) { width: 8%; }

.wtv-admin-actions,
.wtv-quick-actions,
.wtv-player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.wtv-admin-actions .button,
.wtv-quick-actions .button,
.wtv-player-actions .button {
    max-width: 100%;
}

.wtv-admin-toolbar {
    grid-template-columns: minmax(180px, 1fr) minmax(130px, 160px) minmax(140px, 180px) !important;
}

.wtv-player-expanded,
.wtv-player-detail {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.wtv-player-expanded-grid,
.wtv-player-layout,
.wtv-player-management-grid {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    gap: 18px;
    max-width: 100%;
}

.wtv-player-main,
.wtv-player-sidebar,
.wtv-card,
.wtv-panel,
.wtv-admin-box {
    min-width: 0;
}

.wtv-inline-fields,
.wtv-mini-grid,
.wtv-command-grid,
.wtv-form-grid,
.wtv-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 12px;
    min-width: 0;
}

.wtv-inline-fields > *,
.wtv-mini-grid > *,
.wtv-command-grid > *,
.wtv-form-grid > *,
.wtv-config-grid > * {
    min-width: 0;
}

.wtv-admin-page input,
.wtv-admin-page select,
.wtv-admin-page textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1500px) {
    .wtv-admin-table th,
    .wtv-admin-table td {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 12px;
    }

    .wtv-admin-toolbar {
        grid-template-columns: minmax(160px, 1fr) minmax(120px, 150px) minmax(120px, 160px) !important;
    }
}

@media (max-width: 1200px) {
    .wtv-player-expanded-grid,
    .wtv-player-layout,
    .wtv-player-management-grid {
        grid-template-columns: 1fr;
    }

    .wtv-admin-toolbar {
        grid-template-columns: 1fr !important;
    }
}

/* WelcomeTV renewal checkout - keep WooCommerce as payment plumbing, not a carnival storefront. */
body.wtv-renewal-checkout .woocommerce-notices-wrapper,
body.wtv-renewal-checkout .woocommerce-message,
body.wtv-renewal-checkout .woocommerce-info,
body.wtv-renewal-checkout .woocommerce-error,
body.wtv-renewal-checkout .woocommerce-breadcrumb,
body.wtv-renewal-checkout .woocommerce-products-header,
body.wtv-renewal-checkout .entry-title,
body.wtv-renewal-checkout .page-title,
body.wtv-renewal-checkout .cart-empty,
body.wtv-renewal-checkout .return-to-shop,
body.wtv-renewal-checkout .woocommerce-form-coupon-toggle,
body.wtv-renewal-checkout .woocommerce-form-login-toggle,
body.wtv-renewal-checkout #customer_details,
body.wtv-renewal-checkout .woocommerce-billing-fields,
body.wtv-renewal-checkout .woocommerce-shipping-fields,
body.wtv-renewal-checkout .woocommerce-additional-fields,
body.wtv-renewal-checkout #order_review_heading,
body.wtv-renewal-checkout .shop_table.woocommerce-checkout-review-order-table,
body.wtv-renewal-checkout .woocommerce-privacy-policy-text,
body.wtv-renewal-checkout .wtv-hidden-checkout-field {
    display: none !important;
}

body.wtv-renewal-checkout .woocommerce,
body.wtv-renewal-checkout .woocommerce-page,
body.wtv-renewal-checkout main,
body.wtv-renewal-checkout .site-main,
body.wtv-renewal-checkout .entry-content {
    max-width: 1180px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.wtv-renewal-checkout .woocommerce {
    padding: 32px 24px 70px !important;
    color: #34324a;
}

body.wtv-renewal-checkout form.checkout {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.wtv-renewal-checkout #order_review {
    width: 100% !important;
    max-width: 760px !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body.wtv-renewal-checkout .wtv-checkout-shell,
body.wtv-renewal-checkout .wtv-checkout-summary-card,
body.wtv-renewal-checkout #payment {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

body.wtv-renewal-checkout .wtv-checkout-header {
    margin-bottom: 22px;
}

body.wtv-renewal-checkout .wtv-checkout-header h2 {
    margin: 0 0 8px !important;
    color: #34324a !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 800 !important;
}

body.wtv-renewal-checkout .wtv-checkout-header p {
    margin: 0 !important;
    color: #7c8898 !important;
    font-size: 14px !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-card,
body.wtv-renewal-checkout #payment {
    background: #ffffff !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 34px rgba(24, 26, 42, 0.06) !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-card {
    padding: 26px !important;
    margin-bottom: 18px !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

body.wtv-renewal-checkout .wtv-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #8a97a8;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}

body.wtv-renewal-checkout .wtv-checkout-summary-head h3 {
    margin: 0 !important;
    color: #34324a !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-head > strong {
    color: #34324a;
    font-size: 24px;
    line-height: 1.1;
    white-space: nowrap;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid > div,
body.wtv-renewal-checkout .wtv-checkout-discount {
    padding: 14px 16px;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    background: #f8fafc;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid span,
body.wtv-renewal-checkout .wtv-checkout-discount span {
    display: block;
    margin-bottom: 6px;
    color: #8a97a8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid strong,
body.wtv-renewal-checkout .wtv-checkout-discount strong {
    color: #34324a;
    font-size: 14px;
}

body.wtv-renewal-checkout .wtv-checkout-discount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

body.wtv-renewal-checkout .wtv-checkout-discount span {
    margin: 0;
}

body.wtv-renewal-checkout .wtv-change-plan {
    display: inline-flex;
    margin-top: 18px;
    color: #ff1515 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.wtv-renewal-checkout .wtv-change-plan:hover {
    color: #34324a !important;
}

body.wtv-renewal-checkout #payment {
    padding: 26px !important;
}

body.wtv-renewal-checkout #payment ul.payment_methods {
    padding: 0 0 18px !important;
    margin: 0 0 20px !important;
    border-bottom: 1px solid #e3e8ef !important;
}

body.wtv-renewal-checkout #payment ul.payment_methods li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

body.wtv-renewal-checkout #payment div.payment_box {
    background: #f8fafc !important;
    border-radius: 14px !important;
    color: #677386 !important;
    font-size: 13px !important;
}

body.wtv-renewal-checkout #payment div.payment_box::before {
    display: none !important;
}

body.wtv-renewal-checkout #payment .form-row.place-order {
    padding: 0 !important;
    margin: 0 !important;
}

body.wtv-renewal-checkout #place_order {
    width: 100% !important;
    min-height: 48px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ff1515 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    box-shadow: none !important;
}

body.wtv-renewal-checkout #place_order:hover {
    background: #d90000 !important;
}

@media (max-width: 800px) {
    body.wtv-renewal-checkout .woocommerce {
        padding: 22px 14px 50px !important;
    }

    body.wtv-renewal-checkout .wtv-checkout-summary-head,
    body.wtv-renewal-checkout .wtv-checkout-discount {
        flex-direction: column;
        align-items: flex-start;
    }

    body.wtv-renewal-checkout .wtv-checkout-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* WelcomeTV renewal checkout V2 - one clean payment card, WooCommerce kept in the basement. */
body.wtv-renewal-checkout .checkout-steps,
body.wtv-renewal-checkout .checkout_steps,
body.wtv-renewal-checkout .woocommerce-checkout-header,
body.wtv-renewal-checkout .woocommerce-checkout-nav,
body.wtv-renewal-checkout .woocommerce-page-title,
body.wtv-renewal-checkout .cart-checkout-nav,
body.wtv-renewal-checkout .cart-checkout-steps,
body.wtv-renewal-checkout .page-header,
body.wtv-renewal-checkout .page-title-wrap,
body.wtv-renewal-checkout .title_outer,
body.wtv-renewal-checkout .wtv-hide-renewal-checkout-chrome {
    display: none !important;
}

body.wtv-renewal-checkout .woocommerce-notices-wrapper,
body.wtv-renewal-checkout .woocommerce-message,
body.wtv-renewal-checkout .woocommerce-info,
body.wtv-renewal-checkout .woocommerce-error,
body.wtv-renewal-checkout #customer_details,
body.wtv-renewal-checkout .col2-set,
body.wtv-renewal-checkout #order_review_heading,
body.wtv-renewal-checkout .shop_table.woocommerce-checkout-review-order-table,
body.wtv-renewal-checkout .woocommerce-privacy-policy-text,
body.wtv-renewal-checkout .woocommerce-form-coupon-toggle,
body.wtv-renewal-checkout .woocommerce-form-login-toggle,
body.wtv-renewal-checkout .wtv-hidden-checkout-field {
    display: none !important;
}

body.wtv-renewal-checkout .entry-content,
body.wtv-renewal-checkout .woocommerce {
    width: 100% !important;
    max-width: none !important;
}

body.wtv-renewal-checkout .woocommerce {
    padding: 72px 24px 96px !important;
    color: #34324a !important;
}

body.wtv-renewal-checkout .wtv-renewal-payment-page,
body.wtv-renewal-checkout form.checkout,
body.wtv-renewal-checkout #order_review,
body.wtv-renewal-checkout .wtv-renewal-card-wrap,
body.wtv-renewal-checkout #payment {
    width: 100% !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

body.wtv-renewal-checkout form.checkout {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.wtv-renewal-checkout #order_review {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.wtv-renewal-checkout .wtv-checkout-header {
    text-align: center !important;
    margin: 0 auto 24px !important;
}

body.wtv-renewal-checkout .wtv-checkout-header .wtv-eyebrow {
    display: block !important;
    margin-bottom: 10px !important;
    color: #9aa5b5 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    font-weight: 900 !important;
}

body.wtv-renewal-checkout .wtv-checkout-header h2 {
    margin: 0 0 8px !important;
    color: #34324a !important;
    font-size: 30px !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.09em !important;
}

body.wtv-renewal-checkout .wtv-checkout-header p {
    margin: 0 !important;
    color: #7c8898 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-card,
body.wtv-renewal-checkout #payment {
    background: #ffffff !important;
    border: 1px solid #e4eaf2 !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 46px rgba(24, 26, 42, 0.08) !important;
    box-sizing: border-box !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-card {
    width: 100% !important;
    padding: 28px !important;
    margin: 0 0 18px !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-head {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 24px !important;
    align-items: start !important;
    margin-bottom: 22px !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-head h3 {
    margin: 0 !important;
    color: #34324a !important;
    font-size: 22px !important;
    line-height: 1.14 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.065em !important;
    font-weight: 900 !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-head > strong {
    color: #34324a !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid > div,
body.wtv-renewal-checkout .wtv-checkout-discount {
    min-width: 0 !important;
    padding: 15px 16px !important;
    border: 1px solid #e8edf4 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid span,
body.wtv-renewal-checkout .wtv-checkout-discount span {
    display: block !important;
    margin: 0 0 7px !important;
    color: #8d99aa !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-weight: 900 !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid strong,
body.wtv-renewal-checkout .wtv-checkout-discount strong {
    color: #34324a !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    overflow-wrap: anywhere !important;
}

body.wtv-renewal-checkout .wtv-checkout-discount {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-top: 12px !important;
}

body.wtv-renewal-checkout .wtv-checkout-discount span {
    margin: 0 !important;
}

body.wtv-renewal-checkout .wtv-change-plan {
    display: inline-flex !important;
    margin-top: 20px !important;
    color: #ff1515 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

body.wtv-renewal-checkout .wtv-change-plan:hover {
    color: #34324a !important;
}

body.wtv-renewal-checkout #payment {
    padding: 26px 28px 28px !important;
    margin-top: 0 !important;
}

body.wtv-renewal-checkout #payment ul.payment_methods {
    padding: 0 0 18px !important;
    margin: 0 0 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #e4eaf2 !important;
}

body.wtv-renewal-checkout #payment ul.payment_methods li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    color: #34324a !important;
}

body.wtv-renewal-checkout #payment div.payment_box {
    margin: 14px 0 0 !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
    color: #677386 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

body.wtv-renewal-checkout #payment div.payment_box::before {
    display: none !important;
}

body.wtv-renewal-checkout #payment .form-row.place-order {
    padding: 0 !important;
    margin: 0 !important;
}

body.wtv-renewal-checkout #place_order {
    width: 100% !important;
    min-height: 52px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #ff1515 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    box-shadow: none !important;
}

body.wtv-renewal-checkout #place_order:hover {
    background: #d90000 !important;
}

@media (max-width: 680px) {
    body.wtv-renewal-checkout .woocommerce {
        padding: 42px 16px 64px !important;
    }

    body.wtv-renewal-checkout .wtv-checkout-header h2 {
        font-size: 25px !important;
    }

    body.wtv-renewal-checkout .wtv-checkout-summary-card,
    body.wtv-renewal-checkout #payment {
        padding: 22px !important;
    }

    body.wtv-renewal-checkout .wtv-checkout-summary-head {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body.wtv-renewal-checkout .wtv-checkout-summary-grid {
        grid-template-columns: 1fr !important;
    }

    body.wtv-renewal-checkout .wtv-checkout-discount {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* Renewal checkout V3 width fix - stop theme/Woo columns from squeezing the payment card. */
body.wtv-renewal-checkout .woocommerce-checkout,
body.wtv-renewal-checkout form.checkout,
body.wtv-renewal-checkout #order_review,
body.wtv-renewal-checkout .woocommerce-checkout-review-order {
    display: block !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    width: 520px !important;
    min-width: 520px !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    flex: 0 0 520px !important;
    grid-column: 1 / -1 !important;
}

body.wtv-renewal-checkout .wtv-renewal-payment-page,
body.wtv-renewal-checkout .wtv-checkout-header,
body.wtv-renewal-checkout .wtv-renewal-card-wrap,
body.wtv-renewal-checkout .wtv-checkout-summary-card,
body.wtv-renewal-checkout #payment {
    display: block !important;
    width: 520px !important;
    min-width: 520px !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    flex: none !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-head > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
}

body.wtv-renewal-checkout .wtv-checkout-summary-grid strong,
body.wtv-renewal-checkout .wtv-checkout-discount strong {
    overflow-wrap: normal !important;
    word-break: normal !important;
}

@media (max-width: 680px) {
    body.wtv-renewal-checkout .woocommerce-checkout,
    body.wtv-renewal-checkout form.checkout,
    body.wtv-renewal-checkout #order_review,
    body.wtv-renewal-checkout .woocommerce-checkout-review-order,
    body.wtv-renewal-checkout .wtv-renewal-payment-page,
    body.wtv-renewal-checkout .wtv-checkout-header,
    body.wtv-renewal-checkout .wtv-renewal-card-wrap,
    body.wtv-renewal-checkout .wtv-checkout-summary-card,
    body.wtv-renewal-checkout #payment {
        width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 32px) !important;
        flex-basis: auto !important;
    }

    body.wtv-renewal-checkout .wtv-checkout-summary-head {
        display: block !important;
    }

    body.wtv-renewal-checkout .wtv-checkout-summary-head > strong {
        display: block !important;
        margin-top: 12px !important;
    }
}

/* Renewal order-pay page: Midtrans owns the foreground, so hide WooCommerce's ugly receipt/pay screen behind it. */
body.wtv-renewal-order-pay .checkout-steps,
body.wtv-renewal-order-pay .checkout_steps,
body.wtv-renewal-order-pay .woocommerce-checkout-header,
body.wtv-renewal-order-pay .woocommerce-checkout-nav,
body.wtv-renewal-order-pay .woocommerce-page-title,
body.wtv-renewal-order-pay .cart-checkout-nav,
body.wtv-renewal-order-pay .cart-checkout-steps,
body.wtv-renewal-order-pay .page-header,
body.wtv-renewal-order-pay .page-title-wrap,
body.wtv-renewal-order-pay .title_outer,
body.wtv-renewal-order-pay .entry-title,
body.wtv-renewal-order-pay .page-title,
body.wtv-renewal-order-received .checkout-steps,
body.wtv-renewal-order-received .checkout_steps,
body.wtv-renewal-order-received .woocommerce-checkout-header,
body.wtv-renewal-order-received .woocommerce-checkout-nav,
body.wtv-renewal-order-received .woocommerce-page-title,
body.wtv-renewal-order-received .cart-checkout-nav,
body.wtv-renewal-order-received .cart-checkout-steps,
body.wtv-renewal-order-received .page-header,
body.wtv-renewal-order-received .page-title-wrap,
body.wtv-renewal-order-received .title_outer,
body.wtv-renewal-order-received .entry-title,
body.wtv-renewal-order-received .page-title {
    display: none !important;
}

body.wtv-renewal-order-pay .entry-content,
body.wtv-renewal-order-pay .woocommerce {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.wtv-renewal-order-pay .entry-content {
    min-height: 68vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: #ffffff !important;
}

body.wtv-renewal-order-pay .entry-content::before {
    content: "Opening secure payment…";
    display: block !important;
    color: #34324a !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

body.wtv-renewal-order-pay .woocommerce {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* =========================
   QR Manager
   Clean rebuild
   ========================= */

.wtv-dashboard.wtv-qr-manager {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* Structure */
.wtv-qr-manager .wtv-dashboard-header,
.wtv-qr-manager .wtv-dashboard-notice,
.wtv-qr-manager .wtv-qr-form-card,
.wtv-qr-manager .wtv-dashboard-section,
.wtv-qr-manager .wtv-dashboard-section > .wtv-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wtv-qr-manager details.wtv-card {
    margin-bottom: 24px;
}

.wtv-qr-manager summary {
    cursor: pointer;
    margin-bottom: 18px;
}

.wtv-qr-manager .wtv-card {
    border-radius: 18px;
    padding: 24px;
    box-sizing: border-box;
}

/* Form */
.wtv-qr-manager .wtv-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.wtv-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.wtv-field span {
    font-size: 13px;
    font-weight: 700;
    color: #34324a;
}

.wtv-field input,
.wtv-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(52, 50, 74, 0.18);
    border-radius: 12px;
    padding: 9px 12px;
    background: #fff;
    color: #34324a;
    box-sizing: border-box;
}

/* Generic table/admin leftovers */
.wtv-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.wtv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wtv-table th,
.wtv-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(52, 50, 74, 0.1);
    text-align: left;
    vertical-align: top;
}

.wtv-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6f6b84;
}

.wtv-table code {
    white-space: normal;
    word-break: break-word;
}

/* Buttons */
.wtv-button-small {
    display: inline-flex;
    min-height: 32px;
    padding: 6px 10px;
    margin: 2px;
    font-size: 12px;
    line-height: 1.2;
}

.wtv-button-danger {
    background: #8f2f3f !important;
    color: #fff !important;
}

.wtv-qr-manager .wtv-button,
.wtv-qr-manager .wtv-dashboard button:not(.wtv-icon-button):not(.wtv-template-button) {
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.wtv-qr-manager .wtv-button::after,
.wtv-qr-manager .wtv-blue-button::after,
.wtv-qr-manager .wtv-dark-button::after,
.wtv-qr-manager .wtv-template-button::after {
    content: none !important;
}

/* Card list */
.wtv-qr-card-list {
    display: grid;
    gap: 14px;
}

.wtv-qr-item {
    display: grid;
    grid-template-columns: minmax(240px, 1.05fr) minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border: 1px solid rgba(52, 50, 74, 0.14);
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
}

.wtv-qr-main,
.wtv-qr-stats-grid,
.wtv-qr-card-actions {
    min-width: 0;
}

/* Left block */
.wtv-qr-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wtv-qr-title-row h4 {
    margin: 0 0 4px !important;
    color: #34324a !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
}

.wtv-qr-type {
    display: inline-flex;
    color: #6f6b84;
    font-size: 12px;
    font-weight: 800;
}

.wtv-qr-url-line {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 8px;
}

.wtv-qr-url-line span {
    color: #6f6b84;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wtv-qr-url-line code {
    display: block;
    padding: 0 !important;
    background: transparent !important;
    color: #34324a;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

/* Status */
.wtv-status-paused {
    background: rgba(143, 47, 63, 0.1);
    color: #8f2f3f;
}

/* Stats */
.wtv-qr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

.wtv-qr-stats-grid > div {
    min-width: 0;
    min-height: 84px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(52, 50, 74, 0.04);
    box-sizing: border-box;
}

.wtv-qr-stats-grid strong {
    display: block;
    color: #34324a;
    font-size: 17px;
    line-height: 1.15;
}

.wtv-qr-stats-grid span {
    display: block;
    margin-top: 4px;
    color: #6f6b84;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wtv-qr-stats-grid .wtv-qr-last-scan {
    grid-column: 1 / -1;
    min-height: 92px;
}

/* WiFi note */
.wtv-qr-wifi-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 92px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
    border: 1px solid #dfe7fb;
    box-sizing: border-box;
}

.wtv-qr-wifi-note strong {
    display: block;
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    color: #34324a;
    letter-spacing: 0;
    text-transform: none;
}

.wtv-qr-wifi-note span {
    display: none !important;
}

/* Actions */
.wtv-qr-actions {
    min-width: 0;
}

.wtv-qr-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: start;
    align-items: start;
    width: 132px;
    min-width: 132px;
}

.wtv-qr-card-actions form {
    margin: 0;
}

.wtv-qr-card-actions .wtv-button,
.wtv-qr-card-actions button {
    width: 100%;
    min-height: 40px !important;
    height: 40px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Empty state */
.wtv-empty-state {
    padding: 18px;
    border: 1px dashed rgba(52, 50, 74, 0.2);
    border-radius: 14px;
    color: #6f6b84;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 980px) {
    .wtv-qr-manager .wtv-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wtv-qr-item {
        grid-template-columns: 1fr;
    }

    .wtv-qr-card-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .wtv-qr-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wtv-qr-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .wtv-qr-manager .wtv-form-grid,
    .wtv-qr-stats-grid,
    .wtv-qr-card-actions,
    .wtv-qr-url-line {
        grid-template-columns: 1fr !important;
    }
}

.wtv-welcome-screen-controls {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.wtv-welcome-control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
    gap: 18px;
    align-items: end;
}

.wtv-welcome-activate-field {
    align-self: stretch;
}

.wtv-welcome-activate-field label {
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(52, 50, 74, 0.14);
    border-radius: 14px;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wtv-duration-field {
    max-width: 220px;
}

@media (max-width: 900px) {
    .wtv-welcome-control-row {
        grid-template-columns: 1fr;
    }

    .wtv-duration-field {
        max-width: none;
    }
}
