@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {

    --bg-primary: #f8f8f8;
    --bg-secondary: #ffffff;
    --bg-accent: #f1f1f1;
    --bg-dark: #2c3e50;
    --text-primary: #333;
    --text-secondary: #2c3e50;
    --text-accent: #7f8c8d;
    --text-light: #ecf0f1;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #e67e22;
    --accent-hover: #d35400;
    --card-bg: white;
    --header-bg: rgba(255, 255, 255, 0.72);
    --testimonial-bg: rgba(255, 255, 255, 0.1);
    --header-radius: 12px;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {

    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-accent: #2a2a2a;
    --bg-dark: #1a1a1a;
    --text-primary: #f1f1f1;
    --text-secondary: #e1e1e1;
    --text-accent: #b0b0b0;
    --text-light: #f1f1f1;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-color: #e67e22;
    --accent-hover: #f39c12;
    --card-bg: #2a2a2a;
    --header-bg: rgba(18, 18, 18, 0.75);
    --testimonial-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: var(--font-body);
    transition: background-color 0.3s, color 0.3s;
}

::selection {
    background: color-mix(in srgb, var(--accent-color) 22%, transparent);
    color: var(--text-secondary);
}



/* ── Liquid glass back button (universal) ─────────────────────── */
.liqglass-back {
    position: fixed;
    left: 24px;
    top: 84px;
    z-index: 150;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255,255,255,.26);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 4px 20px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.65);
    color: var(--text-primary);
    transition: background .2s, box-shadow .2s, border-color .2s, transform .15s;
}
[data-theme="dark"] .liqglass-back {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.13);
    box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
}
.liqglass-back:hover {
    background: rgba(255,255,255,.42);
    border-color: rgba(255,255,255,.65);
    box-shadow: 0 6px 30px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.8);
    transform: scale(1.1) translateX(-2px);
    color: var(--text-primary);
}
[data-theme="dark"] .liqglass-back:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.24);
    box-shadow: 0 6px 30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.liqglass-back:active { transform: scale(0.93); }
@media (max-width: 900px) {
    .liqglass-back { left: 12px; top: 76px; width: 40px; height: 40px; }
}

/* ── Header ───────────────────────────────────────────────────── */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.2s;
    direction: ltr;
}
[data-theme="dark"] .header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 32px;
    height: 64px;
    gap: 16px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-self: start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--accent-color);
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(230,126,34,0.10);
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    font-family: var(--font-body);
    white-space: nowrap;
    font-style: italic;
}

.logo-text span {
    color: var(--accent-color);
}

/* ── Nav links — centered via grid ───────────────────────────── */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0;
}

.nav-links li a {
    display: block;
    text-decoration: none;
    color: var(--text-accent);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,.07);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
[data-theme="dark"] .nav-links li a { border-color: rgba(255,255,255,.07); }

.nav-links li a:hover {
    color: var(--accent-color);
    background: rgba(230,126,34,0.07);
    border-color: rgba(230,126,34,.18);
}

.nav-links li a:active {
    color: var(--accent-hover);
}

/* Active = orange pill */
.nav-links li a.active {
    color: var(--accent-color);
    background: rgba(230,126,34,0.10);
    font-weight: 600;
    border-color: transparent;
}

/* Profile nav link with avatar */
.nav-profile-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.nav-profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    border: 2px solid rgba(230,126,34,0.3);
}

.nav-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Auth buttons ─────────────────────────────────────────────── */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    justify-self: end;
    flex-shrink: 0;
}

.mobile-auth-buttons,
.mobile-theme-toggle,
.mobile-menu-toggle {
    display: none;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}

/* Secondary — outline */
.btn-login {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.btn-login:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,126,34,.22);
}
.btn-login:active { transform: none; box-shadow: none; }

/* Primary — filled */
.btn-signup {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.btn-signup:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(230,126,34,.30);
}
.btn-signup:active { transform: none; box-shadow: none; }

.btn:focus-visible,
.nav-links li a:focus-visible {
    outline: 2px solid rgba(230,126,34,0.5);
    outline-offset: 2px;
}

