/* =======================================================================
   Lecture Detail v2 - Clean Redesign based on Reference
   ======================================================================= */

/* === Variables === */
:root {
    --ld-primary: #2563eb;
    --ld-primary-hover: #1d4ed8;
    --ld-success: #10b981;
    --ld-warning: #f59e0b;
    --ld-danger: #dc2626;
    --ld-text-main: #111827;
    --ld-text-muted: #6b7280;
    --ld-bg-light: #ffffff;
    --ld-bg-surface: #f9fafb;
    --ld-border: #e5e7eb;
    --ld-border-light: #f3f4f6;
}

/* === Main Container === */
.ld-main {
    background: var(--ld-bg-light);
    min-height: 100vh;
    padding-bottom: 3rem;
}

.ld-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .ld-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .ld-container {
        padding: 0 2rem;
    }
}

/* === Hero Section === */
.ld-hero {
    padding: 2rem 0 1.5rem;
}

.ld-hero__poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .ld-hero__poster {
        aspect-ratio: 16/9;
    }
}

.ld-hero__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
}

.ld-hero__badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.ld-badge {
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ld-badge--offline {
    background: rgba(37, 99, 235, 0.9);
    color: white;
}

.ld-badge--online {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ld-text-main);
}

.ld-badge__dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #fbbf24;
    border-radius: 50%;
}

/* === Hero CTA Bar (desktop only) === */
.ld-hero__cta-bar {
    display: none;
}

@media (min-width: 1024px) {
    .ld-hero__cta-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.875rem 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 10;
        animation: slideUpCta 0.4s ease-out;
    }

    .ld-hero__cta-bar.is-hidden {
        animation: slideDownCta 0.3s ease-in forwards;
    }

    @keyframes slideUpCta {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideDownCta {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(100%);
        }
    }

    .ld-hero__cta-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .ld-hero__cta-icon {
        font-size: 1.25rem;
        color: var(--ld-primary);
    }

    .ld-hero__cta-content--subscriber .ld-hero__cta-icon {
        color: var(--ld-success);
    }

    .ld-hero__cta-text {
        font-size: 1rem;
        font-weight: 600;
        color: var(--ld-text-main);
    }

    .ld-hero__cta-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: var(--ld-primary);
        color: white;
        font-size: 0.9375rem;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

    .ld-hero__cta-btn:hover {
        background: var(--ld-primary-hover);
        transform: translateY(-1px);
    }

    .ld-hero__cta-btn--subscriber {
        background: var(--ld-success);
    }

    .ld-hero__cta-btn--subscriber:hover {
        background: #059669;
    }
}

/* === Title Section === */
.ld-title-section {
    padding: 1.5rem 0 1.5rem;
    border-bottom: 1px solid var(--ld-border-light);
    margin-bottom: 2rem;
}

.ld-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--ld-text-main);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.ld-title__author {
    color: var(--ld-primary);
}

.ld-subtitle {
    font-size: 1.125rem;
    color: var(--ld-text-muted);
    margin: 0 0 1rem;
}

.ld-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.ld-meta__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--ld-bg-surface);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--ld-border);
    font-size: 0.875rem;
    color: var(--ld-text-muted);
}

.ld-meta__pill i {
    font-size: 0.875rem;
}

/* === Grid Layout === */
.ld-content-section {
    padding: 0;
}

.ld-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .ld-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.ld-grid__main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ld-grid__sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .ld-grid__sidebar {
        display: block;
    }
}

.ld-sidebar-sticky {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* === Cards === */
.ld-card {
    background: var(--ld-bg-surface);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--ld-border);
}

@media (max-width: 640px) {
    .ld-card {
        padding: 1.25rem;
    }
}

.ld-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ld-card__icon {
    color: var(--ld-primary);
    font-size: 1.5rem;
}

.ld-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0;
}

