/*
Theme Name:   Starter Theme
Theme URI:    
Description:  A custom dark-mode WooCommerce theme with OTP auth, newsletter, and RTL support.
Author:       Developer
Author URI:   
Version:      1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain:  starter-theme
Tags: e-commerce, custom-logo, custom-menu, featured-images, full-width-template, rtl-language-support, translation-ready, woocommerce, dark
*/
@import url("./css/fontello.css");

.content-page, .page-content {
    padding-bottom: 0;
}

/* ============================================
   Footer Styles - Global
   ============================================ */
#footer-model-3 {
    position: relative !important;
    clear: both;
    margin-top: 0;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.et-footers-wrapper {
    margin-top: auto;
    position: relative !important;
    clear: both;
    bottom: auto !important;
    top: auto !important;
    display: block !important;
    visibility: visible !important;
}

body.footer-fixed .et-footers-wrapper,
body.footer-fixed footer,
body.footer-fixed #footer-model-3,
body[class*="footer-fixed"] .et-footers-wrapper,
body[class*="footer-fixed"] footer,
body[class*="footer-fixed"] #footer-model-3 {
    position: relative !important;
}

/* Override any inline styles that might set fixed position */
.et-footers-wrapper[style*="fixed"],
.et-footers-wrapper[style*="position:fixed"],
footer[style*="fixed"],
footer[style*="position:fixed"],
#footer-model-3[style*="fixed"],
#footer-model-3[style*="position:fixed"] {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
}

body.footer-fixed,
body[class*="footer-fixed"] {
    padding-bottom: 0 !important;
}

.template-content,
#main-content,
.site-content,
.content-area {
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.template-content,
#main-content {
    position: relative;
}

.et-footers-wrapper {
    position: relative;
    margin-top: 0;
    clear: both;
}

body {
    position: relative;
}

.et-footers-wrapper::before {
    content: '';
    display: block;
    clear: both;
}

.et-footers-wrapper {
    position: relative !important;
    margin-top: 0 !important;
    clear: both !important;
}

#main-content,
.template-content,
.page-wrapper > *:not(.et-footers-wrapper) {
    position: relative;
}

#footer-model-3 {
    position: relative !important;
    clear: both;
    margin-top: 0;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ============================================
   Blog Template Styles (page-blog.php only)
   ============================================ */

/* gradient-text color follows theme — see color-schemes.css */

body.page-template-page-blog .yellow-gradient,
body.single-post .yellow-gradient {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline-block;
}

/* Breadcrumb */
.eq-breadcrumb {
    background: rgba(0,0,0,.4);
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .8rem;
}
.eq-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color .2s;
}
.eq-breadcrumb a:hover { color: var(--eq-accent-1); }

/* Floating animation */
body.page-template-page-blog .floating-card {
    animation: float 6s ease-in-out infinite;
}

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

/* Blog card hover effects */
body.page-template-page-blog .blog-card {
    transition: all 0.3s ease;
}

body.page-template-page-blog .blog-card:hover {
    transform: translateY(-5px);
    border-color: #ef4444 !important;
}

/* Pulse glow animation */
body.page-template-page-blog .pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
    }
}

/* Yellow glow animation */
body.page-template-page-blog .yellow-glow {
    animation: yellow-glow 2s infinite;
}

@keyframes yellow-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* Blog Hero Section */
body.page-template-page-blog #blog-hero {
    position: relative;
    overflow: hidden;
}

body.page-template-page-blog #blog-hero .hero-overlay {
    position: absolute;
    inset: 0;
}

body.page-template-page-blog #blog-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-template-page-blog #blog-hero .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.8), transparent, rgba(220, 38, 38, 0.8));
}

/* Blog Content Section */
body.page-template-page-blog #blog-content {
    background-color: #111827;
}

body.page-template-page-blog #blog-sidebar .sticky {
    position: -webkit-sticky;
    position: sticky;
}

