/* WelcomeTV Content Studio frontend styles */
.wtv-cs-frontend,
.wtv-cs-frontend * {
    box-sizing: border-box;
}

.wtv-cs-frontend {
    --wtv-cs-bg: #f6f4ef;
    --wtv-cs-card: #ffffff;
    --wtv-cs-text: #242235;
    --wtv-cs-muted: #6f6a7f;
    --wtv-cs-line: rgba(36, 34, 53, 0.13);
    --wtv-cs-accent: #f20d19;
    --wtv-cs-accent-dark: #c9000b;
    --wtv-cs-soft: rgba(242, 13, 25, 0.07);

    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--wtv-cs-text);
    font-family: inherit;
}

.wtv-cs-wizard {
    max-width: 1180px;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fbfbfd 100%);
    border: 1px solid var(--wtv-cs-line);
    box-shadow: 0 18px 48px rgba(18, 22, 41, 0.07);
}

.wtv-cs-wizard-head {
    margin-bottom: 20px;
}

.wtv-cs-page-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.wtv-cs-title-led {
    flex: 0 0 auto;
    width: 8px;
    height: 36px;
    margin-top: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff2430, #e0000d);
    box-shadow: 0 0 0 6px rgba(242, 13, 25, 0.08), 0 8px 18px rgba(242, 13, 25, 0.20);
}

.wtv-cs-eyebrow {
    margin: 0 0 6px;
    color: var(--wtv-cs-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wtv-cs-wizard h2,
.wtv-cs-wizard h3,
.wtv-cs-wizard h4 {
    margin-top: 0;
    color: var(--wtv-cs-text);
}

.wtv-cs-wizard-head h2 {
    margin-bottom: 8px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.wtv-cs-wizard-head .wtv-cs-page-title p {
    margin: 0;
}

.wtv-cs-wizard-head p,
.wtv-cs-step-title p,
.wtv-cs-muted {
    color: var(--wtv-cs-muted);
}

.wtv-cs-message {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--wtv-cs-line);
    background: #fff;
}

.wtv-cs-message-success {
    border-color: rgba(63, 125, 104, .35);
    background: rgba(63, 125, 104, .10);
}

.wtv-cs-message-error,
.wtv-cs-message-warning {
    border-color: rgba(175, 73, 55, .35);
    background: rgba(175, 73, 55, .10);
}

.wtv-cs-order-id {
    display: inline-block;
    margin-left: 8px;
    font-weight: 800;
}

.wtv-cs-step-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 24px;
    padding: 0;
}

.wtv-cs-step-progress span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f4f5f8;
    border: 1px solid rgba(18, 22, 41, 0.10);
    color: var(--wtv-cs-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wtv-cs-step-progress span.is-active {
    color: #fff;
    background: linear-gradient(135deg, #ff1724, #df000d);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(242, 13, 25, 0.20);
}

.wtv-cs-step-progress span.is-done {
    color: var(--wtv-cs-accent);
    background: rgba(242, 13, 25, 0.07);
    border-color: rgba(242, 13, 25, 0.18);
}

.wtv-cs-step {
    display: none;
    animation: wtvCsFade .18s ease-out;
}

.wtv-cs-step.is-active {
    display: block;
}

@keyframes wtvCsFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.wtv-cs-step-title {
    margin-bottom: 16px;
}

.wtv-cs-step-title h3 {
    margin-bottom: 7px;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: .03em;
    text-transform: uppercase;
}

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

.wtv-cs-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 108px;
    padding: 14px 42px 14px 14px;
    border-radius: 16px;
    background: var(--wtv-cs-card);
    border: 1px solid var(--wtv-cs-line);
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.wtv-cs-choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(242, 13, 25, .30);
    box-shadow: 0 10px 24px rgba(18, 22, 41, 0.07);
}

.wtv-cs-choice-card.is-selected {
    background: rgba(242, 13, 25, 0.045);
    border-color: var(--wtv-cs-accent);
    box-shadow: 0 12px 28px rgba(242, 13, 25, 0.12);
}

.wtv-cs-choice-card.is-selected::after {
    content: "✓";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--wtv-cs-accent);
    font-size: 13px;
    font-weight: 900;
}

.wtv-cs-choice-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wtv-cs-choice-card strong {
    font-size: 15px;
    line-height: 1.25;
}

.wtv-cs-choice-card small {
    color: var(--wtv-cs-muted);
    line-height: 1.35;
    font-size: 12px;
}

.wtv-cs-choice-icon {
    font-size: 22px;
    line-height: 1;
}

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

.wtv-cs-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    border: 1px solid var(--wtv-cs-line);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
}

