.aef-wrap button,
.aef-wrap [type="button"],
.aef-wrap [type="submit"],
.aef-wrap[type=button]:hover{
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.aef-wrap .aef-option {
    display: flex !important;
    width: 100%;
    min-height: 84px;
    border-radius: 18px !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.aef-wrap .aef-change-vote-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #111827 !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 10px 16px !important;
    cursor: pointer;
}


.aef-wrap,
.aef-wrap * {
    box-sizing: border-box;
    font-family: var(--aef-font, iransans, Tahoma, sans-serif);
}

.aef-wrap {
    width: 100%;
    margin: 24px auto;
    direction: rtl;
    position: relative;
}

.aef-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.aef-option {
    border: 0;
    outline: none;
    border-radius: 18px;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease, opacity .28s ease;
    position: relative;
    overflow: hidden;
}

.aef-option::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0));
    opacity: .7;
    pointer-events: none;
}

.aef-option:hover {
    transform: translateY(-5px) scale(1.02);
    filter: saturate(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    background-color: inherit !important;
}

.aef-option:active {
    transform: scale(.96);
}

.aef-icon {
    font-size: 30px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    animation: aefFloat 3s ease-in-out infinite;
}

.aef-option:nth-child(2) .aef-icon { animation-delay: .15s; }
.aef-option:nth-child(3) .aef-icon { animation-delay: .3s; }
.aef-option:nth-child(4) .aef-icon { animation-delay: .45s; }
.aef-option:nth-child(5) .aef-icon { animation-delay: .6s; }

@keyframes aefFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.aef-options-area.fade-out {
    animation: aefFadeOut .45s ease forwards;
}

@keyframes aefFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(.96); }
}

.aef-result-area {
    opacity: 0;
    transform: translateY(18px) scale(.98);
}

.aef-result-area.is-visible {
    display: block;
    animation: aefReveal .65s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes aefReveal {
    0% { opacity: 0; transform: translateY(22px) scale(.97); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.aef-result-card {
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    padding: 18px;
    box-shadow: 0 14px 40px rgba(31, 51, 73, 0.08);
    border: 1px solid rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
}

.aef-result-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -60px;
    top: -60px;
    background: radial-gradient(circle, rgba(116,192,252,.18), transparent 70%);
    pointer-events: none;
}

.aef-result-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(81,207,102,.15), transparent 70%);
    pointer-events: none;
}

.aef-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.aef-your-vote {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aef-your-vote-label {
    font-size: 13px;
    color: #6b7280;
}

.aef-your-vote-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f3f6fb;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 8px 18px rgba(0,0,0,.07);
    animation: aefPulseVote 2.2s ease-in-out infinite;
}

@keyframes aefPulseVote {
    0%,100% { transform: scale(1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 8px 18px rgba(0,0,0,.07); }
    50% { transform: scale(1.06); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 12px 26px rgba(0,0,0,.10); }
}

.aef-change-vote-btn {
    border: 0;
    background: #111827;
    color: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}

.aef-change-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17,24,39,.2);
}

.aef-creative-meter {
    position: relative;
    padding: 18px 14px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,249,252,.9));
    z-index: 2;
}

.aef-meter-glow {
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    background: radial-gradient(circle at center, rgba(59,130,246,.12), transparent 60%);
    filter: blur(10px);
    pointer-events: none;
}

.aef-meter-track {
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.08);
}

.aef-meter-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7b7b 0%, #ffd166 35%, #7bd88f 70%, #6cb2ff 100%);
    position: relative;
    transition: width 1.3s cubic-bezier(.22,1,.36,1);
}

.aef-meter-fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 18px;
    height: 100%;
    background: rgba(255,255,255,.35);
    filter: blur(4px);
}

.aef-meter-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
    transform: translateX(-120%);
    animation: aefShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aefShine {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

.aef-meter-emoji-line {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: center;
    text-align: center;
}

.aef-meter-emoji {
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: .45;
    transform: scale(.95);
    transition: transform .3s ease, opacity .3s ease, filter .3s ease;
}

.aef-meter-emoji.is-dominant {
    opacity: 1;
    transform: scale(1.25) translateY(-2px);
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
    animation: aefDominant 1.7s ease-in-out infinite;
}

@keyframes aefDominant {
    0%,100% { transform: scale(1.2) translateY(0); }
    50% { transform: scale(1.28) translateY(-4px); }
}

.aef-meter-center {
    margin-top: 18px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.aef-score-number {
    font-size: 38px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.aef-score-from {
    font-size: 16px;
    color: #6b7280;
}

.aef-toast {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translate(-50%, -10px);
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 50;
}

.aef-toast.show {
    animation: aefToast 2.4s ease forwards;
}

@keyframes aefToast {
    0% { opacity: 0; transform: translate(-50%, -8px) scale(.96); }
    15% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    80% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -8px) scale(.98); }
}

.aef-option.aef-selected {
    transform: translateY(-5px) scale(1.03);
    outline: 2px solid rgba(17,24,39,.12);
}

.aef-option.aef-disabled {
    opacity: .65;
    pointer-events: none;
}

@media (max-width: 991px) {
    .aef-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aef-option {
        min-height: 78px;
    }

    .aef-icon {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .aef-wrap {
        margin: 18px auto;
    }

    .aef-grid {
        gap: 10px;
    }

    .aef-option {
        min-height: 72px;
        border-radius: 16px;
    }

    .aef-icon {
        font-size: 26px;
    }

    .aef-result-card {
        padding: 14px;
        border-radius: 18px;
    }

    .aef-score-number {
        font-size: 32px;
    }

    .aef-your-vote-badge {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
}
.aef-wrap .aef-option {
    background: var(--aef-bg, #eee) !important;
    border: 2px solid var(--aef-border, #ccc) !important;
    border-radius: 18px !important;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}

.aef-wrap .aef-option:hover {
    background: var(--aef-border, #ccc) !important;
}

.aef-wrap .aef-option-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.aef-wrap .aef-icon-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.aef-wrap .aef-icon-emoji {
    font-size: 30px;
    line-height: 1;
    display: inline-block;
}
.aef-wrap .aef-option {
    background: var(--aef-bg, #eee) !important;
    border: 2px solid var(--aef-border, #ccc) !important;
    border-radius: 18px !important;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease !important;
}

.aef-wrap .aef-option:hover {
    background: var(--aef-border, #ccc) !important;
}

.aef-wrap .aef-option-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.aef-wrap .aef-icon-image {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
    display: block !important;
}

.aef-wrap .aef-icon-emoji {
    font-size: 30px !important;
    line-height: 1 !important;
    display: inline-block !important;
}


.aef-wrap .aef-option {
    background: var(--aef-bg, #eee) !important;
    border: 2px solid var(--aef-border, #ccc) !important;
    border-radius: 18px !important;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}

.aef-wrap .aef-option:hover {
    background: var(--aef-border, #ccc) !important;
}

.aef-wrap .aef-option-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.aef-wrap .aef-icon-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.aef-wrap .aef-icon-emoji {
    font-size: 30px;
    line-height: 1;
    display: inline-block;
}
