html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.custom-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8faff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text-primary: #0b1e33;
    --text-secondary: #33475b;
    --text-muted: #5e6f7d;
    --border-light: rgba(0, 115, 230, 0.15);
    --border-accent: #2563eb;
    --shadow-color: rgba(0, 0, 0, 0.06);
    --shadow-strong: rgba(0, 85, 255, 0.1);
    --gradient-web3: linear-gradient(135deg, #1e40af, #2563eb, #3b82f6);
    --gradient-accent: linear-gradient(145deg, #2563eb, #1e40af);
    --btn-primary-bg: linear-gradient(145deg, #2563eb, #1e40af);
    --btn-primary-hover: linear-gradient(145deg, #3b82f6, #2563eb);
    --footer-bg: #f1f5f9;
    --footer-text: #1e293b;
    --wave-color-1: rgba(37, 99, 235, 0.1);
    --wave-color-2: rgba(37, 99, 235, 0.07);
    --wave-color-3: rgba(37, 99, 235, 0.04);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --box-shadow: 0 20px 40px -12px var(--shadow-color);
    --text-shadow: -2px 0px 6px rgba(0,0,0,0.3);
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 70px 0 0 0;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto; /* header, main, footer */
    min-height: 100vh;
}

    .custom-theme[data-theme="dark"] {
        --bg-primary: #0a0f1c;
        --bg-secondary: #0f1422;
        --bg-card: rgba(18, 24, 40, 0.9);
        --bg-glass: rgba(12, 18, 34, 0.95);
        --text-primary: #e9f1ff;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-light: rgba(0, 200, 255, 0.2);
        --border-accent: #3b82f6;
        --shadow-color: rgba(255, 255, 255, 0.5);
        --shadow-strong: rgba(0, 150, 255, 0.15);
        --gradient-web3: linear-gradient(135deg, #a0e9ff, #6b8cff, #c084fc);
        --gradient-accent: linear-gradient(145deg, #3b82f6, #1e40af);
        --footer-bg: #0b0f1a;
        --footer-text: #e2e8f0;
        --wave-color-1: rgba(59, 130, 246, 0.15);
        --wave-color-2: rgba(59, 130, 246, 0.1);
        --wave-color-3: rgba(59, 130, 246, 0.05);
        --nav-bg: rgba(10, 15, 28, 0.95);
        --box-shadow: 0 10px 20px -12px var(--shadow-color);
        --text-shadow: -2px 0px 6px rgba(255,255,255,0.5);
    }

    .custom-theme[data-theme="light"] .d-light {
        display: block;
    }

    .custom-theme[data-theme="light"] .d-dark {
        display: none;
    }

    .custom-theme[data-theme="dark"] .d-dark {
        display: block;
    }

    .custom-theme[data-theme="dark"] .d-light {
        display: none;
    }

    .custom-theme[dir="rtl"] {
        direction: rtl;
        text-align: right;
    }

    .custom-theme[dir="ltr"] {
        direction: ltr;
        text-align: left;
    }

    .custom-theme .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 30px;
        width: 100%;
        box-sizing: border-box;
    }

    /* ===== PRELOADER ===== */
    .custom-theme .preload-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

        .custom-theme .preload-overlay.hide {
            opacity: 0;
            visibility: hidden;
        }

    .custom-theme .preload-logo {
        width: 120px;
        height: 120px;
        background: var(--bg-glass);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--border-accent);
        box-shadow: 0 0 50px var(--shadow-strong);
        animation: pulse 1.5s ease infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.custom-theme .preload-logo img {
    width: 80px;
    height: 80px;
}

/* ===== STICKY HEADER ===== */
.custom-theme .header {
    position: fixed;
    top: 0;
    z-index: 99999;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    width: 100%;
}

.custom-theme .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

.custom-theme .header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

    .custom-theme .header-logo img {
        width: 40px;
        height: 40px;
    }

    .custom-theme .header-logo span {
        font-size: 1.5rem;
        font-weight: 700;
        background: var(--gradient-web3);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

/* ===== DESKTOP MENU ===== */
@media (min-width: 901px) {
    .custom-theme .header-menu {
        display: flex;
        align-items: center;
        margin: 0 auto;
        padding: 0 20px;
    }

        .custom-theme .header-menu > ul {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 5px;
        }

        .custom-theme .header-menu ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            .custom-theme .header-menu ul li {
                position: relative;
                cursor: pointer;
                border-radius: 40px;
            }

                .custom-theme .header-menu ul li a {
                    text-decoration: none;
                    color: var(--text-primary);
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 12px 20px;
                    font-weight: 500;
                    border-radius: 40px;
                    transition: all 0.3s ease;
                }

                    .custom-theme .header-menu ul li a:hover {
                        background: rgba(37, 99, 235, 0.1);
                        color: var(--border-accent);
                    }

        .custom-theme .header-menu .menu-arrow {
            width: 6px;
            height: 6px;
            display: inline-block;
            border-right: 2px solid var(--text-secondary);
            border-bottom: 2px solid var(--text-secondary);
            transition: transform 0.3s ease-out;
            margin-inline-start: 8px;
        }

    .custom-theme:not([dir="rtl"]) .header-menu .menu-arrow {
        transform: rotate(-45deg);
    }

    .custom-theme[dir="rtl"] .header-menu .menu-arrow {
        transform: rotate(135deg);
    }

    .custom-theme .header-menu ul li:hover > ul {
        display: block;
    }

    .custom-theme .header-menu ul li:hover > a .menu-arrow {
        transform: rotate(45deg);
    }

    .custom-theme .header-menu ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border-light);
        border-radius: 20px;
        padding: 10px;
        min-width: 200px;
        display: none;
        box-shadow: 0 10px 30px var(--shadow-color);
        z-index: 100;
    }

    .custom-theme[dir="rtl"] .header-menu ul ul {
        left: auto;
        right: 0;
    }

    .custom-theme .header-menu ul ul li {
        width: 100%;
    }

        .custom-theme .header-menu ul ul li a {
            padding: 10px 15px;
            border-radius: 16px;
            white-space: nowrap;
        }

    .custom-theme .header-menu ul ul ul {
        top: 0;
        left: 100%;
        display: none;
    }

    .custom-theme[dir="rtl"] .header-menu ul ul ul {
        left: auto;
        right: 100%;
    }

    .custom-theme .header-menu ul ul li:hover > ul {
        display: block;
    }
}

/* ===== MOBILE MENU - HAMBURGER ONLY, NO HOVER ===== */
@media (max-width: 900px) {
    .custom-theme .header-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        padding: 20px;
        border-top: 1px solid var(--border-light);
        overflow-y: auto;
        z-index: 9999;
        margin: 0;
        box-sizing: border-box;
    }

        .custom-theme .header-menu.active {
            display: block;
            animation: slideIn 0.3s ease forwards;
        }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .custom-theme .header-menu > ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .custom-theme .header-menu ul li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

        .custom-theme .header-menu ul li a {
            text-decoration: none;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            font-weight: 500;
            border-radius: 12px;
            width: 100%;
            box-sizing: border-box;
        }

            /* NO HOVER EFFECTS IN MOBILE - COMPLETELY DISABLED */
            .custom-theme .header-menu ul li a:hover {
                background: transparent !important;
                color: var(--text-primary) !important;
            }

    .custom-theme .header-menu .menu-arrow {
        width: 6px;
        height: 6px;
        display: inline-block;
        border-right: 2px solid var(--text-secondary);
        border-bottom: 2px solid var(--text-secondary);
        transition: transform 0.3s ease-out;
        margin-inline-start: 8px;
    }

    .custom-theme:not([dir="rtl"]) .header-menu .menu-arrow {
        transform: rotate(-45deg);
    }

    .custom-theme[dir="rtl"] .header-menu .menu-arrow {
        transform: rotate(135deg);
    }

    /* MOBILE ACCORDION - CLICK ONLY */
    .custom-theme .header-menu ul ul {
        display: none;
        padding: 0;
        margin: 0;
        margin-inline-start: 20px;
        width: calc(100% - 20px);
        background: transparent;
        border: none;
        box-shadow: none;
        list-style: none;
    }

    .custom-theme .header-menu ul li.open > ul {
        display: block;
    }

    .custom-theme .header-menu ul li.open > a .menu-arrow {
        transform: rotate(45deg) !important;
    }

    .custom-theme .header-menu ul ul li a {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .custom-theme .header-menu ul ul ul {
        margin-inline-start: 20px;
    }

    /* Hero section mobile */
    .custom-theme .hero {
        flex-direction: column;
        padding: 60px 0;
        width: 100%;
    }

    .custom-theme .hero-content,
    .custom-theme .hero-form-wrapper {
        width: 100%;
        flex: 1 1 100%;
    }

    .custom-theme .hero-title {
        font-size: 2.5rem;
    }

    .custom-theme .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

        .custom-theme .hero-buttons .btn {
            width: 100%;
            text-align: center;
            box-sizing: border-box;
        }

    .custom-theme .form-card {
        width: 100%;
        box-sizing: border-box;
    }

    .custom-theme .counter-section {
        padding: 30px 20px;
    }

    .custom-theme .counter-item {
        min-width: 120px;
    }
}

@media (max-width: 600px) {
    .custom-theme .container {
        padding: 0 20px;
    }

    .custom-theme .header-container {
        padding: 0 20px;
    }

/*    .custom-theme .header-logo span {
        display: none;
    }*/

    .custom-theme .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .custom-theme .nav-btn-login {
        display: none;
    }

    .custom-theme .theme-toggle-float {
        bottom: 20px;
        right: 20px;
        padding: 8px;
    }

    .custom-theme .hero-title {
        font-size: 2rem;
    }
}

/* ===== NAV BUTTONS ===== */
.custom-theme .nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.custom-theme .mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

    .custom-theme .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

@media (max-width: 900px) {
    .custom-theme .mobile-menu-btn {
        display: flex;
    }
}

.custom-theme .nav-btn {
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.custom-theme .nav-btn-login {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-light);
}

    .custom-theme .nav-btn-login:hover {
        background: rgba(37, 99, 235, 0.1);
        border-color: var(--border-accent);
    }

.custom-theme .nav-btn-signup {
    background: var(--gradient-accent);
    color: white;
}

    .custom-theme .nav-btn-signup:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px var(--shadow-strong);
    }

/* ===== FLOATING THEME TOGGLE ===== */
.custom-theme .theme-toggle-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    gap: 8px;
    background: var(--bg-glass);
    padding: 10px;
    border-radius: 60px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.custom-theme[dir="rtl"] .theme-toggle-float {
    right: auto;
    left: 30px;
}

.custom-theme .theme-btn {
    border: none;
    cursor: pointer;
    background: transparent;
    margin-top:8px;
    margin-bottom: 8px;
}

/* ===== BUTTON STYLES ===== */
.custom-theme .btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 8px 20px var(--shadow-strong);
}

.custom-theme .btn-primary {
    background: var(--btn-primary-bg);
    color: white;
}

    .custom-theme .btn-primary:hover {
        background: var(--btn-primary-hover);
        box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
        transform: translateY(-2px);
    }

.custom-theme .btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-accent);
    color: var(--text-secondary);
    box-shadow: none;
}

    .custom-theme .btn-outline:hover {
        background: rgba(37, 99, 235, 0.1);
        transform: translateY(-2px);
    }

