:root {
    --bg: #FFF8F1;
    --bg-soft: #FFF1E3;
    --surface: #FFFFFF;
    --orange: #FF6A1A;
    --orange-dark: #DE4E07;
    --orange-tint: #FFE4CE;
    --orange-tint-2: #FFD3AC;
    --ink: #2B1A10;
    --ink-soft: #7A6455;
    --border: #F1DFC7;
    --shadow: 0 10px 30px -12px rgba(222,78,7,.18);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    
    /* Font overrides */
    --font-tajawal: 'Tajawal', sans-serif;
    --font-messiri: 'El Messiri', 'Tajawal', sans-serif;
}

body.landing-page {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-tajawal);
    line-height: 1.6;
    overflow-x: hidden;
}

body.landing-page ::-webkit-scrollbar { width: 10px; }
body.landing-page ::-webkit-scrollbar-track { background: var(--bg); }
body.landing-page ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
body.landing-page ::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* Remove background decorative elements from dark theme */
.bg-elements, .ambient-light, .grid-overlay {
    display: none !important;
}

/* Base font-family styles */
h1, h2, h3, .brand {
    font-family: var(--font-messiri);
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-tint);
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.eyebrow .icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

section {
    padding: 76px 0;
}
.section-head {
    max-width: 640px;
    margin-bottom: 44px;
}
.section-head h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}
.section-head p {
    color: var(--ink-soft);
    font-size: 16px;
}

/* ---------- Header ---------- */
header.premium-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 248, 241, .85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(43,26,16,.04);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--orange), var(--orange-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow);
}
.brand-mark .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
    fill: none;
    stroke: currentColor;
}
.brand img {
    max-height: 38px;
    border-radius: 50%;
}
nav.links {
    display: flex;
    gap: 32px;
    font-weight: 700;
    font-size: 15px;
}
nav.links a {
    color: var(--ink-soft);
    transition: .2s;
    text-decoration: none;
}
nav.links a:hover {
    color: var(--orange-dark);
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
    border: none;
    transition: .2s;
    text-decoration: none;
}
.btn .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    fill: none;
    stroke: currentColor;
}
.btn-primary {
    background: var(--orange);
    color: #fff !important;
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--ink) !important;
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange-dark) !important;
    background: rgba(255,106,26,0.03);
}
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
}
.burger .icon {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Mobile Menu Styles */
.landing-mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 15px 40px rgba(43,26,16,.15);
}
.landing-mobile-menu.open {
    display: flex;
}
.landing-mobile-menu a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s;
}
.landing-mobile-menu a:hover {
    background: var(--bg-soft);
    color: var(--orange-dark);
}

