@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/iransans/woff2/IRANSansWeb.woff2') format('woff2'),
         url('/fonts/iransans/woff/IRANSansWeb.woff') format('woff'),
         url('/fonts/iransans/ttf/IRANSansWeb.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url('/fonts/iransans/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
         url('/fonts/iransans/woff/IRANSansWeb_Bold.woff') format('woff'),
         url('/fonts/iransans/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

:root {
    --primary-color: #1e88e5;
    --secondary-color: #0d47a1;
    --accent-color: #42a5f5;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-radius: 16px;
    --input-radius: 12px;
    --shadow: 0 10px 30px rgba(30, 136, 229, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: 'IRANSans', sans-serif;
    color: var(--text-color);
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%),
        url('/images/pattern.png');
    background-size: cover, 200px;
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -1;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.wizard-container {
    max-width: 800px;
    margin: 20px auto 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wizard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.wizard-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231e88e5' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.wizard-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.wizard-titles {
    text-align: right;
    flex: 1;
    padding-left: 20px;
}

.wizard-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.wizard-subtitle {
    color: var(--text-light);
    margin: 5px 0 0 0;
    font-size: 14px;
}

.progress-indicator {
    margin-right: 0;
    position: relative;
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

/* دایره پیشرفت */
.circle-container {
    position: relative;
    width: 65px;
    height: 65px;
}

.circle-progress {
    --progress: 0;
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) calc(var(--progress) * 360deg), #e9ecef 0deg);
    transition: background 0.8s ease;
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.2);
}

.circle-progress::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-circle {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 2;
    font-size: 18px;
}

/* مراحل فرم */
.wizard-steps-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step.active {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid #e1e5eb;
    border-radius: var(--input-radius);
    color: var(--text-color);
    transition: all 0.3s ease;
    background-color: #fafbfc;
    font-family: 'IRANSans', sans-serif;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
    background-color: white;
    outline: none;
}

.form-control.is-invalid {
    border-color: #ff4757;
    background-color: #fff8f8;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    padding-right: 15px;
    display: flex;
    align-items: center;
}

.step-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    height: calc(100% - 10px);
    width: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.step-title .step-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 2px;
    margin-left: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaedf3;
}

.flex-spacer {
    flex: 1;
}

.btn-next, .btn-submit {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.2);
    font-family: 'IRANSans', sans-serif;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.btn-next:hover, .btn-submit:hover {
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.3);
    transform: translateY(-2px);
}

.btn-next::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 100%;
    top: 0;
    right: -40px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        right: -40px;
    }
    40%, 100% {
        right: 140%;
    }
}

.btn-back {
    background-color: transparent;
    color: var(--text-light);
    padding: 12px 30px;
    border: 1px solid #e1e5eb;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'IRANSans', sans-serif;
    font-size: 15px;
}

.btn-back:hover {
    background-color: #f5f7fa;
    color: var(--text-color);
}

/* استایل خاص برای اطلاعات خلاصه */
.summary-box {
    background-color: #f8faff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecfe;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    font-weight: 500;
    color: var(--text-light);
}

.summary-value {
    font-weight: 600;
    color: var(--text-color);
}

/* استایل برای alert */
.alert-info {
    background-color: rgba(72, 149, 239, 0.1);
    border: none;
    border-right: 3px solid var(--accent-color);
    color: var(--text-color);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* رسپانسیو */
@media (max-width: 768px) {
    body::before {
        height: 160px;
    }

    .wizard-container {
        padding: 25px;
        margin: 15px;
        border-radius: 12px;
    }

    .wizard-header {
        flex-direction: row-reverse;
        align-items: center;
        margin-bottom: 25px;
    }

    .wizard-titles {
        text-align: right;
        padding-left: 10px;
    }

    .wizard-title {
        font-size: 18px;
    }

    .wizard-subtitle {
        font-size: 12px;
    }

    .progress-indicator {
        margin-right: 0;
        width: 55px;
        height: 55px;
    }

    .circle-container {
        width: 55px;
        height: 55px;
    }

    .circle-progress {
        width: 55px;
        height: 55px;
    }

    .step-circle {
        width: 55px;
        height: 55px;
        font-size: 16px;
    }

    .btn-next, .btn-back {
        padding: 12px 20px;
    }
}

/* استایل‌های اضافی برای بهبود نمایش در موبایل */
@media (max-width: 767px) {
    .car-item {
        padding-top: 2.5rem; /* فضا برای دکمه‌های ویرایش و حذف در بالا */
    }

    .select-car-btn {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        font-size: 1rem;
    }

    .car-slide-item {
        min-width: 150px !important;
        width: 150px !important;
    }

    .car-icon {
        width: 40px !important;
        height: 40px !important;

    }

    .car-brand-badge {
        font-size: 10px !important;
    }

    .car-info h6 {
        font-size: 0.9rem !important;
    }

    .delete-car-btn {
        padding: 0.15rem 0.4rem !important;
        font-size: 0.7rem !important;
    }
}

/* استایل کارت خودرو */
.car-card {
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e6e9f0;
    border-radius: 1rem;
    cursor: pointer;
    position: relative;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color) !important;
}