body.page-template-page-blog #search-widget input:focus {
    border-color: #ef4444;
    outline: none;
}

body.page-template-page-blog #search-widget input {
    direction: rtl;
    text-align: right;
}

body.page-template-page-blog #search-widget button {
    left: 0.75rem;
    right: auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-template-page-blog #search-widget button svg {
    display: block;
}

body.page-template-page-blog #social-follow a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.page-template-page-blog #newsletter-signup input:focus {
    border-color: #ffd700;
    outline: none;
}

body.page-template-page-blog .page-numbers {
    transition: all 0.3s ease;
}
body.page-template-page-blog .page-numbers:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    body.page-template-page-blog #blog-sidebar,
    body.single-post aside {
        margin-top: 2rem;
    }
    body.page-template-page-blog #blog-sidebar .sticky,
    body.single-post aside .sticky {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    body.page-template-page-blog .blog-card {
        margin-bottom: 1rem;
    }
    .eq-breadcrumb { font-size: .72rem; }
    .eq-breadcrumb div { padding: .5rem 1rem; }
}

/* ============================================
   Blog Single — Comment Styling
   ============================================ */
body.single-post .comment-list,
body.single-post .comment-list .children {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.single-post .comment-list .children {
    padding-right: 1.5rem !important;
    margin-top: .75rem !important;
    border-right: 2px solid rgba(255,255,255,.06);
}
body.single-post .comment-list > li {
    margin-bottom: 1rem;
}
body.single-post .comment-body {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}
body.single-post .comment-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}
body.single-post .comment-author img.avatar {
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid rgba(255,255,255,.08);
}
body.single-post .comment-author .fn,
body.single-post .comment-author .fn a {
    font-size: .88rem;
    font-weight: 700;
    color: #e5e7eb !important;
    text-decoration: none;
}
body.single-post .comment-author .says {
    display: none;
}
body.single-post .comment-metadata {
    margin-bottom: .75rem;
}
body.single-post .comment-metadata a {
    font-size: .72rem;
    color: #6b7280 !important;
    text-decoration: none;
}
body.single-post .comment-metadata a:hover {
    color: #ef4444 !important;
}
body.single-post .comment-content {
    color: #9ca3af;
    font-size: .88rem;
    line-height: 1.7;
}
body.single-post .comment-content p {
    margin: 0 0 .5rem;
    color: #9ca3af !important;
}
body.single-post .comment-content a {
    color: #ef4444;
}
body.single-post .reply {
    margin-top: .5rem;
}
body.single-post .reply a,
body.single-post .comment-reply-link {
    font-size: .75rem;
    color: #6b7280 !important;
    text-decoration: none;
    padding: .25rem .75rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    transition: all .2s;
}
body.single-post .reply a:hover,
body.single-post .comment-reply-link:hover {
    color: #ef4444 !important;
    border-color: rgba(239,68,68,.2);
    background: rgba(239,68,68,.05);
}

/* Comment form */
body.single-post .comment-respond {
    margin-top: 1.5rem;
}
body.single-post .logged-in-as {
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: 1rem;
}
body.single-post .logged-in-as a {
    color: #9ca3af;
    text-decoration: none;
}
body.single-post .logged-in-as a:hover {
    color: #ef4444;
}
body.single-post .comment-form-comment label,
body.single-post .comment-form label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: .35rem;
}
body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"] {
    width: 100%;
    background: rgba(17,24,39,.8);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .65rem 1rem;
    color: #fff;
    font-size: .85rem;
    font-family: inherit;
    transition: border-color .2s;
}
body.single-post .comment-form input:focus {
    border-color: rgba(239,68,68,.4);
    outline: none;
}
body.single-post .comment-form .form-submit {
    margin-top: .5rem;
}
body.single-post .comment-notes,
body.single-post .comment-form-cookies-consent {
    font-size: .75rem;
    color: #6b7280;
}
body.single-post .comment-form-cookies-consent label {
    display: inline;
    font-weight: 400;
}
body.single-post #cancel-comment-reply-link {
    color: #ef4444;
    font-size: .8rem;
    text-decoration: none;
    margin-right: .5rem;
}