.theme-toggle {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    cursor: pointer;
    min-height: 42px;
    padding: 8px 12px;
    min-width: 82px;
    border-radius: var(--header-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-left: 2px;
    box-shadow: 0 6px 14px var(--shadow-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-trigger {
    gap: 8px;
    padding: 8px 12px 8px 10px;
    border-color: rgba(0,0,0,.07);
}
[data-theme="dark"] .user-menu-trigger { border-color: rgba(255,255,255,.07); }

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-accent);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-menu-label {
    font-size: 14px;
    font-weight: 700;
}

.user-menu-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    margin-left: 2px;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}
.user-menu.open .user-menu-caret {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--header-radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1200;
}

.user-menu.open .user-menu-dropdown {
    display: flex;
}

.user-menu-dropdown a,
.user-menu-dropdown button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: var(--header-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    width: 100%;
}

.user-menu-dropdown button {
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 2px 4px;
}

.user-menu-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    min-height: 40px;
}

.user-menu-pref-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
}

.user-menu-theme-toggle,
.mobile-theme-toggle {
    justify-content: space-between;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
    background: color-mix(in srgb, var(--accent-color) 10%, var(--bg-secondary));
    color: var(--accent-color);
    transform: translateX(2px);
}

.user-menu-dropdown a:focus-visible,
.user-menu-dropdown button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent-color) 50%, white);
    outline-offset: 2px;
}

.user-menu-theme-toggle .theme-icon {
    display: none;
}

.theme-switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-color) 18%, var(--bg-secondary));
    border: 1px solid color-mix(in srgb, var(--accent-color) 30%, var(--border-color));
    position: relative;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, white, color-mix(in srgb, white 90%, var(--bg-accent)));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease;
}

