/* Styles frontend minimalistes */
.dlm-create-capsule-form,
.dlm-waiting-room,
.dlm-open-capsule,
.dlm-capsule-content,
.dlm-creator-dashboard,
.dlm-error {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.dlm-create-capsule-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.dlm-create-capsule-form input[type="text"],
.dlm-create-capsule-form input[type="email"],
.dlm-create-capsule-form input[type="datetime-local"],
.dlm-create-capsule-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
}

.dlm-create-capsule-form button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

.dlm-create-capsule-form button:hover {
    background: #005a87;
}

#dlm-countdown {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

.dlm-open-capsule button,
.dlm-capsule-content .button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Container & Card */
.dlm-flow-create {
    max-width: 900px;
    margin: 32px auto;
    padding: 0;
}

.dlm-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

/* Progress Bar */
.dlm-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.dlm-step-indicator {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #999;
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
}

.dlm-step-indicator:before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s;
}

.dlm-step-indicator.active {
    color: #0073aa;
    font-weight: 600;
}

.dlm-step-indicator.active:before {
    background: #0073aa;
}

.dlm-step-indicator.completed {
    color: #666;
}

.dlm-step-indicator.completed:before {
    background: #4caf50;
}

/* Steps - Progressive Enhancement */
/* By default, all steps are visible (no JS fallback) */
.dlm-step {
    display: block;
    margin-bottom: 24px;
}

/* When JS is active, hide all steps except active */
.dlm-flow-create--js .dlm-step {
    display: none;
}

.dlm-flow-create--js .dlm-step.dlm-step-active {
    display: block;
}

/* Step Actions */
.dlm-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.dlm-step-actions button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.dlm-btn {
    background: #0073aa;
    color: white;
}

.dlm-btn:hover {
    background: #005a87;
}

.dlm-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.dlm-btn.secondary:hover {
    background: #e0e0e0;
}

/* Preview Section */
.dlm-preview-section {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.dlm-preview-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dlm-preview-section p {
    margin: 4px 0;
    color: #333;
}

/* Field Error State */
.dlm-field-error {
    border-color: #d63638 !important;
    background: #fff5f5 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dlm-card {
        padding: 20px;
    }

    .dlm-steps {
        flex-wrap: wrap;
    }

    .dlm-step-indicator {
        font-size: 11px;
        flex-basis: 33.33%;
        margin-bottom: 12px;
    }

    .dlm-step-indicator:before {
        width: 24px;
        height: 24px;
    }

    .dlm-step-actions {
        flex-direction: column;
        gap: 12px;
    }


    .dlm-dashboard-table,
    .dlm-log-table {
        font-size: 12px;
    }

    .dlm-dashboard-table th,
    .dlm-dashboard-table td,
    .dlm-log-table th,
    .dlm-log-table td {
        padding: 8px 5px;
    }

    .dlm-cell-date {
        font-size: 11px;
    }

    .dlm-status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ========================================
   Phase 5: Multi-Step Wizard Flow
   ======================================== */

/* Container & Card */
.dlm-flow-create {
    max-width: 900px;
    margin: 32px auto;
    padding: 0;
}

.dlm-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

/* Progress Bar */
.dlm-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.dlm-step-indicator {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #999;
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
}

.dlm-step-indicator:before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s;
}

.dlm-step-indicator.active {
    color: #0073aa;
    font-weight: 600;
}

.dlm-step-indicator.active:before {
    background: #0073aa;
}

.dlm-step-indicator.completed {
    color: #666;
}

.dlm-step-indicator.completed:before {
    background: #4caf50;
}

/* Steps - Progressive Enhancement */
/* By default, all steps are visible (no JS fallback) */
.dlm-step {
    display: block;
    margin-bottom: 24px;
}

/* When JS is active, hide all steps except active */
.dlm-flow-create--js .dlm-step {
    display: none;
}

.dlm-flow-create--js .dlm-step.dlm-step-active {
    display: block;
}

/* Step Actions */
.dlm-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.dlm-step-actions button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.dlm-btn {
    background: #0073aa;
    color: white;
}

.dlm-btn:hover {
    background: #005a87;
}

.dlm-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.dlm-btn.secondary:hover {
    background: #e0e0e0;
}

/* Preview Section */
.dlm-preview-section {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.dlm-preview-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dlm-preview-section p {
    margin: 4px 0;
    color: #333;
}

/* Field Error State */
.dlm-field-error {
    border-color: #d63638 !important;
    background: #fff5f5 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dlm-card {
        padding: 20px;
    }

    .dlm-steps {
        flex-wrap: wrap;
    }

    .dlm-step-indicator {
        font-size: 11px;
        flex-basis: 33.33%;
        margin-bottom: 12px;
    }

    .dlm-step-indicator:before {
        width: 24px;
        height: 24px;
    }

    .dlm-step-actions {
        flex-direction: column;
        gap: 12px;
    }

    .dlm-step-actions button {
        width: 100%;
    }
}

/* ========================================
   Cover Photo Blur (Fix 1)
   ======================================== */

.dlm-cover--blurred {
    overflow: hidden;
    border-radius: 8px;
}

.dlm-cover--blurred img {
    filter: blur(12px);
    transform: scale(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* ========================================
   Fix 4: Content Step Tabs
   ======================================== */

/* Tabs Navigation */
.dlm-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}

.dlm-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.dlm-tab:hover {
    color: #0073aa;
    background: #f5f5f5;
}

.dlm-tab.dlm-tab-active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* Tab Content */
.dlm-tab-content {
    display: none;
}

.dlm-tab-content.dlm-tab-content-active {
    display: block;
}

/* Reading Section */
.dlm-reading-section {
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.dlm-reading-section h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.dlm-radio-option {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.dlm-radio-option:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.dlm-radio-option input[type="radio"] {
    margin-right: 8px;
}

.dlm-radio-option span {
    font-weight: 500;
}

.dlm-radio-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dlm-radio-disabled:hover {
    border-color: #ddd;
    background: white;
}

/* Audio Option Sections */
.dlm-audio-option-section {
    margin-bottom: 24px;
}

.dlm-audio-option-section h4 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #333;
}

/* Separator */
.dlm-separator {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: #999;
    font-weight: 600;
}

.dlm-separator:before,
.dlm-separator:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.dlm-separator:before {
    left: 0;
}

.dlm-separator:after {
    right: 0;
}

/* Word Count */
.dlm-word-count {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 13px;
}

/* --- Waiting Room Redesign --- */

.dlm-waiting-room-body {
    background-color: #020617;
    /* slate-950 */
    color: #e2e8f0;
    /* slate-200 */
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.dlm-waiting-room-body::before,
.dlm-waiting-room-body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
}

.dlm-waiting-room-body::before {
    background: #db2777;
    /* pink-600 */
    top: -100px;
    left: -100px;
}

.dlm-waiting-room-body::after {
    background: #7c3aed;
    /* violet-600 */
    bottom: -100px;
    right: -100px;
}

.dlm-waiting-room-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dlm-waiting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    flex: 1;
    align-items: start;
}

/* Left Column */
.dlm-col-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dlm-pill-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #94a3b8;
    /* slate-400 */
}