/* ============================================
   Footer Styles
   ============================================ */

#footer-model-3 {
    position: relative;
    overflow: hidden;
}

#footer-model-3 .newsletter-glow {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
}

#footer-model-3 .space-x-reverse {
    direction: rtl;
}

#footer-model-3 .text-right {
    text-align: right;
}

#footer-model-3 ul li {
    text-align: right;
}

#footer-model-3 .newsletter-glow form {
    direction: rtl;
}

#footer-model-3 .newsletter-glow input {
    text-align: right;
}

#footer-model-3 .newsletter-glow button {
    border-radius: 0.5rem 0 0 0.5rem;
}

#footer-model-3 .newsletter-glow input {
    border-radius: 0 0.5rem 0.5rem 0;
}

#footer-model-3 .flex.space-x-reverse {
    direction: rtl;
}

@media (max-width: 1024px) {
    #footer-model-3 .grid.lg\:grid-cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    #footer-model-3 .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

@media (max-width: 768px) {
    #footer-model-3 .lg\:col-span-2 {
        grid-column: span 1 / span 1;
    }
    
    #footer-model-3 .flex.justify-center.space-x-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    #footer-model-3 .flex.justify-center.space-x-4 button {
        width: 100%;
    }
}
#footer-model-3 .absolute.inset-0 {
    opacity: 0.3;
    filter: grayscale(1);
}

/* ============================================
   Generic Gradient Text (theme color from color-schemes.css)
   ============================================ */
.gradient-text,
body .gradient-text {
    display: inline-block;
}

/* ============================================
   WooCommerce Cart Styles
   ============================================ */

/* WooCommerce Cart - Remove item button */
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--eq-accent-1), var(--eq-accent-2)) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link::before,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link::before {
    content: "\f2ed";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    display: inline-block;
}

/* WooCommerce Cart - Proceed to checkout button */
.wc-block-cart__submit-button.wp-element-button,
.wc-block-cart__submit-button.contained {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    letter-spacing: 0.3px;
    width: 100%;
}
.wc-block-cart__submit-button.wp-element-button:hover,
.wc-block-cart__submit-button.contained:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}
.wc-block-cart__submit-button.wp-element-button:active,
.wc-block-cart__submit-button.contained:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* =============================================
   WooCommerce Checkout - Dark Theme Styling
   ============================================= */

body.woocommerce-checkout .page-wrapper,
body.woocommerce-cart .page-wrapper,
body.woocommerce-checkout .container.content-page,
body.woocommerce-cart .container.content-page,
body.woocommerce-checkout .sidebar-position-without,
body.woocommerce-cart .sidebar-position-without,
body.woocommerce-checkout .content.col-md-12,
body.woocommerce-cart .content.col-md-12,
body.woocommerce-checkout .wpb-content-wrapper,
body.woocommerce-cart .wpb-content-wrapper,
body.woocommerce-checkout .wpb_wrapper,
body.woocommerce-cart .wpb_wrapper {
    background-color: #0f1117 !important;
}

.wc-block-checkout,
.wp-block-woocommerce-checkout {
    color: #e5e7eb !important;
}

.wc-block-components-checkout-step__heading,
.wc-block-components-checkout-step__title {
    color: #f9fafb !important;
    font-weight: 700 !important;
}
.wc-block-components-checkout-step__description {
    color: #9ca3af !important;
}

.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="password"],
.wc-block-checkout input[type="number"],
.wc-block-checkout input[type="search"],
.wc-block-checkout textarea,
.wc-block-components-text-input input,
.wc-block-components-address-form input {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
    border: 1px solid #374151 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    caret-color: #60a5fa;
}
.wc-block-checkout input:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-address-form input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    outline: none !important;
    background-color: #111827 !important;
}