/* ---------- Hero ---------- */
.hero {
    padding: 70px 0 40px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 20px;
    color: var(--ink);
}
.hero h1 em {
    font-style: normal;
    color: var(--orange-dark);
    position: relative;
}
.hero p.lead {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.8;
}
.hero-stats {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 14.5px;
    color: var(--ink);
}
.hero-stats .stat .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* signature: fanned card deck */
.card-deck {
    position: relative;
    height: 400px;
}
.deck-card {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 30px -14px rgba(43,26,16,.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .35s ease, box-shadow .35s ease;
}
.deck-card .icon-box {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-tint);
    color: var(--orange-dark);
}
.deck-card .icon-box .icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.deck-card span {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}
.deck-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 26px 40px -16px rgba(222,78,7,.3);
}
.d1 { top: 10px; right: 120px; transform: rotate(-9deg); z-index: 2; }
.d2 { top: 70px; right: 280px; transform: rotate(6deg); z-index: 1; background: var(--orange-tint-2); }
.d3 { top: 150px; right: 60px; transform: rotate(4deg); z-index: 3; }
.d4 { top: 230px; right: 230px; transform: rotate(-6deg); z-index: 1; }
.d5 { top: 255px; right: 5px; transform: rotate(12deg); z-index: 2; background: var(--orange); }
.d5 .icon-box { background: rgba(255,255,255,.25); color: #fff; }
.d5 span { color: #fff; }

/* ---------- Grid of square tool cards ---------- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}
.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .22s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    box-shadow: none;
}
.tool-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.tool-card .icon-box {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--orange-tint);
    color: var(--orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-card .icon-box .icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.tool-card h3 {
    font-size: 15.5px;
    font-weight: 800;
    margin-top: 14px;
    line-height: 1.4;
    color: var(--ink);
}
.tool-card p {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.tool-card .go {
    position: absolute;
    top: 16px;
    left: 16px;
    color: var(--ink-soft);
    opacity: 0;
    transition: .2s;
}
.tool-card:hover .go {
    opacity: 1;
    color: var(--orange-dark);
    transform: translateX(-3px);
}
.tool-card .go .icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}
.badge-new {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--orange);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    z-index: 10;
}
.tool-badge-featured {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--orange-tint-2);
    color: var(--orange-dark);
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    z-index: 10;
}

/* ---------- Categories ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}
.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cat-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.cat-card .icon-box {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: var(--orange-tint);
    color: var(--orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.cat-card .icon-box .icon {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.cat-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--ink);
}
.cat-card .count {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--orange-dark);
    margin-bottom: 10px;
}
.cat-card ul {
    list-style: none;
    font-size: 13px;
    color: var(--ink-soft);
    flex-grow: 1;
}
.cat-card ul li {
    padding: 3px 0;
    border-right: 2px solid var(--orange-tint);
    padding-right: 10px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}
.cat-card .explore {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 13.5px;
    color: var(--orange-dark);
    text-decoration: none;
}
.cat-card .explore .icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* ---------- All tools (tabs + search) ---------- */
.tools-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tab-btn {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-weight: 800;
    font-size: 13.5px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: .2s;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 250px;
}
.search-box .icon {
    width: 17px;
    height: 17px;
    color: var(--ink-soft);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}
.search-box input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    color: var(--ink);
}
.search-box input::placeholder {
    color: var(--ink-soft);
    opacity: 0.7;
}
.tool-group {
    margin-bottom: 44px;
}
.tool-group .group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 800;
    font-size: 16.5px;
    color: var(--ink);
}
.tool-group .group-title .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--orange-tint);
    color: var(--orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-group .group-title .icon-box .icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ---------- Features ---------- */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.feat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.feat-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}
.feat-card .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--orange-tint);
    color: var(--orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feat-card .icon-box .icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.feat-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--ink);
}
.feat-card p {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* Custom why content container */
.why-custom-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--ink-soft);
    line-height: 1.8;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 12px;
}
summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 15.5px;
    color: var(--ink);
}
summary::-webkit-details-marker {
    display: none;
}
summary .icon {
    width: 18px;
    height: 18px;
    color: var(--orange-dark);
    transition: .25s;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
details[open] summary .icon {
    transform: rotate(180deg);
}
details p {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- Footer ---------- */
footer {
    background: var(--ink);
    color: #F3E9DE;
    padding: 60px 0 26px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}
footer .brand {
    color: #fff;
    text-decoration: none;
}
footer .brand-mark {
    background: linear-gradient(145deg, var(--orange), var(--orange-dark));
}
footer p {
    color: #C9B8A9;
    font-size: 13.5px;
    margin-top: 14px;
    max-width: 280px;
    line-height: 1.6;
}
footer h4 {
    font-size: 14px;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 800;
}
footer ul {
    list-style: none;
}
footer ul li {
    margin-bottom: 10px;
}
footer ul a {
    color: #C9B8A9;
    font-size: 13.5px;
    transition: .2s;
    text-decoration: none;
}
footer ul a .icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
footer ul a:hover {
    color: var(--orange);
}
.socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
    text-decoration: none;
}
.socials a:hover {
    background: var(--orange);
}
.socials .icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 22px;
    text-align: center;
    font-size: 12.5px;
    color: #9C8A7C;
}

/* Category Quick Map Section (Bottom) */
.category-map-section {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 30px 0;
}
.category-map-label {
    text-align: center;
    font-weight: 800;
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}
.category-map-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.category-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 100px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}
/* ---------- Category Map (Quick Browse) ---------- */
.category-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.category-map-label {
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--ink);
}
.category-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 14.5px;
    font-weight: 700;
    transition: .2s;
    text-decoration: none;
}
.category-map-link svg, .category-map-link .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
    color: var(--orange-dark);
}
.category-map-link:hover {
    color: var(--orange-dark);
    border-color: var(--orange);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Breadcrumbs (for Category and Tool pages) */
.breadcrumb-nav {
    display: flex;
    font-size: 14px;
    color: var(--ink-soft);
    gap: 8px;
    align-items: center;
    font-weight: 600;
}
.breadcrumb-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover {
    color: var(--orange-dark);
}

/* ===================================================================
   TOOL CONTAINER DESIGN SYSTEM OVERRIDES (AESTHETIC Redesign)
   =================================================================== */

/* Container Box inside tool pages */
.landing-page .tool-container {
    color: var(--ink);
    padding-bottom: 60px;
}
.landing-page .tool-container .bg-white {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--ink) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow) !important;
}

