/**
 * WP YekLink Frontend CSS
 * Mobile-First, Responsive, RTL Layout matching YekLink
 * Includes 10 animations, cover shapes, and local offline fonts
 */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    min-height: 100%;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    color: #282828;
}

/* Background Canvas for Animated Themes */
#zil-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Main Container (Mobile Frame) */
.zil-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 80px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky Header Bar */
.zil-sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.zil-sticky-inner {
    max-width: 480px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.zil-sticky-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zil-sticky-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.zil-sticky-text {
    display: flex;
    flex-direction: column;
}

.zil-sticky-title {
    font-size: 14px;
    font-weight: 700;
    color: #282828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.zil-sticky-url {
    font-size: 11px;
    color: #888;
    direction: ltr;
    text-align: right;
}

.zil-sticky-cart {
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}
.zil-sticky-cart:hover {
    background: #f0f0f0;
}

/* Cover Banners (Rect vs Curved - Screenshot 5) */
.zil-cover-banner {
    width: calc(100% + 32px);
    margin: 0 -16px;
    height: 140px;
    background-size: cover;
    background-position: center;
    margin-bottom: -45px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.zil-cover-banner.cover-rect {
    border-radius: 0;
}
.zil-cover-banner.cover-curved {
    border-radius: 0 0 50% 50% / 0 0 35px 35px;
}

/* Profile Card */
.zil-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

/* Logo Shapes (Screenshot 5) */
.zil-avatar-wrapper {
    width: 96px;
    height: 96px;
    padding: 3px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    z-index: 2;
    transition: all 0.3s ease;
}

.zil-avatar-wrapper.shape-circle   { border-radius: 50%; }
.zil-avatar-wrapper.shape-squircle { border-radius: 28%; }
.zil-avatar-wrapper.shape-rounded  { border-radius: 14px; }
.zil-avatar-wrapper.shape-square   { border-radius: 0px; }

.zil-main-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.zil-page-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--zil-title-color);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zil-verified-badge {
    display: inline-flex;
    align-items: center;
}

.zil-page-subtitle {
    font-size: 13.5px;
    color: var(--zil-title-color);
    opacity: 0.85;
    max-width: 360px;
    line-height: 1.6;
}

/* Dynamic Blocks Stream */
.zil-blocks-stream {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.zil-block-wrap {
    width: 100%;
}

/* Section Headings */
.zil-section-heading {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    color: var(--zil-title-color);
    margin: 10px 0 2px 0;
}

/* Super Link / CTA Button */
.zil-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--zil-radius);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.zil-btn-superlink {
    background-color: var(--zil-item-bg);
    color: var(--zil-item-text) !important;
    border: 1px solid var(--zil-item-border);
}

.zil-btn-superlink:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* 10 SUPERLINK ANIMATIONS (Screenshot 1) */
.anim-rubberband { animation: zilRubberBand 2s infinite ease-in-out; }
@keyframes zilRubberBand {
    0% { transform: scale(1); }
    30% { transform: scaleX(1.18) scaleY(0.82); }
    40% { transform: scaleX(0.82) scaleY(1.18); }
    50% { transform: scaleX(1.08) scaleY(0.92); }
    65% { transform: scaleX(0.96) scaleY(1.04); }
    75% { transform: scaleX(1.03) scaleY(0.97); }
    100% { transform: scale(1); }
}

.anim-pulse { animation: zilPulse 1.8s infinite; }
@keyframes zilPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.anim-heartbeat { animation: zilHeartBeat 1.4s infinite ease-in-out; }
@keyframes zilHeartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

.anim-blink { animation: zilBlink 1.5s infinite; }
@keyframes zilBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.anim-buzz { animation: zilBuzz 0.8s infinite linear; }
@keyframes zilBuzz {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-2deg); }
    20%, 40%, 60%, 80% { transform: rotate(2deg); }
}

.anim-tada { animation: zilTada 1.8s infinite; }
@keyframes zilTada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.08) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.08) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

.anim-shakeX { animation: zilShakeX 1.6s infinite; }
@keyframes zilShakeX {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.anim-shakeY { animation: zilShakeY 1.6s infinite; }
@keyframes zilShakeY {
    0%, 100% { transform: translateY(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateY(-5px); }
    20%, 40%, 60%, 80% { transform: translateY(5px); }
}

.anim-wobble { animation: zilWobble 1.8s infinite; }
@keyframes zilWobble {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px) rotate(-3deg); }
    30% { transform: translateX(6px) rotate(2deg); }
    45% { transform: translateX(-5px) rotate(-2deg); }
    60% { transform: translateX(3px) rotate(1deg); }
    75% { transform: translateX(-1px) rotate(-1deg); }
}

