:root {
    --ds-purple: #6339f0;
    --ds-purple-deep: #5229d9;
    --ds-purple-soft: #efeafd;
    --ds-purple-badge: #ece6ff;
    --ds-text: #1a1a2e;
    --ds-muted: #6b7280;
    --ds-border: #e5e0f5;
    --ds-white: #ffffff;
    --ds-bg: #faf9fc;
    --ds-shadow: 0 12px 40px rgba(60, 40, 120, 0.08);
    --ds-radius: 16px;
    --ds-font: "Manrope", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.ds-body {
    margin: 0;
    font-family: var(--ds-font);
    color: var(--ds-text);
    background: var(--ds-bg);
    -webkit-font-smoothing: antialiased;
}

.ds-page {
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.ds-container {
    width: min(1140px, calc(100% - 2.5rem));
    margin-inline: auto;
    max-width: 100%;
}

/* ===== HERO ===== */
.ds-hero {
    position: relative;
    padding: 0 0 2rem;
    overflow: hidden;
    background: #f7f5fb;
}

.ds-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            100deg,
            #f7f5fb 0%,
            #f7f5fb 38%,
            rgba(247, 245, 251, 0.92) 52%,
            rgba(247, 245, 251, 0.55) 72%,
            rgba(247, 245, 251, 0.2) 100%
        ),
        var(--ds-hero-image, none) right center / cover no-repeat;
    filter: grayscale(0.35) contrast(0.95);
    pointer-events: none;
}

.ds-header {
    position: relative;
    z-index: 2;
    padding: 1.35rem 0 0.35rem;
}

.ds-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.ds-brand img {
    height: 52px;
    width: auto;
    max-width: min(360px, 72vw);
    object-fit: contain;
    display: block;
}

.ds-hero-grid {
    position: relative;
    z-index: 2;
    padding-top: 0.85rem;
    max-width: none;
}

.ds-hero-copy {
    max-width: 720px;
}

.ds-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: var(--ds-purple-badge);
    color: var(--ds-purple);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.ds-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-purple);
    box-shadow: 0 0 0 0 rgba(99, 57, 240, 0.45);
    animation: dsPulse 1.6s infinite;
}

@keyframes dsPulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 57, 240, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(99, 57, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 57, 240, 0); }
}

.ds-headline {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #151528;
}

.ds-accent {
    color: var(--ds-purple);
}

.ds-subhead {
    margin: 0 0 12px;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ds-muted);
    font-weight: 450;
}

.ds-price-block {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.ds-price-old {
    font-size: 1.2rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 600;
}

.ds-price-now {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.ds-off-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--ds-purple-badge);
    color: var(--ds-purple);
    font-size: 0.75rem;
    font-weight: 800;
}

.ds-hero-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem 2.25rem;
    width: 100%;
    max-width: 980px;
}

.ds-cta-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    width: 300px;
}

.ds-cta-block .ds-btn-primary {
    width: 100%;
}

.ds-action-divider {
    width: 1px;
    align-self: stretch;
    min-height: 118px;
    background: #cfcfd4;
    flex-shrink: 0;
}

.ds-btn-primary,
.ds-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.ds-btn-primary {
    padding: 0.95rem 1.55rem;
    background: var(--ds-purple);
    color: #fff;
    border: none;
    box-shadow: 0 10px 28px rgba(99, 57, 240, 0.32);
    cursor: pointer;
    font-size: 1rem;
}

.ds-btn-primary:hover {
    background: var(--ds-purple-deep);
    transform: translateY(-1px);
    color: #fff;
}

.ds-btn-outline {
    padding: 0.7rem 1.2rem;
    background: #fff;
    color: var(--ds-purple);
    border: 1.5px solid var(--ds-purple);
    margin-top: 0.25rem;
    align-self: flex-start;
}

.ds-btn-outline:hover {
    background: var(--ds-purple-soft);
    color: var(--ds-purple-deep);
}

.ds-btn-block {
    width: 100%;
}

.ds-trust-inline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
}

.ds-trust-inline i {
    color: var(--ds-purple);
    margin-right: 0.15rem;
}

.ds-trust-sep {
    color: #c4c0d0;
    font-weight: 400;
}

