:root {
    --primary-color: #c84d2f;
    --primary-strong: #a63b20;
    --secondary-color: #123629;
    --accent-color: #f0b44c;
    --success-color: #2f8f63;
    --warning-color: #d08a1d;
    --danger-color: #c84545;
    --dark-color: #181512;
    --light-color: #f7f1e8;
    --surface-color: rgba(255, 255, 255, 0.86);
    --surface-strong: #fffdf8;
    --bg-card: rgba(255, 253, 248, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.48);
    --surface-soft-strong: rgba(255, 255, 255, 0.35);
    --text-primary: #231c16;
    --text-secondary: #66584c;
    --border-color: rgba(80, 56, 36, 0.12);
    --border-strong: rgba(80, 56, 36, 0.2);
    --shadow: 0 18px 40px rgba(48, 29, 17, 0.08);
    --shadow-hover: 0 24px 52px rgba(48, 29, 17, 0.15);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --brand-orange: #c84d2f;
    --shell-width: 1240px;
}

[data-theme="dark"] {
    --primary-color: #f08f56;
    --primary-strong: #ff7a40;
    --secondary-color: #a6ddc2;
    --accent-color: #f4c568;
    --success-color: #67c995;
    --warning-color: #f0b44c;
    --danger-color: #ff8585;
    --dark-color: #0f1110;
    --light-color: #111412;
    --surface-color: rgba(23, 27, 24, 0.82);
    --surface-strong: #181d1a;
    --bg-card: rgba(23, 27, 24, 0.9);
    --surface-soft: rgba(255, 255, 255, 0.06);
    --surface-soft-strong: rgba(255, 255, 255, 0.08);
    --text-primary: #f6efe5;
    --text-secondary: #b8aa9b;
    --border-color: rgba(255, 244, 230, 0.08);
    --border-strong: rgba(255, 244, 230, 0.16);
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 28px 60px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] {
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(240, 180, 76, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(200, 77, 47, 0.1), transparent 24%),
        linear-gradient(180deg, #fbf7f2 0%, #f6efe6 100%);
    color: var(--text-primary);
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(240, 180, 76, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(240, 143, 86, 0.08), transparent 22%),
        linear-gradient(180deg, #121513 0%, #0e110f 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(var(--shell-width), calc(100% - 32px));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    backdrop-filter: blur(18px);
    background: rgba(255, 250, 243, 0.78);
    border-bottom: 1px solid rgba(80, 56, 36, 0.08);
    box-shadow: 0 8px 26px rgba(37, 23, 15, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(17, 20, 18, 0.86);
    border-bottom-color: rgba(255, 244, 230, 0.06);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    max-width: var(--shell-width);
    margin: 0 auto;
    width: min(var(--shell-width), calc(100% - 32px));
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.navbar-brand i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 12px 24px rgba(200, 77, 47, 0.22);
}

.navbar-brand-logo {
    height: 42px;
    width: auto;
    max-width: min(190px, 42vw);
    object-fit: contain;
    display: block;
}

body.admin-layout {
    padding-left: 300px;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    padding: 1.15rem 1rem 1rem;
    background: rgba(255, 250, 243, 0.84);
    border-right: 1px solid rgba(80, 56, 36, 0.08);
    box-shadow: 18px 0 48px rgba(37, 23, 15, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[data-theme="dark"] .admin-sidebar {
    background: rgba(16, 19, 17, 0.94);
    border-right-color: rgba(255, 244, 230, 0.08);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.3);
}

.admin-sidebar-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.admin-sidebar-brand-link span {
    word-break: break-word;
}

.admin-sidebar-brand-link .navbar-brand-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
}

.admin-sidebar-close {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.15rem;
    flex: 1;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-sidebar-nav a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background: rgba(200, 77, 47, 0.08);
    border-color: rgba(200, 77, 47, 0.12);
    transform: translateX(2px);
}

[data-theme="dark"] .admin-sidebar-nav a:hover,
[data-theme="dark"] .admin-sidebar-nav a.active {
    background: rgba(240, 143, 86, 0.12);
    border-color: rgba(240, 143, 86, 0.16);
}

.admin-sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-theme-toggle {
    width: 100%;
    justify-content: flex-start;
}

.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1300;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-sidebar-backdrop {
    display: none;
}

.admin-sidebar-backdrop.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 12, 9, 0.42);
    z-index: 1190;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    list-style: none;
}

.navbar-menu li {
    display: flex;
    align-items: center;
}

.navbar-menu a {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.navbar-menu a:hover {
    color: var(--text-primary);
    background: rgba(200, 77, 47, 0.08);
}

.mobile-menu-toggle,
.theme-toggle {
    background: transparent;
    border: 0;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

[data-theme="dark"] .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.04);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    background: rgba(200, 77, 47, 0.08);
}

.mobile-menu-backdrop {
    display: none;
    pointer-events: none;
}

.hero-section {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
}

.hero-section::before {
    width: 320px;
    height: 320px;
    top: -90px;
    right: -60px;
    background: rgba(200, 77, 47, 0.12);
}

.hero-section::after {
    width: 260px;
    height: 260px;
    bottom: -100px;
    left: -60px;
    background: rgba(18, 54, 41, 0.08);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.section-title,
.price-plan-name,
.price-plan-price {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    letter-spacing: -0.04em;
}

.hero-section h1 {
    font-size: clamp(2.7rem, 5vw, 4.9rem);
    line-height: 0.97;
    max-width: 12ch;
    margin-bottom: 1.25rem;
}

.hero-section p {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 58ch;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.96rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-strong));
    box-shadow: 0 16px 28px rgba(200, 77, 47, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 20px 34px rgba(200, 77, 47, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.74);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: rgba(18, 54, 41, 0.05);
}

.section {
    padding: 5.5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    margin-bottom: 0.9rem;
    text-align: center;
}

.section-subtitle {
    max-width: 58ch;
    margin: 0 auto 2.6rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.service-grid,
.testimonials-grid,
.stats-grid,
.price-plans {
    display: grid;
    gap: 1.5rem;
}

.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.price-plans {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 1.5rem;
}

.service-card,
.testimonial-card,
.faq-item,
.price-plan,
.stat-card,
.dashboard-sidebar,
.card,
.table,
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.service-card,
.testimonial-card,
.price-plan,
.stat-card,
.dashboard-sidebar,
.card {
    border-radius: var(--radius-lg);
}

.service-card {
    overflow: hidden;
    position: relative;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover,
.testimonial-card:hover,
.price-plan:hover,
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}

.service-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.service-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 190px;
    padding: 0;
}

/* Service card image + CTA unification across pages */
.service-card-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 190px !important;
    padding: 0 !important;
}

