/* Font Face */
@font-face {
    font-family: 'IranSans';
    src: url('iransans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(59, 130, 246, 0.1);
    --shadow-light: 0 4px 20px rgba(59, 130, 246, 0.1);
    --shadow-medium: 0 8px 30px rgba(59, 130, 246, 0.15);
    --shadow-heavy: 0 15px 40px rgba(59, 130, 246, 0.2);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
}

body {
    font-family: 'IranSans', 'Vazirmatn', sans-serif;
    background: var(--bg-secondary);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 40px;
    border-radius: 60px;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.logo:hover::before {
    left: 100%;
}

.logo:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.logo i {
    font-size: 2.2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3)); }
    100% { filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.6)); }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-card {
    background: var(--bg-primary);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 32px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(59, 130, 246, 0.01) 100%);
    border-radius: 32px;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        var(--shadow-heavy),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

/* Product Image */
.product-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 32px 32px 0 0;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1.1) contrast(1.1);
}

.product-card:hover .product-image img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.2) contrast(1.2) saturate(1.1);
}

.product-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--danger-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Product Info */
.product-info {
    padding: 50px;
    position: relative;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    opacity: 0.7;
}

.product-description {
    margin-bottom: 40px;
}

.description-box {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.description-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.02;
    border-radius: 18px;
    z-index: -1;
}

.description-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: #1d4ed8;
    border-width: 3px;
}

.product-description p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    line-height: 1.8;
    font-weight: 500;
    position: relative;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.features-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.features-list li:hover::before {
    left: 100%;
}

.features-list li:hover {
    background: var(--bg-primary);
    transform: translateX(8px) translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-color);
}

.features-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
    animation: iconBounce 2s ease-in-out infinite;
}

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

/* Price Section */
.price-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 35px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.03;
    z-index: -1;
}

.price-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.original-price {
    font-size: 1.4rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
    opacity: 0.7;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: priceGlow 3s ease-in-out infinite alternate;
}

@keyframes priceGlow {
    0% { filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3)); }
    100% { filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6)); }
}

.discount-badge {
    background: var(--danger-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: discountPulse 2s ease-in-out infinite;
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Custom Inputs Section */
.custom-inputs-section {
    margin-bottom: 40px;
}

.inputs-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inputs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.custom-input {
    padding: 16px 20px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
    outline: none;
}

.custom-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        var(--shadow-light);
    transform: translateY(-1px);
}

.textarea-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Discount Section */
.discount-section {
    margin-bottom: 40px;
}

.discount-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discount-input-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.02;
    border-radius: 18px;
    z-index: -1;
}

.discount-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        var(--shadow-medium);
    transform: translateY(-2px);
}

.discount-input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    outline: none;
}