/* نشانگر انتخاب خودرو */
.selected-indicator {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(30, 136, 229, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.selected-indicator i {
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.car-card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(30, 136, 229, 0.2);
}

.car-card.selected .selected-indicator {
    opacity: 1;
}

.car-card.selected .selected-indicator i {
    opacity: 0.8;
    transform: scale(1);
}

.car-brand-badge {
    font-size: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* ساپورت برای گوشه‌های گرد خاص */
.rounded-tr-4 {
    border-top-right-radius: 0.8rem !important;
}

.rounded-bl-3 {
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* استایل برای سلکت باکس‌های راست به چپ */
.form-select {
    background-position: left 0.75rem center !important;
    padding-right: 0.75rem !important;
    padding-left: 2.25rem !important;
}

/* استایل آلرت‌های سفارشی */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.custom-alert-overlay.show .custom-alert {
    transform: translateY(0);
}

.custom-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-size: 30px;
}

.custom-alert-icon.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.custom-alert-icon.warning {
    background-color: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.custom-alert-icon.danger {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.custom-alert-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.custom-alert-text {
    margin-bottom: 20px;
    color: #555;
}

.custom-alert-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.car-selected {
    border-color: var(--primary-color) !important;
    background-color: rgba(30, 136, 229, 0.05) !important;
}

/* استایل جدید برای اسلایدر افقی خودروها */
.section-title {
    margin-bottom: 1rem;
}

.title-line {
    height: 1px;
    background: linear-gradient(to left, transparent, var(--primary-color), transparent);
    flex-grow: 1;
    margin: 0 5px;
}

.section-heading {
    color: var(--primary-color);
    font-size: 15px;
    white-space: nowrap;
    position: relative;
}

.car-slider-container {
    width: 100%;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e1e5eb;
}

.car-slider-container::-webkit-scrollbar {
    height: 6px;
}

.car-slider-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.car-slider-container::-webkit-scrollbar-track {
    background-color: #e1e5eb;
    border-radius: 10px;
}

.car-slider {
    display: flex;
    gap: 15px;
    padding: 5px 5px 15px 5px;
    flex-wrap: nowrap;
}

.car-slide-item {
    min-width: 170px;
    width: 170px;
    flex-shrink: 0;
}

.car-icon-wrapper {
    margin-top: 10px;
}

.car-icon {
    width: 45px;
    height: 45px;
    padding: .7rem !important;
}

.delete-car-btn {
    z-index: 2;
}

/* خط جداکننده ساده */
.simple-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.1) 90%, transparent);
    margin: 20px 0;
}

/* استایل صفحه لودینگ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    animation: loader-rotate 1s linear infinite;
}

.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    animation: loader-animation 2s linear infinite;
}

.loading-text {
    color: white;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
}

@keyframes loader-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-animation {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }
    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }
    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
    }
    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    }
}

.error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
    font-size: 50px;
}

.error-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.error-message {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.whatsapp-container {
    text-align: center;
    margin: 40px 0 20px;
    padding: 20px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 16px;
}

.whatsapp-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.whatsapp-number {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    direction: ltr;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-button i {
    font-size: 20px;
    margin-left: 8px;
}

.instructions {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-right: 3px solid var(--primary-color);
    margin-top: 30px;
}

.instructions-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.instructions-step {
    display: flex;
    margin-bottom: 12px;
}

.step-number {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .wizard-container {
        padding: 25px;
        margin: 15px;
    }

    .error-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .error-title {
        font-size: 20px;
    }

    .whatsapp-number {
        font-size: 16px;
    }
}

/* استایل بخش معرفی به دوستان */
.referral-box {
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%) !important;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.08), 0 2px 8px rgba(13, 110, 253, 0.06);
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    border: none !important;
    padding-top: 2.25rem !important;
    transform: translateZ(0);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem !important;
}

