/* =============================================
   ESSAY DETAIL — User Page Styles
   ============================================= */

:root {
    --ed-blue: #79ACF2;
    --ed-blue-deep: #3B7DD8;
    --ed-blue-light: #EBF3FE;
    --ed-gold: #F3C80E;
    --ed-green: #10b981;
    --ed-red: #EF4444;
    --ed-gray: #f8fafc;
    --ed-border: #e8f0fb;
    --ed-text: #1a1a2e;
    --ed-muted: #64748b;
    --ed-radius: 20px;
    --ed-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ── Topbar ── */
.ed-topbar {
    background: #ffffff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.ed-topbar-back {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ed-blue-deep);
    text-decoration: none;
    transition: transform 0.2s;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ed-blue-light);
    flex-shrink: 0;
}

.ed-topbar-back:hover {
    transform: translateX(-2px);
}

.ed-topbar h1 {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

.ed-topbar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
}

.ed-topbar-menu:hover {
    background: var(--ed-blue-light);
}

.ed-topbar-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ed-blue-deep);
    border-radius: 2px;
    transition: all 0.2s;
}

/* ── Dropdown Menu ── */
.ed-dropdown-menu {
    position: fixed;
    top: 54px;
    right: 16px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--ed-border);
    padding: 8px;
    z-index: 90;
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ed-dropdown-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.ed-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    color: var(--ed-text);
    text-decoration: none;
    transition: background 0.15s;
}

.ed-dropdown-item:hover {
    background: var(--ed-blue-light);
    color: var(--ed-blue-deep);
}

/* ── Urgency / Countdown Banner ── */
.ed-urgency-banner {
    background: #EBF3FE;
    background: -webkit-linear-gradient(135deg, #EBF3FE 0%, #D6E8FB 100%);
    background: linear-gradient(135deg, #EBF3FE 0%, #D6E8FB 100%);
    border: 1.5px solid rgba(121, 172, 242, 0.3);
    border-radius: 18px;
    padding: 16px;
    margin: 16px 16px 0;
    position: relative;
    overflow: hidden;
}

.ed-urgency-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(121, 172, 242, 0.12);
    border-radius: 50%;
}

.ed-urgency-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ed-urgency-icon {
    font-size: 18px;
}

.ed-urgency-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--ed-blue-deep);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Countdown boxes */
.ed-countdown {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    justify-content: center;
}

.ed-cd-box {
    background: white;
    border-radius: 12px;
    padding: 10px 8px 8px;
    text-align: center;
    min-width: 58px;
    box-shadow: 0 2px 10px rgba(121, 172, 242, 0.15);
    border: 1px solid rgba(121, 172, 242, 0.2);
    transition: transform 0.2s;
}

.ed-cd-box:hover {
    transform: translateY(-2px);
}

.ed-cd-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--ed-blue-deep);
    line-height: 1;
    display: block;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
}

.ed-cd-unit {
    font-size: 9px;
    font-weight: 700;
    color: var(--ed-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

.ed-urgency-btn {
    display: block;
    width: 100%;
    background: white;
    color: var(--ed-blue-deep);
    text-align: center;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    border: 2px solid rgba(121, 172, 242, 0.3);
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(121, 172, 242, 0.15);
    box-sizing: border-box;
}

.ed-urgency-btn:hover {
    background: var(--ed-blue-deep);
    color: white;
    border-color: var(--ed-blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 125, 216, 0.3);
}

/* ── Document Info Card ── */
.ed-info-card {
    background: white;
    margin: 16px 16px 0;
    border-radius: var(--ed-radius);
    padding: 20px 18px;
    box-shadow: var(--ed-shadow);
    border: 1px solid var(--ed-border);
}

.ed-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ed-blue-light);
    color: var(--ed-blue-deep);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ed-doc-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--ed-text);
    line-height: 1.4;
    margin-bottom: 16px;
}

.ed-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ed-border);
    margin-bottom: 12px;
}

