/* 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 V2.2.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;
    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,
.wtv-connection-online,
.wtv-status-online {
    background: #ddf8e7 !important;
    color: #166534 !important;
}

.wtv-player-offline,
.wtv-connection-offline,
.wtv-status-offline {
    background: #ffe2e2 !important;
    color: #991b1b !important;
}

.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-player-panel {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 22px;
    border: 1px solid rgba(52, 50, 74, 0.18);
    border-radius: 14px;
    background: #ffffff;
}

.wtv-dashboard-player-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.wtv-dashboard-player-panel-head h3 {
    margin: 0 0 6px !important;
    color: #34324a !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

.wtv-dashboard-player-panel-head p {
    margin: 0 !important;
}

.wtv-dashboard-player-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    color: #5c6173;
    font-size: 12px;
    white-space: nowrap;
}

.wtv-dashboard-player-list {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(52, 50, 74, 0.14);
    border-radius: 12px;
    background: #ffffff;
}

.wtv-dashboard-player-list.is-hidden,
.wtv-dashboard-player-empty.is-hidden {
    display: none !important;
}

.wtv-dashboard-player-table-head,
.wtv-dashboard-player-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.35fr) 105px minmax(150px, 1fr) 140px 135px;
    gap: 16px;
    align-items: center;
}

.wtv-dashboard-player-table-head {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(52, 50, 74, 0.10);
    background: #fbfcff;
    color: #6b7280;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtv-dashboard-player-row {
    min-height: 68px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(52, 50, 74, 0.10);
    color: #34324a;
}

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

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

.wtv-dashboard-player-main {
    min-width: 0;
}

.wtv-dashboard-player-main strong,
.wtv-dashboard-player-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wtv-dashboard-player-main strong {
    color: #25263a;
    font-size: 14px;
    font-weight: 900;
}

.wtv-dashboard-player-main small {
    margin-top: 3px;
    color: #697086;
    font-size: 11px;
    font-weight: 800;
}

.wtv-dashboard-player-cell {
    min-width: 0;
    color: #34324a;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.wtv-connection-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wtv-welcome-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #697086;
    font-weight: 800;
}

.wtv-welcome-state::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #c5cad6;
}

.wtv-welcome-state.is-active {
    color: #217a3f;
}

.wtv-welcome-state.is-active::before {
    background: #22c55e;
}

.wtv-dashboard-player-last-seen {
    color: #5c6173;
}

.wtv-dashboard-player-empty {
    padding: 24px;
    border: 1px dashed rgba(52, 50, 74, 0.22);
    border-radius: 12px;
    background: #fbfcff;
    color: #5c6173;
    text-align: center;
    font-weight: 800;
}

.wtv-dashboard-player-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
}

.wtv-dashboard-player-panel-footer > span {
    color: #697086;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .wtv-dashboard-player-table-head,
    .wtv-dashboard-player-row {
        grid-template-columns: minmax(160px, 1.25fr) 95px minmax(130px, 1fr) 125px 120px;
        gap: 12px;
    }
}

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

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

@media (max-width: 760px) {
    .wtv-dashboard-player-panel {
        padding: 16px;
    }

    .wtv-dashboard-player-panel-head {
        flex-direction: column;
        gap: 10px;
    }

    .wtv-dashboard-player-meta {
        align-items: flex-start;
        white-space: normal;
    }

    .wtv-dashboard-player-table-head {
        display: none;
    }

    .wtv-dashboard-player-list {
        display: grid;
        gap: 12px;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .wtv-dashboard-player-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 18px;
        min-height: 0;
        padding: 16px;
        border: 1px solid rgba(52, 50, 74, 0.14);
        border-radius: 12px;
        background: #ffffff;
    }

    .wtv-dashboard-player-main {
        grid-column: 1 / -1;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(52, 50, 74, 0.10);
    }

    .wtv-dashboard-player-cell {
        display: grid;
        gap: 5px;
        align-content: start;
    }

    .wtv-dashboard-player-cell::before {
        content: attr(data-label);
        color: #6b7280;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .wtv-dashboard-player-panel-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    .wtv-dashboard-player-main {
        grid-column: auto;
    }
}

/* 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-expanded-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.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-player-panel,
.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-player-panel {
    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-connection-online,
.wtv-status-online,
.wtv-status-active,
.wtv-badge.ok {
    background: #ddf8e7 !important;
    color: #166534 !important;
}

.wtv-player-offline,
.wtv-connection-offline,
.wtv-status-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-admin-table-wrap {
    border-radius: 14px !important;
    border: 1px solid var(--wtv-core-line) !important;
    overflow: hidden !important;
}

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

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

.wtv-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 */
.wtv-qr-manager details.wtv-card {
    margin-bottom: 24px;
}

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

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

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

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

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

.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;
}

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

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

.wtv-qr-actions {
    min-width: 220px;
}

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

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