/* Time Info */
.dlm-time-info {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dlm-creation-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.dlm-progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dlm-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.dlm-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #db2777, #7c3aed);
    border-radius: 9999px;
    transition: width 1s ease-out;
}

.dlm-progress-text {
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
}

/* Mini Rituals */
.dlm-mini-rituals {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dlm-rituals-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.dlm-ritual-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dlm-ritual-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.dlm-ritual-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dlm-ritual-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #e2e8f0;
}

.dlm-ritual-card p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

/* Right Column */
.dlm-col-right {
    display: flex;
    flex-direction: column;
}

.dlm-countdown-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dlm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dlm-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.dlm-unlock-date {
    font-size: 0.875rem;
    color: #64748b;
}

/* Circle Timer */
.dlm-circle-timer {
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.dlm-circle-content {
    text-align: center;
}

.dlm-timer-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.dlm-timer-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.dlm-timer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dlm-stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.dlm-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Mood Widget */
.dlm-mood-widget {
    margin-bottom: 2rem;
}

.dlm-mood-title {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    text-align: center;
}

.dlm-mood-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.dlm-mood-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.dlm-mood-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dlm-mood-btn.selected {
    background: rgba(219, 39, 119, 0.2);
    border-color: #db2777;
    color: #fff;
}

.dlm-mood-response {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    text-align: center;
    min-height: 1.5em;
    font-style: italic;
}

/* Action Zone */
.dlm-action-zone {
    text-align: center;
}

#dlm-pre-open-message p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.dlm-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #db2777, #e11d48);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.dlm-btn-glow {
    box-shadow: 0 0 20px rgba(219, 39, 119, 0.5);
}

.dlm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(219, 39, 119, 0.7);
}

.dlm-btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #334155;
    box-shadow: none;
}

/* Footer */
.dlm-waiting-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #475569;
}

/* Mobile Responsive */
.dlm-mobile-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    text-align: center;
}

.dlm-echo-intro {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.dlm-echo-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dlm-echo-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.dlm-echo-panel {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: dlmSlideDown 0.3s ease-out;
}

@keyframes dlmSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dlm-timer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dlm-stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.dlm-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Mood Widget */
.dlm-mood-widget {
    margin-bottom: 2rem;
}

.dlm-mood-title {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    text-align: center;
}

.dlm-mood-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.dlm-mood-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.dlm-mood-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dlm-mood-btn.selected {
    background: rgba(219, 39, 119, 0.2);
    border-color: #db2777;
    color: #fff;
}

.dlm-mood-response {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    text-align: center;
    min-height: 1.5em;
    font-style: italic;
}

/* Action Zone */
.dlm-action-zone {
    text-align: center;
}

#dlm-pre-open-message p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.dlm-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #db2777, #e11d48);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.dlm-btn-glow {
    box-shadow: 0 0 20px rgba(219, 39, 119, 0.5);
}

.dlm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(219, 39, 119, 0.7);
}

.dlm-btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #334155;
    box-shadow: none;
}

/* Footer */
.dlm-waiting-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #475569;
}

/* Mobile Responsive */
.dlm-mobile-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    text-align: center;
}

.dlm-echo-intro {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.dlm-echo-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dlm-echo-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.dlm-echo-panel {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: dlmSlideDown 0.3s ease-out;
}

@keyframes dlmSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Engine Chatbot Overrides for Dark Theme */
.mwai-chatbot-container {
    --mwai-font-family: 'Inter', sans-serif !important;
    --mwai-background-color: transparent !important;
    --mwai-primary-color: #db2777 !important;
    /* pink-600 */
}

/* ========================================
   Dashboard Overhaul (Cosmic Theme)
   ======================================== */

.dlm-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
}

/* Header & Stats */
.dlm-dashboard-header {
    margin-bottom: 3rem;
}

.dlm-dashboard-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dlm-dashboard-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
}

.dlm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dlm-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dlm-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.dlm-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dlm-stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tabs */
.dlm-dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.dlm-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.dlm-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dlm-tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Filters & Search */
.dlm-dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dlm-dashboard-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dlm-filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dlm-filter-btn:hover,
.dlm-filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.dlm-filter-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.dlm-search-wrapper {
    position: relative;
}

.dlm-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    color: #fff;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s;
}

.dlm-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.dlm-search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Table / List */
.dlm-dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
}

.dlm-table-wrapper {
    overflow-x: auto;
}

.dlm-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dlm-dashboard-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dlm-dashboard-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.95rem;
}

.dlm-dashboard-table tr:last-child td {
    border-bottom: none;
}

.dlm-dashboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.dlm-cell-title strong {
    color: #fff;
    font-weight: 600;
}