.custom-theme .btn-submit {
    width: 100%;
}

/* ===== WAVE BACKGROUND ===== */
.custom-theme .wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

    .custom-theme .wave-bg svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: scaleY(-1);
    }

.custom-theme .wave-1 {
    opacity: 0.5;
}

.custom-theme .wave-2 {
    opacity: 0.3;
    top: 20px;
}

.custom-theme .wave-3 {
    opacity: 0.2;
    top: 40px;
}

/* ===== HERO SECTION ===== */
.custom-theme .hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.custom-theme .hero-content {
    flex: 1 1 45%;
}
    .custom-theme .hero-content img {
        width: 100%;
        border-radius: 8px;
        border: 1px solid var(--border-light);
        box-shadow: var(--box-shadow);
        transition: all 0.3s;
    }
        .custom-theme .hero-content img:hover {
            border-color: var(--border-accent);
            box-shadow: 0 30px 40px -12px var(--shadow-strong);
            transition: all 0.3s;
        }

.custom-theme .hero-form-wrapper {
    flex: 1 1 45%;
    position: relative;
}

.custom-theme .hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.custom-theme .hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.custom-theme[dir="ltr"] .hero-desc {
    border-left: 5px solid var(--border-accent);
    padding-left: 20px;
}

.custom-theme[dir="rtl"] .hero-desc {
    border-right: 5px solid var(--border-accent);
    padding-right: 20px;
}