/* Labels and Texts override */
.landing-page .tool-container label,
.landing-page .tool-container .text-slate-700,
.landing-page .tool-container .text-slate-800,
.landing-page .tool-container .text-gray-700,
.landing-page .tool-container .text-gray-800 {
    color: var(--ink) !important;
    font-weight: 700 !important;
}
.landing-page .tool-container .text-slate-600,
.landing-page .tool-container .text-gray-600 {
    color: var(--ink-soft) !important;
}
.landing-page .tool-container .text-slate-500,
.landing-page .tool-container .text-gray-500,
.landing-page .tool-container .text-slate-400,
.landing-page .tool-container .text-gray-400 {
    color: var(--ink-soft) !important;
    opacity: 0.8;
}

/* Inputs, Textareas, Select fields inside Tool View */
.landing-page .tool-container input[type="text"],
.landing-page .tool-container input[type="number"],
.landing-page .tool-container input[type="email"],
.landing-page .tool-container input[type="password"],
.landing-page .tool-container input[type="search"],
.landing-page .tool-container input[type="file"],
.landing-page .tool-container select,
.landing-page .tool-container textarea {
    background-color: var(--surface) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--ink) !important;
    border-radius: 12px !important;
}
.landing-page .tool-container input:focus,
.landing-page .tool-container select:focus,
.landing-page .tool-container textarea:focus {
    border-color: var(--orange) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px var(--orange-tint) !important;
}
.landing-page .tool-container input::placeholder,
.landing-page .tool-container textarea::placeholder {
    color: var(--ink-soft) !important;
    opacity: 0.6;
}

/* Border overrides */
.landing-page .tool-container .border-slate-100,
.landing-page .tool-container .border-slate-200,
.landing-page .tool-container .border-slate-300,
.landing-page .tool-container .border-gray-100,
.landing-page .tool-container .border-gray-200,
.landing-page .tool-container .border-gray-300 {
    border-color: var(--border) !important;
}

.landing-page .tool-container .divide-slate-100 > * + * {
    border-color: var(--border) !important;
}

/* Custom background panels */
.landing-page .tool-container .bg-slate-50,
.landing-page .tool-container .bg-gray-50 {
    background-color: var(--bg-soft) !important;
}
.landing-page .tool-container .bg-slate-100,
.landing-page .tool-container .bg-gray-100 {
    background-color: var(--orange-tint) !important;
}

/* Drag & Drop zone */
.landing-page .tool-container #dropZone {
    border: 2px dashed var(--orange-tint-2) !important;
    background-color: var(--bg-soft) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease;
}
.landing-page .tool-container #dropZone:hover {
    border-color: var(--orange) !important;
    background-color: var(--orange-tint) !important;
}
.landing-page .tool-container #dropZone i {
    color: var(--orange) !important;
}

/* Tab buttons inside tools */
.landing-page .tool-container .tab-inactive {
    color: var(--ink-soft) !important;
}
.landing-page .tool-container .tab-inactive:hover {
    background-color: var(--orange-tint) !important;
    color: var(--orange-dark) !important;
}

/* Tables inside tools */
.landing-page .tool-container table {
    border-color: var(--border) !important;
}
.landing-page .tool-container table thead {
    background-color: var(--bg-soft) !important;
}
.landing-page .tool-container table thead th {
    color: var(--ink) !important;
}
.landing-page .tool-container table tbody tr {
    border-color: var(--border) !important;
}
.landing-page .tool-container table tbody td {
    color: var(--ink-soft) !important;
}