.ed-doc-capture-wrap {
    width: 55px;
    height: 72px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.dk-document-capture {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border: 0.5px solid #e2e8f0;
    position: relative;
    padding: 8px 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    background-color: #fff;
    background-image: 
        linear-gradient(90deg, transparent 15px, #fecaca 16px, #fecaca 17px, transparent 18px),
        linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 8px;
}
.dk-doc-inner-title {
    font-size: 5px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 2px;
    border-bottom: 0.5px solid #e2e8f0;
    padding-bottom: 1px;
}
.dk-doc-inner-content {
    font-size: 3.5px;
    line-height: 1.6;
    color: #475569;
    text-align: left;
    word-break: break-word;
    font-family: 'serif';
}
.dk-doc-file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 3px;
    text-align: center;
}
.dk-doc-file-info .file-icon { font-size: 14px; }
.dk-doc-file-info .file-name { font-size: 4px; color: #64748b; font-weight: 800; }

.ed-author-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--ed-text);
    margin-bottom: 2px;
}

.ed-author-info {
    font-size: 11px;
    color: var(--ed-muted);
    line-height: 1.6;
}

.ed-author-info-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--ed-muted);
}

.ed-doc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.ed-doc-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ed-muted);
}

/* Action buttons */
.ed-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ed-download-btn {
    flex: 1;
    background: #79ACF2;
    background: -webkit-linear-gradient(135deg, var(--ed-blue) 0%, var(--ed-blue-deep) 100%);
    background: linear-gradient(135deg, var(--ed-blue) 0%, var(--ed-blue-deep) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(121, 172, 242, 0.35);
}

.ed-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59, 125, 216, 0.35);
    color: white;
}

.ed-download-btn:active {
    transform: scale(0.98);
}

.ed-download-btn.locked {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: none;
}

.ed-icon-btn {
    width: 46px;
    height: 46px;
    background: var(--ed-gray);
    border-radius: 14px;
    border: 1.5px solid var(--ed-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s;
    color: var(--ed-muted);
    flex-shrink: 0;
}

.ed-icon-btn:hover {
    background: var(--ed-blue-light);
    color: var(--ed-blue-deep);
    border-color: var(--ed-blue);
    transform: scale(1.06);
}

.ed-icon-btn.bookmarked {
    background: var(--ed-blue-light);
    color: var(--ed-blue-deep);
    border-color: var(--ed-blue);
}

/* ── Document Preview Section ── */
.ed-preview-section {
    margin: 16px 16px 0;
}

.ed-preview-label {
    font-size: 13px;
    font-weight: 900;
    color: var(--ed-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ed-file-label {
    font-size: 13px;
    font-weight: 900;
    color: var(--ed-text);
    margin: 18px 0 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ed-preview-dot {
    width: 7px;
    height: 7px;
    background: var(--ed-blue);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.ed-preview-frame {
    background: white;
    border-radius: var(--ed-radius);
    padding: 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--ed-border);
    overflow: hidden;
    position: relative;
}

/* Document paper look */
.ed-doc-paper {
    background: white;
    padding: 24px 20px;
    font-size: 14.5px;
    color: #374151;
    line-height: 1.8;
    text-align: justify;
    position: relative;
    min-height: 200px;
    -webkit-user-select: none;
    user-select: none;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.ed-doc-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}

.ed-doc-content-inner p {
    margin-bottom: 1.4em;
}

.ed-doc-content-inner h1,
.ed-doc-content-inner h2 {
    color: var(--ed-text);
    margin: 20px 0 10px;
}

.ed-doc-paper.blurred {
    filter: blur(3px);
    pointer-events: none;
}

/* Watermark */
.ed-watermark-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.ed-wm-text {
    position: absolute;
    transform: rotate(-35deg);
    font-size: 13px;
    font-weight: 900;
    color: rgba(121, 172, 242, 0.06);
    white-space: nowrap;
    user-select: none;
}

/* Fade for locked preview */
.ed-preview-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(transparent, white);
    z-index: 4;
}

/* Lock overlay */
.ed-lock-overlay {
    padding: 32px 24px 28px;
    background: white;
    text-align: center;
    border-top: 1px dashed var(--ed-border);
}

.ed-lock-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: #fefce8;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid #fef3c7;
}

.ed-lock-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--ed-text);
    margin-bottom: 8px;
}

.ed-lock-sub {
    font-size: 12px;
    color: var(--ed-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.ed-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #79ACF2;
    background: -webkit-linear-gradient(135deg, var(--ed-blue), var(--ed-blue-deep));
    background: linear-gradient(135deg, var(--ed-blue), var(--ed-blue-deep));
    color: white;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(121, 172, 242, 0.35);
    transition: all 0.25s;
}

.ed-lock-btn:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 10px 24px rgba(59, 125, 216, 0.4);
}

