:root {
    --bg: #0b0b0c;
    --surface: #111214;
    --muted: #b8b8b8;
    --accent: #f6a623;
    --accent-2: #ffcf6a;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius: 16px;
    --container: 1200px;

    /* Animations VIP */
    --e-lux: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur: 700ms;
    --dur-long: 1400ms;
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--white);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100%, var(--container));
    margin-inline: auto;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 68px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(12, 12, 13, 0.65);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px) saturate(1.05);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.nav-inner {
    width: min(100%, var(--container));
    display: flex;
    gap: 24px;
    align-items: center;
    padding-inline: 20px;
}

.brand {
    display: flex;
    align-items: start;
    gap: 10px;
}
.brand figure{
    margin: 0px;
    padding: 0px;
}

.brand figure img{
    width: 180px;
    height: auto;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    opacity: 0.9;
}

/* زر رئيسي عام (يُستخدم في النافبار وأماكن أخرى) */
.btn-primary {
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1a1200;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(246, 166, 35, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--e-lux), box-shadow 0.4s var(--e-lux);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0 -60% 0 auto;
    width: 45%;
    transform: skewX(-18deg) translateX(-120%);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.btn-primary:hover::before {
    animation: vip-sheen 950ms var(--e-lux);
}

@keyframes vip-sheen {
    from {
        transform: skewX(-18deg) translateX(-120%);
    }
    to {
        transform: skewX(-18deg) translateX(240%);
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(246, 166, 35, 0.35);
}

/* ============ MAIN ============ */
main {
    padding-top: 80px; 
}

/* ====== VIP ALERT ====== */

.vip-alert {
    position: relative;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    display: none; /* مخفي افتراضياً */

    background: radial-gradient(circle at 0% 0%, rgba(246, 166, 35, 0.08), transparent 60%),
                rgba(8, 8, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
    color: #f4f4f4;
}

.vip-alert.vip-alert--visible {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: vip-alert-in 0.45s var(--e-lux);
}

.vip-alert-icon {
    flex: 0 0 auto;
    font-size: 16px;
    margin-top: 2px;
}

.vip-alert-text {
    flex: 1 1 auto;
}

/* ألوان حسب النوع */
.vip-alert--success {
    border-left: 3px solid #35c46b;
}

.vip-alert--error {
    border-left: 3px solid #ff5b5b;
}

.vip-alert--info {
    border-left: 3px solid var(--accent-2);
}

/* أنيميشن دخول خفيفة */
@keyframes vip-alert-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========= VIP SECTION ========= */
.vip-section {
    position: relative;
    padding: 90px 20px 120px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(246, 166, 35, 0.14), transparent 55%);
}

/* هالة ذهبية خلفية خفيفة */
.vip-glow {
    position: absolute;
    inset: -120px -40%;
    background:
        radial-gradient(circle at 10% 0%, rgba(246, 166, 35, 0.16), transparent 60%),
        radial-gradient(circle at 90% 30%, rgba(255, 207, 106, 0.11), transparent 65%);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
}

.vip-header {
    text-align: left;
    margin: 0 auto 48px auto;
}

.vip-header h1 {
    margin: 14px 0 10px;
    font-size: clamp(30px, 4vw, 38px);
    letter-spacing: 0.03em;
}

.vip-header p {
    margin: 0;
    color: #d4d4d4;
    line-height: 1.7;
}

.vip-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(12, 10, 6, 0.85);
    border: 1px solid rgba(246, 166, 35, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
    color: var(--accent-2);
}

.vip-tag i {
    font-size: 14px;
}

/* GRID */
.vip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: flex-start;
}

/* LEFT SIDE – BENEFITS */
.vip-benefits {
    padding: 26px 24px 28px;
    border-radius: calc(var(--radius) + 4px);
    background: radial-gradient(circle at 0% 0%, rgba(246, 166, 35, 0.08), transparent 55%),
        rgba(10, 10, 11, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.vip-benefits h2 {
    margin: 0 0 18px;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.vip-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vip-benefits li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.vip-benefits li i {
    margin-top: 4px;
    padding: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
        linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1d1305;
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(246, 166, 35, 0.4);
}

.vip-benefits li h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.vip-benefits li p {
    margin: 0;
    font-size: 14px;
    color: #c7c7c7;
    line-height: 1.6;
}

.vip-note {
    margin: 0;
    font-size: 13px;
    color: #d2d2d2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.vip-note i {
    color: var(--accent-2);
}

.vip-form-card {
    padding: 26px 24px 28px;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(145deg, rgba(12, 12, 13, 0.98), rgba(18, 15, 10, 0.98));
    border: 1px solid rgba(246, 166, 35, 0.35);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.vip-form-card::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.vip-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vip-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.vip-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vip-field label {
    font-size: 13px;
    color: #f3f3f3;
}

.vip-field label span {
    color: var(--accent-2);
}

.vip-field input,
.vip-field select,
.vip-field textarea {
    border-radius: 10px;
    border: 1px solid #2c2c32;
    background: rgba(8, 8, 10, 0.9);
    color: var(--white);
    padding: 9px 11px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s var(--e-lux), box-shadow 0.25s var(--e-lux), background 0.25s var(--e-lux);
}

.vip-field textarea {
    resize: vertical;
    min-height: 90px;
}

.vip-field input::placeholder,
.vip-field textarea::placeholder {
    color: #76767b;
}

.vip-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--accent-2) 50%),
        linear-gradient(135deg, var(--accent-2) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.vip-field input:focus,
.vip-field select:focus,
.vip-field textarea:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 1px rgba(246, 166, 35, 0.45), 0 0 16px rgba(246, 166, 35, 0.25);
    background: #111118;
}

.vip-consent {
    margin-top: 6px;
}

.vip-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #d8d8d8;
    cursor: pointer;
    user-select: none;
}

.vip-checkbox input {
    display: none;
}

.vip-checkbox span {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid #44444a;
    background: #09090b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7);
    position: relative;
    transition: border-color 0.25s var(--e-lux), background 0.25s var(--e-lux), box-shadow 0.25s var(--e-lux);
}

.vip-checkbox span::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s var(--e-lux), transform 0.25s var(--e-lux);
}

.vip-checkbox input:checked + span {
    border-color: var(--accent-2);
    box-shadow: 0 0 10px rgba(246, 166, 35, 0.4);
}

.vip-checkbox input:checked + span::after {
    opacity: 1;
    transform: scale(1);
}

/* BUTTON */
.vip-submit {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    align-self: flex-start;
}

.vip-submit i {
    font-size: 15px;
}

.vip-legal {
    margin: 8px 0 0;
    font-size: 11px;
    color: #a8a8aa;
    line-height: 1.5;
}

/* ========= RESPONSIVE VIP ========= */
@media (max-width: 960px) {
    .vip-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .vip-benefits,
    .vip-form-card {
        padding: 22px 18px 24px;
    }
}

@media (max-width: 720px) {
    .vip-section {
        padding-inline: 14px;
    }
    .vip-form-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .vip-header {
        text-align: left;
        margin-bottom: 34px;
    }
}

@media (max-width: 480px) {
    .vip-header h1 {
        font-size: 26px;
    }
    .vip-tag {
        font-size: 12px;
    }
}

.vip-avatar-field {
    /* تبقى vip-field عادي، هذا فقط للتخصيص لو احتجناه لاحقًا */
}

.vip-avatar-upload {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* نخفي input الأصلي، ونستعمل الإطار كزر */
.vip-avatar-field input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* إطار الأفاتار – دائرة حقيقية */
.vip-avatar-frame {
    position: relative;
    width: 120px;
    aspect-ratio: 1 / 1;          /* مربع ثابت */
    flex: 0 0 auto;               /* لا يتمدّد مع الـ flex */

    /* نفس ستايل الـ input تمامًا */
    border-radius: 50%;          /* مثل .vip-field input */
    border: 1px solid #2c2c32;
    background: rgba(8, 8, 10, 0.9);

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;

    box-shadow: none;             /* نلغي الشادو الثقيل */
    transition:
        border-color 0.25s var(--e-lux),
        box-shadow 0.25s var(--e-lux),
        background 0.25s var(--e-lux);
}

.vip-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit; 
}

.vip-avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f5f5f5;
    background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.2), transparent 55%),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
    opacity: 0;
    transition: opacity 0.35s var(--e-lux), background 0.35s var(--e-lux);
    text-align: center;
}

