/* ===================================================================
   Property Detail - Mobile First UI
   Exact pixel spacing, matching reference design
   =================================================================== */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #eff4ff;
    --white: #ffffff;
    --bg: #f2f3f5;
    --card-bg: #ffffff;
    --dark-card: #1a1f36;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #9e9e9e;
    --text-light: #b0b0b0;
    --border: #e8e8e8;
    --border-light: #f0f0f0;
    --danger: #e53935;
    --success: #43a047;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    --font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ============ APP CONTAINER ============ */
.app-container {
    max-width: 430px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* ============ STICKY HEADER ============ */
.sticky-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 100;
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
}

.header-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background var(--transition), box-shadow var(--transition);
}

.sticky-header.scrolled .header-bg {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .04);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.header-btn:active {
    background: rgba(0, 0, 0, .1);
    transform: scale(0.92);
}

.header-btn.is-saved {
    color: var(--danger);
}

.header-btn.is-saved svg {
    fill: var(--danger);
}

.header-actions {
    display: flex;
    gap: 6px;
}

/* ============ MAIN SCROLL ============ */
.main-scroll {
    padding-top: 0;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

/* ============ HERO SLIDER ============ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #1a1a1a;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.slider-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    z-index: 5;
    letter-spacing: 0.5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition);
}

.slider-arrow:active {
    background: rgba(255, 255, 255, .4);
    transform: translateY(-50%) scale(0.9);
}

.slider-arrow--prev {
    right: 8px;
}

.slider-arrow--next {
    left: 8px;
}

/* ============ QUICK PURCHASE BUTTON ============ */
.quick-purchase-section {
    /* margin: 0 12px; */
    position: relative;
    z-index: 10;
    /* margin-top: px; */
}

.quick-purchase-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    /* border-radius: var(--radius-md); */
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
    transition: all var(--transition);
}

.quick-purchase-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}

.quick-purchase-btn svg {
    flex-shrink: 0;
}

/* ============ INFO CARD (WHITE) ============ */
.info-card {
    margin: 12px 12px 0 12px;
    background: var(--card-bg);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 9;
}

.info-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-category-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.info-category-row svg {
    flex-shrink: 0;
}

.info-category-tag {
    color: var(--text-muted);
    font-weight: 500;
}

.property-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.property-location svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.property-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    font-size: 11px;
}

.property-code {
    color: var(--text-muted);
    font-weight: 400;
}

.property-time {
    color: var(--text-light);
    font-size: 10px;
}

/* ============ SPECS TABLE ============ */
.specs-table {
    display: flex;
    align-items: center;
    margin: 0 12px 0px;
    background: var(--card-bg);
    /* border-radius: var(--radius-md); */
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.spec-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.spec-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
}

.spec-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.spec-unit {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
}

.spec-divider {
    width: 1px;
    height: 36px;
    background: var(--border-light);
    flex-shrink: 0;
}

/* ============ PRICE SECTION ============ */
.price-section {
    margin: 0 12px 12px;
    background: var(--card-bg);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.price-row:first-child {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 6px;
}

.price-row:nth-child(2) {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 6px;
}

.price-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.price-value--secondary {
    font-size: 14px;
    color: var(--text-secondary);
}

.price-currency {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
}

.price-floor-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--border-light);
}

.price-floor-item {
    flex: 1;
    text-align: center;
}

.price-floor-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.price-floor-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-floor-divider {
    width: 1px;
    height: 28px;
    background: var(--border-light);
}

/* ============ SECTION TITLE ============ */
.section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 0 4px;
    color: var(--text-primary);
}

/* ============ DETAILS LIST ============ */
.details-list {
    margin: 0 12px 12px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.detail-rows {
    display: flex;
    flex-direction: column;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row:first-child {
    padding-top: 0;
}

.detail-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============ FEATURES SECTION ============ */
.features-section {
    margin: 0 12px 12px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.feature-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
    font-family: var(--font);
}

.feature-btn:active {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: scale(0.95);
}

.feature-btn svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    opacity: 0.8;
}

.feature-btn span {
    font-size: 11px;
    font-weight: 500;
}

/* ============ DESCRIPTION ============ */
.description-section {
    margin: 0 12px 12px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.description-content {
    font-size: 13px;
    line-height: 2;
    color: var(--text-secondary);
    max-height: 104px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.description-content:not(.is-expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--card-bg));
    pointer-events: none;
}

.description-content.is-expanded {
    max-height: 600px;
}

.description-content.is-expanded::after {
    display: none;
}

.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.expand-btn:active {
    opacity: 0.7;
}

.expand-btn svg {
    transition: transform var(--transition);
}

.expand-btn.is-expanded svg {
    transform: rotate(180deg);
}

/* ============ MAP SECTION ============ */
.map-section {
    margin: 0 12px 12px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.map-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8edf2 0%, #dce3ea 50%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder svg {
    animation: mapBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2));
}

