.dcs-sections-wrapper {
    margin-top: 40px;
    display: grid;
    gap: 24px;
}

.dcs-section-content {
    height: auto;
    max-height: 800px;
    overflow-y: auto;
    padding: 10px;
    flex-grow: 1;
}

.dcs-dashboard-section h2 .dcs-guide-link {
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}

.dcs-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.dcs-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.dcs-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.dcs-card-id {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.dcs-card-title {
    font-size: 15px;
    line-height: 1.5;
    color: #0f172a;
    font-weight: 700;
}

.dcs-card-grade {
    font-weight: 600;
    color: #475569;
}

.dcs-badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}

.dcs-badge-opened {
    background: #cffafe;
    color: #0e7490;
}

.dcs-status-expired .dcs-badge,
.dcs-status-cancelled .dcs-badge {
    background: #fee2e2;
    color: #b91c1c;
}

.dcs-status-full .dcs-badge {
    background: #fef3c7;
    color: #b45309;
}

.dcs-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px 14px;
    margin-bottom: 14px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid #eef2f7;
}

.dcs-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dcs-detail-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.dcs-detail-value {
    color: #1e293b;
    line-height: 1.45;
    font-weight: 500;
}

.dcs-desc-block {
    margin-bottom: 14px;
    padding: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}

.dcs-desc-block .dcs-detail-label {
    display: block;
    margin-bottom: 6px;
    color: #b45309;
}

.dcs-desc {
    font-size: 13px;
    color: #44403c;
    margin: 0;
    line-height: 1.65;
    white-space: pre-wrap;
}

.dcs-transfer-note-block {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.dcs-transfer-note-block .dcs-detail-label {
    color: #1d4ed8;
}

.dcs-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.dcs-owned-meta {
    margin-top: 2px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #0891b2;
    padding: 8px 12px;
    background: #ecfeff;
    border-radius: 8px;
    font-size: 13px;
}

.dcs-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dcs-slot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.dcs-slot-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dcs-slot-label {
    font-weight: 700;
    color: #334155;
    font-size: 13px;
}

.dcs-slot-price {
    font-size: 13px;
    color: #0f766e;
    font-weight: 600;
}

.dcs-slot-action {
    display: flex;
    align-items: center;
}

.dcs-slot-tick.filled {
    color: #16a34a;
    font-weight: bold;
}

.dcs-slot-tick.empty {
    color: #cbd5e1;
}

.dcs-contact-panel {
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dcs-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dcs-contact-label {
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    flex-shrink: 0;
}

.dcs-student-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
}

.dcs-phone-number {
    font-size: 17px;
    font-weight: 700;
    color: #0c4a6e;
    direction: ltr;
    text-decoration: none;
    padding: 6px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #7dd3fc;
}

.dcs-phone-number:active {
    background: #f0f9ff;
}

.dcs-empty {
    color: #64748b;
    padding: 20px 12px;
    text-align: center;
    font-size: 14px;
}

.dcs-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    background: #28a745;
    max-width: calc(100vw - 32px);
}

.dcs-toast.error {
    background: #dc3545;
}

.dcs-owned-label,
.dcs-filled-label,
.dcs-disabled-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.dcs-buy-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    height: auto !important;
}

/* Payment / confirm modals */
.dcs-teacher-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
}

.dcs-teacher-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.dcs-teacher-modal-panel {
    position: relative;
    max-width: 420px;
    width: 90%;
    margin: 12vh auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    direction: rtl;
    text-align: center;
}

.dcs-teacher-modal-panel-sm {
    max-width: 380px;
}

.dcs-teacher-modal-panel h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.dcs-teacher-modal-close {
    position: absolute;
    top: 8px;
    left: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
}

.dcs-payment-modal-desc {
    font-size: 14px;
    color: #444;
    margin: 0 0 12px;
}

.dcs-payment-modal-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #856404;
    margin: 0 0 14px;
    text-align: right;
}

.dcs-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.dcs-payment-methods .button {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    height: auto;
    border-radius: 8px;
}

.dcs-payment-cancel-btn {
    width: 100%;
    border-radius: 8px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .dcs-sections-wrapper {
        margin-top: 24px;
        gap: 16px;
    }

    .dcs-dashboard-section h2 {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px !important;
        font-size: 1rem !important;
    }

    .dcs-dashboard-section h2 .dcs-guide-link {
        font-size: 12px !important;
        padding: 8px 10px !important;
        margin-right: auto;
    }

    .dcs-dashboard-section .dcs-section-content {
        padding: 8px 6px !important;
        height: auto !important;
        max-height: 70vh;
    }

    .dcs-card {
        padding: 14px 12px;
        margin-bottom: 12px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 14px;
    }

    .dcs-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dcs-badge {
        align-self: flex-start;
    }

    .dcs-card-title {
        font-size: 14px;
    }

    .dcs-details-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: hidden;
    }

    .dcs-detail-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        padding: 11px 12px;
        background: #f8fafc;
        border-bottom: 1px solid #e8edf3;
    }

    .dcs-detail-item:first-child {
        border-radius: 10px 10px 0 0;
        border-top: 1px solid #e8edf3;
    }

    .dcs-detail-item:last-child {
        border-radius: 0 0 10px 10px;
        border-bottom: 1px solid #e8edf3;
    }

    .dcs-detail-label {
        min-width: 108px;
        flex-shrink: 0;
        font-size: 11px;
    }

    .dcs-detail-value {
        text-align: left;
        font-size: 13px;
        word-break: break-word;
    }

    .dcs-desc-block {
        padding: 12px;
        margin-bottom: 12px;
    }

    .dcs-slot-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 12px;
    }

    .dcs-slot-main {
        width: 100%;
        justify-content: space-between;
    }

    .dcs-slot-action {
        width: 100%;
    }

    .dcs-slot-action .dcs-buy-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .dcs-slot-action .dcs-owned-label,
    .dcs-slot-action .dcs-filled-label,
    .dcs-slot-action .dcs-disabled-label {
        display: block;
        text-align: center;
        width: 100%;
        padding: 8px;
        background: #fff;
        border-radius: 8px;
        border: 1px dashed #cbd5e1;
    }

    .dcs-owned-meta {
        text-align: center;
    }

    .dcs-contact-panel {
        padding: 12px;
        gap: 8px;
    }

    .dcs-contact-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 10px;
    }

    .dcs-contact-row-phone .dcs-phone-number {
        width: 100%;
        text-align: center;
        font-size: 18px;
        padding: 12px;
        box-sizing: border-box;
    }

    .dcs-student-name {
        text-align: right;
        font-size: 16px;
    }

    .dcs-teacher-modal-panel {
        width: calc(100% - 24px);
        margin: 8vh auto;
        border-radius: 14px;
    }
}