.custom-theme .hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== FORM ===== */
.custom-theme .form-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 35px 30px;
    position: relative;
    box-shadow: var(--box-shadow);
}

.custom-theme .form-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.custom-theme .form-subtitle {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.custom-theme .form-group {
    margin-bottom: 20px;
    width: 100%;
}

    .custom-theme .form-group input,
    .custom-theme .form-group textarea,
    .custom-theme .form-group select {
        width: 100%;
        padding: 14px 22px;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid var(--border-light);
        border-radius: 40px;
        font-size: 1rem;
        color: var(--text-primary);
        transition: all 0.2s;
        box-sizing: border-box;
        font-family: inherit;
    }

    .custom-theme .form-group textarea {
        border-radius: 24px;
        resize: vertical;
        min-height: 120px;
    }

.custom-theme[data-theme="dark"] .form-group input,
.custom-theme[data-theme="dark"] .form-group textarea,
.custom-theme[data-theme="dark"] .form-group select {
    background: rgba(255, 255, 255, 0.05);
}

.custom-theme .form-group input:focus,
.custom-theme .form-group textarea:focus,
.custom-theme .form-group select:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.custom-theme .checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

    .custom-theme .checkbox label {
        color: var(--text-secondary);
    }

    .custom-theme .checkbox a {
        color: var(--border-accent);
        text-decoration: none;
    }

/* ===== COUNTER ===== */
.custom-theme .counter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin: 60px 0;
    padding: 40px;
    border-radius: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    box-shadow: var(--box-shadow);
}