.dlm-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dlm-status-scheduled {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.dlm-status-unlocked {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dlm-status-opened {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.dlm-status-expired {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

/* Pagination */
.dlm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dlm-pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dlm-pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.dlm-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dlm-pagination-info {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 1rem;
}

/* Timeline (Log View) */
.dlm-timeline {
    position: relative;
    padding: 2rem 0;
}

.dlm-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.dlm-timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.dlm-timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #0f172a;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    z-index: 1;
}

.dlm-timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
}

.dlm-timeline-date {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.dlm-timeline-text {
    color: #fff;
    font-size: 1rem;
}

/* Mobile Stacked Cards */
@media (max-width: 768px) {
    .dlm-dashboard-table thead {
        display: none;
    }

    .dlm-dashboard-table tr {
        display: block;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0.75rem;
        padding: 1rem;
    }

    .dlm-dashboard-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        font-size: 0.9rem;
    }

    .dlm-dashboard-table td::before {
        content: attr(data-label);
        color: #94a3b8;
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .dlm-cell-actions {
        margin-top: 1rem;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        justify-content: flex-end;
    }

    .dlm-cell-actions::before {
        display: none;
    }
}

/* ========================================
   Error Pages Styling
   ======================================== */

.dlm-error-body {
    background-color: #020617;
    /* slate-950 */
    color: #e2e8f0;
    /* slate-200 */
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.dlm-error-body::before,
.dlm-error-body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
}

.dlm-error-body::before {
    background: #db2777;
    /* pink-600 */
    top: -100px;
    left: -100px;
}

.dlm-error-body::after {
    background: #7c3aed;
    /* violet-600 */
    bottom: -100px;
    right: -100px;
}

.dlm-error-container {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.dlm-error-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.dlm-error-icon {
    margin: 0 auto 2rem;
    color: #94a3b8;
    /* slate-400 */
    opacity: 0.8;
}

.dlm-error-icon svg {
    display: block;
    margin: 0 auto;
}

.dlm-error-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #e2e8f0;
    /* slate-200 */
    line-height: 1.2;
}

.dlm-error-message {
    margin-bottom: 2.5rem;
}

.dlm-error-message p {
    font-size: 1rem;
    line-height: 1.6;
    color: #94a3b8;
    /* slate-400 */
    margin: 0 0 1rem 0;
}

.dlm-error-message p:last-child {
    margin-bottom: 0;
}

.dlm-error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dlm-error-actions .dlm-btn {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.dlm-error-actions .dlm-btn-primary {
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
    color: white;
}

.dlm-error-actions .dlm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(219, 39, 119, 0.5);
}

.dlm-error-actions .dlm-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dlm-error-actions .dlm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dlm-error-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dlm-error-hint {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    /* slate-500 */
    margin: 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 3px solid rgba(219, 39, 119, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .dlm-error-card {
        padding: 2rem 1.5rem;
    }

    .dlm-error-title {
        font-size: 1.5rem;
    }

    .dlm-error-message p {
        font-size: 0.9375rem;
    }

    .dlm-error-actions {
        gap: 0.75rem;
    }

    .dlm-error-actions .dlm-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ========================================
   Reply Form & Thank You Pages
   ======================================== */

/* Reply Page */
.dlm-reply-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.dlm-reply-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dlm-reply-header {
    text-align: center;
    margin-bottom: 40px;
}

.dlm-reply-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dlm-reply-intro {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.dlm-reply-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dlm-form-group {
    margin-bottom: 25px;
}

.dlm-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 0.95rem;
}

.dlm-label .required {
    color: #ff6b6b;
    margin-left: 4px;
}

.dlm-textarea,
.dlm-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.dlm-textarea:focus,
.dlm-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(100, 149, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.1);
}

.dlm-textarea::placeholder,
.dlm-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.dlm-char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
}

.dlm-field-help {
    font-size: 0.85rem;
    color: #999;
    margin-top: 6px;
    font-style: italic;
}

.dlm-form-errors {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.dlm-form-errors p {
    margin: 0;
}

.dlm-form-actions {
    margin-top: 30px;
}

.dlm-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.dlm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dlm-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.dlm-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-loader .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Thank You Page */
.dlm-thankyou-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dlm-thankyou-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.dlm-thankyou-icon {
    margin-bottom: 30px;
}

.dlm-thankyou-icon svg {
    width: 80px;
    height: 80px;
    color: #4ade80;
    filter: drop-shadow(0 4px 15px rgba(74, 222, 128, 0.3));
}

.dlm-thankyou-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dlm-thankyou-message {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 40px;
}

.dlm-thankyou-cta {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dlm-thankyou-cta h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.dlm-thankyou-cta p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.dlm-thankyou-footer {
    margin-top: 20px;
}

.dlm-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dlm-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {

    .dlm-reply-header h1,
    .dlm-thankyou-title {
        font-size: 1.8rem;
    }

    .dlm-reply-form,
    .dlm-thankyou-cta {
        padding: 20px;
    }

    .dlm-btn {
        width: 100%;
    }
}

/* ========================================
   COSMIC THEME - Unified Utility Classes
   Created: December 2025
   Reference: waiting-room.php design
   ======================================== */

/* ----------------------------------------
   Base Page Styles
   ---------------------------------------- */

.dlm-cosmic-page {
    background-color: var(--dlm-bg-primary);
    color: var(--dlm-text-primary);
    font-family: var(--dlm-font-sans);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    line-height: var(--dlm-leading-normal);
}

/* Background Gradient Orbs */
.dlm-cosmic-page::before,
.dlm-cosmic-page::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.dlm-cosmic-page::before {
    background: var(--dlm-accent-pink);
    top: -100px;
    left: -100px;
}

.dlm-cosmic-page::after {
    background: var(--dlm-accent-violet);
    bottom: -100px;
    right: -100px;
}

/* ----------------------------------------
   Page Container
   ---------------------------------------- */

.dlm-page-container {
    position: relative;
    z-index: var(--dlm-z-base);
    max-width: var(--dlm-container-md);
    margin: 0 auto;
    padding: var(--dlm-space-xl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.dlm-page-container--top {
    justify-content: flex-start;
    padding-top: var(--dlm-space-3xl);
}

.dlm-page-container--lg {
    max-width: var(--dlm-container-lg);
}

.dlm-page-container--xl {
    max-width: var(--dlm-container-xl);
}

/* ----------------------------------------
   Glassmorphism Card
   ---------------------------------------- */

.dlm-glass-card {
    background: var(--dlm-bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-xl);
    padding: var(--dlm-space-xl);
    box-shadow: var(--dlm-shadow-xl);
}

.dlm-glass-card--sm {
    padding: var(--dlm-space-lg);
    border-radius: var(--dlm-radius-md);
}

.dlm-glass-card--hover {
    transition: all var(--dlm-transition-slow);
}

.dlm-glass-card--hover:hover {
    background: var(--dlm-bg-tertiary);
    border-color: var(--dlm-border-strong);
    transform: translateY(-2px);
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */

.dlm-cosmic-page h1 {
    font-family: var(--dlm-font-display);
    font-size: var(--dlm-text-3xl);
    font-weight: 700;
    color: var(--dlm-text-bright);
    margin: 0 0 var(--dlm-space-md) 0;
    line-height: var(--dlm-leading-tight);
}

.dlm-cosmic-page h2 {
    font-family: var(--dlm-font-display);
    font-size: var(--dlm-text-2xl);
    font-weight: 600;
    color: var(--dlm-text-primary);
    margin: 0 0 var(--dlm-space-md) 0;
}

.dlm-cosmic-page h3 {
    font-size: var(--dlm-text-xl);
    font-weight: 600;
    color: var(--dlm-text-primary);
    margin: 0 0 var(--dlm-space-sm) 0;
}

.dlm-cosmic-page p {
    color: var(--dlm-text-secondary);
    margin: 0 0 var(--dlm-space-md) 0;
}

.dlm-text-center {
    text-align: center;
}

.dlm-text-muted {
    color: var(--dlm-text-muted);
}

.dlm-text-bright {
    color: var(--dlm-text-bright);
}

.dlm-text-sm {
    font-size: var(--dlm-text-sm);
}

.dlm-text-lg {
    font-size: var(--dlm-text-lg);
}

/* ----------------------------------------
   Buttons - Cosmic Style
   ---------------------------------------- */

.dlm-btn-cosmic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--dlm-space-sm);
    background: var(--dlm-accent-gradient);
    color: var(--dlm-text-bright);
    padding: var(--dlm-space-md) var(--dlm-space-xl);
    border-radius: var(--dlm-radius-full);
    text-decoration: none;
    font-family: var(--dlm-font-sans);
    font-weight: 600;
    font-size: var(--dlm-text-base);
    border: none;
    cursor: pointer;
    transition: all var(--dlm-transition-base);
    box-shadow: var(--dlm-shadow-glow);
    line-height: 1;
}

.dlm-btn-cosmic:hover {
    transform: translateY(-2px);
    box-shadow: var(--dlm-shadow-glow-strong);
    color: var(--dlm-text-bright);
    text-decoration: none;
}

.dlm-btn-cosmic:active {
    transform: translateY(0);
}

.dlm-btn-cosmic:disabled,
.dlm-btn-cosmic.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--dlm-bg-tertiary);
    box-shadow: none;
}

.dlm-btn-cosmic--lg {
    padding: var(--dlm-space-lg) var(--dlm-space-2xl);
    font-size: var(--dlm-text-lg);
}

.dlm-btn-cosmic--full {
    width: 100%;
}

/* Ghost Button */
.dlm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--dlm-space-sm);
    background: transparent;
    border: 1px solid var(--dlm-border-default);
    color: var(--dlm-text-secondary);
    padding: var(--dlm-space-sm) var(--dlm-space-lg);
    border-radius: var(--dlm-radius-full);
    text-decoration: none;
    font-family: var(--dlm-font-sans);
    font-weight: 500;
    font-size: var(--dlm-text-sm);
    cursor: pointer;
    transition: all var(--dlm-transition-base);
}

.dlm-btn-ghost:hover {
    background: var(--dlm-bg-tertiary);
    color: var(--dlm-text-primary);
    border-color: var(--dlm-border-strong);
    text-decoration: none;
}

/* ----------------------------------------
   Form Inputs - Cosmic Dark
   ---------------------------------------- */

.dlm-input-cosmic {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-sm);
    padding: var(--dlm-space-md);
    color: var(--dlm-text-primary);
    font-family: var(--dlm-font-sans);
    font-size: var(--dlm-text-base);
    width: 100%;
    box-sizing: border-box;
    transition: all var(--dlm-transition-base);
}

.dlm-input-cosmic:focus {
    outline: none;
    border-color: var(--dlm-accent-pink);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.2);
    background: var(--dlm-bg-elevated);
}