[data-theme="dark"] .theme-switch {
    background: color-mix(in srgb, var(--accent-color) 74%, #7a3d00);
    border-color: color-mix(in srgb, var(--accent-color) 65%, #7a3d00);
}

[data-theme="dark"] .theme-switch-thumb {
    transform: translateX(20px);
}

.theme-toggle .theme-label,
.mobile-theme-toggle .theme-label,
.user-menu-theme-toggle .theme-label {
    flex: 1;
    text-align: left;
}

.theme-toggle .theme-label {
    display: none;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

.theme-toggle:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    margin-top: 64px;
    color: white;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.hero .cta-buttons .btn {
    min-width: 210px;
    min-height: 48px;
    padding: 14px 26px;
    border-radius: var(--header-radius);
    font-size: 15px;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.hero .cta-buttons .btn-signup {
    background: linear-gradient(180deg, var(--accent-color), color-mix(in srgb, var(--accent-color) 82%, #a24a00));
    border: 1px solid var(--accent-color);
    color: #fff;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--accent-color) 28%, transparent);
}

.hero .cta-buttons .btn-signup:hover {
    background: linear-gradient(180deg, var(--accent-hover), color-mix(in srgb, var(--accent-hover) 84%, #8f4300));
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 18px 30px color-mix(in srgb, var(--accent-color) 34%, transparent);
}

.hero .cta-buttons .btn-signup:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.16);
}

.hero .cta-buttons .btn-login {
    background: transparent;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

.hero .cta-buttons .btn-login:hover {
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    border-color: var(--accent-hover);
    color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

.hero .cta-buttons .btn-login:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.btn-large {
    padding: 12px 30px;
    font-size: 16px;
}


.section {
    padding: 80px 10%;
    transition: background-color 0.3s;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.section-title p {
    font-size: 18px;
    color: var(--text-accent);
    max-width: 700px;
    margin: 0 auto;
    transition: color 0.3s;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    transition: color 0.3s;
    min-height: 3.2em;
}

.service-content p {
    color: var(--text-accent);
    margin-bottom: 15px;
    transition: color 0.3s;
    flex: 1;
}

.service-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    align-self: flex-start;
}

.service-link:hover {
    text-decoration: underline;
}


.about {
    background-color: var(--bg-accent);
    transition: background-color 0.3s;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.stats {
    display: flex;
    margin-top: 30px;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-accent);
    font-size: 14px;
    transition: color 0.3s;
}


.steps {
    display: flex;
    justify-content: space-between;
    counter-reset: step-counter;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.step p {
    color: var(--text-accent);
    font-size: 15px;
    transition: color 0.3s;
}


.testimonials {
    background-color: var(--bg-dark);
    color: white;
    transition: background-color 0.3s;
}

.testimonials .section-title h2,
.testimonials .section-title p {
    color: white;
}

.testimonials .section-title p {
    opacity: 0.8;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--testimonial-bg);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    transition: background-color 0.3s;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 80px;
    opacity: 0.2;
    font-family: var(--font-body);
    line-height: 0;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    opacity: 0.8;
    font-size: 14px;
}


.footer {
    position: relative;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-dark) 92%, #000) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    padding: 60px 8% 26px;
    border-top: 1px solid color-mix(in srgb, var(--accent-color) 24%, transparent);
    transition: background-color 0.3s, color 0.3s;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-color) 65%, transparent), transparent);
    pointer-events: none;
}


@media (min-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px;
    margin-bottom: 38px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 15px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 999px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    transform: translateX(2px);
}

.footer-column p {
    margin-bottom: 12px;
    color: color-mix(in srgb, var(--text-light) 82%, var(--bg-accent));
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
    color: var(--text-light);
}

.social-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: color-mix(in srgb, var(--text-light) 68%, var(--bg-accent));
    position: relative;
    z-index: 1;
}

.copyright-credit {
    margin-top: 4px;
    font-size: 12px;
    color: color-mix(in srgb, var(--text-light) 45%, transparent);
}

.copyright-credit a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.copyright-credit a:hover {
    opacity: 0.8;
    text-decoration: underline;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    width: 95%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px var(--shadow-color);
    animation: modalIn 0.3s ease-out;
    transition: background-color 0.3s;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background-color: var(--accent-color);
    color: white;
    padding: 20px 25px;
    position: relative;
}

.modal-header h2 {
    margin-bottom: 5px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    border: none;
    background: transparent;
}

.modal-body {
    padding: 25px;
}

.tab-container {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.3s;
}

.tab.active {
    border-bottom: 3px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    outline: none;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.modal-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.modal-button:hover {
    background-color: var(--accent-hover);
}

.modal-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-accent);
    transition: color 0.3s, border-color 0.3s;
}

.modal-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.modal-switch a:hover {
    text-decoration: underline;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .steps {
        flex-direction: column;
        gap: 50px;
    }

    .step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }

    .section-title h2 {
        font-size: 30px;
    }
}


.notifications-icon {
    position: relative;
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 10px;
    min-width: 15px;
    text-align: center;
}

.notifications-dropdown {
    width: 350px;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h6 {
    margin: 0;
}

.mark-all-read {
    font-size: 12px;
    color: var(--accent-color);
    text-decoration: none;
}

.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
}

.notification-item.unread {
    background-color: rgba(230, 126, 34, 0.1);
}

.notification-content {
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-accent);
}

.no-notifications {
    padding: 15px;
    text-align: center;
    color: var(--text-accent);
}

.notifications-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.notifications-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}


.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e67e22;
    margin-left: 4px;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.verified-badge svg {
    display: block;
}

.verified-quote {
    border-left: 4px solid #2ecc71;
}

.unverified-quote {
    border-left: 4px solid #f39c12;
    opacity: 0.8;
}