.custom-theme .counter-item {
    text-align: center;
    min-width: 150px;
}

.custom-theme .counter-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-web3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.custom-theme .counter-text {
    color: var(--text-secondary);
}

/* ===== FEATURES ===== */
.custom-theme .section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.custom-theme .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.custom-theme .feature-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--box-shadow);
}

    .custom-theme .feature-item:hover {
        border-color: var(--border-accent);
        box-shadow: 0 30px 40px -12px var(--shadow-strong);
        transform: translateY(-8px);
    }

.custom-theme .feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.custom-theme .feature-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.custom-theme .feature-text {
    color: var(--text-secondary);
}

/* ===== BLOG GRID ===== */
.custom-theme .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.custom-theme .blog-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

    .custom-theme .blog-card:hover {
        transform: translateY(-5px);
        border-color: var(--border-accent);
        box-shadow: 0 30px 40px -12px var(--shadow-strong);
    }

.custom-theme .blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.custom-theme .blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-theme .blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.custom-theme .blog-title {
    font-size: 1.4rem;
    margin: 12px 0;
    color: var(--text-primary);
}

.custom-theme .blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.custom-theme .blog-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ===== TEAM GRID ===== */
.custom-theme .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.custom-theme .team-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
}

    .custom-theme .team-card:hover {
        transform: translateY(-5px);
        border-color: var(--border-accent);
        box-shadow: 0 30px 40px -12px var(--shadow-strong);
    }

.custom-theme .team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--border-accent);
    object-fit: cover;
    margin-bottom: 20px;
}

.custom-theme .team-name {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.custom-theme .team-role {
    color: var(--border-accent);
    margin-bottom: 10px;
}

.custom-theme .team-bio {
    color: var(--text-muted);
}

/* ===== CLIENTS ===== */
.custom-theme .clients-section {
    margin: 70px 0;
    padding: 50px 0;
    background: var(--bg-secondary);
    border-radius: 50px;
    border: 1px solid var(--border-light);
}

.custom-theme .clients-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.custom-theme .client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.custom-theme .client-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: filter 0.3s;
}

    .custom-theme .client-logo:hover {
        filter: grayscale(0);
    }

/* ===== FAQ ===== */
.custom-theme .faq-grid {
    margin: 50px auto;
}

.custom-theme .faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.custom-theme .faq-question {
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
}

.custom-theme .faq-icon {
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.custom-theme .faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.custom-theme .faq-answer {
    max-height: 0;
    padding: 0 25px;
    background: var(--bg-card);
    border-top: 1px solid transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.custom-theme .faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px 25px;
    border-top-color: var(--border-light);
}

/* ===== PAGE HEADER (BREADCRUMB + TITLE) ===== */
.custom-theme .page-header {
    margin: 20px 0 10px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    width: 100%;
}

.custom-theme .page-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.custom-theme .breadcrumb {
    margin-bottom: 15px;
}

.custom-theme .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-theme .breadcrumb-item {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

    .custom-theme .breadcrumb-item a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.2s;
        padding: 6px 12px;
        border-radius: 30px;
        background: rgba(37, 99, 235, 0.05);
    }

        .custom-theme .breadcrumb-item a:hover {
            color: var(--border-accent);
            background: rgba(37, 99, 235, 0.1);
        }

    .custom-theme .breadcrumb-item.active {
        color: var(--border-accent);
        font-weight: 500;
    }

.custom-theme[dir="ltr"] .breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: var(--text-muted);
}