.dlm-input-cosmic::placeholder {
    color: var(--dlm-text-muted);
}

.dlm-input-cosmic--error {
    border-color: var(--dlm-error);
    box-shadow: 0 0 0 3px var(--dlm-error-bg);
}

.dlm-textarea-cosmic {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-sm);
    padding: var(--dlm-space-md);
    color: var(--dlm-text-primary);
    font-family: var(--dlm-font-sans);
    font-size: var(--dlm-text-base);
    width: 100%;
    min-height: 150px;
    resize: vertical;
    box-sizing: border-box;
    transition: all var(--dlm-transition-base);
}

.dlm-textarea-cosmic:focus {
    outline: none;
    border-color: var(--dlm-accent-pink);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.2);
}

.dlm-textarea-cosmic::placeholder {
    color: var(--dlm-text-muted);
}

/* Form Group */
.dlm-form-group-cosmic {
    margin-bottom: var(--dlm-space-lg);
}

.dlm-label-cosmic {
    display: block;
    color: var(--dlm-text-primary);
    font-weight: 500;
    margin-bottom: var(--dlm-space-sm);
    font-size: var(--dlm-text-sm);
}

.dlm-label-cosmic .required {
    color: var(--dlm-accent-pink);
}

.dlm-help-text {
    font-size: var(--dlm-text-xs);
    color: var(--dlm-text-muted);
    margin-top: var(--dlm-space-xs);
}

/* ----------------------------------------
   Alerts - Status Messages
   ---------------------------------------- */

.dlm-alert {
    padding: var(--dlm-space-lg);
    border-radius: var(--dlm-radius-md);
    margin-bottom: var(--dlm-space-lg);
}

.dlm-alert-success {
    background: var(--dlm-success-bg);
    border: 1px solid var(--dlm-success-border);
    color: var(--dlm-success);
}

.dlm-alert-error {
    background: var(--dlm-error-bg);
    border: 1px solid var(--dlm-error-border);
    color: var(--dlm-error);
}

.dlm-alert-warning {
    background: var(--dlm-warning-bg);
    border: 1px solid var(--dlm-warning-border);
    color: var(--dlm-warning);
}

.dlm-alert-info {
    background: var(--dlm-info-bg);
    border: 1px solid var(--dlm-info-border);
    color: var(--dlm-info);
}

/* ----------------------------------------
   Status Pill
   ---------------------------------------- */

.dlm-pill {
    display: inline-block;
    padding: var(--dlm-space-sm) var(--dlm-space-md);
    background: var(--dlm-bg-tertiary);
    border-radius: var(--dlm-radius-full);
    font-size: var(--dlm-text-sm);
    color: var(--dlm-text-secondary);
}

.dlm-pill--success {
    background: var(--dlm-success-bg);
    color: var(--dlm-success);
}

.dlm-pill--error {
    background: var(--dlm-error-bg);
    color: var(--dlm-error);
}

/* ----------------------------------------
   Content Page Specific
   ---------------------------------------- */

.dlm-content-header {
    text-align: center;
    margin-bottom: var(--dlm-space-xl);
    padding-bottom: var(--dlm-space-xl);
    border-bottom: 1px solid var(--dlm-border-subtle);
}

.dlm-content-cover {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--dlm-radius-md);
    margin-bottom: var(--dlm-space-lg);
}

.dlm-content-meta {
    display: flex;
    align-items: center;
    gap: var(--dlm-space-md);
    margin-bottom: var(--dlm-space-lg);
}

.dlm-creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dlm-border-default);
}

.dlm-content-body {
    margin-bottom: var(--dlm-space-xl);
}

.dlm-content-body p {
    color: var(--dlm-text-primary);
    line-height: var(--dlm-leading-relaxed);
    font-size: var(--dlm-text-lg);
}

.dlm-content-actions {
    display: flex;
    flex-direction: column;
    gap: var(--dlm-space-md);
    padding-top: var(--dlm-space-xl);
    border-top: 1px solid var(--dlm-border-subtle);
}

/* Audio Player */
.dlm-audio-section {
    background: var(--dlm-bg-tertiary);
    border-radius: var(--dlm-radius-md);
    padding: var(--dlm-space-lg);
    margin: var(--dlm-space-lg) 0;
}

.dlm-audio-section h3 {
    margin-bottom: var(--dlm-space-md);
    font-size: var(--dlm-text-base);
    color: var(--dlm-text-secondary);
}

