:root {
    --ivory: #fffaf7;
    --champagne: #f8e6d6;
    --blush: #f7d7e6;
    --rose: #eaa7bf;
    --rose-deep: #d785a5;
    --plum: #4c2541;
    --plum-deep: #2d1729;
    --gold: #d9b67a;
    --gold-soft: #f3dbc0;
    --text: #412833;
    --muted: #7d5b67;
    --card: rgba(255, 255, 255, 0.52);
    --card-strong: rgba(255, 255, 255, 0.72);
    --shadow: rgba(90, 45, 72, 0.18);
    --dark: #2a1624;
    --line: rgba(255, 255, 255, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(244, 200, 173, 0.42), transparent 18%),
        radial-gradient(circle at bottom left, rgba(234, 167, 191, 0.38), transparent 22%),
        linear-gradient(135deg, #fffaf8 0%, #fdf2f8 24%, #f8edf2 56%, #f7eadd 100%);
    color: var(--text);
    min-height: 100vh;
    direction: rtl;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 40px 20px;
    isolation: isolate;
    background-image:
        linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.08));
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.6;
    animation: float 10s ease-in-out infinite alternate;
    z-index: 0;
}

.orb-one {
    width: 300px;
    height: 300px;
    top: -90px;
    right: -40px;
    background: rgba(247, 214, 180, 0.52);
}

.orb-two {
    width: 360px;
    height: 360px;
    bottom: -120px;
    left: -70px;
    background: rgba(234, 167, 191, 0.28);
    animation-delay: 1.5s;
}

.orb-three {
    width: 220px;
    height: 220px;
    top: 38%;
    left: 8%;
    background: rgba(207, 170, 121, 0.18);
    animation-delay: 3s;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 930px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

/* Welcome */

.welcome {
    text-align: center;
    margin-bottom: 42px;
    animation: fadeUp 0.8s ease both;
}

.top-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,230,214,0.8));
    border: 1px solid rgba(217, 182, 122, 0.35);
    box-shadow: 0 14px 28px rgba(90, 45, 72, 0.08);
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.2px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
}

.icon-wrap {
    width: 122px;
    height: 122px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 38px;
    background: linear-gradient(135deg, rgba(255, 240, 244, 0.95), rgba(245, 225, 179, 0.9));
    box-shadow: 0 20px 40px rgba(90, 45, 72, 0.12), inset 0 2px 0 rgba(255,255,255,0.85);
    position: relative;
    border: 1px solid rgba(217, 182, 122, 0.34);
}

.icon-wrap::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 44px;
    border: 1px solid rgba(255,255,255,0.8);
    opacity: 0.8;
}

.icon {
    font-size: 62px;
    filter: drop-shadow(0 8px 14px rgba(244, 114, 182, 0.15));
    animation: pulse 3s ease-in-out infinite;
}

.welcome h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 10px;
    color: var(--dark);
    text-shadow: 0 3px 14px rgba(124, 81, 95, 0.08);
    letter-spacing: 0.2px;
}

.welcome p {
    color: var(--muted);
    font-size: 17px;
    font-weight: 500;
}

/* PDF Cards */

.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,245,248,0.7));
    backdrop-filter: blur(12px);
    padding: 22px 22px 22px 18px;
    border-radius: 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 18px 40px rgba(72, 41, 58, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(217, 182, 122, 0.3);
    transition: transform 0.28s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    animation: fadeUp 0.9s ease both;
}

.pdf-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.9) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.9s ease;
}

.pdf-card:hover::before {
    transform: translateX(120%);
}

.pdf-card:hover {
    transform: translateY(-7px) scale(1.012);
    box-shadow: 0 30px 55px rgba(88, 45, 68, 0.14);
    border-color: rgba(217, 182, 122, 0.7);
}

.pdf-icon {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff9f2, #fbe9ef);
    border-radius: 22px;
    font-size: 35px;
    box-shadow: inset 0 0 0 1px rgba(217, 182, 122, 0.2), 0 12px 26px rgba(90, 45, 72, 0.08);
}

.pdf-info {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: right;
}

.pdf-info h2 {
    font-size: 20px;
    margin-bottom: 7px;
    color: var(--dark);
}

.pdf-info span {
    font-size: 14px;
    color: var(--muted);
}

.arrow {
    position: relative;
    z-index: 1;
    font-size: 28px;
    color: #a855f7;
    transition: transform 0.25s ease;
}

.pdf-card:hover .arrow {
    transform: translateX(-5px);
}

/* PDF Viewer */

.viewer-page {
    background: linear-gradient(180deg, #19131d, #2a1d2d 30%, #221924);
}

.viewer-header {
    height: 74px;
    background: rgba(26, 18, 31, 0.74);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.viewer-header h1 {
    font-size: 18px;
    flex: 1;
    color: #fff;
    text-align: right;
}

.back-btn {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #f472b6, #a78bfa);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 12px 20px rgba(168, 85, 247, 0.22);
    transition: transform 0.2s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
}

.pdf-viewer {
    width: 100%;
    height: calc(100vh - 74px);
    background: rgba(17, 24, 39, 0.55);
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: white;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-18px) scale(1.08); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Mobile */

@media (max-width: 600px) {
    .page-shell {
        padding: 22px 14px 30px;
    }

    .container {
        padding: 20px 8px 30px;
    }

    .welcome {
        margin-bottom: 28px;
    }

    .icon-wrap {
        width: 96px;
        height: 96px;
        border-radius: 28px;
    }

    .icon {
        font-size: 46px;
    }

    .welcome h1 {
        font-size: 26px;
    }

    .welcome p {
        font-size: 15px;
    }

    .pdf-card {
        padding: 16px;
        border-radius: 20px;
        gap: 12px;
    }

    .pdf-icon {
        width: 54px;
        height: 54px;
        font-size: 27px;
        border-radius: 14px;
    }

    .pdf-info h2 {
        font-size: 17px;
    }

    .pdf-info span {
        font-size: 12px;
    }

    .arrow {
        font-size: 20px;
    }

    .viewer-header {
        height: 62px;
        padding: 0 12px;
    }

    .viewer-header h1 {
        font-size: 15px;
    }

    .back-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .pdf-viewer {
        height: calc(100vh - 62px);
    }
}