.discount-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.apply-discount-btn {
    padding: 18px 25px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

.apply-discount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.apply-discount-btn:hover::before {
    left: 100%;
}

.apply-discount-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.apply-discount-btn:active {
    transform: scale(0.98);
}

.discount-message {
    text-align: center;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.discount-message.success {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.discount-message.error {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

/* Purchase Button */
.purchase-btn {
    width: 100%;
    padding: 25px;
    background: var(--success-gradient);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.purchase-btn:hover::before {
    left: 100%;
}

.purchase-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        var(--shadow-heavy),
        0 0 30px rgba(67, 233, 123, 0.4);
}

.purchase-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.security-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.security-item:hover::before {
    left: 100%;
}

.security-item:hover {
    background: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-color);
}

.security-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
    animation: securityIconPulse 3s ease-in-out infinite;
}

@keyframes securityIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Terms Section */
.terms-section {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.terms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.5;
}

.terms-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 400;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.terms-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.terms-link:hover::after {
    width: 100%;
}

.terms-link:hover {
    color: #1d4ed8;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.01;
    z-index: -1;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.loading-spinner {
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-heavy);
}

.loading-spinner i {
    font-size: 4rem;
    margin-bottom: 25px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-content {
    background: var(--bg-primary);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--glass-border);
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.02;
    z-index: -1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    margin-bottom: 25px;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 5rem;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(67, 233, 123, 0.3));
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        padding: 15px 25px;
        font-size: 1.4rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .product-info {
        padding: 30px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2.5rem;
    }
    
    .discount-input-group {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
        border-radius: 16px;
    }
    
    .discount-input {
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 16px 18px;
        background: var(--bg-secondary);
    }
    
    .apply-discount-btn {
        justify-content: center;
        padding: 16px 20px;
        min-width: auto;
        border-radius: 12px;
        font-size: 1rem;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .price-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .purchase-btn {
        padding: 20px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 35px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        padding: 12px 20px;
        font-size: 1.2rem;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .features-list li {
        padding: 15px 18px;
    }
    
    .modal-content {
        padding: 25px;
        margin: 15px;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
    
    .success-icon i {
        font-size: 4rem;
    }
    
    .discount-input-group {
        padding: 12px;
        gap: 6px;
    }
    
    .discount-input {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .apply-discount-btn {
        padding: 14px 18px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* Focus styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
button, input, a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* IranSans Font Class */
.iransans-font {
    font-family: 'IranSans', 'Vazirmatn', sans-serif !important;
}

/* Performance optimizations */
.product-card, .logo, .purchase-btn {
    will-change: transform;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
    }
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    .discount-input-group:focus-within {
        transform: none;
    }
    
    .discount-input:focus {
        transform: none;
    }
    
    .apply-discount-btn:active {
        transform: scale(0.95);
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card-mini {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
}

.product-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-image-mini {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-mini:hover .product-image-mini img {
    transform: scale(1.05);
}

.product-badge-mini {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-gradient);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.product-info-mini {
    padding: 20px;
}

.product-title-mini {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description-mini {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-price-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.original-price-mini {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price-mini {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-product-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.view-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.product-code {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #dc2626;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Message Box */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
    padding: 35px;
    max-width: 450px;
    width: 90%;
    z-index: 1003;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: none;
}

.message-box.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    animation: messageBoxBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes messageBoxBounce {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.message-box.error {
    border-color: #ef4444;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.message-box.success {
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.message-box.warning {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.2), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.message-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.message-box.error .message-icon {
    color: #ef4444;
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.3));
}

.message-box.success .message-icon {
    color: #10b981;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

.message-box.warning .message-icon {
    color: #f59e0b;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.message-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-text {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
}

.message-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.message-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.message-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border: 2px solid transparent;
}

.message-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.message-btn.primary:active {
    transform: translateY(-1px);
}

.message-btn.secondary {
    background: #f8fafc;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message-btn.secondary:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Message Overlay */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Field Error Highlight */
.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: fieldShake 0.5s ease-in-out;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1004;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.login-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 380px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal.show .login-content {
    transform: scale(1) translateY(0);
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
    padding: 20px 25px;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 24px 24px 0 0;
}

.login-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.close-login {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-login:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.login-body {
    padding: 25px 20px;
}

.login-step {
    text-align: center;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 6px 12px rgba(59, 130, 246, 0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-step h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.login-step p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.phone-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.phone-input-group input {
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.phone-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.send-code-btn {
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.send-code-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.send-code-btn:hover::before {
    left: 100%;
}

.send-code-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.code-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.code-input-group input {
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    letter-spacing: 2px;
}

.code-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.verify-code-btn {
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.verify-code-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.verify-code-btn:hover::before {
    left: 100%;
}

.verify-code-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.verify-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


.error-text {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    background: rgba(239, 68, 68, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.1);
    min-height: 0;
    transition: all 0.3s ease;
}

.error-text:empty {
    display: none;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
}

.phone-display {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: #475569;
    border: 1px solid #cbd5e1;
    margin-bottom: 15px;
    display: inline-block;
    font-size: 0.9rem;
}

.edit-phone-btn {
    background: none;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.edit-phone-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

/* Admin Link */
.admin-link {
    margin-top: 15px;
}

.admin-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.admin-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive for Products Grid */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .product-card-mini {
        margin: 0 10px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .view-product-btn {
        justify-content: center;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