.wtv-cs-form-grid label > span {
    font-size: 13px;
    font-weight: 800;
    color: var(--wtv-cs-text);
}

.wtv-cs-form-grid input[type="text"],
.wtv-cs-form-grid input[type="time"],
.wtv-cs-form-grid input[type="date"],
.wtv-cs-form-grid input[type="number"],
.wtv-cs-form-grid input[type="email"],
.wtv-cs-form-grid input[type="url"],
.wtv-cs-form-grid input[type="file"],
.wtv-cs-form-grid select,
.wtv-cs-form-grid textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--wtv-cs-line);
    border-radius: 12px;
    background: #fff;
    color: var(--wtv-cs-text);
    font: inherit;
}

.wtv-cs-form-grid textarea {
    min-height: 96px;
    resize: vertical;
}

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

.wtv-cs-inline-check {
    justify-content: center;
}

.wtv-cs-inline-check input {
    width: auto;
    min-height: auto;
    margin-right: 8px;
}

.wtv-cs-inline-check {
    flex-direction: row !important;
    align-items: center;
}

.wtv-cs-review-box {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--wtv-cs-line);
    background: rgba(255,255,255,.82);
}

.wtv-cs-review-section {
    padding: 14px 0;
    border-bottom: 1px solid var(--wtv-cs-line);
}

.wtv-cs-review-section:first-child {
    padding-top: 0;
}

.wtv-cs-review-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wtv-cs-review-section h4 {
    margin-bottom: 8px;
}

.wtv-cs-review-section ul {
    margin: 0;
    padding-left: 18px;
}

.wtv-cs-review-section dl {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 8px 16px;
    margin: 0;
}

.wtv-cs-review-section dt {
    color: var(--wtv-cs-muted);
    font-weight: 800;
}

.wtv-cs-review-section dd {
    margin: 0;
}

.wtv-cs-credit-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: var(--wtv-cs-soft);
    border: 1px solid rgba(63, 125, 104, 0.22);
}

.wtv-cs-credit-box span {
    font-size: 24px;
    font-weight: 900;
    margin: 0 4px;
}

.wtv-cs-credit-box small {
    display: block;
    margin-top: 4px;
    color: var(--wtv-cs-muted);
}

.wtv-cs-wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--wtv-cs-line);
}

.wtv-cs-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    background: var(--wtv-cs-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(63, 125, 104, 0.22);
}

.wtv-cs-button:hover {
    background: var(--wtv-cs-accent-dark);
    color: #fff;
}

.wtv-cs-button-secondary {
    background: #fff;
    color: var(--wtv-cs-text);
    border: 1px solid var(--wtv-cs-line);
    box-shadow: none;
}

.wtv-cs-button-submit {
    background: #242235;
}

.wtv-cs-button-submit:hover {
    background: #11101c;
}

.wtv-cs-wizard .wtv-cs-button {
    min-height: 44px;
    border-radius: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff1724, #df000d);
    color: #fff;
    box-shadow: 0 12px 24px rgba(242, 13, 25, 0.20);
}

