/* ============================================================
   ROOT-DECOR.CSS  (نسخة مصححة - إصلاح مشكلة البطء)
   ديكور الزليج المغربي متعدد الألوان (multicolore) الخاص بالصفحات
   الجذرية الثلاث: index.html, subject.html, subjects.html.

   ====== التعديلات ديال هاد النسخة ======
   1) .moroccan-star: تحيدت خاصية animation (starSpin) من هنا،
      حيت GSAP كيدير gsap.to('.moroccan-star', {rotation:360,...})
      بلا توقف فنفس الصفحات. كانو جوج محركات (CSS + GSAP) كيخدمو
      فنفس الوقت على نفس transform ديال نفس العنصر = تنافس وحمل
      مضاعف بلا فائدة. دابا GSAP وحدو اللي كيدير rotation.

   2) .moroccan-shadow: shadowPulse كان كيحرك transform:scale()
      على عنصر فيه filter:blur(80px) بحجم 600px - تركيبة غالية بزاف
      حيت المتصفح خاصو يعاود يحسب الـ blur من جديد فكل frame ملي
      كيتبدل الحجم. دابا كيحرك غير opacity، والـ transform ديال
      التوسيط (translate) بقا ثابت برا الأنيميشن.

   3) زدت تعطيل كامل للأنيميشن فالموبايل الصغير (بحال بالضبط اللي
      كيدار مع .glow-orb فصفحات المحتوى)، باش الهاتف ما يخلصش
      ثمن blur متحرك بلا داعي.
   ============================================================ */

.overlay-protection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: transparent;
    pointer-events: all;
    cursor: default;
    opacity: 0;
    display: none;
}
.overlay-protection.active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: all !important;
}
.overlay-protection.fade-out {
    transition: opacity 0.5s ease;
    opacity: 0 !important;
    pointer-events: none !important;
}
.overlay-protection.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.moroccan-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
}
.moroccan-bg svg { width: 100%; height: 100%; }

.moroccan-shadow {
    position: fixed;
    top: 50%;
    left: 50%;
    /* التوسيط ثابت وبرا الأنيميشن - ماكيتحسبش من جديد كل frame */
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at center, #4ECDC4 0%, #FF6B6B 40%, #F4D03F 70%, transparent 100%);
    border-radius: 50%;
    filter: blur(80px);
    will-change: opacity;
    animation: shadowPulse 8s ease-in-out infinite;
}
@keyframes shadowPulse {
    /* كنحركو غير opacity، ماشي transform:scale - باش نتفاداو
       إعادة حساب الـ blur فكل frame */
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.15; }
}

.moroccan-star {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    font-size: 120px;
    color: #4ECDC4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    /* ملاحظة: ماكاينش animation هنا. GSAP هو اللي كيدور rotation
       بلا توقف (شوف gsap.to('.moroccan-star', {rotation:360,...})
       فالصفحة). خاصك ماتزيدش animation:starSpin هنا مرة أخرى،
       حيت غادي يرجع نفس التعارض. */
}

.geo-pattern {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    color:var(--gold-text);
    font-size: 20px;
    letter-spacing: 20px;
}
.geo-pattern-1 { top: 10%; left: 5%; transform: rotate(-15deg); }
.geo-pattern-2 { bottom: 10%; right: 5%; transform: rotate(15deg); }
.geo-pattern-3 { top: 50%; left: 2%; transform: rotate(90deg); }
.geo-pattern-4 { top: 50%; right: 2%; transform: rotate(-90deg); }

@media (max-width: 768px) {
    .moroccan-shadow { width: 300px; height: 300px; }
    .moroccan-star { font-size: 60px; }
    .geo-pattern { font-size: 14px; letter-spacing: 12px; }
}
@media (max-width: 480px) {
    .moroccan-shadow {
        width: 200px;
        height: 200px;
        /* تعطيل كامل ديال pulse فالهواتف الصغيرة - بحال .glow-orb
           فصفحات المحتوى */
        animation: none;
        opacity: 0.08 !important;
    }
    .moroccan-star { font-size: 40px; }
    .geo-pattern { font-size: 10px; letter-spacing: 8px; }
}



/* ============================================================
   أنماط خاصة بالصفحات الجذرية الثلاث (كانت مضمّنة inline سابقاً
   داخل <style> بكل صفحة على حدة، دابا مجمّعة هنا فملف واحد
   خارجي باش يستافد من الكاش بين index/subject/subjects)
   ============================================================ */

/* ====== حماية الصور فقط (مشتركة بين الصفحات الجذرية الثلاث) ====== */
img {
    -webkit-user-drag: none !important;
    -moz-user-drag: none !important;
    -ms-user-drag: none !important;
    user-drag: none !important;
}