.ld-card__body {
    color: var(--ld-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.ld-prose p {
    margin: 0 0 1rem;
}

.ld-prose p:last-child {
    margin-bottom: 0;
}

/* === Tags === */
.ld-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.ld-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--ld-border);
    color: var(--ld-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* === Lecturer Card === */
.ld-card--lecturer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ld-lecturer {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .ld-lecturer {
        flex-direction: column;
        gap: 1rem;
    }
}

.ld-lecturer__avatar {
    flex-shrink: 0;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 4px white, 0 2px 8px rgba(0,0,0,0.1);
}

.ld-lecturer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-lecturer__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0 0 0.5rem;
}

.ld-lecturer__bio {
    font-size: 0.875rem;
    color: var(--ld-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* === Tickets Section === */
.ld-card--tickets .ld-card__title {
    margin-bottom: 0;
}

.ld-tickets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* === Notice === */
.ld-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.ld-notice i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.ld-notice strong {
    display: block;
    margin-bottom: 0.25rem;
}

.ld-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ld-text-muted);
}

.ld-notice--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.ld-notice--info i {
    color: var(--ld-primary);
}

.ld-notice--subscription {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.ld-notice--subscription i {
    color: var(--ld-primary);
}

.ld-notice--series {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0891b2;
}

.ld-notice--series i {
    color: #0891b2;
}

/* === Series Card (Sidebar) === */
.ld-series-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #d8b4fe;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.ld-series-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ld-series-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ld-series-card__icon i {
    color: #fff;
    font-size: 0.875rem;
}

.ld-series-card__info {
    flex: 1;
    min-width: 0;
}

.ld-series-card__badge {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #7c3aed;
    margin-bottom: 0.125rem;
}

.ld-series-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #581c87;
    margin: 0;
    line-height: 1.3;
}

.ld-series-card__title a {
    color: #581c87;
    text-decoration: none;
}

.ld-series-card__title a:hover {
    color: #7c3aed;
}

.ld-series-card__desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.ld-series-card__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
}

.ld-series-card__status i {
    color: #10b981;
}

.ld-series-card__ticket {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ld-text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding-left: 1.25rem;
}

.ld-series-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}

.ld-series-card__link:hover {
    text-decoration: underline;
    color: #581c87;
}

/* === Partner Venue Card === */
.ld-partner-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.ld-partner-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ld-partner-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ld-partner-card__icon i {
    color: #fff;
    font-size: 0.875rem;
}

.ld-partner-card__info {
    flex: 1;
    min-width: 0;
}

.ld-partner-card__badge {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #d97706;
    margin-bottom: 0.125rem;
}

.ld-partner-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #92400e;
    margin: 0;
    line-height: 1.3;
}

.ld-partner-card__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.ld-partner-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-partner-card__detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ld-partner-card__detail i {
    color: #d97706;
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.ld-partner-card__detail--link {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
}

.ld-partner-card__detail--link:hover {
    text-decoration: underline;
    color: #92400e;
}

.ld-partner-card__detail--link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ld-partner-card__socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(251, 191, 36, 0.3);
}

.ld-partner-card__social {
    width: 2rem;
    height: 2rem;
    background: rgba(217, 119, 6, 0.1);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ld-partner-card__social:hover {
    background: #d97706;
    color: #fff;
    transform: translateY(-1px);
}

/* === Ticket Section Headers === */
.ld-ticket-section {
    margin-bottom: 1rem;
}

.ld-ticket-section__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ld-border-light);
}

.ld-ticket-section__icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.ld-ticket-section--subscription .ld-ticket-section__icon {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    color: var(--ld-primary);
}

.ld-ticket-section--regular .ld-ticket-section__icon {
    background: #e0f2fe;
    color: #0284c7;
}

.ld-ticket-section__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0;
}

.ld-ticket-section__subtitle {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
    margin: 0;
}

.ld-ticket-section__badge {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, var(--ld-primary) 0%, #7c3aed 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

/* Subscription cards container */
.ld-subscription-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Subscription Cards === */
.ld-sub-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

.ld-sub-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ld-sub-card--online {
    border: 2px solid #bfdbfe;
}

.ld-sub-card--offline {
    border: 2px solid #bbf7d0;
}

.ld-sub-card__header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ld-sub-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.ld-sub-card--online .ld-sub-card__icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.ld-sub-card--offline .ld-sub-card__icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.ld-sub-card__info {
    flex: 1;
    min-width: 0;
}

.ld-sub-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0 0 0.25rem;
}

.ld-sub-card__desc {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
    margin: 0;
}

.ld-sub-card__price {
    text-align: right;
    flex-shrink: 0;
}

.ld-sub-card__price-from {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
}

.ld-sub-card__price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ld-text-main);
}

.ld-sub-card__price-free {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ld-success);
}

.ld-sub-card__price-period {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
}

.ld-sub-card__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    padding-left: 4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1.5rem;
}

@media (max-width: 640px) {
    .ld-sub-card__benefits {
        padding-left: 0;
        flex-direction: column;
        gap: 0.375rem;
    }
}