/* Download again button */
.ed-download-again-wrap {
    margin-top: 12px;
}

.ed-download-again {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ed-blue-light);
    color: var(--ed-blue-deep);
    border: 2px solid rgba(121, 172, 242, 0.35);
    border-radius: 14px;
    padding: 13px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.ed-download-again:hover {
    background: var(--ed-blue);
    color: white;
    border-color: var(--ed-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(121, 172, 242, 0.3);
}

/* ── Related Course Section ── */
.ed-related-section {
    margin: 16px 16px 0;
}

.ed-related-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--ed-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ed-related-course-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 18px;
    padding: 14px;
    border: 1.5px solid var(--ed-border);
    box-shadow: var(--ed-shadow);
    text-decoration: none;
    transition: all 0.25s ease;
}

.ed-related-course-card:hover {
    border-color: var(--ed-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(121, 172, 242, 0.15);
}

.ed-related-course-thumb {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ed-blue), var(--ed-blue-deep));
}

.ed-related-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-related-course-body {
    flex: 1;
    min-width: 0;
}

.ed-related-course-badge {
    font-size: 9px;
    font-weight: 800;
    background: var(--ed-blue-light);
    color: var(--ed-blue-deep);
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 5px;
}

.ed-related-course-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--ed-text);
    line-height: 1.3;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ed-related-course-mentor {
    font-size: 11px;
    color: var(--ed-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.ed-related-course-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--ed-muted);
}

.ed-related-badge-premium {
    background: #fef3c7;
    color: #92400e;
    padding: 1px 6px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 800;
}

.ed-related-badge-free {
    background: #d1fae5;
    color: #065f46;
    padding: 1px 6px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 800;
}

/* ── Review / Mentor Section ── */
.ed-review-section {
    padding: 20px 0 8px;
}

.ed-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 4px;
}

.ed-review-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--ed-text);
}

.ed-review-see-all {
    font-size: 11px;
    font-weight: 700;
    color: var(--ed-blue-deep);
    text-decoration: none;
    transition: color 0.2s;
}

.ed-review-see-all:hover {
    color: var(--ed-blue);
}

.ed-review-sub {
    font-size: 11px;
    color: var(--ed-muted);
    padding: 0 16px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.ed-mentor-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 16px 12px;
    scrollbar-width: none;
}

.ed-mentor-scroll::-webkit-scrollbar {
    display: none;
}

.ed-mentor-card {
    background: white;
    border-radius: 18px;
    min-width: 160px;
    max-width: 160px;
    padding: 14px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.05);
    border: 1.5px solid var(--ed-border);
    flex-shrink: 0;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.ed-mentor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(121, 172, 242, 0.15);
    border-color: rgba(121, 172, 242, 0.4);
}

.ed-mentor-card-img {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--ed-blue-light), #d0e4f7);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    padding: 0;
}

.ed-mentor-card-img-bg {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.ed-mentor-standing-img {
    position: absolute;
    bottom: -20px;
    right: -5px;
    height: 90px;
    width: auto;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
}

.ed-mentor-card-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--ed-blue-deep);
    background: var(--ed-blue-light);
    padding: 3px 8px;
    border-radius: 50px;
    margin-bottom: 6px;
    display: inline-block;
}

.ed-mentor-card-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--ed-text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-mentor-card-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--ed-muted);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-mentor-card-inst {
    font-size: 9.5px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ed-mentor-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.ed-mentor-card-price {
    font-size: 11px;
    font-weight: 900;
    color: var(--ed-blue-deep);
}

.ed-mentor-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #f59e0b;
}

/* ── UniLife Footer Banner ── */
.ed-unilife-banner {
    background: linear-gradient(135deg, var(--ed-blue) 0%, var(--ed-blue-deep) 100%);
    margin: 16px 16px 0;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(121, 172, 242, 0.25);
    cursor: pointer;
    transition: transform 0.2s;
}

.ed-unilife-banner:hover {
    transform: translateY(-2px);
}

.ed-unilife-logo-wrap {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ed-unilife-text h4 {
    font-size: 13px;
    font-weight: 900;
    color: white;
    margin-bottom: 1px;
}

.ed-unilife-text p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Screenshot protection ── */
.ed-blur-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 32px;
}