/* ====== الصفحة الرئيسية (index.html) ====== */
        /* ====== طبقة الحماية غير المرئية ====== */
        .hero {
            position: relative;
            z-index: 1;
            text-align: center;
            padding: clamp(80px, 15vh, 120px) var(--container-padding) clamp(40px, 6vh, 60px);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
        }

        .profile-outer {
            position: relative;
            z-index: 2;
            margin-bottom: 0px;
            opacity: 0;
            transform: translateY(20px);
        }
        .profile-outer .profile-ring {
            position: absolute;
            top: -12px;
            left: -12px;
            width: 164px;
            height: 164px;
            border-radius: 50%;
            border: 2px solid transparent;
            background: linear-gradient(135deg, #4ECDC4, #F4D03F, #FF6B6B) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0.4;
            animation: ringSpin 12s linear infinite;
        }
        @keyframes ringSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .profile-outer .profile-image {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid rgba(78, 205, 196, 0.25);
            box-shadow: 0 0 50px rgba(78, 205, 196, 0.12);
            transition: all 0.4s ease;
            background: rgba(var(--overlay-rgb), 0.05);
            display: block;
            pointer-events: none !important;
            -webkit-user-drag: none !important;
            -moz-user-drag: none !important;
            -ms-user-drag: none !important;
            user-drag: none !important;
            -webkit-touch-callout: none !important;
            touch-callout: none !important;
        }

        .hero-card {
            position: relative;
            background: rgba(var(--overlay-rgb), 0.02);
            border: 1px solid rgba(78, 205, 196, 0.1);
            border-radius: 30px;
            padding: 50px 50px 50px;
            max-width: 700px;
            width: 100%;
            backdrop-filter: blur(20px);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            margin-top: 10px;
            opacity: 0;
            transform: translateY(30px);
        }

        .hero-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            opacity: 0;
            transform: translateY(20px);
        }

        .hero-logo .name-center {
            font-family: 'Playfair Display', serif;
            font-size: 52px;
            font-weight: 900;
            background: linear-gradient(135deg, #4ECDC4 0%, #66FCF1 25%, #F4D03F 50%, #FF6B6B 75%, #A8FF78 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 300% 300%;
            animation: gradientShift 6s ease-in-out infinite;
            letter-spacing: 14px;
            padding: 0 8px;
            text-transform: uppercase;
            filter: drop-shadow(0 0 40px rgba(78, 205, 196, 0.15));
            position: relative;
        }
        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .hero-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(69, 162, 158, 0.1);
            border: 1px solid rgba(69, 162, 158, 0.2);
            color: #66FCF1;
            padding: 4px 16px;
            border-radius: 50px;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 14px;
            opacity: 0;
            transform: translateY(20px);
        }
        .hero-label .dot {
            width: 6px;
            height: 6px;
            background: #06D6A0;
            border-radius: 50%;
            animation: dotPulse 2s ease-in-out infinite;
        }
        @keyframes dotPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.8); }
        }

        .hero h1 {
            font-size: clamp(28px, 5vw, 40px);
            font-weight: 900;
            line-height: 1.2;
            margin-bottom: 10px;
            opacity: 0;
            transform: translateY(20px);
        }
        .hero h1 .gradient-text {
            background: linear-gradient(135deg, #4ECDC4, #66FCF1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero .description {
            color: var(--text-muted);
            font-size: clamp(12px, 1.5vw, 15px);
            max-width: 500px;
            margin: 0 auto 16px;
            line-height: 1.8;
            opacity: 0;
            transform: translateY(20px);
        }

        .hero-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
            opacity: 0;
            transform: translateY(20px);
        }

        @media (max-width: 768px) {
            .hero-card { padding: 30px 20px 40px; }
            .hero-logo .name-center { font-size: 32px; letter-spacing: 8px; }
            .profile-outer .profile-image { width: 100px; height: 100px; }
            .profile-outer .profile-ring { width: 124px; height: 124px; top: -12px; left: -12px; }
            .hero-card { margin-top: 15px; }
        }
        @media (max-width: 480px) {
            .hero-card { padding: 20px 12px 30px; }
            .hero-logo .name-center { font-size: 22px; letter-spacing: 4px; }
            .profile-outer .profile-image { width: 80px; height: 80px; }
            .profile-outer .profile-ring { width: 104px; height: 104px; top: -12px; left: -12px; }
            .hero { padding: 70px 12px 30px; }
            .hero-card { margin-top: 10px; }
        }

        /* ====== تحسينات ARIA ====== */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }
        a:focus-visible, button:focus-visible {
            outline: 2px solid #4ECDC4;
            outline-offset: 2px;
        }
        .btn:focus-visible {
            outline: 2px solid #4ECDC4;
            outline-offset: 2px;
        }