@keyframes mapBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.map-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    white-space: nowrap;
}

.map-btn:active {
    background: var(--primary);
    color: #fff;
    transform: translateX(-50%) scale(0.95);
}

/* ============ BOTTOM SPACER ============ */
.bottom-spacer {
    height: 90px;
}

/* ============ FLOATING ACTION BUTTON (SOCIAL) ============ */
.fab-container {
    position: fixed;
    bottom: 90px;
    left: 16px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    order: -1;
}

.fab-container.is-open .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-item {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    flex-shrink: 0;
}

.fab-item:active {
    transform: scale(0.9);
}

.fab-item--youtube {
    background: #FF0000;
}

.fab-item--whatsapp {
    background: #25D366;
}

.fab-item--telegram {
    background: #0088cc;
}

.fab-item--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.fab-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, .4);
    transition: all var(--transition);
    flex-shrink: 0;
    z-index: 2;
    order: 1;
}

.fab-toggle:active {
    transform: scale(0.9);
}

.fab-toggle-icon {
    transition: transform var(--transition);
}

.fab-container.is-open .fab-toggle-icon {
    transform: rotate(45deg);
}

/* ============ STICKY BOTTOM ============ */
.sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 100;
}

.bottom-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.bottom-btn:active {
    transform: scale(0.95);
}

.bottom-btn--chat {
    background: var(--bg);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.bottom-btn--chat:active {
    background: #e8e8e8;
}

.bottom-btn--contact {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .35);
}

.bottom-btn--contact:active {
    background: var(--primary-dark);
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 200;
    white-space: nowrap;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ FADE UP ============ */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(-72px);
}

/* ============ RESPONSIVE ============ */
@media (min-width: 431px) {
    .app-container {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}

[data-theme="dark"] {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #1E293B;
    --white: #ffffff;
    --bg: #0F172A;
    --card-bg: #1E293B;
    --dark-card: #0B1120;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-light: #475569;
    --border: #334155;
    --border-light: #1E293B;
    --danger: #EF4444;
    --success: #22C55E;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .5);
}

[data-theme="dark"] .app-container {
    background: var(--bg);
}

[data-theme="dark"] .header-bg {
    background: rgba(15, 23, 42, 0.85);
}

[data-theme="dark"] .sticky-header.scrolled .header-bg {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

[data-theme="dark"] .header-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #F1F5F9;
}

[data-theme="dark"] .header-btn:active {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hero-slider {
    background: #000;
}

[data-theme="dark"] .info-card {
    background: var(--card-bg);
}

[data-theme="dark"] .specs-table {
    background: var(--card-bg);
}

[data-theme="dark"] .spec-divider {
    background: var(--border-light);
}

[data-theme="dark"] .price-section {
    background: var(--card-bg);
}

[data-theme="dark"] .price-row:first-child {
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .price-row:nth-child(2) {
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .price-floor-row {
    border-top-color: var(--border-light);
}

[data-theme="dark"] .price-floor-divider {
    background: var(--border-light);
}

[data-theme="dark"] .details-list {
    background: var(--card-bg);
}

[data-theme="dark"] .detail-row {
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .features-section {
    background: var(--card-bg);
}

[data-theme="dark"] .feature-btn {
    background: var(--bg);
}

[data-theme="dark"] .feature-btn:active {
    background: var(--primary-light);
}

[data-theme="dark"] .description-section {
    background: var(--card-bg);
}

[data-theme="dark"] .description-content:not(.is-expanded)::after {
    background: linear-gradient(transparent, var(--card-bg));
}

[data-theme="dark"] .map-section {
    background: var(--card-bg);
}

[data-theme="dark"] .map-placeholder {
    background: linear-gradient(135deg, #1A2332 0%, #1E293B 50%, #1A2332 100%);
}

[data-theme="dark"] .sticky-bottom {
    background: rgba(15, 23, 42, 0.9);
    border-top-color: var(--border);
}

[data-theme="dark"] .bottom-btn--chat {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .bottom-btn--chat:active {
    background: var(--border);
}

[data-theme="dark"] .toast {
    background: #F1F5F9;
    color: #0F172A;
}

[data-theme="dark"] .property-meta-row {
    border-top-color: var(--border-light);
}


/* new */
.show-details-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px dashed #2563EB;
    border-radius: 8px;
    color: #2563EB;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.show-details-btn:hover {
    background: #f0f4ff;
}

.show-details-btn svg {
    transition: transform 0.3s ease;
}

.show-details-btn.active svg {
    transform: rotate(180deg);
}

/* جزئیات مخفی */
.details-list-hidden {
    display: none;
    margin-top: 16px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.details-list-hidden.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.detail-value {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
}

/* استایل پاپ‌آپ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 10;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #2563EB;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #2563EB;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
    line-height: 1.6;
}