@media (max-width: 768px) {
    .header {
        padding: 0;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 56px;
        padding: 0 16px;
        gap: 12px;
        max-width: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-text {
        font-size: 17px;
    }

    .auth-buttons {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(44vw, 300px);
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 84px 12px 18px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-left: 1px solid var(--border-color);
        box-shadow: 0 24px 60px color-mix(in srgb, var(--shadow-color) 50%, transparent);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 8px 11px;
        font-size: 12px;
        border-radius: 10px;
        white-space: nowrap;
        width: calc(100% - 14px);
        max-width: 240px;
        margin: 0 auto 8px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        box-shadow: 0 3px 8px color-mix(in srgb, var(--shadow-color) 10%, transparent);
        color: var(--text-secondary);
    }

    .nav-links li a:hover,
    .nav-links li a:active {
        transform: none;
        background: color-mix(in srgb, var(--accent-color) 8%, var(--bg-secondary));
        color: var(--accent-color);
        box-shadow: none;
    }

    .nav-links li a.active {
        background: rgba(230,126,34,0.10);
        color: var(--accent-color);
        font-weight: 600;
        border-color: transparent;
    }

    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
        flex-shrink: 0;
        align-items: stretch;
    }

    .mobile-auth-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    .mobile-user-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 7px;
        margin-top: 8px;
    }

    .mobile-user-menu-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: calc(100% - 14px);
        max-width: 240px;
        margin: 0 auto;
        min-height: 38px;
        padding: 0 14px;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-secondary);
        cursor: pointer;
        box-shadow: 0 3px 8px color-mix(in srgb, var(--shadow-color) 10%, transparent);
        transition: background .15s, color .15s;
    }

    .mobile-user-menu-trigger:hover {
        background: color-mix(in srgb, var(--accent-color) 8%, var(--bg-secondary));
        color: var(--accent-color);
    }

    .mobile-user-menu.open .mobile-user-menu-trigger .user-menu-caret {
        transform: rotate(180deg);
    }

    .mobile-user-menu-dropdown {
        display: none;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        padding-left: 6px;
        margin-top: 2px;
    }

    .mobile-user-menu.open .mobile-user-menu-dropdown {
        display: flex;
    }

    .mobile-user-menu-item {
        width: calc(100% - 14px);
        max-width: 240px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 10px;
        background: color-mix(in srgb, var(--bg-secondary) 96%, var(--bg-accent));
        border: 1px solid color-mix(in srgb, var(--border-color) 88%, var(--accent-color));
        color: var(--text-secondary);
        text-decoration: none;
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 600;
        box-shadow: 0 3px 8px color-mix(in srgb, var(--shadow-color) 10%, transparent);
    }

    .mobile-user-menu-item:hover {
        color: var(--accent-color);
        background: color-mix(in srgb, var(--accent-color) 8%, var(--bg-secondary));
    }

    .mobile-theme-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: 240px;
        min-height: 36px;
        padding: 8px 11px;
        margin: 0;
        background: color-mix(in srgb, var(--bg-secondary) 96%, var(--bg-accent));
        border: 1px solid color-mix(in srgb, var(--border-color) 88%, var(--accent-color));
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-secondary);
        flex-shrink: 0;
        box-shadow: 0 4px 10px color-mix(in srgb, var(--shadow-color) 12%, transparent);
    }

    .mobile-theme-toggle:hover {
        background-color: color-mix(in srgb, var(--accent-color) 8%, var(--bg-secondary));
        color: var(--accent-color);
        transform: translateY(-1px);
    }

    .mobile-theme-toggle:active {
        transform: translateY(0);
    }

    .mobile-theme-toggle .theme-switch {
        width: 36px;
        height: 20px;
    }

    .nav-links::after {
        content: '';
        display: block;
        height: 12px;
        flex-shrink: 0;
    }
}


@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 380px;
        padding: 20px 15px;
        text-align: center;
        justify-content: center;
        margin-top: 56px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
        padding: 14px 25px;
    }

    .hero .cta-buttons .btn {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }
}


@media (max-width: 768px) {
    .section {
        padding: 40px 15px;
    }

    .section-title h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .section-title p {
        font-size: 16px;
    }
}


@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .service-card {
        max-width: none;
        margin: 0;
    }

    .service-img {
        height: 110px;
    }

    .service-content {
        padding: 12px;
    }

    .service-content h3 {
        font-size: 14px;
        min-height: auto;
        margin-bottom: 6px;
    }

    .service-content p {
        font-size: 12px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-link {
        font-size: 12px;
    }
}