/* ====== صفحة المادة (subject.html) ====== */
        /* ====== طبقة الحماية غير المرئية ====== */
        .hero-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2;
            pointer-events: none;
            opacity: 0;
        }
        .hero-wrapper h1 {
            font-size: clamp(40px, 7vw, 64px);
            font-weight: 900;
            line-height: 1.2;
            text-align: center;
            padding: 0 20px;
            opacity: 0;
            transform: scale(0.8);
        }
        .hero-wrapper h1 .gradient-text {
            background: linear-gradient(135deg, #4ECDC4, #66FCF1, #F4D03F, #FF6B6B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 300% 300%;
            animation: gradientShift 4s ease-in-out infinite;
        }
        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        .hero-wrapper .subtitle {
            color: var(--text-muted);
            font-size: clamp(16px, 2vw, 22px);
            max-width: 550px;
            margin: 10px auto 0;
            line-height: 1.8;
            text-align: center;
            opacity: 0;
            transform: translateY(30px);
        }

        .content-wrapper {
            position: relative;
            z-index: 1;
            max-width: 1000px;
            margin: 0 auto;
            padding: 30px 20px 60px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            opacity: 0;
        }

        .tabs-wrapper {
            display: flex;
            gap: 8px;
            margin-bottom: 30px;
            flex-wrap: wrap;
            justify-content: center;
            opacity: 0;
            transform: translateY(30px);
            position: sticky;
            top: 70px;
            z-index: 10;
            background: rgba(var(--bg-primary-rgb), 0.7);
            backdrop-filter: blur(20px);
            padding: 10px 15px;
            border-radius: 16px;
            border: 1px solid rgba(var(--overlay-rgb), 0.04);
        }

        .tab-btn {
            padding: 10px 22px;
            border: 1px solid rgba(var(--overlay-rgb), 0.06);
            border-radius: 14px;
            background: rgba(var(--overlay-rgb), 0.03);
            backdrop-filter: blur(10px);
            color: var(--text-secondary);
            cursor: pointer;
            font-family: var(--font-main);
            font-weight: 600;
            font-size: 14px;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
            user-select: none;
        }
        .tab-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 14px;
            padding: 1px;
            background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), transparent 40%, transparent 60%, rgba(255, 107, 107, 0.2));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        .tab-btn:hover::before { opacity: 1; }
        .tab-btn:hover {
            border-color: rgba(78, 205, 196, 0.15);
            transform: translateY(-2px);
            color: var(--text-primary);
        }
        .tab-btn:active { transform: scale(0.95); }
        .tab-btn.active {
            background: rgba(78, 205, 196, 0.08);
            border-color: rgba(78, 205, 196, 0.15);
            color: #4ECDC4;
        }
        .tab-btn i { font-size: 14px; }
        .tab-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .cards-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            width: 100%;
            min-height: 200px;
        }

        .command-card {
            background: rgba(var(--overlay-rgb), 0.02);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(var(--overlay-rgb), 0.04);
            border-radius: 18px;
            padding: 18px 22px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(40px) scale(0.95);
        }
        .command-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(78, 205, 196, 0.03), rgba(255, 107, 107, 0.03));
            border-radius: 18px;
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        .command-card:hover::before { opacity: 1; }
        .command-card:hover {
            transform: translateY(-4px) scale(1.01);
            border-color: rgba(78, 205, 196, 0.1);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }
        .command-card:active { transform: scale(0.97); }

        .command-card .command-title {
            font-size: 17px;
            font-weight: 700;
            margin-bottom: 4px;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .command-card .command-title .num {
            color: #4ECDC4;
            font-weight: 900;
            font-size: 14px;
            background: rgba(78, 205, 196, 0.08);
            padding: 2px 10px;
            border-radius: 8px;
        }
        .command-card p {
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.6;
            position: relative;
            z-index: 1;
            opacity: 0.8;
        }
        .command-card .badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            background: rgba(78, 205, 196, 0.06);
            border: 1px solid rgba(78, 205, 196, 0.06);
            margin-top: 8px;
            position: relative;
            z-index: 1;
        }

        .no-data {
            text-align: center;
            padding: 40px;
            color: var(--text-muted);
            font-size: 16px;
        }

        @media (max-width: 768px) {
            .hero-wrapper h1 { font-size: 32px; }
            .hero-wrapper .subtitle { font-size: 14px; }
            .tabs-wrapper { gap: 6px; padding: 8px 10px; top: 60px; }
            .tab-btn { padding: 8px 14px; font-size: 12px; }
            .command-card { padding: 14px 16px; }
            .command-card .command-title { font-size: 15px; }
        }
        @media (max-width: 480px) {
            .hero-wrapper h1 { font-size: 24px; }
            .hero-wrapper .subtitle { font-size: 13px; }
            .tabs-wrapper { padding: 6px 8px; top: 50px; }
            .tab-btn { padding: 6px 10px; font-size: 11px; }
            .tab-btn i { font-size: 11px; }
            .command-card { padding: 12px 12px; }
            .command-card .command-title { font-size: 13px; }
            .command-card p { font-size: 12px; }
        }
        .semester-divider {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 22px 0 14px;
        }
        .semester-divider:first-child { margin-top: 4px; }
        .semester-divider-line {
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
        }
        .semester-divider-label {
            display: flex;
            align-items: center;
            gap: 7px;
            white-space: nowrap;
            font-family: var(--font-main);
            font-weight: 700;
            font-size: 13px;
            color: var(--accent);
            background: var(--bg-card);
            border: 1px solid var(--accent);
            padding: 6px 16px;
            border-radius: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        }
        @media (max-width: 480px) {
            .semester-divider-label { font-size: 12px; padding: 5px 12px; }
        }