.wc-block-components-text-input label,
.wc-block-components-address-form label,
.wc-block-checkout label {
    color: #9ca3af !important;
    font-size: 13px !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-address-form .is-active label {
    color: #a5b4fc !important;
    font-size: 11px !important;
}

.wc-block-checkout input::placeholder,
.wc-block-components-text-input input::placeholder,
.wc-block-components-address-form input::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

.wc-block-checkout select,
.wc-blocks-components-select__select,
.wc-block-components-country-input select,
.wc-block-components-state-input select {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
    border: 1px solid #374151 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.wc-block-checkout select:focus,
.wc-blocks-components-select__select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    outline: none !important;
    background-color: #111827 !important;
}

.wc-blocks-components-select,
.wc-blocks-components-select__container,
.wc-block-components-country-input,
.wc-block-components-state-input,
.wc-block-components-address-form__state,
.wc-block-components-address-form__country,
.wc-blocks-components-select__select option {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #f3f4f6 !important;
}

.wc-blocks-components-select .wc-blocks-components-select__label {
    color: #9ca3af !important;
}

.wc-blocks-components-select__container::after {
    border-color: #9ca3af transparent transparent transparent !important;
}

.wc-block-components-text-input.has-error input,
.wc-block-components-address-form .has-error input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.wc-block-components-validation-error {
    color: #f87171 !important;
    font-size: 12px !important;
}

.wc-block-checkout input[type="checkbox"] {
    accent-color: #6366f1 !important;
    background-color: #1f2937 !important;
    border: 1px solid #4b5563 !important;
}

.wc-block-components-checkout-step {
    border-color: #374151 !important;
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-checkout__sidebar {
    background-color: #111827 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 12px !important;
    padding: 16px !important;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item__description,
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
    color: #d1d5db !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #f9fafb !important;
    font-weight: 700 !important;
}

.wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions .wp-element-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    width: 100%;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__actions .wp-element-button:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}

.wc-block-checkout__guest-checkout-notice {
    color: #9ca3af !important;
    font-size: 13px !important;
}

.wc-block-checkout a {
    color: #818cf8 !important;
}
.wc-block-checkout a:hover {
    color: #a5b4fc !important;
}

/* =============================================
   Auth Page - Sign In / Sign Up
   ============================================= */

.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}
.auth-bg-orb-1 {
    width: 500px;
    height: 500px;
    background: #dc2626;
    top: -150px;
    right: -100px;
    animation: auth-float 15s ease-in-out infinite;
}
.auth-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    bottom: -100px;
    left: -100px;
    animation: auth-float 20s ease-in-out infinite reverse;
}
.auth-bg-orb-3 {
    width: 300px;
    height: 300px;
    background: #eab308;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: auth-float 18s ease-in-out infinite 3s;
}
@keyframes auth-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.auth-container {
    width: 100%;
    max-width: 460px;
    background: rgba(17, 17, 27, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px 36px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}
.auth-brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}
.auth-brand h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f9fafb;
    margin: 0 0 6px;
}
.auth-brand p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.auth-tabs {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}
.auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 11px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1;
    position: relative;
    font-family: inherit;
}
.auth-tab i {
    font-size: 13px;
}
.auth-tab:hover {
    color: #d1d5db;
}
.auth-tab-active {
    color: #fff !important;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.auth-tab-indicator {
    display: none;
}

.auth-form {
    display: none;
    animation: auth-fadeIn 0.35s ease;
}
.auth-form-active {
    display: block;
}
@keyframes auth-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-field-row {
    display: flex;
    gap: 12px;
}
.auth-field-row .auth-field {
    flex: 1;
}

.auth-field {
    position: relative;
    margin-bottom: 18px;
}
.auth-field input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #f3f4f6;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}
.auth-field input:focus {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.04);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.auth-field label {
    position: absolute;
    right: 44px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 13px;
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
    padding: 0 4px;
    direction: rtl;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
    top: -1px;
    transform: translateY(-50%);
    font-size: 11px;
    color: #dc2626;
    background: rgba(17, 17, 27, 0.95);
    right: 12px;
    padding: 0 6px;
}