.ds-meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.7rem;
    flex-shrink: 0;
    min-width: 180px;
}

.ds-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    min-width: 0;
}

.ds-meta-item span {
    min-width: 0;
}

.ds-meta-item i {
    color: var(--ds-purple);
    font-size: 1.1rem;
}

.ds-countdown {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    justify-content: flex-start;
    flex-shrink: 0;
}

.ds-count-box {
    width: 76px;
    height: 76px;
    min-width: 76px;
    padding: 0.65rem 0.35rem 0.55rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(50, 40, 100, 0.1);
    text-align: center;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ds-count-box strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
}

.ds-count-box span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

/* ===== INFO CARD ===== */
.ds-info-section {
    position: relative;
    z-index: 3;
    padding: 0 0 3.5rem;
    margin-top: 5px;
}

.ds-info-card {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) 1px minmax(0, 1.2fr);
    gap: 2rem 2.5rem;
    align-items: stretch;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--ds-shadow);
    padding: 1.75rem 1.85rem;
    border: 1px solid rgba(99, 57, 240, 0.06);
}

.ds-info-divider {
    width: 1px;
    min-height: 100%;
    align-self: stretch;
    background: #d8d8dc;
    box-shadow: 1px 0 4px rgba(0, 0, 0, 0.08);
}

.ds-instructor {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ds-instructor-photo {
    width: 148px;
    height: 148px;
    object-fit: cover;
    border-radius: 14px;
    background: #eef0f4;
    flex-shrink: 0;
    margin-right: 0;
}

.ds-instructor-copy {
    padding-top: 0.15rem;
}

.ds-instructor-label {
    display: block;
    font-size: 0.95rem;
    color: var(--ds-purple);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ds-instructor-copy h2 {
    margin: 0 0 0.55rem;
    font-size: 1.45rem;
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ds-instructor-rule {
    display: block;
    width: 42px;
    height: 3px;
    border-radius: 2px;
    background: var(--ds-purple);
    margin-bottom: 0.65rem;
}

.ds-instructor-copy p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.92rem;
}

.ds-learn h3 {
    margin: 0 0 1.1rem;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    color: var(--ds-purple);
    font-weight: 800;
}

.ds-learn-list {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: grid;
    gap: 0.95rem;
}

.ds-learn-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    color: #1f2937;
    line-height: 1.45;
    font-size: 0.95rem;
}

.ds-learn-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ds-purple);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== REGISTER MODAL ===== */
.ds-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ds-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ds-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 40, 0.55);
    backdrop-filter: blur(3px);
}

.ds-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(30, 20, 70, 0.28);
    padding: 1.6rem 1.5rem 1.4rem;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}

.ds-modal.is-open .ds-modal-dialog {
    transform: translateY(0) scale(1);
}

.ds-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f3f1f8;
    color: #5b5670;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ds-modal-close:hover {
    background: var(--ds-purple-soft);
    color: var(--ds-purple);
}

.ds-modal-header {
    margin-bottom: 1.15rem;
    padding-right: 1.5rem;
}

.ds-modal-header h3 {
    margin: 0 0 0.3rem;
    font-size: 1.35rem;
    color: #111827;
    font-weight: 800;
}

.ds-modal-header p {
    margin: 0 0 0.85rem;
    color: var(--ds-muted);
    font-size: 0.9rem;
}

.ds-modal-price {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.ds-modal-price .ds-price-now {
    font-size: 1.6rem;
}

.ds-modal .ds-form-group {
    margin-bottom: 0.9rem;
}

.ds-modal .ds-btn-block {
    margin-top: 0.25rem;
}

body.ds-modal-open {
    overflow: hidden;
}

/* ===== REGISTER (legacy card styles kept for modal inputs) ===== */
.ds-register-section {
    display: none;
}

.ds-form-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow);
    padding: 1.75rem;
    border: 1px solid rgba(99, 57, 240, 0.08);
}

.ds-form-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #111827;
}

.ds-form-lead {
    margin: 0 0 1.25rem;
    color: var(--ds-muted);
    font-size: 0.92rem;
}

.ds-form-group {
    margin-bottom: 0.95rem;
}