/* ====== صفحة المواد (subjects.html) ====== */
        /* ====== طبقة الحماية غير المرئية ====== */
        .hero-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2;
            pointer-events: none;
            opacity: 0;
        }

        .hero-wrapper h1 {
            font-size: clamp(36px, 6vw, 56px);
            font-weight: 900;
            line-height: 1.2;
            text-align: center;
            padding: 0 20px;
            opacity: 0;
            transform: scale(0.8);
        }
        .hero-wrapper h1 .gradient-text {
            background: linear-gradient(135deg, #4ECDC4, #66FCF1, #F4D03F, #FF6B6B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 300% 300%;
            animation: gradientShift 4s ease-in-out infinite;
        }
        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .hero-wrapper .subtitle {
            color: var(--text-muted);
            font-size: clamp(16px, 2vw, 22px);
            max-width: 550px;
            margin: 10px auto 0;
            line-height: 1.8;
            text-align: center;
            opacity: 0;
            transform: translateY(30px);
        }

        .cards-wrapper {
            position: relative;
            z-index: 1;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px 50px;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
            gap: clamp(20px, 2.5vw, 30px);
            width: 100%;
            padding: 30px 0;
        }

        .card {
            background: rgba(var(--overlay-rgb), 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(var(--overlay-rgb), 0.06);
            border-radius: 24px;
            padding: clamp(24px, 3vw, 36px) clamp(18px, 2vw, 28px);
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            text-align: center;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(60px) scale(0.9);
        }

        .card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 30% 30%, rgba(78, 205, 196, 0.05), transparent 60%),
                        radial-gradient(circle at 70% 70%, rgba(255, 107, 107, 0.05), transparent 60%);
            border-radius: 24px;
            opacity: 0;
            transition: opacity 0.6s ease;
        }
        .card:hover::before { opacity: 1; }

        .card::after {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 24px;
            padding: 1px;
            background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), transparent 40%, transparent 60%, rgba(255, 107, 107, 0.2));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        .card:hover::after { opacity: 1; }

        .card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: rgba(78, 205, 196, 0.15);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
        }
        .card:active { transform: scale(0.97); }

        .card .card-icon {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 14px;
            font-size: 32px;
            transition: all 0.4s ease;
            position: relative;
            z-index: 1;
        }
        .card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }

        .card h3 {
            font-size: clamp(20px, 2.2vw, 26px);
            margin-bottom: 8px;
            font-weight: 700;
            letter-spacing: 1px;
            position: relative;
            z-index: 1;
        }
        .card p {
            color: var(--text-secondary);
            font-size: clamp(13px, 1.2vw, 15px);
            line-height: 1.7;
            margin-bottom: 14px;
            opacity: 0.8;
            position: relative;
            z-index: 1;
        }
        .card .card-badges {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }
        .card .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 16px;
            border-radius: 20px;
            font-size: clamp(11px, 1.1vw, 13px);
            font-weight: 600;
            background: rgba(var(--overlay-rgb), 0.03);
            border: 1px solid rgba(var(--overlay-rgb), 0.06);
            backdrop-filter: blur(4px);
            transition: all 0.3s ease;
        }
        .card:hover .badge { transform: translateY(-2px); }

        @media (max-width: 768px) {
            .grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
            .card { padding: 20px 16px; }
            .card .card-icon { width: 56px; height: 56px; font-size: 24px; }
        }
        @media (max-width: 480px) {
            .hero-wrapper h1 { font-size: 28px; }
            .hero-wrapper .subtitle { font-size: 14px; }
            .card { padding: 16px 12px; }
            .card .card-icon { width: 48px; height: 48px; font-size: 20px; }
            .card h3 { font-size: 18px; }
        }