.dlm-audio-section audio {
    width: 100%;
    border-radius: var(--dlm-radius-sm);
}

/* ----------------------------------------
   Open Capsule Page Specific
   ---------------------------------------- */

.dlm-open-section {
    text-align: center;
}

.dlm-pin-section-cosmic {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-md);
    padding: var(--dlm-space-xl);
    margin: var(--dlm-space-xl) 0;
}

.dlm-pin-input-cosmic {
    font-size: var(--dlm-text-2xl);
    padding: var(--dlm-space-md);
    text-align: center;
    width: 180px;
    letter-spacing: 8px;
    background: var(--dlm-bg-primary);
    border: 2px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-sm);
    color: var(--dlm-text-bright);
    transition: all var(--dlm-transition-base);
}

.dlm-pin-input-cosmic:focus {
    outline: none;
    border-color: var(--dlm-accent-pink);
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.2);
}

/* Hold Button */
.dlm-hold-container-cosmic {
    margin: var(--dlm-space-2xl) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 140px;
}

.dlm-hold-button-cosmic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--dlm-accent-gradient);
    color: var(--dlm-text-bright);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: var(--dlm-text-sm);
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    transition: transform var(--dlm-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    box-shadow: var(--dlm-shadow-glow);
}

.dlm-hold-button-cosmic:active {
    transform: scale(0.95);
}

.dlm-hold-ring-cosmic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--dlm-border-default);
    z-index: 1;
}

.dlm-hold-progress-cosmic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 130px;
    height: 130px;
    z-index: 1;
}

.dlm-hold-progress-cosmic circle {
    fill: none;
    stroke: var(--dlm-success);
    stroke-width: 3;
    stroke-dasharray: 408.41;
    stroke-dashoffset: 408.41;
    transition: stroke-dashoffset 0.1s linear;
}

.dlm-oath-cosmic {
    font-style: italic;
    color: var(--dlm-text-secondary);
    font-size: var(--dlm-text-lg);
    line-height: var(--dlm-leading-relaxed);
    padding: 0 var(--dlm-space-lg);
    margin: var(--dlm-space-lg) 0;
}

/* ----------------------------------------
   Payment Pages
   ---------------------------------------- */

.dlm-payment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--dlm-space-lg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.dlm-payment-icon--success {
    background: var(--dlm-success-bg);
    border: 2px solid var(--dlm-success-border);
    color: var(--dlm-success);
    animation: dlm-pop 0.5s var(--dlm-transition-bounce);
}

.dlm-payment-icon--cancel {
    background: var(--dlm-warning-bg);
    border: 2px solid var(--dlm-warning-border);
    color: var(--dlm-warning);
}

@keyframes dlm-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dlm-capsule-info-cosmic {
    background: var(--dlm-bg-tertiary);
    border-radius: var(--dlm-radius-md);
    padding: var(--dlm-space-lg);
    margin: var(--dlm-space-xl) 0;
}

.dlm-capsule-info-cosmic ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dlm-capsule-info-cosmic li {
    padding: var(--dlm-space-sm) 0;
    border-bottom: 1px solid var(--dlm-border-subtle);
    color: var(--dlm-text-secondary);
}

.dlm-capsule-info-cosmic li:last-child {
    border-bottom: none;
}

.dlm-capsule-info-cosmic strong {
    color: var(--dlm-text-primary);
}

/* ----------------------------------------
   Error Pages (404, Expired, etc.)
   ---------------------------------------- */

.dlm-error-icon {
    font-size: 64px;
    margin-bottom: var(--dlm-space-lg);
    opacity: 0.8;
}

/* ----------------------------------------
   Spacing Utilities
   ---------------------------------------- */

.dlm-mt-0 {
    margin-top: 0;
}

.dlm-mt-sm {
    margin-top: var(--dlm-space-sm);
}

.dlm-mt-md {
    margin-top: var(--dlm-space-md);
}

.dlm-mt-lg {
    margin-top: var(--dlm-space-lg);
}

.dlm-mt-xl {
    margin-top: var(--dlm-space-xl);
}

.dlm-mb-0 {
    margin-bottom: 0;
}

.dlm-mb-sm {
    margin-bottom: var(--dlm-space-sm);
}

.dlm-mb-md {
    margin-bottom: var(--dlm-space-md);
}

.dlm-mb-lg {
    margin-bottom: var(--dlm-space-lg);
}

.dlm-mb-xl {
    margin-bottom: var(--dlm-space-xl);
}

/* ----------------------------------------
   Responsive - Cosmic
   ---------------------------------------- */