.wtv-cs-wizard .wtv-cs-button:hover {
    background: linear-gradient(135deg, #f20d19, #c9000b);
}

.wtv-cs-wizard .wtv-cs-button-secondary {
    background: #fff;
    color: var(--wtv-cs-text);
    border: 1px solid var(--wtv-cs-line);
    box-shadow: none;
}

.wtv-cs-wizard .wtv-cs-button-submit {
    background: var(--wtv-cs-dark, #101426);
    box-shadow: 0 12px 24px rgba(18, 22, 41, 0.14);
}

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

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

    .wtv-cs-review-section dl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wtv-cs-wizard {
        padding: 18px;
        border-radius: 22px;
    }

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

    .wtv-cs-wizard-actions {
        flex-direction: column;
    }

    .wtv-cs-button {
        width: 100%;
    }
}

/* Content Studio frontend dashboard */
.wtv-cs-dashboard {
    --wtv-cs-bg: #f7f8fb;
    --wtv-cs-card: #ffffff;
    --wtv-cs-text: #121629;
    --wtv-cs-muted: #687083;
    --wtv-cs-line: rgba(18, 22, 41, 0.10);
    --wtv-cs-red: #f20d19;
    --wtv-cs-dark: #101426;

    max-width: 1240px;
}

.wtv-cs-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.wtv-cs-dashboard-hero h2 {
    margin: 0 0 8px;
    color: var(--wtv-cs-text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
}

.wtv-cs-dashboard-hero p:not(.wtv-cs-eyebrow) {
    margin: 0;
    color: var(--wtv-cs-muted);
}

.wtv-cs-primary-action,
.wtv-cs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 0;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.wtv-cs-primary-action {
    color: #fff;
    background: linear-gradient(135deg, #ff101f, #d9000d);
    box-shadow: 0 14px 28px rgba(242, 13, 25, 0.22);
}

.wtv-cs-button {
    color: var(--wtv-cs-text);
    background: #fff;
    border: 1px solid var(--wtv-cs-line);
}

.wtv-cs-full {
    width: 100%;
}

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

.wtv-cs-stat-card,
.wtv-cs-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--wtv-cs-line);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(16, 20, 38, 0.06);
}

.wtv-cs-stat-card {
    padding: 24px;
}

.wtv-cs-stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--wtv-cs-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wtv-cs-stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--wtv-cs-text);
    font-size: 36px;
    line-height: 1;
}

.wtv-cs-stat-card small {
    color: var(--wtv-cs-muted);
}

.wtv-cs-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, .85fr);
    gap: 24px;
    align-items: start;
}

.wtv-cs-panel {
    padding: 24px;
}

.wtv-cs-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wtv-cs-panel h3 {
    margin: 0 0 12px;
    color: var(--wtv-cs-text);
    font-size: 22px;
}

.wtv-cs-panel p {
    color: var(--wtv-cs-muted);
}

.wtv-cs-table-wrap {
    overflow-x: auto;
}

.wtv-cs-order-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--wtv-cs-line);
    border-radius: 16px;
}

.wtv-cs-order-table th,
.wtv-cs-order-table td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--wtv-cs-line);
    text-align: left;
    vertical-align: middle;
}

.wtv-cs-order-table th {
    color: var(--wtv-cs-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(247, 248, 251, 0.86);
}

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

.wtv-cs-order-table a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--wtv-cs-text);
    text-decoration: none;
}

.wtv-cs-order-table a span {
    color: var(--wtv-cs-muted);
    font-size: 13px;
}

.wtv-cs-clickable-row {
    cursor: pointer;
}

.wtv-cs-clickable-row:hover td {
    background: rgba(242, 13, 25, 0.035);
}

.wtv-cs-status {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #6f4b00;
    background: #fff2cf;
    font-size: 12px;
    font-weight: 900;
}

.wtv-cs-status-completed,
.wtv-cs-status-done,
.wtv-cs-status-approved {
    color: #087344;
    background: #dff7ea;
}

.wtv-cs-status-failed,
.wtv-cs-status-error {
    color: #a00912;
    background: #ffe0e3;
}

.wtv-cs-status-pending,
.wtv-cs-status-queued,
.wtv-cs-status-processing,
.wtv-cs-status-draft {
    color: #8a5600;
    background: #fff0c9;
}

.wtv-cs-side-stack {
    display: grid;
    gap: 20px;
}

.wtv-cs-credit-row strong {
    display: block;
    color: var(--wtv-cs-text);
    font-size: 42px;
    line-height: 1;
}

.wtv-cs-credit-row span,
.wtv-cs-credit-card small {
    color: var(--wtv-cs-muted);
}

.wtv-cs-progress {
    height: 8px;
    margin: 18px 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(18, 22, 41, 0.09);
}

.wtv-cs-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--wtv-cs-red);
}

.wtv-cs-template-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wtv-cs-template-card li {
    padding: 12px;
    border: 1px solid var(--wtv-cs-line);
    border-radius: 14px;
    background: #fff;
}

.wtv-cs-template-card strong,
.wtv-cs-template-card span {
    display: block;
}

.wtv-cs-template-card span {
    margin-top: 4px;
    color: var(--wtv-cs-muted);
    font-size: 13px;
}

.wtv-cs-empty-state {
    padding: 28px;
    border: 1px dashed var(--wtv-cs-line);
    border-radius: 18px;
    background: rgba(247, 248, 251, 0.6);
}

.wtv-cs-order-items {
    display: grid;
    gap: 16px;
}