/* QR Manager layout polish */
.wtv-dashboard.wtv-qr-manager {
    max-width: 1180px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 1100px) {
    .wtv-dashboard.wtv-qr-manager {
        width: min(1180px, calc(100vw - 460px)) !important;
        max-width: none !important;
    }
}

.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 {
    width: 100% !important;
}

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

.wtv-qr-manager .wtv-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.wtv-qr-manager .wtv-field input,
.wtv-qr-manager .wtv-field select {
    min-height: 46px;
    border-radius: 10px;
}

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

.wtv-qr-item {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(280px, 1fr) 148px;
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(52, 50, 74, 0.14);
    border-radius: 16px;
    background: #fff;
}

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

.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: 86px 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;
}

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

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

.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;
}

.wtv-qr-card-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
    min-width: 148px;
}

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

.wtv-qr-card-actions .wtv-button,
.wtv-qr-card-actions button {
    width: 100% !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

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

@media (max-width: 1250px) {
    .wtv-qr-item {
        grid-template-columns: 1fr;
    }

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

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

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

@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-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;
}


/* QR Manager final polish overrides */
.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-item {
    grid-template-columns: minmax(320px, 1.35fr) minmax(420px, 1fr) 148px;
    gap: 16px;
    align-items: start;
}

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

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

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

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

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

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

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

.wtv-qr-card-actions form {
    margin: 0 !important;
    align-self: start !important;
}

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

@media (max-width: 1250px) {
    .wtv-qr-item {
        grid-template-columns: 1fr;
    }

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

@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)) !important;
    }
}

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


/* QR Manager width tune */
.wtv-dashboard.wtv-qr-manager {
    max-width: 1320px !important;
}

@media (min-width: 1100px) {
    .wtv-dashboard.wtv-qr-manager {
        width: min(1320px, calc(100vw - 390px)) !important;
    }
}

.wtv-qr-item {
    grid-template-columns: minmax(320px, 1.3fr) minmax(460px, 1fr) 140px !important;
    gap: 14px !important;
}

.wtv-qr-card-actions {
    min-width: 140px !important;
}

.wtv-qr-card-actions .wtv-button,
.wtv-qr-card-actions button {
    min-height: 42px !important;
    padding: 12px 14px !important;
}

/* CORE 3.1 self-service registration */
.wtv-registration {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.wtv-registration-card {
    display: grid;
    gap: 26px;
}

.wtv-registration-section {
    display: grid;
    gap: 14px;
}

.wtv-registration-section h3 {
    margin: 0;
}

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

.wtv-registration-submit {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.wtv-registration-submit .wtv-help {
    margin: 0;
    max-width: 560px;
}

.wtv-registration-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

@media (max-width: 720px) {
    .wtv-registration .wtv-field-full {
        grid-column: auto;
    }
}

/* CORE 3.1 alpha.4 — customer self-service Player activation */
.wtv-add-player-card {
    margin: 0 0 22px;
    border: 1px solid #e3e6ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(20, 24, 40, 0.04);
    overflow: hidden;
}

.wtv-add-player-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 22px;
    list-style: none;
    cursor: pointer;
}

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

.wtv-add-player-card > summary strong,
.wtv-add-player-card > summary small {
    display: block;
}

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

.wtv-add-player-card > summary small {
    margin-top: 4px;
    color: #697086;
    font-size: 13px;
    font-weight: 600;
}

.wtv-add-player-plus {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 0, 2, 0.09);
    color: #d80000;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    transition: transform .18s ease;
}

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

.wtv-add-player-body {
    padding: 0 22px 22px;
    border-top: 1px solid #edf0f6;
}

.wtv-add-player-form {
    padding-top: 20px;
}

.wtv-add-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wtv-add-player-form .wtv-field small {
    display: block;
    margin-top: 6px;
    color: #73798d;
    font-size: 12px;
    line-height: 1.45;
}

.wtv-add-player-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf0f6;
}

.wtv-add-player-footer p {
    margin: 0;
    color: #697086;
    font-size: 13px;
    line-height: 1.5;
}

.wtv-status-entitlement-included,
.wtv-status-entitlement-licensed {
    background: #e7f8ed;
    color: #217a3f;
}

.wtv-status-entitlement-payment_required {
    background: #fff1d6;
    color: #946200;
}

.wtv-status-entitlement-legacy_compatible {
    background: #e8f1ff;
    color: #405d95;
}

.wtv-status-entitlement-account_suspended,
.wtv-status-entitlement-lifecycle_inactive,
.wtv-status-entitlement-unassigned {
    background: #ffe2e2;
    color: #a72727;
}

@media (max-width: 720px) {
    .wtv-add-player-grid {
        grid-template-columns: 1fr;
    }

    .wtv-add-player-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .wtv-add-player-footer .wtv-button {
        width: 100%;
    }
}