.ld-sub-card__benefits li {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ld-sub-card--online .ld-sub-card__benefits li i {
    color: #3b82f6;
    font-size: 0.75rem;
}

.ld-sub-card--offline .ld-sub-card__benefits li i {
    color: #22c55e;
    font-size: 0.75rem;
}

.ld-sub-card__footer {
    padding-top: 1rem;
    border-top: 1px solid var(--ld-border-light);
}

.ld-sub-card__cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ld-sub-card__cta .ld-btn {
    width: 100%;
    justify-content: center;
}

.ld-sub-card__social {
    font-size: 0.625rem;
    color: var(--ld-text-muted);
    text-align: center;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.ld-sub-card__status {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ld-sub-card__status--success {
    background: #f0fdf4;
    color: #16a34a;
}

.ld-sub-card__status--soldout {
    background: #fef2f2;
    color: #dc2626;
}

.ld-sub-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* === Regular Tickets === */
.ld-regular-tickets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ld-ticket {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

@media (max-width: 640px) {
    .ld-ticket {
        flex-wrap: wrap;
    }
}

.ld-ticket:hover:not(.ld-ticket--soldout) {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ld-ticket--soldout {
    opacity: 0.6;
    background: var(--ld-bg-surface);
}

.ld-ticket__icon {
    color: var(--ld-primary);
    font-size: 1.25rem;
}

.ld-ticket--soldout .ld-ticket__icon {
    color: var(--ld-text-muted);
}

.ld-ticket__info {
    flex: 1;
    min-width: 0;
}

.ld-ticket__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0 0 0.25rem;
}

.ld-ticket__desc {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
    margin: 0;
}

.ld-ticket__right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ld-ticket__right {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.75rem;
        border-top: 1px solid var(--ld-border-light);
    }
}

.ld-ticket__avail {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.ld-progress {
    width: 6rem;
    height: 0.25rem;
    background: var(--ld-border);
    border-radius: 2px;
    overflow: hidden;
}

.ld-progress__fill {
    height: 100%;
    background: var(--ld-success);
    border-radius: 2px;
}

.ld-progress__fill--low {
    background: var(--ld-danger);
}

.ld-ticket__avail-text {
    font-size: 0.625rem;
    color: var(--ld-text-muted);
}

.ld-ticket__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ld-primary);
}

.ld-ticket__price--strike {
    text-decoration: line-through;
    text-decoration-color: rgba(220, 38, 38, 0.5);
    color: var(--ld-text-muted);
}

.ld-ticket__soldout {
    background: #fef2f2;
    color: var(--ld-danger);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

/* === Stepper === */
.ld-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--ld-bg-surface);
    border-radius: 0.5rem;
    border: 1px solid var(--ld-border);
}

.ld-stepper__btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ld-text-muted);
    transition: all 0.2s ease;
}

.ld-stepper__btn:hover:not(:disabled) {
    color: var(--ld-primary);
    background: var(--ld-border-light);
}

.ld-stepper__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ld-stepper__value {
    min-width: 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ld-text-main);
}

/* === Buttons === */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ld-btn--primary {
    background: var(--ld-primary);
    color: white;
}

.ld-btn--primary:hover:not(:disabled) {
    background: var(--ld-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ld-btn--secondary {
    background: var(--ld-warning);
    color: var(--ld-text-main);
}

.ld-btn--secondary:hover:not(:disabled) {
    background: #d97706;
    transform: translateY(-1px);
}

.ld-btn--add {
    background: var(--ld-primary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.ld-btn--add:hover:not(:disabled) {
    background: var(--ld-primary-hover);
}

.ld-btn--full {
    width: 100%;
}

.ld-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.ld-btn span {
    font-weight: 700;
}

/* === Order Card (Sidebar) === */
.ld-order-card {
    background: var(--ld-bg-surface);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--ld-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ld-order-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ld-order-card__header i {
    color: var(--ld-text-main);
}

.ld-order-card__header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0;
}

.ld-order-card__empty {
    padding: 2rem 0;
    text-align: center;
    color: var(--ld-text-muted);
}

.ld-order-card__empty i {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    display: block;
}

.ld-order-card__empty p {
    font-size: 0.875rem;
    margin: 0;
}

.ld-order-card__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ld-border-light);
}

.ld-order-card__item:last-child {
    border-bottom: none;
}

.ld-order-card__item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ld-text-main);
}

.ld-order-card__item-qty {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
}

.ld-order-card__item-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ld-text-main);
}

.ld-order-card__total {
    border-top: 1px solid var(--ld-border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.ld-order-card__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--ld-text-muted);
    margin-bottom: 0.5rem;
}

.ld-order-card__row--discount span:last-child {
    color: var(--ld-success);
}

.ld-order-card__row--total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin-bottom: 0;
}

.ld-order-card__submit {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ld-border);
}

/* === Promo Code === */
.ld-promo {
    padding: 1rem 0;
    border-top: 1px solid var(--ld-border-light);
}