.referral-box:hover {
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.12), 0 4px 12px rgba(13, 110, 253, 0.08);
    transform: translateY(-3px) translateZ(0);
}

.referral-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1.25rem;
    border-radius: 0 0 0.85rem 0.85rem;
    box-shadow: 0 4px 10px rgba(10, 88, 202, 0.25);
    z-index: 2;
    transform: translateZ(0);
}

.referral-badge i {
    margin-left: 4px;
    font-size: 0.8rem;
}

.referral-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.06) 0%, rgba(13, 110, 253, 0) 70%);
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    transform: translate(40%, 40%);
    transition: all 0.5s ease;
}

.referral-box:hover .referral-decoration {
    transform: translate(30%, 30%) scale(1.2);
    opacity: 0.85;
}

.referral-box:before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.08);
    z-index: 0;
}

.referral-box:after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.06);
    z-index: 0;
}

.referral-box .bi-share-fill {
    color: #0d6efd;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.08));
    padding: 15px;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.referral-box:hover .bi-share-fill {
    transform: scale(1.05) rotate(15deg);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.15);
}

.referral-box h5 {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.referral-box p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.referral-box .btn {
    position: relative;
    overflow: hidden;
    padding: 11px 22px;
    font-weight: 600;
    border: none;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
    transform: translateZ(0);
}

.referral-box .btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.referral-box .btn:hover i {
    transform: scale(1.15);
}

/* نمای جدید دکمه های اشتراک گذاری */
.btn-share-app {
    border-radius: 14px !important;
    padding: 12px 20px !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 600;
    transform: translateZ(0);
}

.btn-share-app i {
    font-size: 1.3rem !important;
    margin-left: 10px;
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-share-app:hover i {
    transform: scale(1.15) translateZ(0);
}

.btn-share-app:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0));
    z-index: 1;
}

.btn-share-app:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

.btn-success.btn-share-app {
    background: linear-gradient(145deg, #27d367, #20c159) !important;
    border: none !important;
    color: #fff !important;
}

.btn-success.btn-share-app:hover {
    background: linear-gradient(145deg, #23e167, #1cb754) !important;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35) !important;
}

.btn-success.btn-share-app:active {
    transform: translateY(-1px) scale(0.99) !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25) !important;
}

.btn-primary.btn-share-app {
    background: linear-gradient(145deg, #0090d4, #0080c0) !important;
    border: none !important;
    color: #fff !important;
}

.btn-primary.btn-share-app:hover {
    background: linear-gradient(145deg, #0098e0, #0076b3) !important;
    box-shadow: 0 8px 18px rgba(0, 136, 204, 0.35) !important;
}

.btn-primary.btn-share-app:active {
    transform: translateY(-1px) scale(0.99) !important;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.25) !important;
}

.btn-share-app:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-share-app:focus:not(:active)::after {
    animation: ripple 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.7;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(50, 50);
    }
}

@media (max-width: 768px) {
    .referral-box {
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .referral-box {
        padding: 24px !important;
        padding-top: 2.5rem !important;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem !important;
        border-radius: 16px !important;
    }

    .referral-box .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .referral-box .me-3 {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 1rem;
    }

    .referral-box h5 {
        font-size: 1.1rem;
    }

    .referral-box p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .referral-box .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 12px !important;
    }

    .referral-box .btn {
        padding: 12px 18px;
        font-size: 0.95rem;
        width: 100%;
    }

    .btn-share-app {
        flex: 1;
        width: 100%;
        max-width: none;
        justify-content: center;
        border-radius: 12px !important;
    }

    .btn-share-app i {
        margin-left: 8px;
    }

    .referral-badge {
       
        border-radius: 0 0 12px 12px;
        padding: 0.3rem 1.5rem;
        font-size: 0.75rem;
    }

    .referral-decoration {
        width: 120px;
        height: 120px;
    }
}