.vip-avatar-overlay i {
    font-size: 18px;
    color: var(--accent-2);
}

/* Hover */
.vip-avatar-frame:hover {
    border-color: var(--accent-2);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.85),
        0 0 18px rgba(246, 166, 35, 0.45);
}

.vip-avatar-frame:hover .vip-avatar-overlay {
    opacity: 1;
}

/* نص بسيط بجانب الأفاتار (يمكن استعماله لاحقًا) */
.vip-avatar-upload::after {
    content: "Photo de profil recommandée : format carré, visage centré.";
    font-size: 11px;
    color: #a8a8aa;
    max-width: 260px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .vip-avatar-upload {
        flex-direction: row;
        align-items: center;
    }
}
/* ============ FOOTER ============ */
footer {
    margin-top: 70px;
    background: #0a0a0b;
    border-top: 1px solid #1a1b1f;
}

.footer-top {
    padding: 48px 0;
}

.fgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.fcol {
    flex: 1 1 220px;
    min-width: 220px;
}

.fcol:first-child {
    flex: 2 1 360px;
    min-width: 360px;
}

.fcol h4 {
    margin: 0 0 12px;
    color: var(--accent);
}

.fcol a {
    display: block;
    color: #d6d6d6;
    opacity: 0.85;
    margin: 8px 0;
    font-size: 14px;
}

.newsletter {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.newsletter input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2a2b31;
    background: #121316;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1a1b1f;
    padding: 16px 0;
    color: #9a9a9a;
    font-size: 14px;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity var(--dur) var(--e-lux),
        transform var(--dur) var(--e-lux);
    will-change: opacity, transform;
}

.reveal[data-anim="fade-up"] {
    transform: translateY(24px);
}

.reveal[data-anim="fade-right"] {
    transform: translateX(-24px);
}

.reveal[data-anim="scale-in"] {
    transform: scale(0.96);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* Focus visible */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(246, 166, 35, 0.8);
    outline-offset: 2px;
    border-radius: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    main {
        margin: 0 10px;
    }
    footer {
        margin: 0 10px;
    }
}

@media (max-width: 720px) {
    .fgrid {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 20px;
    }
    .fcol:first-child {
        order: 0;
        flex: 0 0 100%;
        min-width: 0;
    }
    .fcol:not(:first-child) {
        order: 1;
        flex: 1 1 calc((100% - 40px) / 3);
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .nav-links {
        display: none;
    }
    .brand span {
        font-size: 18px;
    }
}