@media (max-width: 768px) {
    .dlm-page-container {
        padding: var(--dlm-space-md);
    }

    .dlm-glass-card {
        padding: var(--dlm-space-lg);
        border-radius: var(--dlm-radius-md);
    }

    .dlm-cosmic-page h1 {
        font-size: var(--dlm-text-2xl);
    }

    .dlm-btn-cosmic--lg {
        padding: var(--dlm-space-md) var(--dlm-space-xl);
        font-size: var(--dlm-text-base);
    }

    .dlm-content-meta {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   COSMIC THEME - Create Form Override
   When .dlm-flow-create is inside .dlm-cosmic-page
   ======================================== */

.dlm-cosmic-page .dlm-flow-create {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.dlm-cosmic-page .dlm-card,
.dlm-cosmic-page .dlm-glass-card {
    background: var(--dlm-bg-secondary);
    border: 1px solid var(--dlm-border-default);
    box-shadow: var(--dlm-shadow-xl);
}

.dlm-cosmic-page .dlm-card h2,
.dlm-cosmic-page .dlm-glass-card h2 {
    color: var(--dlm-text-bright);
    font-family: var(--dlm-font-display);
}

.dlm-cosmic-page .dlm-card h3,
.dlm-cosmic-page .dlm-card h4,
.dlm-cosmic-page .dlm-glass-card h3,
.dlm-cosmic-page .dlm-glass-card h4 {
    color: var(--dlm-text-primary);
}

.dlm-cosmic-page .dlm-card label,
.dlm-cosmic-page .dlm-glass-card label {
    color: var(--dlm-text-primary);
}

.dlm-cosmic-page .dlm-card small,
.dlm-cosmic-page .dlm-glass-card small {
    color: var(--dlm-text-muted);
}

/* Progress Bar - Cosmic */
.dlm-cosmic-page .dlm-steps {
    border-bottom-color: var(--dlm-border-default);
}

.dlm-cosmic-page .dlm-step-indicator {
    color: var(--dlm-text-muted);
}

.dlm-cosmic-page .dlm-step-indicator:before {
    background: var(--dlm-bg-tertiary);
}

.dlm-cosmic-page .dlm-step-indicator.active {
    color: var(--dlm-accent-pink);
}

.dlm-cosmic-page .dlm-step-indicator.active:before {
    background: var(--dlm-accent-gradient);
}

.dlm-cosmic-page .dlm-step-indicator.completed {
    color: var(--dlm-success);
}

.dlm-cosmic-page .dlm-step-indicator.completed:before {
    background: var(--dlm-success);
}

/* Form Elements - Cosmic */
.dlm-cosmic-page .dlm-card input[type="text"],
.dlm-cosmic-page .dlm-card input[type="email"],
.dlm-cosmic-page .dlm-card input[type="password"],
.dlm-cosmic-page .dlm-card input[type="datetime-local"],
.dlm-cosmic-page .dlm-card input[type="file"],
.dlm-cosmic-page .dlm-card select,
.dlm-cosmic-page .dlm-card textarea,
.dlm-cosmic-page .dlm-glass-card input[type="text"],
.dlm-cosmic-page .dlm-glass-card input[type="email"],
.dlm-cosmic-page .dlm-glass-card input[type="password"],
.dlm-cosmic-page .dlm-glass-card input[type="datetime-local"],
.dlm-cosmic-page .dlm-glass-card input[type="file"],
.dlm-cosmic-page .dlm-glass-card select,
.dlm-cosmic-page .dlm-glass-card textarea {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-sm);
    color: var(--dlm-text-primary);
    padding: var(--dlm-space-md);
    transition: all var(--dlm-transition-base);
}

.dlm-cosmic-page .dlm-card input:focus,
.dlm-cosmic-page .dlm-card select:focus,
.dlm-cosmic-page .dlm-card textarea:focus,
.dlm-cosmic-page .dlm-glass-card input:focus,
.dlm-cosmic-page .dlm-glass-card select:focus,
.dlm-cosmic-page .dlm-glass-card textarea:focus {
    outline: none;
    border-color: var(--dlm-accent-pink);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.2);
}

.dlm-cosmic-page .dlm-card input::placeholder,
.dlm-cosmic-page .dlm-card textarea::placeholder,
.dlm-cosmic-page .dlm-glass-card input::placeholder,
.dlm-cosmic-page .dlm-glass-card textarea::placeholder {
    color: var(--dlm-text-muted);
}

/* Range Slider - Cosmic */
.dlm-cosmic-page input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--dlm-bg-tertiary);
    outline: none;
}

.dlm-cosmic-page input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dlm-accent-gradient);
    cursor: pointer;
    box-shadow: var(--dlm-shadow-glow);
}

/* Buttons - Cosmic */
.dlm-cosmic-page .dlm-btn {
    background: var(--dlm-accent-gradient);
    color: var(--dlm-text-bright);
    border: none;
    border-radius: var(--dlm-radius-full);
    padding: var(--dlm-space-md) var(--dlm-space-xl);
    font-weight: 600;
    box-shadow: var(--dlm-shadow-glow);
    transition: all var(--dlm-transition-base);
}

.dlm-cosmic-page .dlm-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--dlm-shadow-glow-strong);
}

.dlm-cosmic-page .dlm-btn.secondary {
    background: var(--dlm-bg-tertiary);
    color: var(--dlm-text-secondary);
    border: 1px solid var(--dlm-border-default);
    box-shadow: none;
}

.dlm-cosmic-page .dlm-btn.secondary:hover {
    background: var(--dlm-bg-elevated);
    color: var(--dlm-text-primary);
    transform: none;
}

.dlm-cosmic-page button[type="submit"] {
    background: var(--dlm-accent-gradient);
    color: var(--dlm-text-bright);
    border: none;
    border-radius: var(--dlm-radius-full);
    padding: var(--dlm-space-lg) var(--dlm-space-2xl);
    font-weight: 600;
    font-size: var(--dlm-text-lg);
    box-shadow: var(--dlm-shadow-glow);
    transition: all var(--dlm-transition-base);
    cursor: pointer;
    width: 100%;
}

.dlm-cosmic-page button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--dlm-shadow-glow-strong);
}

/* Step Actions - Cosmic */
.dlm-cosmic-page .dlm-step-actions {
    border-top-color: var(--dlm-border-default);
}

/* Intention Block - Cosmic */
.dlm-cosmic-page .dlm-intention-block {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-md);
    padding: var(--dlm-space-lg);
    margin-bottom: var(--dlm-space-xl);
}

/* Tabs - Cosmic */
.dlm-cosmic-page .dlm-tabs {
    display: flex;
    gap: var(--dlm-space-sm);
    margin-bottom: var(--dlm-space-lg);
}

.dlm-cosmic-page .dlm-tab {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    color: var(--dlm-text-secondary);
    padding: var(--dlm-space-sm) var(--dlm-space-lg);
    border-radius: var(--dlm-radius-full);
    cursor: pointer;
    transition: all var(--dlm-transition-base);
}

.dlm-cosmic-page .dlm-tab:hover {
    background: var(--dlm-bg-elevated);
}

.dlm-cosmic-page .dlm-tab.dlm-tab-active {
    background: var(--dlm-accent-gradient);
    color: var(--dlm-text-bright);
    border-color: transparent;
}

/* Ritual Card - Cosmic */
.dlm-cosmic-page .dlm-ritual-card {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-md);
    padding: var(--dlm-space-lg);
}

/* Summary Card - Cosmic */
.dlm-cosmic-page .dlm-summary-card {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-md);
    padding: var(--dlm-space-lg);
}

/* Projection Card - Cosmic */
.dlm-cosmic-page .dlm-projection-card {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-md);
    padding: var(--dlm-space-lg);
    color: var(--dlm-text-secondary);
    font-style: italic;
    min-height: 100px;
}

/* Idea Prompts - Cosmic */
.dlm-cosmic-page .dlm-idea-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dlm-space-sm);
    margin-bottom: var(--dlm-space-md);
}

.dlm-cosmic-page .dlm-idea-prompt {
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-full);
    padding: var(--dlm-space-xs) var(--dlm-space-md);
    font-size: var(--dlm-text-sm);
    color: var(--dlm-text-muted);
    cursor: pointer;
    transition: all var(--dlm-transition-base);
}

.dlm-cosmic-page .dlm-idea-prompt:hover {
    background: var(--dlm-bg-elevated);
    color: var(--dlm-text-primary);
    border-color: var(--dlm-accent-pink);
}

/* Separator - Cosmic */
.dlm-cosmic-page .dlm-separator {
    text-align: center;
    color: var(--dlm-text-muted);
    margin: var(--dlm-space-lg) 0;
    position: relative;
}

.dlm-cosmic-page .dlm-separator::before,
.dlm-cosmic-page .dlm-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--dlm-border-default);
}

.dlm-cosmic-page .dlm-separator::before {
    left: 0;
}

.dlm-cosmic-page .dlm-separator::after {
    right: 0;
}