.ld-promo__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ld-text-muted);
    margin-bottom: 0.5rem;
}

.ld-promo__input-group {
    display: flex;
    gap: 0.5rem;
}

.ld-promo__input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ld-border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ld-promo__input:focus {
    border-color: var(--ld-primary);
}

.ld-promo__btn {
    padding: 0.5rem 0.75rem;
    background: var(--ld-bg-surface);
    border: 1px solid var(--ld-border);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ld-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ld-promo__btn:hover:not(:disabled) {
    background: var(--ld-border-light);
}

.ld-promo__status {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.ld-promo__status--success {
    color: var(--ld-success);
}

.ld-promo__status--error {
    color: var(--ld-danger);
}

.ld-promo__applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fdf4;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--ld-success);
}

.ld-promo__applied button {
    background: none;
    border: none;
    color: var(--ld-danger);
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
}

/* === Help Card === */
.ld-help-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.25rem;
}

.ld-help-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ld-primary);
    margin: 0 0 0.5rem;
}

.ld-help-card__text {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.ld-help-card__link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ld-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ld-help-card__link:hover {
    text-decoration: underline;
}

/* === Recommendations === */
.ld-recommendations {
    margin-top: 3rem;
}

.ld-recommendations__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ld-recommendations__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0;
}

.ld-recommendations__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ld-primary);
    text-decoration: none;
}

.ld-recommendations__link:hover {
    text-decoration: underline;
}

.ld-recommendations__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .ld-recommendations__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ld-rec-card {
    display: block;
    background: white;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ld-rec-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ld-rec-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.ld-rec-card__date-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--ld-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 1;
}

.ld-rec-card__date-badge i {
    font-size: 0.625rem;
}

.ld-rec-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ld-rec-card:hover .ld-rec-card__image img {
    transform: scale(1.05);
}

.ld-rec-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ld-bg-surface);
    color: #d1d5db;
    font-size: 2rem;
}

.ld-rec-card__content {
    padding: 1rem;
}

.ld-rec-card__category {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ld-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.ld-rec-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0 0 0.25rem;
    transition: color 0.2s ease;
}

.ld-rec-card:hover .ld-rec-card__title {
    color: var(--ld-primary);
}

.ld-rec-card__author {
    font-size: 0.75rem;
    color: var(--ld-text-muted);
    margin: 0;
}

/* === Ended State === */
.ld-ended {
    text-align: center;
    padding: 3rem 1.5rem;
}

.ld-ended__icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.ld-ended__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ld-text-main);
    margin: 0 0 0.75rem;
}

.ld-ended__text {
    font-size: 1.125rem;
    color: var(--ld-text-muted);
    margin: 0 0 2rem;
}

.ld-ended__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Mobile Submit === */
.ld-submit-mobile {
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .ld-submit-mobile {
        display: none;
    }
}

/* === Mobile Promo Code === */
.ld-mobile-promo {
    display: none;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--ld-bg-surface);
    border: 1px solid var(--ld-border);
    border-radius: 8px;
}

@media (max-width: 1023px) {
    .ld-mobile-promo.is-visible {
        display: block;
    }
}

.ld-mobile-promo__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--ld-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ld-mobile-promo__trigger:hover {
    color: var(--ld-primary);
}

.ld-mobile-promo__trigger i:first-child {
    color: var(--ld-primary);
}

.ld-mobile-promo__chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.ld-mobile-promo.is-expanded .ld-mobile-promo__chevron {
    transform: rotate(180deg);
}

.ld-mobile-promo__content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ld-border-light);
}

/* Скрыть на desktop */
@media (min-width: 1024px) {
    .ld-mobile-promo {
        display: none !important;
    }
}

/* === Mobile CTA === */
.ld-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--ld-border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

@media (min-width: 1024px) {
    .ld-mobile-cta {
        display: none;
    }
}

.ld-mobile-cta__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--ld-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ld-mobile-cta__btn:hover {
    background: var(--ld-primary-hover);
}

.ld-mobile-cta__btn.has-selection {
    background: var(--ld-success);
}

.ld-mobile-cta__btn.has-selection:hover {
    background: #059669;
}

/* === Toast === */
.ld-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--ld-text-main);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ld-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (min-width: 1024px) {
    .ld-toast {
        bottom: 2rem;
    }
}

/* === Loading === */
.ld-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: ld-spin 0.8s linear infinite;
}

@keyframes ld-spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Selected State === */
.ld-ticket.selected,
.ld-sub-card.selected {
    border-color: var(--ld-primary);
    box-shadow: 0 0 0 1px var(--ld-primary);
}