.wtv-cs-order-item-card {
    padding: 18px;
    border: 1px solid var(--wtv-cs-line);
    border-radius: 18px;
    background: #fff;
}

.wtv-cs-order-item-card h4 {
    margin: 10px 0 14px;
    color: var(--wtv-cs-text);
    font-size: 20px;
}

.wtv-cs-order-item-card dl {
    display: grid;
    grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr);
    gap: 8px 14px;
    margin: 14px 0 0;
}

.wtv-cs-order-item-card dt {
    color: var(--wtv-cs-muted);
    font-weight: 800;
}

.wtv-cs-order-item-card dd {
    margin: 0;
    color: var(--wtv-cs-text);
}

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

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

@media (max-width: 640px) {
    .wtv-cs-dashboard-hero {
        align-items: stretch;
        flex-direction: column;
    }

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

/* Dashboard V1.1 cleanup */
.wtv-cs-dashboard-compact {
    padding-top: 0;
}

.wtv-cs-dashboard-compact .wtv-cs-stat-grid {
    margin-top: 0;
}

.wtv-cs-credit-card {
    display: grid;
    gap: 18px;
}

.wtv-cs-credit-head strong {
    display: block;
    margin: 8px 0 2px;
    color: var(--wtv-cs-text);
    font-size: 44px;
    line-height: 1;
}

.wtv-cs-credit-head span {
    color: var(--wtv-cs-muted);
    font-size: 14px;
}

.wtv-cs-credit-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wtv-cs-credit-meta div {
    padding: 12px;
    border: 1px solid var(--wtv-cs-line);
    border-radius: 14px;
    background: rgba(247, 248, 251, 0.75);
}

.wtv-cs-credit-meta small,
.wtv-cs-placeholder-note {
    display: block;
    color: var(--wtv-cs-muted);
    font-size: 12px;
}

.wtv-cs-credit-meta b {
    display: block;
    margin-top: 5px;
    color: var(--wtv-cs-text);
    font-size: 18px;
}

.wtv-cs-credit-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(18, 22, 41, 0.09);
}

.wtv-cs-credit-progress span {
    display: block;
    min-width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--wtv-cs-red);
}

.wtv-cs-buy-credits[aria-disabled="true"] {
    opacity: 0.85;
}

/* Dashboard V1.2 Core-style polish */
.wtv-cs-core-page-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
    padding-left: 30px;
}

.wtv-cs-core-page-head::before,
.wtv-cs-card-title::before,
.wtv-cs-panel-head::before {
    content: "";
    position: absolute;
    width: 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff121f 0%, #f20d19 55%, rgba(242, 13, 25, 0.12) 100%);
    box-shadow: 0 0 18px rgba(242, 13, 25, 0.35);
}

.wtv-cs-core-page-head::before {
    left: 0;
    top: 8px;
    height: 42px;
}

.wtv-cs-core-page-head h2 {
    margin: 0 0 8px;
    color: var(--wtv-cs-text);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.wtv-cs-core-page-head p:not(.wtv-cs-eyebrow) {
    margin: 0;
    color: var(--wtv-cs-muted);
    font-size: 15px;
}

.wtv-cs-dashboard-compact .wtv-cs-stat-card,
.wtv-cs-dashboard-compact .wtv-cs-panel {
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(16, 20, 38, 0.055);
}

.wtv-cs-dashboard-compact .wtv-cs-panel-head,
.wtv-cs-card-title {
    position: relative;
    padding-left: 20px;
}

.wtv-cs-dashboard-compact .wtv-cs-panel-head::before,
.wtv-cs-card-title::before {
    left: 0;
    top: 4px;
    height: 28px;
}

.wtv-cs-dashboard-compact .wtv-cs-panel h3,
.wtv-cs-card-title h3 {
    letter-spacing: .055em;
    text-transform: uppercase;
}

.wtv-cs-credit-card {
    gap: 16px;
    overflow: hidden;
}

.wtv-cs-credit-balance-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(242, 13, 25, 0.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 18%, rgba(242, 13, 25, 0.11), transparent 36%),
        linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
}

.wtv-cs-credit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #ff121f, #d9000d);
    box-shadow: 0 12px 24px rgba(242, 13, 25, 0.23);
    font-size: 18px;
    line-height: 1;
}

.wtv-cs-credit-balance-box strong {
    display: block;
    color: var(--wtv-cs-text);
    font-size: 42px;
    line-height: .92;
    letter-spacing: -.04em;
}