/* Checkbox styling - Cosmic */
.dlm-cosmic-page input[type="checkbox"] {
    accent-color: var(--dlm-accent-pink);
}

/* Grid - Cosmic */
.dlm-cosmic-page .dlm-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dlm-space-lg);
}

@media (max-width: 768px) {
    .dlm-cosmic-page .dlm-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Radio options - Cosmic */
.dlm-cosmic-page .dlm-radio-option {
    display: flex;
    align-items: center;
    gap: var(--dlm-space-sm);
    padding: var(--dlm-space-sm) 0;
    color: var(--dlm-text-secondary);
    cursor: pointer;
}

.dlm-cosmic-page .dlm-radio-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form messages */
.dlm-cosmic-page #dlm-form-message {
    border-radius: var(--dlm-radius-md);
}

.dlm-cosmic-page #dlm-form-loading {
    color: var(--dlm-text-secondary);
}

/* ========================================
   CUSTOM AUDIO PLAYER (Legacy - kept for backwards compat)
   ======================================== */

.dlm-audio-player {
    background: var(--dlm-bg-secondary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-lg);
    padding: var(--dlm-space-lg);
    margin-top: var(--dlm-space-md);
}

/* ========================================
   PREMIUM AUDIO PLAYER (Minimal)
   ======================================== */

.dlm-audio-player-premium {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    margin-top: var(--dlm-space-md);
}

.dlm-audio-player-premium audio {
    display: none;
}

.dlm-audio-controls-premium {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Play/Pause Button - Squircle */
.dlm-audio-play-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dlm-audio-play-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.dlm-audio-play-btn.playing {
    background: rgba(219, 39, 119, 0.15);
    border-color: rgba(219, 39, 119, 0.3);
    color: #db2777;
}

.dlm-audio-play-btn:focus-visible {
    outline: 2px solid rgba(219, 39, 119, 0.5);
    outline-offset: 2px;
}

.dlm-audio-play-btn svg {
    display: block;
}

/* Progress Bar Container */
.dlm-audio-progress-premium {
    flex: 1;
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}

/* Range input - invisible but interactive */
.dlm-audio-range {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

/* Track background */
.dlm-audio-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

/* Track fill (progress) */
.dlm-audio-track-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(219, 39, 119, 0.6), rgba(219, 39, 119, 0.8));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Hover effect on progress */
.dlm-audio-progress-premium:hover .dlm-audio-track {
    background: rgba(255, 255, 255, 0.12);
}

.dlm-audio-progress-premium:hover .dlm-audio-track-fill {
    background: linear-gradient(90deg, #db2777, #ec4899);
}

/* Timecode */
.dlm-audio-timecode {
    flex-shrink: 0;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.dlm-audio-timecode #dlm-audio-current {
    color: rgba(255, 255, 255, 0.8);
}

.dlm-audio-separator {
    margin: 0 2px;
    opacity: 0.4;
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .dlm-audio-player-premium {
        padding: 14px 16px;
    }

    .dlm-audio-controls-premium {
        gap: 12px;
    }

    .dlm-audio-play-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .dlm-audio-timecode {
        font-size: 12px;
    }
}

.dlm-audio-player audio {
    display: none;
}

.dlm-audio-controls {
    display: flex;
    align-items: center;
    gap: var(--dlm-space-md);
    flex-wrap: wrap;
}

.dlm-audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--dlm-space-sm);
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-sm);
    color: var(--dlm-text-primary);
    cursor: pointer;
    transition: var(--dlm-transition-base);
}

.dlm-audio-btn:hover {
    background: var(--dlm-bg-elevated);
    border-color: var(--dlm-accent-pink);
}

.dlm-audio-play {
    width: 44px;
    height: 44px;
    border-radius: var(--dlm-radius-full);
    background: var(--dlm-accent-gradient);
    border: none;
    color: var(--dlm-text-bright);
}

.dlm-audio-play:hover {
    transform: scale(1.05);
    box-shadow: var(--dlm-shadow-glow);
}

.dlm-audio-skip span {
    font-size: var(--dlm-text-xs);
    font-weight: 600;
}

.dlm-audio-progress-wrap {
    flex: 1;
    min-width: 100px;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.dlm-audio-progress {
    width: 100%;
    height: 6px;
    border-radius: var(--dlm-radius-full);
    background: var(--dlm-bg-tertiary);
    cursor: pointer;
    appearance: none;
    position: relative;
    z-index: 2;
}

.dlm-audio-progress::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dlm-accent-pink);
    cursor: pointer;
    box-shadow: var(--dlm-shadow-glow);
}

.dlm-audio-progress-fill {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 6px;
    background: var(--dlm-accent-gradient);
    border-radius: var(--dlm-radius-full);
    pointer-events: none;
    z-index: 1;
}

.dlm-audio-time {
    font-size: var(--dlm-text-sm);
    color: var(--dlm-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dlm-audio-speed {
    position: relative;
}

.dlm-audio-speed-btn {
    min-width: 44px;
}

.dlm-audio-speed-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--dlm-space-xs);
    background: var(--dlm-bg-secondary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-md);
    padding: var(--dlm-space-xs);
    box-shadow: var(--dlm-shadow-lg);
    z-index: 10;
}

.dlm-audio-speed-menu.active {
    display: block;
}

.dlm-audio-speed-menu button {
    display: block;
    width: 100%;
    padding: var(--dlm-space-xs) var(--dlm-space-md);
    background: transparent;
    border: none;
    color: var(--dlm-text-secondary);
    font-size: var(--dlm-text-sm);
    cursor: pointer;
    text-align: center;
    border-radius: var(--dlm-radius-xs);
    transition: var(--dlm-transition-base);
}

.dlm-audio-speed-menu button:hover {
    background: var(--dlm-bg-tertiary);
    color: var(--dlm-text-primary);
}

.dlm-audio-speed-menu button.active {
    background: var(--dlm-accent-pink);
    color: var(--dlm-text-bright);
}

/* Responsive audio player */
@media (max-width: 480px) {
    .dlm-audio-controls {
        gap: var(--dlm-space-sm);
    }

    .dlm-audio-progress-wrap {
        order: 10;
        width: 100%;
        flex: none;
    }
}

/* ========================================
   THANK MODAL SUGGESTIONS
   ======================================== */

.dlm-thank-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dlm-space-sm);
    margin-bottom: var(--dlm-space-md);
}

.dlm-thank-suggestion {
    padding: var(--dlm-space-xs) var(--dlm-space-md);
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-full);
    color: var(--dlm-text-secondary);
    font-size: var(--dlm-text-sm);
    cursor: pointer;
    transition: var(--dlm-transition-base);
}

.dlm-thank-suggestion:hover {
    background: var(--dlm-accent-gradient);
    border-color: var(--dlm-accent-pink);
    color: var(--dlm-text-bright);
    transform: translateY(-2px);
}

