@font-face {
    font-family: 'Almarai';
    src: url('/assets/fonts/Almarai-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('/assets/fonts/Almarai-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('/assets/fonts/Almarai-800.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    src: url('/assets/fonts/Amiri-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    src: url('/assets/fonts/Amiri-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aref Ruqaa';
    src: url('/assets/fonts/ArefRuqaa-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aref Ruqaa';
    src: url('/assets/fonts/ArefRuqaa-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/assets/fonts/Cairo-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/assets/fonts/Cairo-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/assets/fonts/Cairo-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/assets/fonts/Cairo-800.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Changa';
    src: url('/assets/fonts/Changa-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Changa';
    src: url('/assets/fonts/Changa-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Changa';
    src: url('/assets/fonts/Changa-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Changa';
    src: url('/assets/fonts/Changa-800.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'El Messiri';
    src: url('/assets/fonts/ElMessiri-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'El Messiri';
    src: url('/assets/fonts/ElMessiri-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'El Messiri';
    src: url('/assets/fonts/ElMessiri-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'El Messiri';
    src: url('/assets/fonts/ElMessiri-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Markazi Text';
    src: url('/assets/fonts/MarkaziText-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Markazi Text';
    src: url('/assets/fonts/MarkaziText-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Markazi Text';
    src: url('/assets/fonts/MarkaziText-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Markazi Text';
    src: url('/assets/fonts/MarkaziText-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('/assets/fonts/NotoKufiArabic-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('/assets/fonts/NotoKufiArabic-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('/assets/fonts/NotoKufiArabic-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('/assets/fonts/NotoKufiArabic-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Reem Kufi';
    src: url('/assets/fonts/ReemKufi-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Reem Kufi';
    src: url('/assets/fonts/ReemKufi-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Reem Kufi';
    src: url('/assets/fonts/ReemKufi-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Reem Kufi';
    src: url('/assets/fonts/ReemKufi-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/Tajawal-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/Tajawal-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/Tajawal-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/Tajawal-800.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Diwan';
    src:
        url('/assets/fonts/custom/Diwan.woff2') format('woff2'),
        url('/assets/fonts/custom/Diwan.woff') format('woff'),
        url('/assets/fonts/custom/Diwan.ttf') format('truetype'),
        url('/assets/fonts/custom/Diwan.otf') format('opentype'),
        local('Diwan Kufi'),
        local('Diwan Kufi Regular'),
        local('Diwan');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Doran';
    src:
        url('/assets/fonts/custom/Doran.woff2') format('woff2'),
        url('/assets/fonts/custom/Doran.woff') format('woff'),
        url('/assets/fonts/custom/Doran.ttf') format('truetype'),
        url('/assets/fonts/custom/Doran.otf') format('opentype'),
        local('Doran Arabic'),
        local('Doran'),
        local('Doran Regular');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

body {
    font-family: 'Cairo', sans-serif;
}

.print-shell {
    min-height: 100vh;
}

.card-shadow {
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.card-preview-shell {
    min-height: 760px;
}

.card-preview-stage {
    min-height: 675px;
}

.card-preview-head {
    min-height: 52px;
}

.logo-hero {
    position: relative;
    display: flex;
    width: min(220px, 52vw);
    height: min(220px, 52vw);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.92) 45%, rgba(226, 232, 240, 0.92) 100%);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logo-hero::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.45));
}

.logo-hero__image {
    position: relative;
    z-index: 1;
    width: 76%;
    height: 76%;
    object-fit: contain;
    filter:
        drop-shadow(0 14px 24px rgba(15, 23, 42, 0.12))
        drop-shadow(0 0 18px rgba(16, 185, 129, 0.14));
}

.logo-hero__shine {
    position: absolute;
    top: -30%;
    z-index: 2;
    width: 46%;
    height: 160%;
    transform: rotate(18deg);
    will-change: transform, opacity;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
    opacity: 0.9;
    animation: logo-shine-sweep 3.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logo-shine-sweep {
    0% {
        transform: translate3d(-240%, 0, 0) rotate(18deg);
        opacity: 0;
    }

    18% {
        opacity: 0.95;
    }

    55% {
        transform: translate3d(260%, 0, 0) rotate(18deg);
        opacity: 0.75;
    }

    100% {
        transform: translate3d(260%, 0, 0) rotate(18deg);
        opacity: 0;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    body {
        background: #fff !important;
    }

    .no-print {
        display: none !important;
    }

    .print-shell {
        min-height: auto !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .print-area {
        width: 100vw !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .print-card {
        width: 210mm !important;
        height: 148mm !important;
        max-width: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }
}