.wtv-cs-credit-balance-box span {
    display: block;
    margin-top: 7px;
    color: var(--wtv-cs-muted);
    font-size: 14px;
    font-weight: 700;
}

.wtv-cs-credit-progress-wrap {
    display: grid;
    gap: 8px;
}

.wtv-cs-credit-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--wtv-cs-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.wtv-cs-credit-progress-label strong {
    color: var(--wtv-cs-text);
}

.wtv-cs-credit-card .wtv-cs-buy-credits {
    margin-top: 2px;
}

.wtv-cs-credit-card .wtv-cs-placeholder-note {
    text-align: center;
}

@media (max-width: 640px) {
    .wtv-cs-core-page-head {
        padding-left: 22px;
    }

    .wtv-cs-core-page-head h2 {
        font-size: 34px;
    }
}

/* Content Studio V1.4 - align frontend pages with WelcomeTV Core visual language */
.wtv-cs-frontend {
    --wtv-core-text: #171b2d;
    --wtv-core-muted: #5f6678;
    --wtv-core-line: #e3e6ef;
    --wtv-core-red: #ff0002;
    --wtv-core-dark: #171b2d;
    --wtv-cs-text: var(--wtv-core-text) !important;
    --wtv-cs-muted: var(--wtv-core-muted) !important;
    --wtv-cs-line: var(--wtv-core-line) !important;
    --wtv-cs-accent: var(--wtv-core-red) !important;
    --wtv-cs-red: var(--wtv-core-red) !important;
    max-width: 1240px !important;
}

.wtv-cs-dashboard,
.wtv-cs-wizard {
    color: var(--wtv-core-text) !important;
}

.wtv-cs-wizard {
    padding: 34px 28px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid var(--wtv-core-line) !important;
    box-shadow: 0 18px 50px rgba(20, 24, 40, 0.06) !important;
}

.wtv-dashboard-header,
.wtv-cs-core-page-head,
.wtv-cs-wizard-head {
    position: relative !important;
    display: block !important;
    margin: 0 0 26px !important;
    padding-left: 28px !important;
}

.wtv-dashboard-header::before,
.wtv-cs-core-page-head::before,
.wtv-cs-wizard-head::before,
.wtv-cs-dashboard-compact .wtv-cs-panel-head::before,
.wtv-cs-card-title::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    width: 7px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ff3436 0%, #ff0002 62%, #b00002 100%) !important;
    box-shadow: 0 0 0 5px rgba(255, 0, 2, 0.08), 0 10px 22px rgba(255, 0, 2, 0.22) !important;
}

.wtv-dashboard-header h2,
.wtv-cs-core-page-head h2,
.wtv-cs-wizard-head h2 {
    margin: 0 0 8px !important;
    color: var(--wtv-core-text) !important;
    font-size: clamp(25px, 2.2vw, 34px) !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
}