.ed-blur-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.ed-blur-overlay h2 {
    font-size: 18px;
    font-weight: 900;
    color: var(--ed-text);
    margin-bottom: 8px;
}

.ed-blur-overlay p {
    font-size: 13px;
    color: var(--ed-muted);
    line-height: 1.6;
}

/* ── Download progress overlay ── */
.ed-dl-progress {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ed-dl-progress.show {
    display: flex;
}

.ed-dl-box {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    width: 260px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ed-dl-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--ed-blue-light);
    border-top-color: var(--ed-blue-deep);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: edSpin 0.8s linear infinite;
}

@keyframes edSpin {
    to {
        transform: rotate(360deg);
    }
}

.ed-dl-box h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--ed-text);
    margin-bottom: 6px;
}

.ed-dl-box p {
    font-size: 12px;
    color: var(--ed-muted);
}

/* ── Body spacing ── */
.ed-body {
    padding-bottom: 130px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    min-height: 100vh;
}

/* ── Animations ── */
@keyframes edSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ed-info-card,
.ed-preview-section,
.ed-urgency-banner {
    animation: edSlideIn 0.4s ease both;
}

.ed-info-card {
    animation-delay: 0.05s;
}
.ed-preview-section {
    animation-delay: 0.1s;
}

/* Section Cards */
.ed-section-card {
    background: white;
    border-left: 4px solid var(--ed-blue);
    border-radius: 0;
    padding: 22px 20px;
    border-bottom: 1px solid var(--ed-border);
    position: relative;
    overflow: hidden;
}
.ed-section-card:first-child { border-radius: 20px 20px 0 0; }
.ed-section-card:last-child { border-radius: 0 0 20px 20px; border-bottom: none; }
.ed-section-card:only-child { border-radius: 20px; }
.ed-section-card.ed-section-locked { opacity: 0.85; }
.ed-section-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--ed-border);
}
.ed-section-icon-wrap {
    width: 44px; height: 44px; background: var(--ed-blue-light);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
    border: 1.5px solid rgba(121,172,242,0.3);
}
.ed-section-emoji { font-size: 22px; line-height: 1; }
.ed-section-number { font-size: 10px; font-weight: 700; color: var(--ed-blue-deep); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.ed-section-title { font-size: 15px; font-weight: 800; color: var(--ed-text); margin: 0; line-height: 1.3; }
.ed-section-body { font-size: 14px; line-height: 1.8; color: #374151; text-align: justify; -webkit-user-select:none; user-select:none; white-space:pre-wrap; word-break:break-word; }
.ed-section-body.blurred { filter: blur(4px); pointer-events: none; }

/* Quick Review */
.ed-quick-review-section { margin: 20px 16px 0; display: block; clear: both; }
.ed-quick-review-card { background: #ffffff; border-radius: 20px; border: 1.5px solid var(--ed-border); overflow: hidden; box-shadow: 0 4px 20px rgba(121,172,242,0.08); display: block; position: relative; }
.ed-qr-header { 
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; 
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center; 
    gap: 10px; 
    background: #79ACF2;
    background: -webkit-linear-gradient(135deg, #79ACF2, #3B7DD8);
    background: linear-gradient(135deg, #79ACF2, #3B7DD8); 
    padding: 14px 16px; 
    position: relative;
    z-index: 1;
}
.ed-qr-avatar { width: 38px; height: 38px; background: rgba(255,255,255,0.2); border-radius: 50%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.3); }
.ed-qr-label { font-size: 13px; font-weight: 800; color: #ffffff !important; line-height: 1.2; display: block; margin: 0; }
.ed-qr-sub { font-size: 10px; color: rgba(255,255,255,0.85) !important; font-weight: 500; margin-top: 2px; display: block; }
.ed-qr-badge { margin-left: auto; background: rgba(255,255,255,0.22); color: #ffffff !important; font-size: 9px; font-weight: 800; padding: 4px 10px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.35); letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; }
.ed-qr-text { font-size: 13.5px; line-height: 1.75; color: #374151; padding: 18px 16px; margin: 0; border-bottom: 1px solid #e8f0fb; display: block; }
.ed-qr-meta { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: #ffffff; }
.ed-qr-tag { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 4px; background: #EBF3FE; color: #3B7DD8; font-size: 10px; font-weight: 700; padding: 5px 12px; border-radius: 50px; border: 1px solid rgba(121,172,242,0.25); white-space: nowrap; }