.ds-form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.ds-form-input {
    width: 100%;
    border: 1.5px solid var(--ds-border);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    background: #fbfafd;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-form-input:focus {
    outline: none;
    border-color: var(--ds-purple);
    box-shadow: 0 0 0 3px rgba(99, 57, 240, 0.12);
    background: #fff;
}

.ds-form-secure {
    margin: 0.85rem 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.82rem;
}

.ds-form-secure i {
    color: var(--ds-purple);
    margin-right: 0.25rem;
}

.wb-form-field-error,
.wb-form-error {
    display: block;
    margin-top: 0.35rem;
    color: #c0392b;
    font-size: 0.8rem;
    min-height: 1em;
}

.wb-form-error:empty,
.wb-form-field-error:empty {
    display: none;
}

.ds-form-group.has-error .ds-form-input,
.ds-form-input.is-invalid {
    border-color: #c0392b;
}

/* ===== LARGE LAPTOP ===== */
@media (max-width: 1200px) {
    .ds-container {
        width: min(1140px, calc(100% - 2rem));
    }

    .ds-hero-actions {
        gap: 1.25rem 1.5rem;
        max-width: 100%;
    }

    .ds-cta-block {
        width: 280px;
    }

    .ds-count-box {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .ds-info-card {
        gap: 1.5rem 1.75rem;
        padding: 1.5rem 1.4rem;
    }
}

/* ===== TABLET LANDSCAPE / SMALL LAPTOP ===== */
@media (max-width: 1024px) {
    .ds-hero-copy {
        max-width: 100%;
    }

    .ds-headline {
        font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    }

    .ds-hero-actions {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 1.15rem 1.25rem;
        max-width: 100%;
    }

    .ds-action-divider {
        display: none;
    }

    .ds-cta-block {
        width: min(320px, 100%);
    }

    .ds-meta-row {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.65rem 1.25rem;
        min-width: 0;
    }

    .ds-countdown {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .ds-count-box {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 68px;
        aspect-ratio: 1 / 1;
        max-height: 80px;
    }

    .ds-info-card {
        grid-template-columns: minmax(240px, 1fr) 1px minmax(0, 1.15fr);
        gap: 1.35rem 1.5rem;
    }

    .ds-instructor-photo {
        width: 120px;
        height: 120px;
    }
}

/* ===== TABLET PORTRAIT ===== */
@media (max-width: 900px) {
    .ds-container {
        width: calc(100% - 1.75rem);
    }

    .ds-hero {
        padding-bottom: 1.5rem;
    }

    .ds-hero-bg {
        background:
            linear-gradient(
                180deg,
                rgba(247, 245, 251, 0.97) 0%,
                rgba(247, 245, 251, 0.94) 42%,
                rgba(247, 245, 251, 0.82) 100%
            ),
            var(--ds-hero-image, none) right top / cover no-repeat;
        opacity: 0.9;
    }

    .ds-cta-block {
        width: 100%;
        max-width: none;
    }

    .ds-info-card {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding: 1.35rem 1.2rem;
    }

    .ds-info-divider {
        width: 100%;
        height: 1px;
        min-height: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .ds-btn-outline {
        width: 100%;
    }

    .ds-instructor {
        gap: 14px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    .ds-container {
        width: calc(100% - 1.25rem);
    }

    .ds-header {
        padding: 0.9rem 0 0.2rem;
    }

    .ds-brand img {
        height: 40px;
        max-width: min(260px, 85vw);
    }

    .ds-hero {
        padding-bottom: 1.25rem;
    }

    .ds-hero-grid {
        padding-top: 0.55rem;
    }

    .ds-live-badge {
        font-size: 0.62rem;
        padding: 0.32rem 0.7rem;
        margin-bottom: 2px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
    }

    .ds-headline {
        font-size: clamp(1.32rem, 6.2vw, 1.65rem);
        line-height: 1.3;
        margin-bottom: 0.7rem;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .ds-subhead {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 10px;
        max-width: none;
    }

    .ds-hero-actions {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    .ds-cta-block {
        width: 100%;
        max-width: none;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e5ea;
    }

    .ds-price-block {
        margin-bottom: 0.7rem;
        gap: 0.45rem;
    }

    .ds-price-old {
        font-size: 1rem;
    }

    .ds-price-now {
        font-size: 1.75rem;
    }

    .ds-off-badge {
        font-size: 0.68rem;
        padding: 0.22rem 0.5rem;
    }

    .ds-btn-primary {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .ds-trust-inline {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        font-size: 0.78rem;
        margin-top: 0.6rem;
        gap: 0.4rem;
    }

    .ds-meta-row {
        width: 100%;
        flex-direction: column;
        gap: 0.45rem;
        padding: 0;
    }

    .ds-meta-item {
        font-size: 0.88rem;
        width: 100%;
        white-space: normal;
    }

    .ds-countdown {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .ds-count-box {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 58px;
        max-height: none;
        aspect-ratio: auto;
        padding: 0.55rem 0.15rem 0.5rem;
        border-radius: 10px;
    }

    .ds-count-box strong {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .ds-count-box span {
        font-size: 0.52rem;
        letter-spacing: 0.06em;
        margin-top: 0.2rem;
    }

    .ds-info-section {
        margin-top: 5px;
        padding-bottom: 1.75rem;
    }

    .ds-info-card {
        padding: 1.1rem 0.95rem 1.2rem;
        border-radius: 14px;
        gap: 1.15rem;
    }

    .ds-instructor {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .ds-instructor-photo {
        width: 84px;
        height: 84px;
        border-radius: 12px;
    }

    .ds-instructor-label {
        font-size: 0.8rem;
    }

    .ds-instructor-copy h2 {
        font-size: 1.1rem;
        margin-bottom: 0.35rem;
        word-wrap: break-word;
    }

    .ds-instructor-rule {
        width: 28px;
        margin-bottom: 0.4rem;
    }

    .ds-instructor-copy p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .ds-learn h3 {
        font-size: 0.78rem;
        margin-bottom: 0.85rem;
    }

    .ds-learn-list {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .ds-learn-list li {
        font-size: 0.86rem;
        gap: 0.55rem;
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .ds-learn-num {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .ds-btn-outline {
        width: 100%;
        min-height: 46px;
        padding: 0.75rem 1rem;
    }

    .ds-modal {
        align-items: flex-end;
        padding: 0;
    }

    .ds-modal-dialog {
        width: 100%;
        max-height: min(92vh, 100%);
        border-radius: 18px 18px 0 0;
        padding: 1.35rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        transform: translateY(24px);
    }

    .ds-modal.is-open .ds-modal-dialog {
        transform: translateY(0);
    }

    .ds-modal-header h3 {
        font-size: 1.2rem;
    }

    .ds-modal-header p {
        font-size: 0.85rem;
    }

    .ds-modal-price .ds-price-now {
        font-size: 1.35rem;
    }

    .ds-form-input {
        font-size: 16px;
        padding: 0.85rem 0.85rem;
        min-height: 48px;
    }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 480px) {
    .ds-container {
        width: calc(100% - 1rem);
    }

    .ds-brand img {
        height: 36px;
        max-width: min(230px, 80vw);
    }

    .ds-headline {
        font-size: clamp(1.22rem, 5.8vw, 1.45rem);
    }

    .ds-subhead {
        font-size: 0.86rem;
    }

    .ds-price-now {
        font-size: 1.6rem;
    }

    .ds-instructor {
        gap: 10px;
    }

    .ds-instructor-photo {
        width: 72px;
        height: 72px;
        border-radius: 10px;
    }

    .ds-instructor-copy h2 {
        font-size: 1.02rem;
    }

    .ds-count-box {
        min-height: 52px;
        padding: 0.45rem 0.1rem;
    }

    .ds-count-box strong {
        font-size: 1rem;
    }

    .ds-count-box span {
        font-size: 0.48rem;
    }
}

/* ===== EXTRA SMALL ===== */
@media (max-width: 360px) {
    .ds-brand img {
        height: 32px;
    }

    .ds-live-badge {
        font-size: 0.58rem;
        padding: 0.28rem 0.55rem;
    }

    .ds-headline {
        font-size: 1.15rem;
    }

    .ds-instructor {
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-instructor-photo {
        width: 96px;
        height: 96px;
    }

    .ds-meta-item {
        font-size: 0.82rem;
    }

    .ds-count-box strong {
        font-size: 0.95rem;
    }
}