/* Standard Link */
.zil-btn-standard {
    background-color: var(--zil-item-bg);
    color: var(--zil-item-text) !important;
    border: 1px solid var(--zil-item-border);
}

.zil-btn-standard:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.zil-btn-title { flex: 1; text-align: right; }
.zil-btn-icon { display: flex; align-items: center; margin-right: 8px; }

/* Clickable Banner */
.zil-banner-link {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: var(--zil-radius);
    border: 1px solid var(--zil-item-border);
    transition: transform 0.2s;
}
.zil-banner-link:hover { transform: scale(1.01); }
.zil-banner-img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Rich Text Card */
.zil-text-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--zil-item-border);
    border-radius: var(--zil-radius);
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.zil-text-title {
    font-size: 15px; font-weight: 700; color: #222; margin-bottom: 10px; border-bottom: 1px dashed #eee; padding-bottom: 6px;
}
.zil-text-body { font-size: 13.5px; line-height: 1.8; color: #444; }
.theme-is-dark .zil-text-card {
    background: rgba(24, 27, 33, 0.90) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
.theme-is-dark .zil-text-title {
    color: #f8fafc !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15) !important;
}
.theme-is-dark .zil-text-body {
    color: #cbd5e1 !important;
}

/* Responsive Video Embed (Aparat / YouTube) */
.zil-video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--zil-radius);
    border: 1px solid var(--zil-item-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.zil-video-responsive iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Grid Titles */
.zil-grid-title {
    font-size: 14.5px; font-weight: 700; text-align: center; color: var(--zil-title-color); margin-bottom: 8px;
}

/* Socials Grid (2-column) */
.zil-socials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zil-social-item {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 12px;
    border-radius: var(--zil-radius); border: 1px solid var(--zil-item-border); text-decoration: none; font-weight: 700;
    font-size: 13.5px; color: #333 !important; background: #EDE2F4; transition: all 0.2s;
}
.zil-social-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.zil-social-instagram { background-color: #EDE2F4; }
.zil-social-aparat    { background-color: #F5E0E8; }
.zil-social-rubika    { background-color: #EDE2F4; }
.zil-social-youtube   { background-color: #F7DEDF; }
.zil-social-telegram  { background-color: #E1EFF6; }
.zil-social-twitter   { background-color: #E1F5FE; }
.zil-social-linkedin  { background-color: #E1EFF7; }
.zil-social-facebook  { background-color: #E3F2FD; }
.zil-social-bale      { background-color: #E3ECEE; }
.zil-social-eitaa     { background-color: #F5EBDF; }
.zil-social-soroush   { background-color: #E1F0F8; }
.zil-social-virgool   { background-color: #E3F2FD; }
.zil-social-bazaar    { background-color: #E8F5E9; }
.zil-social-myket     { background-color: #E1F5FE; }
.zil-social-clubhouse { background-color: #FFF9C4; }
.zil-social-twitch    { background-color: #EDE7F6; }
.zil-social-patreon   { background-color: #ECEFF1; }
.zil-social-pinterest { background-color: #FFEBEE; }
.zil-social-tiktok    { background-color: #F5F5F5; }
.zil-social-spotify   { background-color: #E8F5E9; }

/* Messengers Grid */
.zil-messengers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zil-messengers-grid.layout-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zil-messengers-grid.layout-grid_2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zil-messengers-grid.layout-full { display: flex; flex-direction: column; gap: 8px; }
.zil-messengers-grid.layout-grid_2 .zil-messenger-item,
.zil-messengers-grid.layout-full .zil-messenger-item {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px;
}
.zil-messengers-grid.theme-colors .zil-messenger-item {
    background-color: var(--zil-item-bg) !important;
    color: var(--zil-item-text) !important;
    border-color: var(--zil-item-border) !important;
}
.zil-messenger-item {
    display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--zil-radius);
    border: 1px solid var(--zil-item-border); transition: transform 0.2s; text-decoration: none; color: #333; font-weight: 700;
}
.zil-messenger-item:hover { transform: translateY(-2px); }
.zil-msg-label { font-size: 13.5px; font-weight: 700; margin-right: 6px; }
.zil-msg-telegram  { background-color: #E1EFF6; }
.zil-msg-bale      { background-color: #E3ECEE; }
.zil-msg-whatsapp  { background-color: #E2F2E4; }
.zil-msg-eitaa     { background-color: #F5EBDF; }
.zil-msg-soroush   { background-color: #E1F0F8; }
.zil-msg-rubika    { background-color: #EDE2F4; }
.zil-msg-gap       { background-color: #E8F5E9; }
.zil-msg-discord   { background-color: #ECEEFB; }
.zil-msg-skype     { background-color: #E1F5FC; }
.zil-msg-linkedin  { background-color: #E1EFF7; }
.zil-msg-messenger { background-color: #E2EFFC; }
.zil-msg-viber     { background-color: #EFEFFC; }
.zil-msg-line      { background-color: #E5F9E5; }
.zil-msg-kik       { background-color: #F0F8E8; }

/* Contacts List */
.zil-contacts-list { display: flex; flex-direction: column; gap: 8px; }
.zil-contact-card {
    display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 14px;
    border-radius: var(--zil-radius); border: 1px solid var(--zil-item-border); background-color: var(--zil-item-bg);
    color: var(--zil-item-text) !important; text-decoration: none; transition: all 0.2s;
}
.zil-contact-right { display: flex; align-items: center; gap: 8px; }
.zil-contact-label { font-size: 13px; }
.zil-contact-val { font-size: 15px; font-weight: 700; direction: ltr; }

/* Routing & Navigation */
.zil-routing-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-radius: var(--zil-radius, 12px);
    padding: 14px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.zil-grid-title {
    font-size: 14.5px;
    font-weight: 800;
    text-align: center;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.zil-address-text {
    font-size: 12.5px;
    text-align: center;
    color: #475569;
    margin-bottom: 10px;
    line-height: 1.6;
}
.zil-routing-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.zil-route-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: var(--zil-radius, 8px);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.zil-route-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.zil-route-btn:active {
    transform: translateY(0);
}
.route-btn-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.route-app-name {
    font-size: 13.5px;
    font-weight: 700;
}
.route-btn-arrow {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: transform 0.2s, opacity 0.2s;
}
.zil-route-btn:hover .route-btn-arrow {
    transform: translateX(-3px);
    opacity: 1;
}

/* Route Buttons Colors (zilink-colors) */
.route-neshan { background-color: #FFF1F2; border-color: #FECDD3; color: #BE123C !important; }
.route-balad  { background-color: #EEF2FF; border-color: #C7D2FE; color: #4338CA !important; }
.route-google { background-color: #ECFDF5; border-color: #A7F3D0; color: #065F46 !important; }
.route-waze   { background-color: #F0F9FF; border-color: #BAE6FD; color: #0369A1 !important; }

/* Dark Theme Support for Route Buttons */
.theme-is-dark .route-neshan { background-color: rgba(225, 29, 72, 0.14); border-color: rgba(225, 29, 72, 0.28); color: #FDA4AF !important; }
.theme-is-dark .route-balad  { background-color: rgba(79, 70, 229, 0.14); border-color: rgba(79, 70, 229, 0.28); color: #C7D2FE !important; }
.theme-is-dark .route-google { background-color: rgba(5, 150, 105, 0.14); border-color: rgba(5, 150, 105, 0.28); color: #6EE7B7 !important; }
.theme-is-dark .route-waze   { background-color: rgba(2, 132, 199, 0.14); border-color: rgba(2, 132, 199, 0.28); color: #7DD3FC !important; }

/* Theme-colors Mode Override */
.zil-routing-box.theme-colors .zil-route-btn {
    background-color: var(--zil-item-bg) !important;
    color: var(--zil-item-text) !important;
    border-color: var(--zil-item-border) !important;
}

/* Card Container Dark Mode & Elevation */
.theme-is-dark .zil-routing-box,
.theme-is-dark .zil-product-card,
.theme-is-dark .zil-faq-box,
.theme-is-dark .zil-countdown-box {
    background: rgba(24, 27, 33, 0.90) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
.theme-is-dark .zil-grid-title,
.theme-is-dark .zil-product-title,
.theme-is-dark .zil-faq-box h4,
.theme-is-dark .zil-countdown-box h4 {
    color: #f8fafc !important;
}
.theme-is-dark .zil-address-text {
    color: #94a3b8 !important;
}

/* FAQ & Countdown & RSS */
.zil-faq-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-radius: var(--zil-radius, 12px);
    padding: 14px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.faq-item { border-bottom: 1px solid #f1f5f9; padding: 8px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: 13.5px; color: #1e293b; margin-bottom: 4px; }
.faq-a { font-size: 12.5px; color: #64748b; line-height: 1.6; }
.theme-is-dark .faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.theme-is-dark .faq-q { color: #f1f5f9; }
.theme-is-dark .faq-a { color: #cbd5e1; }

.zil-countdown-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-radius: var(--zil-radius, 12px);
    padding: 14px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.countdown-timer-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.timer-cell {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 6px 12px;
    min-width: 50px;
}
.timer-val { font-size: 16px; font-weight: 800; color: #007bff; display: block; }
.timer-lbl { font-size: 10.5px; color: #64748b; }
.theme-is-dark .timer-cell { background: rgba(255, 255, 255, 0.08); }
.theme-is-dark .timer-val { color: #38bdf8; }
.theme-is-dark .timer-lbl { color: #94a3b8; }

/* Product Card */
.zil-product-card {
    display: flex;
    background: #ffffff;
    border-radius: var(--zil-radius, 12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 14px;
    gap: 14px;
    align-items: stretch;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.product-media-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.product-img {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}
.product-img-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-is-dark .product-img-placeholder {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    color: #94a3b8;
}
.zil-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.zil-product-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 4px 0;
}
.zil-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 8px 0;
}
.zil-product-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}
.zil-product-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.zil-product-old {
    color: #94a3b8;
    font-size: 11.5px;
    text-decoration: line-through;
}
.zil-product-new {
    color: #059669;
    font-weight: 800;
    font-size: 14.5px;
}
.zil-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--zil-item-bg);
    border: 1px solid var(--zil-item-border);
    border-radius: var(--zil-radius, 6px);
    padding: 7px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--zil-item-text) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}
.zil-product-btn:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}
.zil-product-btn:active {
    transform: translateY(0);
}

/* Divider */
.zil-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.2s ease;
}
.zil-divider.spacing-small { margin: 8px 0; }
.zil-divider.spacing-medium { margin: 18px 0; }
.zil-divider.spacing-large { margin: 32px 0; }
.zil-divider:not(.is-fullwidth) {
    width: 82%;
    margin-left: auto;
    margin-right: auto;
}
.zil-divider .div-svg-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zil-item-border, #94a3b8);
}
.zil-divider.sharp-edges svg line,
.zil-divider.sharp-edges svg path {
    stroke-linecap: square;
}
.zil-divider:not(.sharp-edges) svg line,
.zil-divider:not(.sharp-edges) svg path {
    stroke-linecap: round;
}

/* Footer */
.zil-footer { margin-top: auto; padding-top: 30px; text-align: center; }
.zil-footer-badge {
    display: inline-block; background: rgba(255, 255, 255, 0.8); border: 1px dashed #ccc; padding: 6px 14px;
    border-radius: 20px; font-size: 11.5px; color: #666; backdrop-filter: blur(4px);
}

/* Radius override helper classes for individual blocks */
.radius-capsule { border-radius: 24px !important; }
.radius-rounded { border-radius: 12px !important; }
.radius-subtle  { border-radius: 5px !important; }
.radius-sharp   { border-radius: 0px !important; }

/* Text Block Typography (Screenshots 1 & 2) */
.zil-text-card.size-small .zil-text-body { font-size: 12px; }
.zil-text-card.size-medium .zil-text-body { font-size: 14px; }
.zil-text-card.size-large .zil-text-body { font-size: 16px; }
.zil-text-card.size-heading-small {
    background: transparent;
    border: none;
    padding: 6px 0;
    box-shadow: none;
}
.zil-text-card.size-heading-small .zil-text-body {
    font-size: 16px;
    font-weight: 700;
    color: var(--zil-title);
}
.zil-text-card.size-heading-medium {
    background: transparent;
    border: none;
    padding: 8px 0;
    box-shadow: none;
}
.zil-text-card.size-heading-medium .zil-text-body {
    font-size: 19px;
    font-weight: 800;
    color: var(--zil-title);
}
.zil-text-card.size-heading-large {
    background: transparent;
    border: none;
    padding: 10px 0;
    box-shadow: none;
}
.zil-text-card.size-heading-large .zil-text-body {
    font-size: 22px;
    font-weight: 800;
    color: var(--zil-title);
}
.zil-text-card.align-right { text-align: right; }
.zil-text-card.align-center { text-align: center; }
.zil-text-card.align-left { text-align: left; }

/* Social Networks Layouts (Screenshots 3 & 4) */
.zil-socials-grid.layout-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.zil-socials-grid.layout-compact .zil-social-item {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
}
.zil-socials-grid.layout-compact .zil-social-label {
    display: none;
}
.zil-socials-grid.layout-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.zil-socials-grid.layout-full .zil-social-item {
    width: 100%;
}
.zil-socials-grid.theme-colors .zil-social-item {
    background-color: var(--zil-item-bg) !important;
    color: var(--zil-item-text) !important;
    border-color: var(--zil-item-border) !important;
}

/* UI/UX Pro Max: Mobile Tactile Press Feedback & Touch Ergonomics */
.zil-btn:active,
.zil-social-item:active,
.zil-messenger-item:active,
.zil-routing-btn:active,
.zil-product-card:active {
    transform: scale(0.97) !important;
    transition: transform 100ms ease;
}

.zil-btn,
.zil-social-item,
.zil-messenger-item {
    min-height: 48px;
    touch-action: manipulation;
}

/* ========================================================
   CREATIVE BLOCK 1: Smart Bank Card Block (Iranian Banks)
   ======================================================== */
.zil-bank-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: inherit;
}
.zil-bank-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.bank-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bank-card-bank-name {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
}
.bank-card-chip {
    width: 32px;
    height: 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.bank-card-number {
    font-family: 'Vazirmatn', monospace;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
    direction: ltr;
    text-align: center;
    padding: 6px 0;
    user-select: all;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}
.bank-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bank-card-owner {
    font-size: 13px;
    font-weight: 700;
}
.bank-card-actions {
    display: flex;
    gap: 6px;
}
.btn-bank-copy {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-bank-copy:hover {
    background: rgba(255, 255, 255, 0.3);
}
.btn-bank-copy:active {
    transform: scale(0.96);
}
.bank-card-sheba {
    font-size: 11px;
    direction: ltr;
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.22);
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Bank Theme Gradients */
.bank-melli    { background: linear-gradient(135deg, #881337 0%, #4c0519 100%); }
.bank-mellat   { background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%); }
.bank-saman    { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.bank-pasargad { background: linear-gradient(135deg, #ca8a04 0%, #1e293b 100%); }
.bank-blu      { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.bank-tejarat  { background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%); }
.bank-parsian  { background: linear-gradient(135deg, #78350f 0%, #451a03 100%); }
.bank-keshavarzi { background: linear-gradient(135deg, #15803d 0%, #14532d 100%); }
.bank-zibal    { background: linear-gradient(135deg, #059669 0%, #0f766e 100%); }

/* ========================================================
   CREATIVE BLOCK 2: Smart vCard Digital Business Card
   ======================================================== */
.zil-vcard-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF !important;
    border-radius: var(--zil-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}
.zil-vcard-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}
.zil-vcard-btn:active {
    transform: scale(0.97);
}
.vcard-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vcard-badge {
    background: #2563EB;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
}

/* ========================================================
   CREATIVE BLOCK 3: Office Hours & Availability Indicator
   ======================================================== */
.office-hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 8px;
    transition: all 0.2s;
    user-select: none;
}
.office-hours-badge.is-online {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.office-hours-badge.is-offline {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.status-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.is-online .status-indicator-dot {
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: statusPulse 2s infinite;
}
.is-offline .status-indicator-dot {
    background: #EF4444;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Floating Toast System for Copy & Action Feedback */
.yek-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}
.yek-toast {
    pointer-events: auto;
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.25s ease;
    min-width: 240px;
    max-width: 420px;
    direction: rtl;
}
.yek-toast.toast-success { border-right: 4px solid #10B981; }
.yek-toast.toast-info    { border-right: 4px solid #2563EB; }
.yek-toast.toast-danger  { border-right: 4px solid #EF4444; }
.yek-toast.fade-out {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
}
@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