@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-text h2 {
        font-size: 28px;
        text-align: center;
    }

    .stats {
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }
}


@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        padding: 0;
    }

    .step::after {
        display: none;
    }

    .step::before {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}


@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }
}


@media (max-width: 768px) {
    .footer {
        padding: 20px 16px 12px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        margin-bottom: 14px;
    }

    /* Follow Us: spans full width at the bottom */
    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-column h3 {
        font-size: 11px;
        letter-spacing: 0.06em;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .footer-column p {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.5;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 4px;
        gap: 7px;
    }

    .social-links a {
        width: 30px;
        height: 30px;
        border-radius: 7px;
    }

    .copyright {
        padding-top: 10px;
        font-size: 11px;
        text-align: center;
    }
}


@media (max-width: 768px) {

    .dashboard-container,
    .container {
        margin: 90px 15px 20px;
        padding: 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }

    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 15px 10px;
        text-align: center;
    }

    .stat-card h3 {
        font-size: 14px;
    }

    .stat-card .value {
        font-size: 24px;
    }
}


@media (max-width: 768px) {
    .project-card {
        margin-bottom: 20px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .filter-section {
        padding: 15px;
    }

    .filter-form,
    .search-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-button,
    .btn-filter {
        margin-top: 15px;
        width: 100%;
    }

    .form-control {
        font-size: 16px;
        padding: 12px 15px;
    }
}


@media (max-width: 768px) {
    .professionals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .professional-card {
        max-width: none;
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .profile-img {
        width: 60px;
        height: 60px;
    }
}


@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .tab {
        padding: 12px 10px;
        font-size: 14px;
    }
}


@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        order: 2;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
        order: 1;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
    }

    .menu-item {
        white-space: nowrap;
        min-width: 100px;
        text-align: center;
        padding: 10px 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


@media (max-width: 768px) {
    .map-container {
        height: 350px;
        margin-bottom: 20px;
    }

    .map-filters {
        padding: 15px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
        font-size: 14px;
    }

    th,
    td {
        padding: 8px 12px;
    }
}





.status-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #ddd);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
}