.auth-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 2;
    direction: ltr;
}
.auth-field:focus-within .auth-field-icon {
    color: #dc2626;
}

.auth-password-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
    z-index: 2;
}
.auth-password-toggle:hover {
    color: #9ca3af;
}

.auth-field-error input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.auth-field-valid input {
    border-color: #22c55e;
}

.auth-password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -10px 0 16px;
    padding: 0 4px;
}
.auth-strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}
.auth-strength-bar {
    height: 4px;
    flex: 1;
    border-radius: 4px;
    background: #374151;
    opacity: 0.4;
    transition: all 0.3s ease;
}
.auth-strength-text {
    font-size: 11px;
    color: #9ca3af;
    min-width: 40px;
    text-align: left;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
}
.auth-checkbox input[type="checkbox"] {
    display: none;
}
.auth-checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.auth-checkbox input:checked + .auth-checkmark {
    background: #dc2626;
    border-color: #dc2626;
}
.auth-checkbox input:checked + .auth-checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}
.auth-forgot-link {
    font-size: 13px;
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-forgot-link:hover {
    color: #ef4444;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}
.auth-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}
.auth-submit-btn:hover::before {
    opacity: 1;
}
.auth-submit-btn:active {
    transform: translateY(0);
}
.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}
.auth-submit-register {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}
.auth-submit-register:hover {
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
}

.auth-hidden {
    display: none !important;
}
.auth-btn-loading {
    pointer-events: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.auth-divider span {
    font-size: 12px;
    color: #4b5563;
}

.auth-switch-text {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}
.auth-switch-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}
.auth-switch-btn:hover {
    color: #ef4444;
    text-decoration: underline;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
    animation: auth-fadeIn 0.3s ease;
}
.auth-alert i {
    font-size: 16px;
    flex-shrink: 0;
}
.auth-alert-hidden {
    display: none !important;
}
.auth-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}
.auth-alert-error i {
    color: #ef4444;
}
.auth-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}
.auth-alert-success i {
    color: #22c55e;
}

body.page-template-page-auth .page-wrapper,
body.page-template-page-auth .container.content-page,
body.page-template-page-auth .sidebar-position-without,
body.page-template-page-auth .content.col-md-12 {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.page-template-page-auth .container.content-page {
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 28px 20px;
        border-radius: 18px;
    }
    .auth-brand-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 14px;
    }
    .auth-brand h1 {
        font-size: 1.3rem;
    }
    .auth-field-row {
        flex-direction: column;
        gap: 0;
    }
    .auth-tab {
        font-size: 13px;
        padding: 9px 12px;
    }
}

.auth-form-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-form-header-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ef4444;
}
.auth-form-header-icon-green {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.2);
    color: #22c55e;
}
.auth-form-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 8px;
}
.auth-form-header p {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Misc / Theme Utilities
   ============================================ */

.mobile-header-wrapper .et_b_header-logo.et_element-top-level img {
    width: 100% !important;
    margin: 0 auto !important;
}

.mobile-menu-popup ul.et-mobile-menu > li > a,
.mobile-menu-popup .menu > li > a {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* Sidebar recent posts — constrain images */
body.page-template-page-blog #recent-posts .w-14,
body.page-template-page-blog #featured-post .h-36,
body.single-post .eq-sb-card .w-14 {
    overflow: hidden !important;
}
body.page-template-page-blog #recent-posts .w-14 img,
body.single-post .eq-sb-card .w-14 img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: cover !important;
    display: block;
}
body.page-template-page-blog #featured-post .h-36 img {
    width: 100% !important;
    height: 100% !important;
    max-height: 9rem !important;
    object-fit: cover !important;
    display: block;
}
