/* ===== SALAVAT SECTION ===== */
.salavat-section {
    padding: 3rem 1rem;
    padding-top: 7rem;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 50%, rgba(217, 119, 6, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #022c22 0%, #064e3b 100%);
}

@media (min-width: 768px) {
    .salavat-section {
        padding: 5rem 1rem;
        padding-top: 8rem; 
    }
}

.salavat-bg {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(251, 191, 36, 0.02) 35px, rgba(251, 191, 36, 0.02) 70px);
    pointer-events: none;
}

.salavat-wrap {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.salavat-header {
    margin-bottom: 3rem;
}

.salavat-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'IranNastaliq', serif;
}

@media (min-width: 768px) {
    .salavat-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
}

.salavat-subtitle {
    color: var(--emerald-200);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .salavat-subtitle {
        font-size: 1.25rem;
    }
}

/* ===== SALAVAT CIRCLE ===== */
.salavat-circle {
    position: relative;
    width: 18rem;
    height: 18rem;
    margin: 0 auto 3rem;
}

@media (min-width: 768px) {
    .salavat-circle {
        width: 24rem;
        height: 24rem;
    }
}

.salavat-ring1 {
    position: absolute;
    inset: 0;
    border: 4px dashed rgba(217, 119, 6, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.3);
}

.salavat-ring2 {
    position: absolute;
    inset: -20px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold-400);
    border-right-color: transparent;
    border-bottom-color: var(--emerald-400);
    border-left-color: transparent;
}

.salavat-ring3 {
    position: absolute;
    inset: -40px;
    border: 1px dotted rgba(251, 191, 36, 0.2);
    border-radius: 50%;
}

/* ===== SALAVAT BUTTON ===== */
.salavat-btn {
    position: absolute;
    inset: 1rem;
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-950));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 4px solid var(--gold-500);
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(6, 78, 59, 1),
        0 0 80px rgba(217, 119, 6, 0.3),
        inset 0 0 30px rgba(251, 191, 36, 0.1);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transform-origin: center center;
    will-change: transform;
}

@media (min-width: 768px) {
    .salavat-btn {
        inset: 1.5rem;
    }
}

.salavat-btn:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 60px rgba(6, 78, 59, 1),
        0 0 100px rgba(217, 119, 6, 0.5),
        inset 0 0 40px rgba(251, 191, 36, 0.2);
    border-color: var(--gold-400);
}

.salavat-btn:active {
    transform: scale(0.97);
    transition: all 0.1s;
}

.salavat-btn-inner {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.salavat-btn:hover .salavat-btn-inner {
    opacity: 1;
}

.salavat-label {
    color: var(--emerald-300);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    z-index: 10;
}

@media (min-width: 768px) {
    .salavat-label {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
}

.salavat-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold-400);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    z-index: 10;
    line-height: 1;
    transition: transform 0.2s, filter 0.2s;
    transform-origin: center center;
}

@media (min-width: 768px) {
    .salavat-num {
        font-size: 5rem;
    }
}

.salavat-num.pulse {
    animation: salavatPulse 0.4s ease-out;
}

@keyframes salavatPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 40px rgba(251, 191, 36, 1));
    }
    100% {
        transform: scale(1);
    }
}

.salavat-arabic {
    margin-top: 0.75rem;
    color: var(--emerald-950);
    font-weight: 700;
    background: linear-gradient(to left, var(--gold-400), var(--gold-300));
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    z-index: 10;
    font-size: 0.7rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    font-family: 'IranNastaliq', serif;
}

@media (min-width: 768px) {
    .salavat-arabic {
        margin-top: 1rem;
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ===== SALAVAT FOOTER ===== */
.salavat-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .salavat-footer {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.salavat-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald-200);
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
}

.salavat-stat svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gold-400);
}

.salavat-reset-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.salavat-reset-btn svg {
    width: 1rem;
    height: 1rem;
}

.salavat-reset-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* ===== PARTICLE EFFECT ===== */
.salavat-particle {
    position: absolute;
    background: var(--gold-400);
    border-radius: 50%;
    width: 0.75rem;
    height: 0.75rem;
    pointer-events: none;
    opacity: 0.9;
    box-shadow: 0 0 10px var(--gold-400);
    z-index: 100;
}

/* ===== CELEBRATION EFFECT ===== */
.salavat-celebration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.salavat-celebration::before,
.salavat-celebration::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid var(--gold-400);
    opacity: 0;
}

.salavat-celebration.active::before {
    animation: salavatRipple 0.8s ease-out;
}

.salavat-celebration.active::after {
    animation: salavatRipple 0.8s ease-out 0.2s;
}

@keyframes salavatRipple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===== CONFIRMATION MODAL ===== */
.salavat-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.salavat-confirm-modal.active {
    display: flex;
    animation: salavatModalFadeIn 0.3s ease forwards;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.salavat-confirm-modal.closing {
    animation: salavatModalFadeOut 0.3s ease forwards;
}

@keyframes salavatModalFadeIn {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    to {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
    }
}

@keyframes salavatModalFadeOut {
    from {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
    }
    to {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
}

.salavat-confirm-box {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.95), rgba(2, 44, 34, 0.98));
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(251, 191, 36, 0.4);
    animation: salavatModalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.salavat-confirm-modal.closing .salavat-confirm-box {
    animation: salavatModalSlideOut 0.3s ease forwards;
}

@keyframes salavatModalSlideIn {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes salavatModalSlideOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
}

.salavat-confirm-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(217, 119, 6, 0.1), transparent);
}

.salavat-confirm-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fca5a5;
    animation: salavatIconPulse 2s ease-in-out infinite;
}

@keyframes salavatIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.salavat-confirm-icon svg {
    width: 2rem;
    height: 2rem;
}

.salavat-confirm-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-400);
    margin-bottom: 0.5rem;
    font-family: 'IranNastaliq', serif;
}

.salavat-confirm-message {
    color: var(--emerald-200);
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 0.5rem;
}

.salavat-confirm-body {
    padding: 1.5rem 2rem;
}

.salavat-confirm-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.salavat-confirm-warning svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gold-400);
    flex-shrink: 0;
}

.salavat-confirm-warning p {
    color: var(--emerald-100);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.salavat-confirm-actions {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.salavat-confirm-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.salavat-confirm-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.salavat-confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--emerald-200);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.salavat-confirm-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.salavat-confirm-btn.confirm {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.salavat-confirm-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 1), rgba(185, 28, 28, 1));
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(239, 68, 68, 0.6);
}

@media (max-width: 640px) {
    .salavat-confirm-box {
        border-radius: 1.5rem;
    }
    
    .salavat-confirm-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .salavat-confirm-body {
        padding: 1rem 1.5rem;
    }
    
    .salavat-confirm-actions {
        padding: 0 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .salavat-confirm-title {
        font-size: 1.25rem;
    }
    
    .salavat-confirm-message {
        font-size: 0.9rem;
    }
}