.status-tab {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    color: var(--text-secondary, #666);
    text-decoration: none;
    font-weight: 500;
    flex-shrink: 0;
}

.status-tab:hover {
    color: var(--accent-color, #e67e22);
}

.status-tab.active {
    border-bottom: 3px solid var(--accent-color, #e67e22);
    color: var(--accent-color, #e67e22);
    font-weight: 600;
}


@media (max-width: 768px) {
    .status-tabs {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px !important;
        margin-bottom: 20px !important;
        gap: 10px !important;
        border-bottom: none !important;
        background-color: var(--bg-accent, #f8f9fa) !important;
        border-radius: 8px !important;

        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .status-tabs::-webkit-scrollbar {
        display: none !important;
    }


    .status-tab {
        white-space: nowrap !important;
        min-width: 110px !important;
        text-align: center !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
        background-color: var(--bg-secondary, white) !important;
        border: 1px solid var(--border-color, #ddd) !important;
        border-bottom: 1px solid var(--border-color, #ddd) !important;
        transition: all 0.3s ease !important;
        color: var(--text-secondary, #666) !important;
        font-weight: 500 !important;
        position: relative !important;
        z-index: 1 !important;
        display: inline-block !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .status-tab:hover {
        background-color: var(--bg-accent, #f5f5f5) !important;
        color: var(--accent-color, #e67e22) !important;
        border-color: var(--accent-color, #e67e22) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    }


    .status-tab.active {
        background-color: var(--accent-color, #e67e22) !important;
        color: white !important;
        border-color: var(--accent-color, #e67e22) !important;
        border-bottom: 1px solid var(--accent-color, #e67e22) !important;
        font-weight: 600 !important;
        box-shadow: 0 3px 10px rgba(230, 126, 34, 0.4) !important;
        z-index: 2 !important;
    }


    .status-tab.active,
    .status-tab.active * {
        color: white !important;
    }


    @media (max-width: 480px) {
        .status-tabs {
            padding: 8px !important;
            gap: 8px !important;
        }

        .status-tab {
            min-width: 85px !important;
            font-size: 12px !important;
            padding: 8px 12px !important;
        }
    }


    @media (max-width: 360px) {
        .status-tab {
            min-width: 75px !important;
            font-size: 11px !important;
            padding: 7px 10px !important;
        }
    }
}


@media (max-width: 768px) {
    .status-tabs::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 20px;
        height: 100%;
        background: linear-gradient(to right, transparent, var(--bg-accent, #f8f9fa));
        pointer-events: none;
        border-radius: 0 8px 8px 0;
    }


    .status-tabs::-webkit-scrollbar-thumb {
        background: transparent;
    }
}


@media (min-width: 769px) {
    .status-tab {
        background-color: transparent !important;
        border: none !important;
        border-bottom: 3px solid transparent !important;
        border-radius: 0 !important;
        color: var(--text-secondary, #666) !important;
        min-width: auto !important;
        margin: 0 !important;
    }

    .status-tab:hover {
        color: var(--accent-color, #e67e22) !important;
        background-color: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .status-tab.active {
        border-bottom: 3px solid var(--accent-color, #e67e22) !important;
        color: var(--accent-color, #e67e22) !important;
        background-color: transparent !important;
        font-weight: 600 !important;
        box-shadow: none !important;
    }
}


[data-theme="dark"] .status-tab {
    color: var(--text-accent, #b0b0b0);
}

[data-theme="dark"] .status-tab:hover {
    color: var(--accent-color, #e67e22);
}

[data-theme="dark"] .status-tab.active {
    color: var(--accent-color, #e67e22);
}


@media (max-width: 768px) {
    [data-theme="dark"] .status-tabs {
        background-color: var(--bg-accent, #2a2a2a) !important;
    }

    [data-theme="dark"] .status-tab {
        color: var(--text-accent, #b0b0b0) !important;
        background-color: var(--bg-secondary, #1e1e1e) !important;
        border-color: var(--border-color, #444) !important;
    }

    [data-theme="dark"] .status-tab:hover {
        color: var(--accent-color, #e67e22) !important;
        background-color: rgba(230, 126, 34, 0.1) !important;
        border-color: var(--accent-color, #e67e22) !important;
    }

    [data-theme="dark"] .status-tab.active {
        background-color: var(--accent-color, #e67e22) !important;
        color: white !important;
        border-color: var(--accent-color, #e67e22) !important;
    }
}




@media (max-width: 768px) {
    .update-form {
        padding: 15px;
        margin-top: 15px;
    }

    .update-form textarea {
        min-height: 80px;
    }

    .update-form .btn {
        width: 100%;
        margin-top: 10px;
    }
}


@media (max-width: 768px) {

    .btn,
    .action-btn,
    .stat-card,
    .service-card,
    .professional-card,
    .project-card {
        min-height: 44px;
    }

    .nav-links li a,
    .menu-item a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .theme-toggle {
        width: 44px;
        height: 44px;
    }

    .close-modal {
        padding: 10px;
        font-size: 20px;
    }
}


@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    p {
        margin-bottom: 15px;
    }
}


@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .project-images-preview {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .project-image-thumb {
        width: 100px;
        height: 75px;
        flex-shrink: 0;
    }
}


@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }

    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}


@media (max-width: 768px) {

    .direct-assign-notification,
    .feature-announcement {
        margin: 15px 0;
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .notification-icon {
        margin-bottom: 10px;
    }

    .announcement-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }
}


@media (max-width: 768px) {

    .welcome-card,
    .next-steps {
        padding: 20px;
        margin-bottom: 20px;
    }

    .next-steps ul {
        padding-left: 15px;
    }

    .next-steps li {
        margin-bottom: 10px;
        font-size: 15px;
    }
}


@media (max-width: 768px) {
    .progress-bar-container {
        height: 6px;
        margin-top: 10px;
    }
}


@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .dashboard-container,
    .section {
        max-width: 100%;
        overflow-x: hidden;
    }
}


@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 15px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .card-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-card .value {
        font-size: 20px;
    }

    .stat-card h3 {
        font-size: 12px;
    }

    .modal-content {
        width: 98%;
        margin: 10px;
    }
}





.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--header-radius);
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: var(--text-primary, #333);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


@media (max-width: 768px) and (max-height: 600px) {
    .nav-links {
        width: min(44vw, 280px);
        padding: 72px 10px 14px;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links li a {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
        justify-content: center;
    }

    .mobile-theme-toggle {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .mobile-auth-buttons {
        margin-top: 10px;
        padding-top: 10px;
        gap: 6px;
    }

    .mobile-auth-buttons .btn {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .mobile-user-menu {
        gap: 6px;
        margin-top: 6px;
    }

    .mobile-user-menu-trigger {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .mobile-user-menu-item {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 12px;
    }
}


@media (max-width: 480px) {
    .nav-links {
        width: min(48vw, 250px);
        padding: 74px 10px 16px;
    }

    .nav-links li,
    .mobile-user-menu,
    .mobile-theme-toggle,
    .mobile-auth-buttons {
        max-width: 100%;
    }
}


@media (max-width: 768px) {
    .nav-links::after {
        content: '';
        display: block;
        height: 12px;
        flex-shrink: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 1002;
        flex-shrink: 0;
    }

    .mobile-theme-toggle,
    .mobile-auth-buttons,
    .nav-links li {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-theme-toggle {
        justify-content: space-between;
    }
}




.dashboard-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}


[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}


@media (max-width: 768px) {

    .dashboard-container,
    .container {
        margin: 90px 15px 20px;
        padding: 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }

    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 15px 10px;
        text-align: center;
    }

    .stat-card h3 {
        font-size: 14px;
    }

    .stat-card .value {
        font-size: 24px;
    }


    .dashboard-two-column,
    [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }


    .welcome-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
        border-radius: 8px;
        box-shadow: 0 3px 10px var(--shadow-color);
    }


    .welcome-card h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .welcome-card p {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        line-height: 1.4;
    }


    .profile-progress {
        margin-top: 15px !important;
    }

    .profile-progress h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .progress-bar-container {
        height: 6px !important;
        margin-top: 8px !important;
    }

    .profile-progress p {
        font-size: 13px !important;
        margin-top: 8px !important;
    }

    .profile-progress .action-btn {
        padding: 8px 15px !important;
        font-size: 13px !important;
        margin-top: 10px !important;
    }


    .activity-list {
        margin-top: 10px !important;
    }

    .activity-item {
        padding: 12px 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .activity-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        align-self: flex-start;
    }

    .activity-content {
        flex: 1;
        width: 100%;
    }

    .activity-title {
        font-size: 15px !important;
        margin-bottom: 4px !important;
        line-height: 1.3;
    }

    .activity-details {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    .activity-time {
        font-size: 12px !important;
    }


    .welcome-card .action-btn.secondary-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        margin-top: 15px !important;
    }


    .reminder-box {
        padding: 12px !important;
        margin: 15px 0 !important;
        border-radius: 6px;
    }

    .reminder-box p {
        font-size: 13px !important;
        margin: 0 !important;
        line-height: 1.4;
    }


    .welcome-card,
    .next-steps {
        padding: 20px;
        margin-bottom: 20px;
    }

    .next-steps ul {
        padding-left: 15px;
    }

    .next-steps li {
        margin-bottom: 10px;
        font-size: 15px;
    }


    .progress-bar-container {
        height: 6px;
        margin-top: 10px;
    }


    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }

    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }


    .direct-assign-notification,
    .feature-announcement {
        margin: 15px 0;
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .notification-icon {
        margin-bottom: 10px;
    }

    .announcement-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {

    .dashboard-two-column,
    [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        gap: 20px;
    }

    .welcome-card {
        padding: 25px;
    }

    .activity-item {
        padding: 12px 0;
    }

    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}


@media (max-width: 480px) {
    .welcome-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .welcome-card h2 {
        font-size: 18px !important;
    }

    .welcome-card p {
        font-size: 13px !important;
    }

    .activity-item {
        padding: 10px 0 !important;
        gap: 6px !important;
    }

    .activity-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    .activity-title {
        font-size: 14px !important;
    }

    .activity-details {
        font-size: 12px !important;
    }

    .activity-time {
        font-size: 11px !important;
    }

    .card-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-card .value {
        font-size: 20px;
    }

    .stat-card h3 {
        font-size: 12px;
    }
}


@media (max-width: 768px) {
    .dashboard-container {
        overflow-x: hidden;
    }

    .welcome-card,
    .activity-list,
    .profile-progress {
        max-width: 100%;
        overflow-wrap: break-word;
    }


    .activity-title,
    .activity-details {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}


@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .dashboard-container,
    .section {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ── Preferences popover ──────────────────────────────────────── */
.prefs-menu {
    position: relative;
    flex-shrink: 0;
    direction: ltr;
}

.prefs-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-accent);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.prefs-trigger:hover,
.prefs-trigger.open {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(230,126,34,0.07);
}

.prefs-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    padding: 10px;
    z-index: 1300;
    gap: 2px;
}
.prefs-dropdown.open {
    display: flex;
}

.prefs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 6px;
}

.prefs-row-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
    text-align: left;
}

.guest-prefs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

.guest-lang-btn,
.guest-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
}

.guest-lang-btn:hover,
.guest-theme-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.guest-theme-btn .icon-sun { display: none; }
.guest-theme-btn .icon-moon { display: block; }
[data-theme="dark"] .guest-theme-btn .icon-sun { display: block; }
[data-theme="dark"] .guest-theme-btn .icon-moon { display: none; }

/* Hide on mobile — hamburger menu handles it there */
@media (max-width: 768px) {
    .guest-prefs {
        display: none;
    }
}

.prefs-lang-btns {
    display: flex;
    gap: 4px;
}

.prefs-lang-opt {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.prefs-lang-opt:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.prefs-lang-opt.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.prefs-divider {
    height: 1px;
    background: var(--border-color);
    margin: 2px 4px;
}

.prefs-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: background 0.15s;
}
.prefs-theme-row:hover {
    background: rgba(230,126,34,0.06);
}
.prefs-theme-row .theme-switch {
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.prefs-theme-row .theme-switch-thumb {
    width: 14px;
    height: 14px;
    top: 2px;
    left: 2px;
}
[data-theme="dark"] .prefs-theme-row .theme-switch-thumb {
    transform: translateX(16px);
}

/* ── Footer theme toggle ──────────────────────────────────────── */
.copyright {
    display: block;
}
.footer-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: transparent;
    color: rgba(255,255,255,.6);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    font-family: var(--font-body);
    white-space: nowrap;
    flex-shrink: 0;
}
.footer-theme-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(230,126,34,.08);
}
.footer-theme-btn .theme-switch {
    width: 28px;
    height: 16px;
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}
.footer-theme-btn .theme-switch-thumb {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: left .2s, background .2s;
}
[data-theme="dark"] .footer-theme-btn .theme-switch-thumb { left: 14px; background: var(--accent-color); }
[data-theme="dark"] .footer-theme-btn .theme-switch { background: rgba(230,126,34,.25); }

/* ── RTL layout overrides ─────────────────────────────────────── */
[dir="rtl"] { font-family: 'Tajawal', 'Plus Jakarta Sans', sans-serif; }
[dir="rtl"] .footer-container { flex-direction: row-reverse; }
[dir="rtl"] .copyright { flex-direction: row-reverse; }
[dir="rtl"] .user-menu-dropdown { left: auto; right: 0; }
[dir="rtl"] .logo-text { direction: ltr; }
[dir="rtl"] .footer-column h3::after { left: auto; right: 0; }