.wtv-dashboard-header p,
.wtv-cs-core-page-head p,
.wtv-cs-wizard-head p {
    margin: 0 !important;
    color: var(--wtv-core-muted) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.wtv-cs-stat-card,
.wtv-cs-panel,
.wtv-cs-choice-card,
.wtv-cs-form-grid label,
.wtv-cs-review-box,
.wtv-cs-credit-box,
.wtv-cs-order-item-card,
.wtv-cs-empty-state {
    border: 1px solid var(--wtv-core-line) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 50px rgba(20, 24, 40, 0.06) !important;
}

.wtv-cs-stat-card,
.wtv-cs-panel {
    padding: 24px !important;
}

.wtv-cs-stat-card span,
.wtv-cs-eyebrow,
.wtv-cs-panel-head .wtv-cs-eyebrow,
.wtv-cs-card-title .wtv-cs-eyebrow,
.wtv-cs-order-table th,
.wtv-cs-form-grid label > span,
.wtv-cs-step-progress span {
    color: #687083 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
}

.wtv-cs-panel h3,
.wtv-cs-step-title h3,
.wtv-cs-card-title h3 {
    color: var(--wtv-core-text) !important;
    font-size: clamp(20px, 1.8vw, 26px) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.wtv-cs-step-title {
    margin-bottom: 18px !important;
}

.wtv-cs-step-title p,
.wtv-cs-panel p,
.wtv-cs-choice-card small,
.wtv-cs-muted,
.wtv-cs-order-table a span,
.wtv-cs-credit-balance-box span,
.wtv-cs-credit-meta small,
.wtv-cs-placeholder-note {
    color: var(--wtv-core-muted) !important;
}

.wtv-cs-primary-action,
.wtv-cs-button,
.wtv-cs-wizard .wtv-cs-button,
.wtv-cs-credit-card .wtv-cs-buy-credits {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    border: 0 !important;
    padding: 12px 18px !important;
    background: linear-gradient(180deg, #22273a 0%, #171b2d 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(23, 27, 45, 0.14) !important;
}

.wtv-cs-button:hover,
.wtv-cs-primary-action:hover,
.wtv-cs-wizard .wtv-cs-button:hover,
.wtv-cs-credit-card .wtv-cs-buy-credits:hover {
    background: linear-gradient(180deg, #2d334a 0%, #111522 100%) !important;
    color: #ffffff !important;
}

.wtv-cs-button-secondary,
.wtv-cs-wizard .wtv-cs-button-secondary {
    background: #ffffff !important;
    color: var(--wtv-core-text) !important;
    border: 1px solid var(--wtv-core-line) !important;
    box-shadow: none !important;
}

.wtv-cs-button-secondary:hover,
.wtv-cs-wizard .wtv-cs-button-secondary:hover {
    background: #f7f8fb !important;
    color: var(--wtv-core-text) !important;
}

.wtv-cs-step-progress {
    gap: 10px !important;
    margin: 18px 0 24px !important;
    padding: 0 !important;
}

.wtv-cs-step-progress span {
    min-height: 34px !important;
    border-radius: 999px !important;
    background: #f4f5f8 !important;
    border: 1px solid var(--wtv-core-line) !important;
    box-shadow: none !important;
}

.wtv-cs-step-progress span.is-active {
    color: #ffffff !important;
    background: linear-gradient(180deg, #ff3436 0%, #ff0002 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 22px rgba(255, 0, 2, 0.18) !important;
}

.wtv-cs-step-progress span.is-done {
    color: var(--wtv-core-red) !important;
    background: rgba(255, 0, 2, 0.07) !important;
    border-color: rgba(255, 0, 2, 0.18) !important;
}

.wtv-cs-card-grid {
    gap: 14px !important;
}

.wtv-cs-choice-card {
    min-height: 104px !important;
    padding: 14px 42px 14px 14px !important;
    box-shadow: none !important;
}

.wtv-cs-choice-card:hover {
    border-color: rgba(255, 0, 2, 0.28) !important;
    box-shadow: 0 14px 34px rgba(20, 24, 40, 0.07) !important;
}

.wtv-cs-choice-card.is-selected {
    border-color: var(--wtv-core-red) !important;
    background: rgba(255, 0, 2, 0.035) !important;
    box-shadow: 0 14px 34px rgba(255, 0, 2, 0.10) !important;
}

.wtv-cs-choice-card.is-selected::after {
    background: linear-gradient(180deg, #ff3436 0%, #ff0002 100%) !important;
}

.wtv-cs-form-grid input[type="text"],
.wtv-cs-form-grid input[type="time"],
.wtv-cs-form-grid input[type="date"],
.wtv-cs-form-grid input[type="number"],
.wtv-cs-form-grid input[type="email"],
.wtv-cs-form-grid input[type="url"],
.wtv-cs-form-grid input[type="file"],
.wtv-cs-form-grid select,
.wtv-cs-form-grid textarea {
    border: 1px solid var(--wtv-core-line) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: var(--wtv-core-text) !important;
}

.wtv-cs-order-table {
    border: 1px solid var(--wtv-core-line) !important;
    border-radius: 14px !important;
}

.wtv-cs-order-table th {
    background: #f7f8fb !important;
}

.wtv-cs-credit-balance-box,
.wtv-cs-credit-meta div {
    border: 1px solid var(--wtv-core-line) !important;
    background: #f7f8fb !important;
    box-shadow: none !important;
}

.wtv-cs-credit-icon {
    background: linear-gradient(180deg, #ff3436 0%, #ff0002 100%) !important;
    box-shadow: 0 10px 22px rgba(255, 0, 2, 0.18) !important;
}

.wtv-cs-credit-progress span,
.wtv-cs-progress span {
    background: linear-gradient(90deg, #ff3436 0%, #ff0002 100%) !important;
}

@media (max-width: 640px) {
    .wtv-dashboard-header,
    .wtv-cs-core-page-head,
    .wtv-cs-wizard-head {
        padding-left: 24px !important;
    }
}