/* CORE 3.1 alpha.5 — batch Player activation + co-term capacity quote */
.wtv-batch-player-rows {
    display: grid;
    gap: 16px;
}

.wtv-batch-player-row {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.wtv-batch-player-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.wtv-batch-player-remove {
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.65;
    cursor: pointer;
    font: inherit;
}

.wtv-batch-player-remove:hover {
    opacity: 1;
}

.wtv-add-more-players {
    margin-top: 16px;
}

.wtv-add-player-billing {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.wtv-add-player-billing p {
    margin: 6px 0 0;
}

.wtv-add-player-billing select {
    width: 100%;
    max-width: 420px;
    margin-top: 10px;
}

.wtv-add-player-billing small {
    display: block;
    margin-top: 8px;
    opacity: 0.7;
}

.wtv-capacity-quote {
    margin-bottom: 20px;
}

.wtv-capacity-quote-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.wtv-capacity-quote-head h3 {
    margin: 4px 0 8px;
}

.wtv-capacity-quote-head p,
.wtv-capacity-quote-discount {
    margin: 0;
    opacity: 0.78;
}

.wtv-capacity-quote-total {
    white-space: nowrap;
    font-size: 1.35rem;
}

.wtv-capacity-pay-form {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .wtv-capacity-quote-head {
        flex-direction: column;
    }
}

.wtv-capacity-cycle-picker {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 440px;
    margin-bottom: 14px;
}

/* CORE 3.1 alpha.7 — billing-aware Player removal */
.wtv-remove-player-form {
    margin: 0;
}

.wtv-button-danger-secondary {
    border: 1px solid rgba(196, 32, 32, 0.28);
    background: #fff;
    color: #b42323;
}

.wtv-button-danger-secondary:hover,
.wtv-button-danger-secondary:focus {
    border-color: rgba(196, 32, 32, 0.48);
    background: #fff4f4;
    color: #941b1b;
}

/* CORE 3.1 alpha.8 — Subscription / License UI */
.wtv-subscription-page {
    max-width: 1120px;
}

.wtv-subscription-page .wtv-card {
    max-width: none;
}

.wtv-subscription-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.wtv-subscription-eyebrow,
.wtv-subscription-card-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--wtv-core-red, #ff0002);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wtv-subscription-account-state {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid var(--wtv-core-line, #e6e9f0);
    border-radius: 999px;
    background: #fff;
    color: var(--wtv-core-muted, #6b7280);
    font-size: 13px;
    white-space: nowrap;
}

.wtv-license-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fbfcff;
}

.wtv-license-banner > div {
    display: grid;
    gap: 3px;
}

.wtv-license-banner strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 16px;
}

.wtv-license-banner span {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 13px;
}

.wtv-license-banner.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.wtv-license-banner.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.wtv-license-banner.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.wtv-license-banner.is-free {
    border-color: #dbeafe;
    background: #eff6ff;
}

.wtv-license-count-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.wtv-license-count {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 17px;
    border: 1px solid var(--wtv-core-line, #e6e9f0);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 24, 40, .035);
}

.wtv-license-count::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #d1d5db;
}

.wtv-license-count.is-included::before,
.wtv-license-count.is-licensed::before {
    background: #16a34a;
}

.wtv-license-count.is-required::before {
    background: #f59e0b;
}