.dlm-thank-suggestion:focus {
    outline: 2px solid var(--dlm-accent-pink);
    outline-offset: 2px;
}

/* ========================================
   TIMELINE ANIMATION
   ======================================== */

.dlm-timeline-point.active::before {
    animation: dlm-timeline-pulse 2s ease-in-out infinite;
}

@keyframes dlm-timeline-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(219, 39, 119, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(219, 39, 119, 0);
    }
}

/* ========================================
   CONFIRMATION MODAL (Double-click)
   ======================================== */

.dlm-confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--dlm-z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--dlm-transition-base);
}

.dlm-confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dlm-confirm-modal {
    background: var(--dlm-bg-secondary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-lg);
    padding: var(--dlm-space-xl);
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: var(--dlm-transition-base);
}

.dlm-confirm-modal-overlay.active .dlm-confirm-modal {
    transform: scale(1);
}

.dlm-confirm-modal-icon {
    font-size: 3rem;
    margin-bottom: var(--dlm-space-md);
}

.dlm-confirm-modal-title {
    font-size: var(--dlm-text-xl);
    font-weight: 600;
    color: var(--dlm-text-primary);
    margin-bottom: var(--dlm-space-sm);
}

.dlm-confirm-modal-text {
    color: var(--dlm-text-secondary);
    margin-bottom: var(--dlm-space-lg);
}

.dlm-confirm-modal-actions {
    display: flex;
    gap: var(--dlm-space-md);
    justify-content: center;
}

.dlm-confirm-btn-cancel {
    padding: var(--dlm-space-sm) var(--dlm-space-lg);
    background: var(--dlm-bg-tertiary);
    border: 1px solid var(--dlm-border-default);
    border-radius: var(--dlm-radius-md);
    color: var(--dlm-text-secondary);
    cursor: pointer;
    transition: var(--dlm-transition-base);
}

.dlm-confirm-btn-cancel:hover {
    background: var(--dlm-bg-elevated);
}

.dlm-confirm-btn-danger {
    padding: var(--dlm-space-sm) var(--dlm-space-lg);
    background: var(--dlm-error);
    border: none;
    border-radius: var(--dlm-radius-md);
    color: var(--dlm-text-bright);
    cursor: pointer;
    transition: var(--dlm-transition-base);
}

.dlm-confirm-btn-danger:hover {
    background: #dc2626;
}

.dlm-confirm-btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   MOBILE RESPONSIVE POLISH
   Scope: All DLM plugin templates
   Breakpoints: 768px (tablet), 480px (mobile)
   ======================================== */

/* --- GLOBAL MOBILE FOUNDATIONS --- */

@media (max-width: 768px) {

    /* Containers - prevent overflow */
    .dlm-page-container,
    .dlm-cosmic-page .dlm-page-container {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    .dlm-glass-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    /* Typography - fluid scaling */
    .dlm-capsule-title,
    .dlm-dashboard-title h1,
    .dlm-emotional-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        line-height: 1.3;
    }

    .dlm-emotional-body,
    .dlm-dashboard-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Touch targets - minimum 44px */
    .dlm-btn-cosmic,
    .dlm-action-btn,
    .dlm-filter-btn,
    .dlm-pagination-btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* --- GRIDS TO STACK --- */

    /* Creator capsule view - 2 col to 1 col */
    .dlm-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    /* Waiting room - 2 col to 1 col */
    .dlm-waiting-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    /* Stats cards - horizontal scroll or stack */
    .dlm-dashboard-stats {
        flex-direction: column;
        gap: 12px;
    }

    .dlm-stat-card {
        padding: 16px;
    }

    .dlm-stat-value {
        font-size: 1.75rem;
    }

    /* Info grids */
    .dlm-info-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* --- DASHBOARD HEADER --- */

    .dlm-dashboard-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .dlm-dashboard-header-row .dlm-btn-cosmic {
        width: 100%;
        justify-content: center;
    }

    /* --- ACTION LISTS --- */

    .dlm-action-list {
        padding: 0;
    }

    .dlm-action-btn {
        width: 100%;
        justify-content: flex-start;
    }

    /* --- MODALS --- */

    .dlm-modal,
    .dlm-thank-modal,
    .dlm-confirm-modal {
        max-height: 90vh;
        max-width: calc(100vw - 32px);
        overflow-y: auto;
        margin: 16px;
    }

    .dlm-modal-overlay {
        padding: 16px;
    }

    /* --- WAITING ROOM SPECIFICS --- */

    .dlm-countdown-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .dlm-circle-timer {
        width: 180px;
        height: 180px;
        margin: 0 auto 24px;
    }

    .dlm-ritual-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dlm-col-left .desktop-only {
        display: none;
    }

    .dlm-mobile-header {
        display: block;
        margin-bottom: 16px;
    }

    /* --- CONTENT PAGE --- */

    .dlm-content-actions {
        flex-direction: column;
        gap: 12px;
    }

    .dlm-content-actions .dlm-btn-cosmic,
    .dlm-content-actions .dlm-btn-ghost {
        width: 100%;
        justify-content: center;
    }

    /* --- CARDS --- */

    .dlm-card {
        padding: 20px 16px;
    }

    .dlm-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* --- COMPACT MOBILE (iPhone SE, etc) --- */

@media (max-width: 480px) {

    .dlm-page-container,
    .dlm-cosmic-page .dlm-page-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dlm-glass-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    /* Smaller text */
    .dlm-capsule-title,
    .dlm-dashboard-title h1 {
        font-size: 1.25rem;
    }

    .dlm-emotional-body {
        font-size: 0.9rem;
    }

    /* Step indicators - compact */
    .dlm-step-indicator span {
        font-size: 9px;
    }

    .dlm-step-indicator::before {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    /* Countdown timer - smaller */
    .dlm-circle-timer {
        width: 150px;
        height: 150px;
    }

    .dlm-countdown-value {
        font-size: 2.5rem;
    }

    /* Pagination compact */
    .dlm-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .dlm-pagination-info {
        width: 100%;
        text-align: center;
        order: -1;
    }

    /* Thank modal suggestions - stack */
    .dlm-thank-suggestions {
        flex-direction: column;
    }

    .dlm-thank-suggestion {
        text-align: center;
    }
}

/* --- LANDSCAPE MOBILE --- */

@media (max-height: 500px) and (orientation: landscape) {
    .dlm-circle-timer {
        width: 120px;
        height: 120px;
    }

    .dlm-waiting-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dlm-modal {
        max-height: 85vh;
    }
}

/* --- HIDING ELEMENTS ON MOBILE --- */

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {

    .mobile-only,
    .dlm-mobile-header {
        display: none !important;
    }
}