.custom-theme[dir="rtl"] .breadcrumb-item:not(:last-child)::after {
    content: "\\";
    margin: 0 8px;
    color: var(--text-muted);
}

.custom-theme .page-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-left: 0.5rem;
    background: var(--gradient-web3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.custom-theme[dir="rtl"] .page-title {
    margin-right: 0.5rem;
}

/* ===== CONTENT CARD (برای تمام صفحات داخلی) ===== */
.custom-theme .content-card {
    margin: 0 auto 60px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}

/* ===== META INFO (نویسنده، تاریخ، دسته‌بندی) ===== */
.custom-theme .content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.custom-theme .content-category {
    background: var(--gradient-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
}

.custom-theme .content-date,
.custom-theme .content-readtime {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== AUTHOR INFO ===== */
.custom-theme .content-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 30px;
}

.custom-theme .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--border-accent);
    object-fit: cover;
}

.custom-theme .author-info {
    display: flex;
    flex-direction: column;
}

.custom-theme .author-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.custom-theme .author-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== CONTENT MEDIA (تصاویر، ویدیو و...) ===== */
.custom-theme .content-figure {
    margin: 30px 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.custom-theme .content-image {
    width: 100%;
    height: auto;
    display: block;
}

.custom-theme .content-figure figcaption {
    padding: 15px 20px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

/* ===== CONTENT BODY (متن اصلی) ===== */
.custom-theme .content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    text-shadow: var(--text-shadow);
    color: var(--text-secondary);
}

    .custom-theme .content-body h2 {
        font-size: 2rem;
        color: var(--text-primary);
        margin: 40px 0 20px;
    }

    .custom-theme .content-body h3 {
        font-size: 1.5rem;
        color: var(--text-primary);
        margin: 30px 0 15px;
    }

    .custom-theme .content-body h4 {
        font-size: 1.2rem;
        color: var(--text-primary);
        margin: 25px 0 10px;
    }

.custom-theme .content-intro {
    font-size: 1.2rem;
    border-inline-start: 5px solid var(--border-accent);
    padding: 0 0 0 25px;
    margin: 0 0 30px;
    font-style: italic;
    color: var(--text-primary);
}

.custom-theme[dir="rtl"] .content-intro {
    padding: 0 25px 0 0;
    border-inline-start: none;
    border-inline-end: 5px solid var(--border-accent);
}

/* ===== QUOTE ===== */
.custom-theme .content-quote {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    font-style: italic;
    position: relative;
}

    .custom-theme .content-quote p {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .custom-theme .content-quote cite {
        color: var(--text-muted);
        font-size: 1rem;
        display: block;
        text-align: right;
    }

/* ===== INLINE MEDIA ===== */
.custom-theme .content-media {
    margin: 30px 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

    .custom-theme .content-media img {
        width: 100%;
        height: auto;
    }

    .custom-theme .content-media figcaption {
        padding: 10px 15px;
        background: var(--bg-secondary);
        color: var(--text-muted);
        font-size: 0.9rem;
        border-top: 1px solid var(--border-light);
    }

/* ===== STATS / NUMBERS ===== */
.custom-theme .content-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin: 50px 0;
    padding: 30px;
    background: var(--gradient-accent);
    border-radius: 28px;
    color: white;
}

.custom-theme .stat-item {
    text-align: center;
}

.custom-theme .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.custom-theme .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== LISTS ===== */
.custom-theme .content-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

    .custom-theme .content-list li {
        margin-bottom: 15px;
        padding: 10px 20px;
        background: var(--bg-secondary);
        border-radius: 40px;
        border: 1px solid var(--border-light);
    }

        .custom-theme .content-list li strong {
            color: var(--border-accent);
        }

.custom-theme .content-list-bullet {
    list-style: disc;
    padding-inline-start: 25px;
    margin: 20px 0;
}

    .custom-theme .content-list-bullet li {
        margin-bottom: 8px;
        color: var(--text-secondary);
    }

.custom-theme .content-list-number {
    list-style: decimal;
    padding-inline-start: 25px;
    margin: 20px 0;
}

    .custom-theme .content-list-number li {
        margin-bottom: 8px;
        color: var(--text-secondary);
    }

/* ===== CONTENT FOOTER (تگ‌ها، اشتراک‌گذاری) ===== */
.custom-theme .content-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.custom-theme .content-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.custom-theme .tags-label {
    font-weight: 600;
    color: var(--text-primary);
}

.custom-theme .tag-link {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .custom-theme .tag-link:hover {
        background: var(--border-accent);
        color: white;
        border-color: var(--border-accent);
    }

.custom-theme .content-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.custom-theme .share-label {
    font-weight: 600;
    color: var(--text-primary);
}

.custom-theme .share-buttons {
    display: flex;
    gap: 8px;
}

.custom-theme .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.2rem;
}

    .custom-theme .share-btn:hover {
        background: var(--border-accent);
        color: white;
        transform: translateY(-3px);
    }

/* ===== RELATED CONTENT (مطالب/محصولات مرتبط) ===== */
.custom-theme .related-content {
    margin-top: 60px;
}

.custom-theme .related-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.custom-theme .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.custom-theme .related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -8px var(--shadow-color);
}

    .custom-theme .related-card:hover {
        transform: translateY(-5px);
        border-color: var(--border-accent);
        box-shadow: 0 20px 30px -8px var(--shadow-strong);
    }

    .custom-theme .related-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-bottom: 1px solid var(--border-light);
    }

