
/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #f3f5fb;
    min-height: 100vh;
    padding: 18px 12px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app {
    width: 100%;
    max-width: 500px;
    padding: 0;
    background: #fcd12c;
    border-radius: 42px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.10), 0 5px 12px rgba(0,0,0,.04);
    position: relative;
}

 
.top {
    background: #fcd12c;
    position: relative;
    overflow: hidden;
    padding: 26px 20px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;

}

.top::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: #fcd12c;
    border-radius: 50%;
    top: -200px;
    right: -180px;
    filter: blur(10px);
    z-index: 0;

}

.top::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: #fcd12c;
    border-radius: 50%;
    bottom: -220px;
    left: -200px;
    filter: blur(18px);
    z-index: 0;

}

.logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 25px rgba(0,0,0,.12));
}


.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 50px;
    background: rgba(255,255,240,.6);
    border: 1px solid rgba(0,0,0,.08);
    color: #b47c00;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.hero h1 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.25;
    color: #1a2c3e;
    margin-bottom: 10px;
    text-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.hero p {
    font-size: .95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 50px;
    background: rgba(255, 245, 220, 0.8);
    border: 1px solid rgba(197, 155, 54, 0.3);
    backdrop-filter: blur(4px);
    color: #8b5e1f;
    font-size: .82rem;
    font-weight: 800;
}

 
.imgbar {
    display: block;
    width: 100%;
    margin: -115px 0 -110px 0;
    position: relative;

    z-index: 8;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

 
.imgbar:before {
    content: "🎁 هدية العشر سنوات 🎁";
    display: block;
    text-align: center;
    background: linear-gradient(115deg, #c59b36, #e7bc6b);
    color: #281e0a;
    font-weight: 900;
    font-size: 0.9rem;
    padding: 12px 10px;
    letter-spacing: 1px;
    border-radius: 30px;
    width: 90%;
    margin: 0 auto;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #ffdfa5;
}
 
.content {
    padding: 24px 18px 30px;


}

.group {
    margin-bottom: 16px;
 
}

.label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #1d293f;
}

.label i {
    width: 18px;
    color: #f5b042;
}

.input {
    width: 100%;
    height: 58px;
    border: none;
    background: #f5f7fc;
    border-radius: 22px;
    padding: 0 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1d293f;
    outline: none;
    transition: .2s;
    border: 2px solid transparent;
}

.input:focus {
    background: #ffffff;
    border-color: #d2ab4d;
    box-shadow: 0 0 0 5px rgba(197,155,54,.12);
}

.row {
    display: flex;
    gap: 12px;
}

.row .group {
    flex: 1;
}

select.input {
    appearance: none;
    cursor: pointer;
}

.checks {
   
    border-radius: 28px;
    padding: 10px;
    margin-top: 12px;
    border: 1px solid #edf1f7;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.check:last-child {
    margin-bottom: 0;
}

.check input {
    min-width: 20px;
    height: 20px;
    accent-color: #c59b36;
    margin-top: 3px;
}

.check span {
    font-size: .82rem;
    line-height: 1.7;
    font-weight: 600;
    color: #425066;
}

.link {
    background: none;
    border: none;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 800;
    color: #bd0d11;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 4px;
}

.send {
    width: 100%;
    height: 62px;
    border: none;
    border-radius: 26px;
    margin-top: 22px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
 
    color: #000;
    letter-spacing: .5px;
    transition: .25s;
    box-shadow: 0 18px 30px rgba(17,24,39,.18), inset 0 1px 0 rgba(255,255,255,.08);
}

.send:hover {
    transform: translateY(-2px);
}

.send:active {
    transform: scale(.98);
}

.note {
    margin-bottom: 15px;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    color: #7b8798;
    background: #fef7e0;
    padding: 10px;
    border-radius: 38px;    
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
}

/* ----- MODAL ----- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
    backdrop-filter: blur(5px);
}

.modal-box {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 34px;
    overflow: hidden;
    animation: up .2s ease;
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-head {
    padding: 20px;
    background: #fcd12c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-head h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.close {
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.modal-body {
    padding: 22px;
    max-height: 60vh;
    overflow: auto;
    font-size: .86rem;
    line-height: 1.9;
    color: #344054;
}

.modal-body h4 {
    margin-bottom: 10px;
    color: #b78519;
}

.modal-body ul {
    padding-right: 20px;
}

.done {
    width: calc(100% - 40px);
    height: 52px;
    margin: 0 auto 20px;
    display: block;
    border: none;
    border-radius: 20px;
    background: #111827;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

/* ----- TOAST MESSAGES ----- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    padding: 14px 26px;
    background: red;
    border-radius: 60px;
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    text-align: center;
    z-index: 9999;
    animation: fade .2s ease;
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ----- LANGUAGE SWITCH BUTTON (TOP LEFT) ----- */
.lang-switch {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 25;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    padding: 8px 16px;
    border: 1px solid rgba(255,245,190,0.8);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c2412;
    background: #fff3db;
}
.lang-switch i {
    font-size: 1rem;
}
.lang-switch:hover {
    background: #ffe6b3;
    transform: scale(0.97);
}
html[lang="en"] .imgbar {
    transform: scaleX(-1);
}


/* ----- RESPONSIVE MOBILE TWEAKS ----- */
@media (max-width: 550px) {
    body {
        padding: 0;
        background: #f5f3f0;
    }
    .app {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }
    .top {
        min-height: 210px;
        padding: 18px 14px 22px;
      
    }
    .logo {
        width: 170px;
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: 1rem;
    }
    .hero p {
        font-size: .8rem;
    }
    .badge {
        font-size: .7rem;
        padding: 8px 12px;
    }
    .content {
        padding: 18px 16px 32px;
        margin-top: -100px;


    }
    .row {
        flex-direction: column;
        gap: 0;
    }
    .group {
        margin-bottom: 14px;
    }
    .input {
        height: 52px;
        font-size: .94rem;
        border-radius: 18px;
    }
    .send {
        height: 56px;
        font-size: 1rem;
    }
    .imgbar {
        margin: -70px 0 -8px 0;
        pointer-events: none;
    }
    .imgbar:before {
        font-size: 0.8rem;
        padding: 10px;
        width: 92%;
    }
    .lang-switch {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

img.imgbar[src="core/bar.png"] {
    object-fit: cover;
    min-height: 50px;
}

/* ===== Modern Toast ===== */
.toast-modern{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: auto;
    min-width: 280px;
    max-width: 480px;
    width: 90%;
    padding: 16px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(32,32,36,.95), rgba(18,18,22,.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: transform .4s cubic-bezier(0.34, 1.2, 0.64, 1),
                opacity .3s ease,
                visibility .3s;
    
    direction: rtl;
    box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.05);
}

.toast-modern.show{
    opacity: 0.8;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-modern::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
     border-radius: 20px 20px 0 0;
    opacity: 1;
}

.toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
 }

.toast-content{
    flex: 1;
    padding: 2px 0;
}

.toast-title{
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.toast-message{
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255,255,255,.75);
    font-weight: 500;
}

.toast-close{
    border: none;
    outline: none;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-close:hover{
    background: rgba(255,255,255,.12);
    transform: rotate(90deg) scale(1.05);
    color: #fff;
}


.toast-progress::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #3b82f6, #06b6d4);
    transform-origin: left;
    animation: toastProgress 5s linear forwards;
    border-radius: 3px;
}

@keyframes toastProgress{
    from{
        transform: scaleX(1);
    }
    to{
        transform: scaleX(0);
    }
}

@media(max-width: 640px){
    .toast-modern{
        top: 16px;
        width: calc(100% - 32px);
        min-width: auto;
        padding: 14px 16px;
        border-radius: 18px;
    }
    .toast-title{
        font-size: 0.88rem;
    }
    .toast-message{
        font-size: 0.75rem;
    }
    .toast-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
        border-radius: 10px;
    }
    .toast-close {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        font-size: 16px;
    }
}

@media(max-width: 480px){
    .toast-modern{
        top: 12px;
        padding: 12px 14px;
    }
}