.service-card-image {
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    max-width: 100% !important;
    transform: none !important;
}

.service-card-image-wrapper .card-quick-action {
    position: absolute !important;
    right: 0.85rem !important;
    bottom: 0.85rem !important;
    display: inline-flex !important;
}

.service-card-actions {
    display: flex !important;
    margin-top: 1rem !important;
}

.service-card-actions .btn {
    width: 100% !important;
}

.service-card-image-wrapper .card-quick-action {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(20, 18, 16, 0.78);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.45rem;
    height: 100%;
    flex: 1;
}

.service-card-title {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.32rem;
    line-height: 1.15;
    color: var(--text-primary);
}

.service-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.price-from {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.full-width {
    width: 100%;
}

.service-detail-btn {
    min-height: 52px;
    display: inline-flex;
    visibility: visible;
}

.service-card-divider {
    height: 1px;
    width: 100%;
    background: var(--border-color);
    margin: 0.6rem 0 0.2rem;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.service-card-footer .price-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.service-card-footer .price-from {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.service-card-footer .price-amount {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-card-footer .cart-icon {
    font-size: 1.05rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.service-card-actions {
    display: flex;
    margin-top: 1rem;
}

.service-card-actions .btn {
    width: 100%;
}

.category-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: var(--surface-strong);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.card-quick-action {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(20, 18, 16, 0.78);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.service-card-price {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.testimonial-card {
    padding: 1.8rem;
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    cursor: pointer;
    font-weight: 800;
    color: var(--text-primary);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.faq-answer.active {
    display: block;
}

.footer {
    position: relative;
    margin-top: 3rem;
    padding: 4rem 0 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(240, 180, 76, 0.12), transparent 26%),
        linear-gradient(180deg, #1f1a16 0%, #16120f 100%);
    color: #f9f4ec;
}

.footer-content {
    width: min(var(--shell-width), calc(100% - 32px));
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: rgba(249, 244, 236, 0.75);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-contact-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.footer-bottom {
    width: min(var(--shell-width), calc(100% - 32px));
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(249, 244, 236, 0.65);
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 96px;
    z-index: 1090;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c4a);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(18, 140, 74, 0.28);
}

.whatsapp-float i {
    font-size: 1.3rem;
}

.whatsapp-float:hover {
    transform: translateY(-1px);
}

.arattai-float {
    position: fixed;
    right: 18px;
    bottom: 156px;
    z-index: 1090;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6d10f, #f2b600);
    color: #1f1f1f;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(246, 209, 15, 0.35);
}

.arattai-float:hover {
    transform: translateY(-1px);
}

.arattai-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #243a8f;
    color: #f6d10f;
    font-weight: 900;
    font-size: 1.05rem;
}

.arattai-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    object-fit: contain;
    background: #fff4a8;
    padding: 2px;
}

.arattai-debug-banner {
    position: fixed;
    right: 18px;
    bottom: 220px;
    background: var(--surface-strong);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
    z-index: 1095;
    color: var(--text-primary);
}

.bottom-nav {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1000;
    background: rgba(255, 252, 246, 0.92);
    border: 1px solid rgba(80, 56, 36, 0.1);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(32, 20, 12, 0.16);
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .bottom-nav {
    background: rgba(24, 29, 26, 0.94);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    padding: 0.6rem;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.55rem 0.2rem;
    border-radius: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
}

.bottom-nav-item i {
    font-size: 1.05rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary-color);
    background: rgba(200, 77, 47, 0.08);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-primary);
    font-weight: 800;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 0.92rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.66);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

[data-theme="dark"] .form-control {
    background: rgba(24, 29, 26, 0.96);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] select.form-control {
    background: #181d1a;
    color: #f6efe5;
    color-scheme: dark;
}

html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select) {
    background-color: rgba(24, 29, 26, 0.96);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select)::placeholder {
    color: var(--text-secondary);
    opacity: 0.9;
}

html[data-theme="dark"] select option {
    color: var(--text-primary);
    background: #181d1a;
}

.dark-select {
    position: relative;
    width: 100%;
}

.dark-select-trigger {
    width: 100%;
    min-height: 50px;
    padding: 0.92rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dark-select-trigger:focus {
    outline: none;
    border-color: rgba(240, 143, 86, 0.45);
    box-shadow: 0 0 0 4px rgba(240, 143, 86, 0.1);
}

.dark-select-trigger i {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.dark-select.open .dark-select-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dark-select-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-top: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    background: var(--bg-card);
    box-shadow: var(--shadow-hover);
}

.dark-select.open .dark-select-menu {
    display: block;
}

.dark-select-option {
    width: 100%;
    padding: 0.82rem 1rem;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dark-select-option:hover,
.dark-select-option.active {
    background: var(--surface-soft-strong);
}

html[data-theme="dark"] input[type="file"] {
    background: rgba(24, 29, 26, 0.96);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

html[data-theme="dark"] input[type="file"]::file-selector-button {
    margin-right: 0.9rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
}

html[data-theme="dark"] input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"] {
    accent-color: var(--primary-color);
}

html[data-theme="dark"] ::selection {
    background: rgba(240, 143, 86, 0.28);
    color: #fff;
}

html[data-theme="dark"] .ck.ck-editor,
html[data-theme="dark"] .ck.ck-editor__top,
html[data-theme="dark"] .ck.ck-toolbar,
html[data-theme="dark"] .ck.ck-toolbar__items,
html[data-theme="dark"] .ck.ck-dropdown__panel,
html[data-theme="dark"] .ck.ck-balloon-panel,
html[data-theme="dark"] .ck.ck-list,
html[data-theme="dark"] .ck.ck-list__item-button,
html[data-theme="dark"] .ck.ck-button__label,
html[data-theme="dark"] .ck.ck-input__text {
    background: #181d1a !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .ck.ck-toolbar,
html[data-theme="dark"] .ck.ck-toolbar__items {
    box-shadow: none !important;
}

html[data-theme="dark"] .ck.ck-toolbar .ck-button,
html[data-theme="dark"] .ck.ck-dropdown__button,
html[data-theme="dark"] .ck.ck-toolbar .ck.ck-icon,
html[data-theme="dark"] .ck.ck-button .ck-icon {
    color: var(--text-primary) !important;
    fill: currentColor !important;
}

html[data-theme="dark"] .ck.ck-toolbar .ck-button:hover,
html[data-theme="dark"] .ck.ck-toolbar .ck-button.ck-on,
html[data-theme="dark"] .ck.ck-toolbar .ck-dropdown__button:hover,
html[data-theme="dark"] .ck.ck-list__item-button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .ck.ck-editor__main > .ck-editor__editable,
html[data-theme="dark"] .ck-editor__editable.ck-content {
    background: #181d1a !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .ck.ck-editor__main > .ck-editor__editable.ck-focused {
    border-color: rgba(240, 143, 86, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(240, 143, 86, 0.12) !important;
}

html[data-theme="dark"] .ck.ck-editor__main > .ck-editor__editable .ck-placeholder::before,
html[data-theme="dark"] .ck .ck-placeholder::before {
    color: var(--text-secondary) !important;
}

html[data-theme="dark"] .ck.ck-dropdown__panel {
    box-shadow: var(--shadow-hover) !important;
}

html[data-theme="dark"] .ck.ck-dropdown__panel .ck-list__item-button {
    background: transparent !important;
}

html[data-theme="dark"] .ck.ck-input__text {
    background: rgba(24, 29, 26, 0.96) !important;
}

.form-control:focus {
    outline: none;
    border-color: rgba(200, 77, 47, 0.45);
    box-shadow: 0 0 0 4px rgba(200, 77, 47, 0.08);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.alert {
    padding: 1rem 1.15rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(47, 143, 99, 0.12);
    color: #1f6a48;
    border-color: rgba(47, 143, 99, 0.18);
}

.alert-danger {
    background: rgba(200, 69, 69, 0.12);
    color: #8f2b2b;
    border-color: rgba(200, 69, 69, 0.18);
}

.alert-info {
    background: rgba(18, 54, 41, 0.08);
    color: #244739;
    border-color: rgba(18, 54, 41, 0.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.38rem 0.82rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.badge-primary,
.badge-category {
    background: rgba(200, 77, 47, 0.12);
    color: var(--primary-color);
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.38rem 0.82rem;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(240, 143, 86, 0.16);
    color: var(--accent-color);
    border: 1px solid rgba(240, 143, 86, 0.18);
}

[data-theme="dark"] .coming-soon-badge {
    background: rgba(240, 143, 86, 0.14);
    color: var(--accent-color);
}

.badge-success {
    background: rgba(47, 143, 99, 0.12);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(240, 180, 76, 0.18);
    color: #8a6512;
}

.badge-danger {
    background: rgba(200, 69, 69, 0.12);
    color: var(--danger-color);
}

.price-amount.is-coming-soon,
.service-card-title.is-coming-soon,
.service-card-actions .is-coming-soon {
    color: var(--accent-color);
}

.price-tag.is-coming-soon {
    align-items: center;
    gap: 0.35rem;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
}

.modal.active {
    display: flex;
}

.modal-content {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.6rem;
    border-radius: 26px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal-close {
    background: transparent;
    border: 0;
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.price-plan {
    padding: 1.8rem;
    text-align: center;
}

.price-plan.selected {
    border-color: rgba(200, 77, 47, 0.4);
    box-shadow: var(--shadow-hover);
}

.price-plan-name {
    font-size: 1.45rem;
    margin-bottom: 0.9rem;
}

.price-plan-price {
    font-size: 2.35rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price-plan-features {
    list-style: none;
    margin-bottom: 1.2rem;
}

.price-plan-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-sidebar {
    padding: 1.25rem;
}

.dashboard-menu {
    list-style: none;
}

.dashboard-menu li + li {
    margin-top: 0.4rem;
}

.dashboard-menu a {
    display: block;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    border-radius: 16px;
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
    color: var(--text-primary);
    background: rgba(200, 77, 47, 0.09);
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.4rem;
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    margin-top: 0.45rem;
    color: var(--text-secondary);
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 24px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: rgba(200, 77, 47, 0.09);
    color: var(--text-primary);
    font-weight: 800;
}

.table tr:hover {
    background: rgba(200, 77, 47, 0.03);
}

.card {
    padding: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.content-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.surface-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    padding: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mini-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-compact {
    padding: 0.55rem 0.9rem;
    min-height: auto;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.icon-grid-link {
    text-decoration: none;
}

.icon-grid-link .service-card {
    text-align: center;
}

.icon-grid-link .service-card-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}


@media (max-width: 992px) {
    .container,
    .navbar-container,
    .footer-content,
    .footer-bottom {
        width: min(var(--shell-width), calc(100% - 24px));
    }

    .hero-section {
        padding: 4.8rem 0 4rem;
    }

    .split-layout,
    .content-grid-2 {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 86px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-container {
        padding: 0.9rem 0;
    }

    .navbar-brand {
        max-width: calc(100% - 60px);
        font-size: 1.14rem;
    }

    .navbar-brand-logo {
        max-width: 145px;
    }

    .navbar-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: min(86%, 340px);
        height: calc(100vh - 72px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        padding: 1rem;
        background: #fffaf3;
        border-top-right-radius: 24px;
        border-bottom-right-radius: 24px;
        box-shadow: 18px 0 48px rgba(33, 19, 13, 0.16);
        transition: left 0.24s ease;
        overflow-y: auto;
        z-index: 1002;
        opacity: 1;
        filter: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: auto;
    }

    [data-theme="dark"] .navbar-menu {
        background: #141815;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-menu li:last-child {
        border-bottom: 0;
    }

    .navbar-menu a,
    .theme-toggle {
        width: 100%;
        justify-content: flex-start;
        min-height: 48px;
        border-radius: 16px;
    }

    .mobile-menu-backdrop.active {
        display: block;
        position: fixed;
        inset: 72px 0 0 0;
        background: rgba(20, 16, 13, 0.18);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 1001;
        pointer-events: auto;
    }

    .bottom-nav {
        display: block;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .whatsapp-float {
        right: 14px;
        bottom: 104px;
        padding: 0.9rem 1rem;
    }

    .whatsapp-float span {
        display: none;
    }

    .arattai-float {
        right: 14px;
        bottom: 158px;
        padding: 0.9rem 1rem;
    }

    .arattai-float span:last-child {
        display: none;
    }

    .arattai-logo {
        width: 22px;
        height: 22px;
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-section h1 {
        font-size: clamp(2.25rem, 9vw, 3.4rem);
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    .service-grid,
    .testimonials-grid,
    .price-plans,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-card-actions {
        flex-direction: column;
    }

    .service-card-image-wrapper {
        max-height: none;
    }

    .btn {
        width: 100%;
    }

    .footer {
        padding-top: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .footer-section {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-section:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .card,
    .dashboard-sidebar,
    .testimonial-card,
    .price-plan {
        padding: 1.25rem;
    }

    .table {
        min-width: 620px;
    }

    .form-control {
        font-size: 16px;
    }

    .page-toolbar,
    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    body.admin-layout {
        padding-left: 0;
        padding-bottom: 0;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        width: min(320px, 86vw);
        transform: translateX(-102%);
        transition: transform 0.24s ease;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-sidebar-close {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .container,
    .navbar-container,
    .footer-content,
    .footer-bottom {
        width: calc(100% - 20px);
    }

    .service-card-image {
        height: 100%;
    }

    .hero-section {
        padding-top: 3.5rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .whatsapp-float {
        bottom: 98px;
    }

    .arattai-float {
        bottom: 152px;
    }
}

@media (max-width: 576px) {
    .service-card-image-wrapper {
        min-height: 170px !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .price-plan:hover,
    .card:hover {
        transform: none;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 3rem 0 2.6rem;
    }
}

@media print {
    .navbar,
    .bottom-nav,
    .admin-sidebar,
    .admin-sidebar-toggle,
    .admin-sidebar-backdrop,
    .admin-sidebar-close,
    .footer,
    .btn,
    .mobile-menu-toggle,
    .theme-toggle {
        display: none !important;
    }

    body {
        padding-bottom: 0;
        background: #fff;
    }

    .section {
        padding: 1rem 0;
    }
}