.custom-theme .related-content {
    padding: 20px;
}

.custom-theme .related-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.custom-theme .related-heading {
    font-size: 1.2rem;
    margin: 0;
}

    .custom-theme .related-heading a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.2s;
    }

        .custom-theme .related-heading a:hover {
            color: var(--border-accent);
        }

/* ===== CONTACT / ABOUT PAGE SPECIFIC ===== */
.custom-theme .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.custom-theme .info-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: 28px;
    border: 1px solid var(--border-light);
}

.custom-theme .info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.custom-theme .info-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.custom-theme .info-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.custom-theme .map-container {
    margin: 40px 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    height: 400px;
}

/* ===== CONTACT FORM ===== */
.custom-theme .contact-form {
    max-width: 600px;
    margin: 40px auto;
}

.custom-theme .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.custom-theme .footer {
    margin-top: 100px;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-light);
    border-radius: 40px 40px 0 0;
    padding: 60px 0 40px;
    width: 100%;
}

    .custom-theme .footer .container {
        padding: 0 30px;
    }

.custom-theme .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.custom-theme .footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-accent);
    display: inline-block;
}

.custom-theme .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .custom-theme .footer-links li {
        margin-bottom: 14px;
    }

    .custom-theme .footer-links a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.2s;
        padding: 6px 12px;
        border-radius: 30px;
        display: inline-block;
    }

        .custom-theme .footer-links a:hover {
            color: var(--text-primary);
            background: rgba(59, 130, 246, 0.1);
        }

.custom-theme .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.custom-theme[dir="rtl"] .social-icons {
    justify-content: flex-end;
}

.custom-theme .social-icon {
    background: var(--bg-card);
    border-radius: 40px;
    padding: 10px 18px;
    border: 1px solid var(--border-light);
    transition: 0.2s;
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
}

    .custom-theme .social-icon:hover {
        background: var(--border-accent);
        color: white;
    }

.custom-theme .footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-muted);
}

/* ===== SCROLL ANIMATIONS ===== */
.custom-theme [data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .custom-theme [data-scroll].scrolled {
        opacity: 1;
        transform: translateY(0);
    }

.custom-theme .dashboard-menu-item:hover:not(.active) {
    background: rgba(37, 99, 235, 0.1);
    color: var(--border-accent);
}

.custom-theme a {
    text-decoration: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .custom-theme .dashboard-sidebar {
        width: 100% !important;
        border-inline-end: none !important;
        border-bottom: 1px solid var(--border-light);
    }
}

@media (max-width: 900px) {
    .custom-theme .content-card {
        padding: 30px;
    }

    .custom-theme .page-title {
        font-size: 2rem;
    }

    .custom-theme .content-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-theme .content-stats {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .custom-theme .page-header {
        padding: 15px 0;
    }

    .custom-theme .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .custom-theme .content-card {
        padding: 20px;
    }

    .custom-theme .content-meta {
        flex-direction: column;
        gap: 10px;
    }

    .custom-theme .page-title {
        font-size: 1.8rem;
    }

    .custom-theme .content-author {
        flex-wrap: wrap;
    }

    .custom-theme .page-header-container {
        padding: 0 20px;
    }

    .custom-theme .related-grid {
        grid-template-columns: 1fr;
    }

    .custom-theme .form-row {
        grid-template-columns: 1fr;
    }
}