.wtv-license-count-label {
    display: block;
    color: var(--wtv-core-muted, #6b7280);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wtv-license-count > strong {
    display: block;
    margin: 3px 0 1px;
    color: var(--wtv-core-ink, #171b2d);
    font-size: 34px;
    line-height: 1.1;
}

.wtv-license-count small {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 12px;
}

.wtv-subscription-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.wtv-subscription-overview-card {
    min-height: 142px;
    margin: 0 !important;
    padding: 17px !important;
}

.wtv-subscription-overview-card.is-credit {
    border-color: rgba(255, 0, 2, .18) !important;
    background: linear-gradient(180deg, #fff 0%, #fff8f8 100%) !important;
}

.wtv-subscription-big-value {
    display: block;
    margin: 8px 0 5px;
    color: var(--wtv-core-ink, #171b2d);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
}

.wtv-subscription-card-note {
    display: block;
    color: var(--wtv-core-muted, #6b7280);
    font-size: 12px;
    line-height: 1.45;
}

.wtv-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
}

.wtv-section-heading .wtv-title {
    margin-bottom: 3px;
}

.wtv-section-heading p {
    margin: 0;
    color: var(--wtv-core-muted, #6b7280);
    font-size: 13px;
}

.wtv-subscription-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fbfcff;
}

.wtv-subscription-notice > div {
    display: grid;
    gap: 2px;
}

.wtv-subscription-notice strong {
    color: var(--wtv-core-ink, #171b2d);
}

.wtv-subscription-notice span {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 13px;
}

.wtv-subscription-notice.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

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

.wtv-cycle-option {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 188px;
    padding: 16px;
    border: 1px solid var(--wtv-core-line-strong, #d8dde8);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.wtv-cycle-option:hover:not(.is-disabled) {
    transform: translateY(-1px);
    border-color: rgba(255, 0, 2, .35);
    box-shadow: 0 14px 34px rgba(20, 24, 40, .07);
}

.wtv-cycle-option.is-selected {
    border-color: rgba(255, 0, 2, .62);
    box-shadow: 0 0 0 3px rgba(255, 0, 2, .07), 0 14px 34px rgba(20, 24, 40, .06);
}

.wtv-cycle-option.is-disabled {
    opacity: .52;
    cursor: not-allowed;
}

.wtv-cycle-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.wtv-cycle-option-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 56px;
}

.wtv-cycle-option-top > span:first-child {
    display: grid;
    gap: 1px;
}

.wtv-cycle-option-top strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 18px;
}

.wtv-cycle-option-top small,
.wtv-cycle-price-note {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 11px;
}

.wtv-cycle-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.wtv-cycle-pill.is-best {
    background: #171b2d;
    color: #fff;
}

.wtv-cycle-option-top .wtv-cycle-pill + .wtv-cycle-pill {
    display: none;
}

.wtv-cycle-discount {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 13px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 850;
}

.wtv-cycle-discount.has-discount {
    background: #ecfdf5;
    color: #15803d;
}

.wtv-cycle-price {
    display: block;
    margin-top: auto;
    padding-top: 13px;
    color: var(--wtv-core-ink, #171b2d);
    font-size: 19px;
    font-weight: 950;
}

.wtv-renew-summary {
    display: grid;
    grid-template-columns: minmax(190px, .8fr) minmax(360px, 1.6fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--wtv-core-line, #e6e9f0);
    border-radius: 16px;
    background: #fbfcff;
}

.wtv-renew-summary-main {
    display: grid;
    gap: 1px;
}

.wtv-renew-summary-main > span,
.wtv-renew-summary-details span,
.wtv-coverage-boundary span,
.wtv-coverage-period-cycle span {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 11px;
    font-weight: 750;
}

.wtv-renew-summary-main > strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 24px;
    line-height: 1.2;
}

.wtv-renew-summary-main > small {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 11px;
}

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

.wtv-renew-summary-details > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.wtv-renew-summary-details strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 12px;
    text-align: right;
}

.wtv-renew-submit {
    min-width: 170px;
    margin: 0 !important;
}

.wtv-coverage-boundary {
    display: grid;
    justify-items: end;
    gap: 1px;
    white-space: nowrap;
}

.wtv-coverage-boundary strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 15px;
}

.wtv-coverage-timeline {
    display: grid;
    gap: 0;
    margin: 2px 0 8px;
}

.wtv-coverage-period {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) minmax(140px, auto);
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 10px 0;
}

.wtv-coverage-period:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 41px;
    bottom: -35px;
    width: 2px;
    background: #e5e7eb;
}

.wtv-coverage-marker {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border: 4px solid #fff;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 1px #cbd5e1;
}

.wtv-coverage-period.is-current .wtv-coverage-marker {
    background: #16a34a;
    box-shadow: 0 0 0 1px #86efac;
}

.wtv-coverage-period-main {
    display: grid;
    gap: 3px;
}

.wtv-coverage-period-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wtv-coverage-period-main > span {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 12px;
}

.wtv-coverage-period-cycle {
    display: grid;
    justify-items: end;
    gap: 1px;
    text-align: right;
}

.wtv-subscription-empty {
    display: grid;
    gap: 3px;
    padding: 18px;
    border: 1px dashed var(--wtv-core-line-strong, #d8dde8);
    border-radius: 14px;
    background: #fbfcff;
}

.wtv-subscription-empty span {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 13px;
}

.wtv-billing-activity-table .is-credit-positive {
    color: #15803d;
    font-weight: 850;
}

.wtv-billing-activity-table .is-credit-used {
    color: #b45309;
    font-weight: 850;
}

@media (max-width: 1040px) {
    .wtv-license-count-grid,
    .wtv-subscription-overview-grid,
    .wtv-cycle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .wtv-renew-submit {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .wtv-subscription-header,
    .wtv-license-banner,
    .wtv-section-heading,
    .wtv-subscription-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .wtv-subscription-account-state {
        align-self: flex-start;
    }

    .wtv-license-count-grid,
    .wtv-subscription-overview-grid,
    .wtv-cycle-grid,
    .wtv-renew-summary,
    .wtv-renew-summary-details {
        grid-template-columns: 1fr;
    }

    .wtv-cycle-option {
        min-height: 166px;
    }

    .wtv-coverage-boundary,
    .wtv-coverage-period-cycle {
        justify-items: start;
        text-align: left;
    }

    .wtv-coverage-period {
        grid-template-columns: 18px 1fr;
    }

    .wtv-coverage-period-cycle {
        grid-column: 2;
    }

    .wtv-renew-summary-details > div {
        align-items: flex-start;
    }
}

/* CORE 3.1 alpha.10-alpha.12 — public registration landing page
 * Mirrors the public WelcomeTV homepage language: navy/white, #FF0002 accents,
 * large Montserrat headings, rounded cards and generous responsive spacing.
 */
.wtv-registration-page {
    --wtv-reg-navy: #171B2D;
    --wtv-reg-navy-soft: #242A40;
    --wtv-reg-panel: #20263A;
    --wtv-reg-red: #FF0002;
    --wtv-reg-red-hover: #D9001B;
    --wtv-reg-copy: #D6DAE5;
    --wtv-reg-ink: #171B2D;
    --wtv-reg-muted: #5D6470;
    --wtv-reg-soft: #F5F6F8;
    --wtv-reg-line: #DFE5E8;
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-top: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #fff;
    color: var(--wtv-reg-ink);
    font-family: Montserrat, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.wtv-registration-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.wtv-registration-site-header {
    background: var(--wtv-reg-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wtv-registration-nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wtv-registration-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.wtv-registration-brand img {
    display: block;
    width: 238px;
    max-width: 52vw;
    height: auto;
}

.wtv-registration-back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.wtv-registration-back:hover,
.wtv-registration-back:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.52);
    color: #fff !important;
    transform: translateY(-1px);
}

.wtv-registration-hero {
    position: relative;
    background: linear-gradient(130deg, var(--wtv-reg-navy) 0%, var(--wtv-reg-navy-soft) 100%);
    padding: 72px 0 90px;
}

.wtv-registration-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -280px;
    bottom: -300px;
    border-radius: 50%;
    background: rgba(255, 0, 2, 0.08);
    pointer-events: none;
}

.wtv-registration-hero::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    top: -290px;
    right: -220px;
    border-radius: 50%;
    border: 90px solid rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.wtv-registration-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(570px, 1.18fr);
    align-items: center;
    gap: clamp(52px, 7vw, 92px);
}

.wtv-registration-intro {
    max-width: 510px;
    padding: 18px 0;
}

.wtv-registration-eyebrow,
.wtv-registration-kicker {
    color: var(--wtv-reg-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.7px;
    line-height: 1.4;
}

.wtv-registration-intro h1 {
    margin: 13px 0 23px !important;
    color: #fff !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: clamp(42px, 4.4vw, 62px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.038em !important;
    line-height: 1.06 !important;
    text-transform: none !important;
}

.wtv-registration-lead {
    margin: 0 0 34px !important;
    color: #D9DCE4 !important;
    font-size: 19px !important;
    font-weight: 500;
    line-height: 1.65 !important;
}

.wtv-registration-benefits {
    display: grid;
    gap: 20px;
}

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

.wtv-registration-check {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    margin-top: 1px;
    border: 0;
    border-radius: 50%;
    background: var(--wtv-reg-red);
    line-height: 1;
    box-shadow: 0 5px 14px rgba(255, 0, 2, 0.22);
}

.wtv-registration-check svg {
    display: block;
    width: 13px;
    height: 13px;
    overflow: visible;
}

.wtv-registration-check path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wtv-registration-benefit strong,
.wtv-registration-benefit span {
    display: block;
}

.wtv-registration-benefit strong {
    margin: 0 0 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 750;
}

.wtv-registration-benefit div > span {
    color: var(--wtv-reg-copy);
    font-size: 13px;
    line-height: 1.6;
}

.wtv-registration-mini-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 36px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.74);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.15px;
}

.wtv-registration-mini-flow i {
    color: var(--wtv-reg-red);
    font-style: normal;
    font-size: 14px;
}

.wtv-registration-form-panel {
    min-width: 0;
}

.wtv-registration-card {
    display: grid;
    gap: 0;
    padding: clamp(28px, 3vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(5, 9, 24, 0.24);
}

.wtv-registration-alert {
    display: grid;
    gap: 4px;
    margin: 0 0 16px;
    padding: 15px 18px;
    border: 1px solid rgba(217, 0, 27, 0.25);
    border-radius: 14px;
    background: #fff2f3;
    color: #991225;
    font-size: 13px;
    line-height: 1.5;
}

.wtv-registration-alert strong {
    font-weight: 800;
}

.wtv-registration-form-heading {
    padding-bottom: 27px;
}

.wtv-registration-form-heading h2 {
    margin: 7px 0 8px !important;
    color: var(--wtv-reg-ink) !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: clamp(28px, 2.25vw, 36px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.15 !important;
    text-transform: none !important;
}

.wtv-registration-form-heading p,
.wtv-registration-section-title p {
    margin: 0 !important;
    color: var(--wtv-reg-muted) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.wtv-registration-section {
    padding: 25px 0 21px;
    border-top: 1px solid #E8EBF0;
}

.wtv-registration-section-title {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin-bottom: 18px;
}

.wtv-registration-section-title > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--wtv-reg-soft);
    color: var(--wtv-reg-red);
    font-size: 12px;
    font-weight: 850;
}

.wtv-registration-section-title h3 {
    margin: 0 0 3px !important;
    color: var(--wtv-reg-ink) !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

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

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

.wtv-registration-page .wtv-field {
    min-width: 0;
    display: block;
    margin: 0 !important;
}

.wtv-registration-page .wtv-field label {
    display: block;
    margin: 0 0 7px !important;
    color: var(--wtv-reg-ink) !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
}

.wtv-registration-page .wtv-field label span {
    color: #9298A5;
    font-size: 10px;
    font-weight: 650;
}

.wtv-registration-page .wtv-field input,
.wtv-registration-page .wtv-field select {
    width: 100% !important;
    min-width: 0;
    min-height: 48px !important;
    height: 48px;
    margin: 0 !important;
    padding: 10px 13px !important;
    border: 1px solid #D9DEE7 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111827 !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.02) !important;
    outline: none !important;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.wtv-registration-page .wtv-field input::placeholder {
    color: #9AA0AD;
    opacity: 1;
}

.wtv-registration-page .wtv-field input:focus,
.wtv-registration-page .wtv-field select:focus {
    border-color: rgba(255, 0, 2, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 2, 0.07) !important;
}

.wtv-registration-submit {
    display: grid;
    gap: 11px;
    padding-top: 7px;
}

.wtv-registration-primary {
    width: 100%;
    min-height: 52px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--wtv-reg-red) !important;
    color: #fff !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    box-shadow: 0 12px 26px rgba(255, 0, 2, 0.20) !important;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.wtv-registration-primary:hover,
.wtv-registration-primary:focus {
    background: var(--wtv-reg-red-hover) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 30px rgba(217, 0, 27, 0.24) !important;
}

.wtv-registration-submit p {
    margin: 0 !important;
    color: #717886 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
    text-align: center;
}

.wtv-registration-login-link {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #E8EBF0;
    color: var(--wtv-reg-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.wtv-registration-login-link a {
    color: var(--wtv-reg-ink) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.wtv-registration-login-link a:hover,
.wtv-registration-login-link a:focus {
    color: var(--wtv-reg-red) !important;
}

.wtv-registration-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.wtv-registration-trust-strip {
    padding: 38px 0;
    background: var(--wtv-reg-soft);
    border-bottom: 1px solid #ECEEF2;
}

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

.wtv-registration-trust-grid > div {
    position: relative;
    padding-left: 22px;
}

.wtv-registration-trust-grid > div::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 3px;
    border-radius: 99px;
    background: var(--wtv-reg-red);
}

.wtv-registration-trust-grid strong,
.wtv-registration-trust-grid span {
    display: block;
}

.wtv-registration-trust-grid strong {
    margin-bottom: 4px;
    color: var(--wtv-reg-ink);
    font-size: 14px;
    font-weight: 800;
}

.wtv-registration-trust-grid span {
    color: var(--wtv-reg-muted);
    font-size: 12px;
    line-height: 1.5;
}

.wtv-registration-existing {
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 40px auto;
    padding: 20px 22px;
    border: 1px solid #DFE5E8;
    border-radius: 16px;
    background: #fff;
    color: #171B2D;
    font-family: Montserrat, Arial, sans-serif;
}

.wtv-registration-existing a {
    color: #FF0002 !important;
    font-weight: 800;
}

@media (max-width: 1040px) {
    .wtv-registration-layout {
        grid-template-columns: 1fr;
        gap: 46px;
        max-width: 780px;
    }

    .wtv-registration-intro {
        max-width: 700px;
    }

    .wtv-registration-intro h1 {
        max-width: 680px;
    }

    .wtv-registration-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .wtv-registration-benefit {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 12px;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.035);
    }

    .wtv-registration-mini-flow {
        margin-top: 25px;
    }
}

@media (max-width: 767px) {
    .wtv-registration-container {
        width: min(100% - 40px, 720px);
    }

    .wtv-registration-nav {
        min-height: 68px;
        gap: 14px;
    }

    .wtv-registration-brand img {
        width: 188px;
        max-width: 54vw;
    }

    .wtv-registration-back {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 12px;
    }

    .wtv-registration-hero {
        padding: 52px 0 64px;
    }

    .wtv-registration-layout {
        gap: 34px;
    }

    .wtv-registration-intro {
        padding: 0;
    }

    .wtv-registration-intro h1 {
        margin-bottom: 18px !important;
        font-size: clamp(34px, 10vw, 46px) !important;
    }

    .wtv-registration-lead {
        margin-bottom: 28px !important;
        font-size: 17px !important;
    }

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

    .wtv-registration-benefit {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 12px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .wtv-registration-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .wtv-registration-trust-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 580px) {
    .wtv-registration-container {
        width: min(100% - 30px, 720px);
    }

    .wtv-registration-back span:last-child {
        display: none;
    }

    .wtv-registration-back {
        width: 40px;
        padding: 0;
        border-radius: 50%;
        font-size: 18px;
    }

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

    .wtv-registration-field-full {
        grid-column: auto;
    }

    .wtv-registration-section-title {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 11px;
    }

    .wtv-registration-section-title > span {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .wtv-registration-mini-flow {
        display: none;
    }

    .wtv-registration-trust-strip {
        padding: 30px 0;
    }
}

/* CORE 3.1 alpha.16 — Subscription-centered Player licensing */
.wtv-license-action-card {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

.wtv-license-pending-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.wtv-license-pending-player {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid var(--wtv-core-line, #e6e9f0);
    border-radius: 12px;
    background: #fbfcff;
}

.wtv-license-pending-player strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 13px;
}

.wtv-license-pending-player small {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 11px;
}

.wtv-license-coterm-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.wtv-license-coterm-summary > div {
    display: grid;
    gap: 4px;
    min-height: 86px;
    padding: 13px;
    border: 1px solid var(--wtv-core-line, #e6e9f0);
    border-radius: 13px;
    background: #fbfcff;
}

.wtv-license-coterm-summary span,
.wtv-license-capacity-total span,
.wtv-license-capacity-total small {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 12px;
}

.wtv-license-coterm-summary strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 15px;
}

.wtv-license-capacity-form {
    margin: 0;
}

.wtv-license-capacity-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding: 15px 16px;
    border: 1px solid var(--wtv-core-line-strong, #d8dde8);
    border-radius: 14px;
    background: #fbfcff;
}

.wtv-license-capacity-total > div {
    display: grid;
    gap: 2px;
}

.wtv-license-capacity-total strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 20px;
    font-weight: 900;
}

.wtv-license-capacity-total .wtv-btn {
    flex: 0 0 auto;
    min-width: 190px;
}

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

@media (max-width: 700px) {
    .wtv-license-coterm-summary {
        grid-template-columns: 1fr;
    }

    .wtv-license-capacity-total {
        align-items: stretch;
        flex-direction: column;
    }

    .wtv-license-capacity-total .wtv-btn {
        width: 100%;
        min-width: 0;
    }
}

.wtv-player-license-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.wtv-player-license-notice > div {
    display: grid;
    gap: 3px;
}

.wtv-player-license-notice span {
    color: var(--wtv-core-muted, #6b7280);
    font-size: 13px;
}

@media (max-width: 700px) {
    .wtv-player-license-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .wtv-player-license-notice .wtv-button {
        width: 100%;
    }
}

.wtv-player-license-notice.wtv-notice-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

/* CORE 3.1 alpha.18 — shared business identity */
.wtv-account-card-intro {
    display: block;
    margin: -8px 0 18px;
}

.wtv-business-logo-field {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 4px 0 22px;
    padding: 16px;
    border: 1px solid var(--wtv-core-line, #e6e9f0);
    border-radius: 16px;
    background: #fbfcff;
}

.wtv-business-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1px solid #dfe4ee;
    border-radius: 18px;
    background: #171b2d;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .04em;
}

.wtv-business-logo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.wtv-business-logo-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}

.wtv-business-logo-copy > strong {
    color: var(--wtv-core-ink, #171b2d);
    font-size: 14px;
}

.wtv-business-logo-copy > span {
    max-width: 620px;
    color: var(--wtv-core-muted, #6b7280);
    font-size: 12px;
    line-height: 1.55;
}

.wtv-business-logo-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid #d8dde8;
    border-radius: 10px;
    background: #fff;
    color: #171b2d;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.wtv-business-logo-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wtv-business-logo-remove {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    cursor: pointer;
    font-size: 12px;
}

.wtv-account-section-heading {
    margin: 26px 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--wtv-core-line, #e6e9f0);
    color: var(--wtv-core-ink, #171b2d);
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 620px) {
    .wtv-business-logo-field {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* CORE 3.1 alpha.18 — WelcomeTV-owned frontend authentication */
body.wtv-auth-body {
    margin: 0 !important;
    min-height: 100%;
    background: #171b2d;
}

.wtv-auth-body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Montserrat, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.wtv-auth-page {
    --wtv-auth-navy: #171b2d;
    --wtv-auth-navy-soft: #242a40;
    --wtv-auth-red: #ff0002;
    --wtv-auth-copy: #d6dae5;
    --wtv-auth-muted: #606878;
    --wtv-auth-line: #dfe5e8;
    min-height: 100vh;
    background: #fff;
    color: #171b2d;
}

.wtv-auth-container {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 0 auto;
}

.wtv-auth-header {
    position: relative;
    z-index: 2;
    background: #171b2d;
}

.wtv-auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
}

.wtv-auth-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.wtv-auth-brand img {
    display: block;
    width: auto;
    height: 36px;
    max-width: 220px;
    object-fit: contain;
}

.wtv-auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    opacity: .86;
}

.wtv-auth-home-link:hover,
.wtv-auth-home-link:focus {
    color: #fff;
    opacity: 1;
}

.wtv-auth-main {
    position: relative;
    display: flex;
    min-height: calc(100vh - 92px);
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 30%, rgba(255,0,2,.11), transparent 28%),
        linear-gradient(135deg, #171b2d 0%, #1d2337 52%, #242a40 100%);
}

.wtv-auth-main::after {
    position: absolute;
    right: -180px;
    bottom: -260px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
    content: '';
}

.wtv-auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(380px, 500px);
    align-items: center;
    gap: 86px;
    padding-top: 58px;
    padding-bottom: 72px;
}

.wtv-auth-intro {
    max-width: 590px;
    color: #fff;
}

.wtv-auth-kicker,
.wtv-auth-card-kicker {
    display: inline-block;
    color: #ff0002;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.wtv-auth-intro h1 {
    margin: 16px 0 20px;
    color: #fff;
    font-size: 58px;
    font-size: clamp(44px, 5vw, 74px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
}

.wtv-auth-intro h1 em {
    color: #ff0002;
    font-style: normal;
}

.wtv-auth-intro > p {
    max-width: 560px;
    margin: 0;
    color: #d6dae5;
    font-size: 16px;
    line-height: 1.7;
}

.wtv-auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.wtv-auth-points span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: #e7e9ef;
    font-size: 11px;
    font-weight: 700;
}

.wtv-auth-panel {
    width: 100%;
}

.wtv-auth-card {
    width: 100%;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(3, 7, 18, .28);
}

.wtv-auth-card-heading {
    margin-bottom: 24px;
}

.wtv-auth-card-heading h2 {
    margin: 6px 0 7px;
    color: #171b2d;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.wtv-auth-card-heading p {
    margin: 0;
    color: #606878;
    font-size: 13px;
    line-height: 1.6;
}

.wtv-auth-form {
    display: grid;
    gap: 16px;
}

.wtv-auth-field {
    display: grid;
    gap: 7px;
}

.wtv-auth-field > span {
    color: #242a40;
    font-size: 12px;
    font-weight: 800;
}

.wtv-auth-field input {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #dfe5e8;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #171b2d;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}

.wtv-auth-field input:focus {
    border-color: #171b2d;
    box-shadow: 0 0 0 3px rgba(23,27,45,.08);
}

.wtv-auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -2px;
}

.wtv-auth-form-row a,
.wtv-auth-switch a {
    color: #171b2d;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.wtv-auth-form-row a:hover,
.wtv-auth-switch a:hover {
    color: #ff0002;
}

.wtv-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #606878;
    cursor: pointer;
    font-size: 12px;
}

.wtv-auth-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.wtv-auth-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: #ff0002;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease;
}

.wtv-auth-primary:hover,
.wtv-auth-primary:focus {
    background: #d9001b;
    color: #fff;
    transform: translateY(-1px);
}

.wtv-auth-primary-link {
    margin-top: 8px;
}

.wtv-auth-switch {
    margin-top: 23px;
    padding-top: 19px;
    border-top: 1px solid #edf0f4;
    color: #727987;
    font-size: 12px;
    text-align: center;
}

.wtv-auth-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.55;
}

.wtv-auth-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.wtv-auth-alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.wtv-auth-alert-neutral {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.wtv-auth-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 940px) {
    .wtv-auth-layout {
        grid-template-columns: 1fr;
        gap: 38px;
        max-width: 680px;
    }

    .wtv-auth-intro {
        text-align: center;
        margin: 0 auto;
    }

    .wtv-auth-intro h1 {
        font-size: 52px;
    }

    .wtv-auth-points {
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .wtv-auth-container {
        width: calc(100% - 28px);
    }

    .wtv-auth-nav {
        min-height: 76px;
    }

    .wtv-auth-brand img {
        height: 30px;
    }

    .wtv-auth-home-link {
        font-size: 0;
    }

    .wtv-auth-home-link span {
        font-size: 18px;
    }

    .wtv-auth-main {
        min-height: calc(100vh - 76px);
    }

    .wtv-auth-layout {
        gap: 26px;
        padding-top: 34px;
        padding-bottom: 42px;
    }

    .wtv-auth-intro h1 {
        font-size: 39px;
    }

    .wtv-auth-intro > p {
        font-size: 14px;
    }

    .wtv-auth-points {
        display: none;
    }

    .wtv-auth-card {
        padding: 25px 20px;
        border-radius: 19px;
    }

    .wtv-auth-card-heading h2 {
        font-size: 29px;
    }

    .wtv-auth-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
