@font-face {
    font-family: 'IRANSansX';
    src: url('IRANSansXFaNum-Regular.woff2') format('woff2'),
        url('IRANSansXFaNum-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('IRANSansXFaNum-Bold.woff2') format('woff2'),
        url('IRANSansXFaNum-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-blue: #0A84FF;
    --dark-blue: #0A192F;
    --text-main: #1D1D1F;
    --bg-light: #F4F7FB;
    --card-bg: #FFFFFF;
    --gray-muted: #86868B;
    --border-color: #E2E8F0;
    --accent-teal: #00C7B7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'IRANSansX', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utilities */
.neon-text-blue,
.neon-text-green {
    color: var(--primary-blue);
    text-shadow: none;
}

.blurred {
    filter: blur(10px);
    pointer-events: none;
    transition: filter 0.5s ease;
}

.hidden {
    display: none !important;
}

.neon-border-green,
.neon-border-blue {
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.08);
}

/* Layout */
#app-container {
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

/* Ad Banner */
#ad-banner {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 2px dashed var(--border-color);
}

.banner-placeholder {
    font-size: 1.2rem;
    opacity: 0.6;
    letter-spacing: 5px;
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-card {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    display: block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    box-shadow: 0 8px 16px rgba(10, 25, 47, 0.08);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(10, 132, 255, 0.15);
}

.feature-card .feature-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.feature-card .label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 10px;
    font-weight: bold;
    font-size: 1rem;
    color: var(--dark-blue);
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0 0 20px 20px;
    margin: 0;
}

/* Modals & Overlays */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: none;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
    color: var(--text-main);
}

.overlay {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 85vh;
    background: var(--bg-light);
    border-top: none;
    border-radius: 30px 30px 0 0;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
    padding: 20px;
    box-shadow: 0 -10px 40px rgba(10, 25, 47, 0.1);
}

.overlay.active {
    bottom: 0;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: var(--dark-blue);
}

.close-btn {
    background: var(--card-bg);
    border: none;
    color: var(--dark-blue);
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Forms & Buttons */
input {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-main);
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.neon-btn-green,
.neon-btn-blue {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    margin-top: 10px;
}

.neon-btn-green {
    background: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2);
}

.neon-btn-blue {
    background: var(--dark-blue);
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.2);
}

.neon-btn-green:hover,
.neon-btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* OTP Specific */
.auth-step {
    display: none;
}

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

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-digit {
    width: 50px;
    height: 60px;
    font-size: 1.5rem;
}

/* Product list */
.product-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.08);
}

.product-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: #f0f0f0;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-name {
    font-weight: bold;
    color: var(--dark-blue);
    font-size: 1rem;
}

.price-tag {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.old-price {
    text-decoration: line-through;
    font-size: 0.75rem;
    color: var(--gray-muted);
}

.new-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1rem;
}

.add-btn-small {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(10, 132, 255, 0.15);
    transition: all 0.3s ease;
}

.add-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 132, 255, 0.25);
}

/* Wheel */
.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.wheel-pointer {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: -45px;
    z-index: 1;
}

canvas {
    border-radius: 50%;
    border: 8px solid var(--dark-blue);
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.15);
}

/* Treasure */
#treasure-timer {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 40px 0;
}

.guide-text {
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}