/* Alerts inside tools */
.landing-page .tool-container .bg-blue-50,
.landing-page .tool-container .bg-blue-50\/50,
.landing-page .tool-container .bg-blue-50\/40,
.landing-page .tool-container .bg-blue-50\/30 {
    background-color: #F0F9FF !important;
    border: 1px solid #E0F2FE !important;
    color: #0369a1 !important;
}
.landing-page .tool-container .bg-green-50,
.landing-page .tool-container .bg-green-50\/50 {
    background-color: #F0FDF4 !important;
    border: 1px solid #DCFCE7 !important;
    color: #166534 !important;
}
.landing-page .tool-container .bg-orange-50,
.landing-page .tool-container .bg-orange-50\/50 {
    background-color: var(--orange-tint) !important;
    border: 1px solid var(--orange-tint-2) !important;
    color: var(--orange-dark) !important;
}
.landing-page .tool-container .bg-red-50,
.landing-page .tool-container .bg-red-50\/50 {
    background-color: #FEF2F2 !important;
    border: 1px solid #FEE2E2 !important;
    color: #991b1b !important;
}

/* Results panel in calculators */
.landing-page .tool-container #resultsCard {
    background-color: var(--bg-soft) !important;
    border: 1.5px solid var(--border) !important;
}
.landing-page .tool-container #resultsCard .text-slate-400 {
    color: var(--ink-soft) !important;
}

/* Primary Action Buttons inside tools (forced styling) */
.landing-page .tool-container button[type="submit"],
.landing-page .tool-container .bg-indigo-600,
.landing-page .tool-container .bg-purple-600,
.landing-page .tool-container .bg-blue-600 {
    background-color: var(--orange) !important;
    color: #fff !important;
    font-weight: 800 !important;
    transition: all 0.2s !important;
    box-shadow: var(--shadow) !important;
    border: none !important;
}
.landing-page .tool-container button[type="submit"]:hover,
.landing-page .tool-container .bg-indigo-600:hover,
.landing-page .tool-container .bg-purple-600:hover,
.landing-page .tool-container .bg-blue-600:hover {
    background-color: var(--orange-dark) !important;
    transform: translateY(-1px) !important;
}

/* SEO intro section style */
.seo-text-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--ink-soft);
}
.seo-text-content {
    line-height: 1.9;
    font-size: 1.05rem;
}
.seo-text-content h3 {
    color: var(--ink);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
    font-weight: 800;
}
.seo-text-content p {
    margin-bottom: 1rem;
}
.seo-text-content a {
    color: var(--orange-dark);
    text-decoration: underline;
}

/* Responsive Media Queries */
@media(max-width: 900px) {
    nav.links, .card-deck { display: none; }
    .burger { display: block; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p.lead { margin: 0 auto 28px; }
    .hero-stats { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .date-widget-grid { grid-template-columns: 1fr; }
    .newsletter-card { flex-direction: column; text-align: center; gap: 20px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-input, .newsletter-btn { width: 100%; }
}

@media(max-width: 768px) {
    .tools-toolbar { flex-direction: column; align-items: stretch; }
    .search-box { width: 100%; min-width: 100%; }
}

@media(max-width: 560px) {
    section { padding: 52px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 16px; justify-content: center; }
}

/* ============ DATE WIDGET ============ */
.date-widget-section {
    background: var(--bg-soft);
    padding: 48px 0;
    border-top: 1px solid var(--border);
}
.date-widget-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}
.date-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 28px;
    border-bottom: 2px solid var(--orange-tint);
    padding-bottom: 14px;
}
.date-widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 24px;
    align-items: start;
}
.date-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
}
.date-box-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.date-box-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--orange-dark);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.date-box-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    gap: 4px;
}
.date-box-key {
    font-size: 11.5px;
    color: var(--ink-soft);
    font-weight: 600;
}
.date-box-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    direction: rtl;
}
.date-box-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 120px;
    background: linear-gradient(145deg, var(--orange), var(--orange-dark));
    border-color: transparent;
}
.date-box-day .date-box-label { color: rgba(255,255,255,0.85); }
.date-box-day .date-box-icon { font-size: 2rem; }
.date-box-dayname {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-top: 6px;
    font-family: var(--font-messiri);
}

/* ============ NEWSLETTER ============ */
.newsletter-section {
    padding: 48px 0;
    background: var(--bg);
}
.newsletter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 36px 44px;
    box-shadow: 0 12px 40px rgba(222,78,7,0.25);
}
.newsletter-text h3 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    font-family: var(--font-messiri);
}
.newsletter-text p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.newsletter-input {
    padding: 13px 20px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 280px;
    font-family: inherit;
    background: rgba(255,255,255,0.95);
    color: var(--ink);
    transition: box-shadow 0.2s;
}
.newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}
.newsletter-btn {
    padding: 13px 28px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}
.newsletter-btn:hover {
    background: #111;
    transform: translateY(-1px);
}
