
.dadar-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 1rem;
    padding: .75rem 1.25rem;
    font-size: .875rem;
    font-weight: 900;
    color: #fff;
    transition: all .3s ease;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #2dd4bf 100%);
    box-shadow: 0 10px 25px rgba(20,184,166,.25), 0 4px 12px rgba(15,118,110,.15);
}

    .dadar-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 35px rgba(20,184,166,.35), 0 8px 18px rgba(15,118,110,.20);
    }

    .dadar-btn-primary:active {
        transform: translateY(0);
    }

@font-face {
    font-family: Bnazanin;
    src: url('../css/fonts/BNAZANB.TTF');
}

@font-face {
    font-family: BYekan;
    src: url('../css/fonts/Yekan.ttf');
}

@font-face {
    font-family: vazir;
    src: url('../css/fonts/Vazirmatn-RD-Regular.ttf');
}

div, h1, h2, h3, h4, h5, h6, button, a, input, label, textarea {
    font-family: vazir !important;
}
/* =========================================================
   Novin Dadar / Dadyar - site.css
   Theme: White / Gray / Black / Shiny Gold
   ========================================================= */

:root {
    --teal: #14B8A6;
    --teal-readable: #0F766E;
    --teal-soft: #CCFBF1;
    --teal-dark: #115E59;
    --teal-mid: #2DD4BF;
    --teal-light: #99F6E4;
    --teal-shiny: linear-gradient( 135deg, #115E59 0%, #14B8A6 22%, #99F6E4 45%, #2DD4BF 62%, #0F766E 100% );
    --blue: #3B82F6;
    --blue-readable: #1D4ED8;
    --blue-soft: #DBEAFE;
    --blue-dark: #1E40AF;
    --blue-mid: #60A5FA;
    --blue-light: #BFDBFE;
    --blue-shiny: linear-gradient( 135deg, #1E40AF 0%, #3B82F6 22%, #BFDBFE 45%, #60A5FA 62%, #1D4ED8 100% );
    --black: #111111;
    --page: #f6f6f4;
    --border: #e8e2d6;
    --muted: #71717a;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-shadow: 0 24px 70px rgba(17, 17, 17, 0.07);
}

/* =========================================================
   Base
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 0%, rgba(201, 154, 61, 0.12), transparent 28%), linear-gradient(180deg, #ffffff, #f5f5f3);
    color: #111111;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

::selection {
    background: rgba(201, 154, 61, 0.25);
    color: #111111;
}

/* =========================================================
   Main Shell / Layout
   ========================================================= */

.dadar-shell {
    max-width: 1560px;
    margin: 0 auto;
    padding: 20px 24px 40px;
}

.dadar-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.dadar-sidebar {
    display: none;
}

/* =========================================================
   Cards
   ========================================================= */

.dadar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dadar-inner-card {
    background: #ffffff;
    border: 1px solid #ece7dd;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .dadar-inner-card:hover {
        transform: translateY(-4px);
        border-color: rgba(201, 154, 61, 0.5);
        box-shadow: 0 18px 42px rgba(17, 17, 17, 0.09);
    }

/* =========================================================
   Hero
   ========================================================= */

.dadar-hero {
    min-height: 280px;
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 18px;
    overflow: hidden;
}

.dadar-hero-img {
    height: 270px;
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.dadar-title {
    font-size: 42px;
    line-height: 1.4;
    font-weight: 900;
    color: #111111;
    letter-spacing: -0.03em;
}

    .dadar-title span {
        background: var(--teal-shiny);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
    }

/* =========================================================
   Buttons
   ========================================================= */
.btn-teal {
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--teal-shiny);
    color: #ffffff;
    border-radius: 14px;
    padding: 12px 24px;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.dadar-btn-teal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--teal-shiny);
    color: #ffffff;
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}


    .dadar-btn-teal:hover {
        transform: translateY(-2px);
        filter: brightness(1.04);
        box-shadow: 0 16px 34px rgba(20, 184, 166, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }


.dadar-btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blue-shiny);
    color: #ffffff;
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(201, 154, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

    .dadar-btn-blue:hover {
        transform: translateY(-2px);
        filter: brightness(1.04);
        box-shadow: 0 16px 34px rgba(201, 154, 61, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

.btn-light {
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e2d6;
    background: #ffffff;
    color: #333333;
    border-radius: 14px;
    padding: 11px 20px;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.dadar-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e2d6;
    background: #ffffff;
    color: #333333;
    border-radius: 14px;
    padding: 11px 20px;
    font-weight: 800;
    font-size: 14px;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

    .dadar-btn-light:hover {
        border-color: var(--teal);
        color: var(--teal-readable);
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(17, 17, 17, 0.07);
    }

/* =========================================================
   Sections
   ========================================================= */

.dadar-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.dadar-section-title {
    font-size: 18px;
    font-weight: 900;
    color: #111111;
}

.dadar-muted {
    color: var(--muted);
}

/* =========================================================
   Grids
   ========================================================= */

.dadar-case-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dadar-tool-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.dadar-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dadar-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* =========================================================
   Inputs
   ========================================================= */

input,
textarea,
select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--teal) !important;
        box-shadow: 0 0 0 4px rgba(201, 154, 61, 0.12);
    }

/* =========================================================
   Tailwind Gold Override
   کمترین تغییر برای طلایی براق
   ========================================================= */

/* فقط بک‌گراندهای طلایی و دکمه‌ها براق شوند */
.bg-\[\#C99A3D\],
.dadar-btn-teal {
    background: var(--teal-shiny) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 24px rgba(201, 154, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

/* متن‌های طلایی خوانا بمانند، گرادینت نشوند */
.text-\[\#C99A3D\] {
    color: var(--teal-readable) !important;
}

/* کادرهای طلایی */
.border-\[\#C99A3D\] {
    border-color: var(--teal-mid) !important;
    box-shadow: 0 0 0 1px rgba(255, 232, 163, 0.25) !important;
}

/* بک‌گراند طلایی روشن */
.bg-\[\#F7E8C5\] {
    background: var(--teal-soft) !important;
}

/* =========================================================
   Badge / Utility Fixes
   ========================================================= */

.badge-teal {
    background: var(--teal-soft);
    color: var(--teal-readable);
    border: 1px solid rgba(201, 154, 61, 0.25);
}

.icon-teal {
    color: var(--teal-readable);
}

.badge-blue {
    background: var(--blue-soft);
    color: var(--blue-readable);
    border: 1px solid rgba(201, 154, 61, 0.25);
}

.icon-blue {
    color: var(--blue-readable);
}

/* =========================================================
   Header Fixes
   ========================================================= */

header {
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

/* =========================================================
   Mobile Bottom Nav
   ========================================================= */

.dadar-mobile-bottom {
    display: none;
}

/* =========================================================
   Toast Fallback
   ========================================================= */

#toast-container > div {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* =========================================================
   Dark Mode
   ========================================================= */

html.dark body,
[data-theme="dark"] body {
    background: radial-gradient(circle at 10% 0%, rgba(201, 154, 61, 0.13), transparent 28%), linear-gradient(180deg, #080808, #151515) !important;
    color: #ffffff;
}

html.dark ::selection,
[data-theme="dark"] ::selection {
    background: rgba(201, 154, 61, 0.35);
    color: #ffffff;
}

html.dark .dadar-card,
[data-theme="dark"] .dadar-card {
    background: rgba(24, 24, 27, 0.92);
    border-color: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

html.dark .dadar-inner-card,
[data-theme="dark"] .dadar-inner-card {
    background: rgba(24, 24, 27, 0.92);
    border-color: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

html.dark .dadar-title,
html.dark .dadar-section-title,
[data-theme="dark"] .dadar-title,
[data-theme="dark"] .dadar-section-title {
    color: #ffffff;
}

html.dark .dadar-btn-light,
[data-theme="dark"] .dadar-btn-light {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

    html.dark .dadar-btn-light:hover {
        border-color: var(--teal-mid);
        color: var(--teal-light);
    }

html.dark input,
html.dark textarea,
html.dark select,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #18181b;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

    html.dark input::placeholder,
    html.dark textarea::placeholder {
        color: #a1a1aa;
    }

html.dark .text-\[\#C99A3D\] {
    color: var(--teal-light) !important;
}

html.dark .bg-\[\#F7E8C5\] {
    background: rgba(201, 154, 61, 0.16) !important;
}

html.dark a,
[data-theme="dark"] a {
    color: inherit;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1280px) {
    .dadar-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

    .dadar-sidebar {
    display: none;
}

    .dadar-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .dadar-tool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dadar-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dadar-shell {
        padding: 14px 14px 90px;
    }

    .dadar-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 14px;
    }

    .dadar-hero-img {
        height: 220px;
    }

    .dadar-title {
        font-size: 28px;
    }

    .dadar-sidebar {
    display: none;
}

    .dadar-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dadar-article-grid {
        grid-template-columns: 1fr;
    }

    .dadar-mobile-bottom {
        display: block;
    }
}

@media (max-width: 600px) {
    .dadar-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dadar-card {
        border-radius: 22px;
    }

    .dadar-case-grid {
        grid-template-columns: 1fr;
    }

    .dadar-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dadar-title {
        font-size: 25px;
        line-height: 1.55;
    }

    .dadar-hero-img {
        height: 190px;
    }

    .dadar-btn-teal,
    .dadar-btn-light {
        width: 100%;
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card {
    box-shadow: 0 8px 18px rgba(201, 154, 61, 0.18), 0 10px 30px rgba(201, 154, 61, 0.10);
}

    .news-card:hover {
        box-shadow: 0 14px 26px rgba(201, 154, 61, 0.25), 0 18px 42px rgba(201, 154, 61, 0.16);
    }
/* =========================================================
   Header App Launcher
   ========================================================= */

.app-launcher-item {
    display: flex;
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 18px;
    border: 1px solid transparent;
    padding: 10px 6px;
    color: #3f3f46;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

    .app-launcher-item:hover {
        transform: translateY(-3px);
        border-color: rgba(20, 184, 166, .30);
        background: rgba(240, 253, 250, .90);
        color: #0f766e;
        box-shadow: 0 12px 24px rgba(15, 118, 110, .10);
    }

.app-launcher-icon {
    display: flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient( 135deg, rgba(204, 251, 241, .95), rgba(153, 246, 228, .75) );
    color: #0f766e;
    font-size: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

html.dark .app-launcher-item {
    color: #d4d4d8;
}

    html.dark .app-launcher-item:hover {
        border-color: rgba(45, 212, 191, .30);
        background: rgba(19, 78, 74, .28);
        color: #99f6e4;
    }

html.dark .app-launcher-icon {
    background: linear-gradient( 135deg, rgba(19, 78, 74, .95), rgba(15, 118, 110, .72) );
    color: #99f6e4;
}
/* =========================================================
   Profile
   ========================================================= */

.profile-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #e4e4e7;
    background: #ffffff;
    padding: 12px 16px;
    color: #18181b;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

    .profile-input:focus {
        border-color: #14b8a6;
        box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
    }

html.dark .profile-input {
    border-color: rgba(255, 255, 255, .10);
    background: #18181b;
    color: #ffffff;
}

    html.dark .profile-input::placeholder {
        color: #71717a;
    }


[x-cloak] { display: none !important; }

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-flex; }


/* =========================================================
   No Sidebar Layout Fix
   حذف ستون خالی سایدبار در دسکتاپ
   ========================================================= */
.dadar-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

.dadar-sidebar {
    display: none !important;
}

#main-content {
    width: 100%;
}

.dadar-shell,
.dadar-hero,
.dadar-card {
    max-width: 100%;
}
