:root {
  /* Core Palette */
  --color-bg:           #F2C9B8;   /* Blush Peach — main background */
  --color-surface:      #FAF0EB;   /* Off-White Cream — cards, modals */
  --color-surface-alt:  #F7E4D8;   /* Slightly deeper peach — hover surfaces */

  --color-primary:      #7DC4A8;   /* Sage Green — CTAs, active states, accents */
  --color-primary-dark: #5BA88C;   /* Darker Sage — hover on primary */

  --color-secondary:    #B8879A;   /* Dusty Mauve — tags, secondary accents */
  --color-secondary-dark: #9E6B82; /* Muted Rose — headings, icons */

  --color-text:         #2C2420;   /* Deep Charcoal — body text */
  --color-text-muted:   #6B4F47;   /* Warm Brown — secondary text, captions */
  --color-text-inverse: #FAF0EB;   /* Cream — text on dark/green backgrounds */

  --color-border:       rgba(44, 36, 32, 0.12);
  --color-shadow:       rgba(44, 36, 32, 0.10);

  /* Only dark element allowed */
  --color-footer-bg:    #2C2420;
  --color-footer-text:  #FAF0EB;

  /* Semantic */
  --color-success:      #7DC4A8;
  --color-error:        #C4847D;
  --color-warning:      #D4A96A;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Force custom cursor everywhere */
}

/* Ensure common elements don't show default cursor */
a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo, .sidebar-logo {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-secondary-dark);
}

/* --- Maintenance Overlay --- */
#maintenance-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.maintenance-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* --- Noise & Decorations --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: 1000;
    pointer-events: none;
}

.organic-decorations {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.morphing-blob-hero {
    position: absolute;
    top: 5%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    opacity: 0.7;
    filter: blur(80px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 15s linear infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    33% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
    66% { border-radius: 50% 50% 30% 70% / 60% 40% 70% 30%; }
}

.wavy-line-hero {
    position: absolute;
    top: 20%;
    left: 0;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.wavy-line-hero path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw 5s ease forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.mauve-circle-hero {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(60px);
}

.about-decoration {
    position: absolute;
    bottom: -10%;
    right: -5%;
    pointer-events: none;
    z-index: -1;
}

.sage-blob-about {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    opacity: 0.5;
    filter: blur(50px);
    border-radius: 40% 60% 60% 40% / 50% 30% 70% 50%;
}

/* --- Utilities --- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 1rem;
    border: none;
    cursor: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(125, 196, 168, 0.3);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
    background-color: var(--color-surface-alt);
}

.full-width { width: 100%; }

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 100000; /* Higher than admin panel */
    pointer-events: none;
    opacity: 0;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--color-primary);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.2s, background-color 0.2s;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: all 0.4s;
}

/* Initially hide navbar items for GSAP reveal */
.navbar .logo, .navbar .nav-links, .navbar .hamburger {
    opacity: 0;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(242, 201, 184, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1.5px solid var(--color-border);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu-links a {
    font-size: 3rem;
    font-family: var(--font-display);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    margin-bottom: 2rem;
    overflow: hidden;
}

.char-wrap {
    display: block;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    height: 1.6em;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* --- Stats --- */
.stats {
    padding: 10rem 0;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-surface));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 3rem;
    background-color: var(--color-surface);
    border-radius: 20px;
    border: 1.5px solid var(--color-border);
    transition: transform 0.4s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* --- Services --- */
.services {
    padding: 10rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 6px;
    background-color: var(--color-primary);
    opacity: 0.3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner,
.service-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 3rem;
    border-radius: 24px;
    border: 1.5px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-front {
    background-color: var(--color-surface);
}

.card-back {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    transform: rotateY(180deg);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.card-back .service-icon {
    color: var(--color-text-inverse);
}

/* --- Partners Marquee --- */
.partners {
    padding: 6rem 0;
    background-color: #F5EAE0; /* Deeper neutral peach/sand background */
    background-image: 
        radial-gradient(at 0% 0%, rgba(125, 196, 168, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(184, 135, 154, 0.1) 0px, transparent 50%);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(44, 36, 32, 0.05);
    border-bottom: 1px solid rgba(44, 36, 32, 0.05);
}

.marquee-bg {
    position: absolute;
    font-size: 15rem;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-secondary);
    opacity: 0.05;
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.marquee-wrapper {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.marquee {
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 8rem;
    padding-right: 8rem;
    animation: marquee 40s linear infinite;
}

.marquee-rtl .marquee-content {
    animation-direction: reverse;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.marquee-item {
    flex: 0 0 auto;
    width: 220px;
    height: 90px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3); /* Subtle glass background */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 5px;
    filter: grayscale(1) contrast(0.9);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.marquee-item:hover {
    filter: grayscale(0) contrast(1);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 36, 32, 0.1);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* --- Contact Section --- */
.contact {
    padding: 10rem 0;
    background-color: var(--color-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
}

.contact-info .section-title {
    margin-bottom: 2rem;
}

.contact-desc {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.info-item i {
    color: var(--color-primary);
}

.contact-form-container {
    background-color: var(--color-surface);
    padding: 4rem;
    border-radius: 32px;
    border: 1.5px solid var(--color-border);
    box-shadow: 0 30px 60px var(--color-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    pointer-events: none;
    transition: all 0.3s;
    color: var(--color-text-muted);
}

.form-group input:focus ~ label, 
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -1.2rem;
    font-size: 0.85rem;
    color: var(--color-primary);
}

.btn-submit {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 1.5rem;
    font-weight: 600;
    position: relative;
}

.btn-submit .loader-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-submit.loading .btn-text { visibility: hidden; }
.btn-submit.loading .loader-spinner { display: block; }

/* --- Footer --- */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 8rem 0 4rem;
    position: relative;
}

.footer-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand .logo {
    color: var(--color-footer-text);
    display: block;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(250, 240, 235, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.social-link {
    color: var(--color-footer-text);
    transition: transform 0.3s, color 0.3s;
}

.social-link:hover {
    color: var(--color-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(250, 240, 235, 0.5);
}

/* --- Admin Styles --- */
body.admin-open {
    overflow: hidden;
}

.admin-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0.3;
    transition: opacity 0.3s;
    cursor: pointer !important;
}

.admin-trigger:hover {
    opacity: 1;
}

.admin-panel {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.admin-panel.active {
    transform: translateY(0);
}

.admin-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10002;
    line-height: 1;
}

.admin-login-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--color-surface);
    padding: 4rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 40px 80px var(--color-shadow);
    text-align: center;
}

.login-header {
    margin-bottom: 3rem;
}

.login-header .logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.login-card .form-group {
    text-align: left;
}

.error-msg {
    color: var(--color-error);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: none;
}

.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
}

.admin-dashboard {
    flex: 1;
    display: flex;
    height: 100%;
}

.sidebar {
    width: 240px;
    background: var(--color-surface);
    border-right: 1.5px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
}

.sidebar-header {
    padding: 3rem 2rem;
}

.sidebar-logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.nav-item:hover {
    background-color: var(--color-surface-alt);
}

.nav-item.active {
    background-color: rgba(125, 196, 168, 0.12);
    color: var(--color-primary-dark);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 12px 12px 0;
}

.sidebar-footer {
    padding: 2rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.admin-content {
    flex: 1;
    background-color: var(--color-bg);
    padding: 4rem;
    overflow-y: auto;
}

.tab-title {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.stats-grid-admin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.admin-stat-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.admin-stat-card.primary::before { background: var(--color-primary); }
.admin-stat-card.secondary::before { background: var(--color-secondary); }
.admin-stat-card.secondary-dark::before { background: var(--color-secondary-dark); }
.admin-stat-card.primary-dark::before { background: var(--color-primary-dark); }

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--color-surface-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-dark);
}

.stat-value-admin {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.stat-label-admin {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.table-container {
    background: var(--color-surface);
    border-radius: 16px;
    border: 1.5px solid var(--color-border);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--color-surface-alt);
    text-align: left;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background-color: var(--color-surface-alt); }

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-new { background: rgba(125, 196, 168, 0.2); color: var(--color-primary-dark); }
.status-contacted { background: rgba(184, 135, 154, 0.2); color: var(--color-secondary-dark); }
.status-closed { background: var(--color-border); color: var(--color-text-muted); }

/* --- Submissions Tab --- */
.tab-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.filters-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filters-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    font-family: inherit;
}

.filters-bar select {
    width: 200px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    font-family: inherit;
}

.action-btns {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.icon-btn.delete:hover {
    background: var(--color-error);
    color: #fff;
}

/* --- Detail Drawer --- */
.detail-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: var(--color-surface);
    z-index: 10005;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.1);
}

.detail-drawer.active { transform: translateX(0); }

.drawer-header {
    padding: 2.5rem;
    border-bottom: 1.5px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.drawer-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.detail-item {
    margin-bottom: 2rem;
}

.detail-item label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.detail-item .value {
    font-size: 1.1rem;
    font-weight: 500;
}

.drawer-actions {
    padding: 2.5rem;
    border-top: 1.5px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 32, 0.4);
    z-index: 10004;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.drawer-overlay.active { opacity: 1; visibility: visible; }

/* --- Settings --- */
.settings-form {
    max-width: 600px;
}

.settings-group {
    margin-bottom: 2.5rem;
}

.settings-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group input[type="password"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    font-family: inherit;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 10px; }

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: var(--color-border);
    border-radius: 50px;
    position: relative;
    transition: 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

input[type="checkbox"] { display: none; }
input[type="checkbox"]:checked + .toggle-slider { background: var(--color-primary); }
input[type="checkbox"]:checked + .toggle-slider::after { left: 27px; }

/* --- Management Tabs Layouts --- */
#admin-unsaved-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 150%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  max-width: 600px;
  width: calc(100% - 48px);
  padding: 14px 24px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(44, 36, 32, 0.15);
}

#admin-unsaved-banner.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-warning);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-discard {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.btn-discard:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.btn-save {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-save:hover {
  background: var(--color-primary-dark);
}

.admin-content {
    flex: 1;
    background-color: var(--color-bg);
    padding: 4rem;
    overflow-y: auto;
    position: relative;
    padding-bottom: 6rem;
}

/* Fix modal and drawer z-index issues */
.admin-modal-overlay {
    z-index: 12000;
}

.detail-drawer {
    z-index: 13000;
}

.drawer-overlay {
    z-index: 12500;
}

/* Fix card alignment in grids */
.partners-grid, .stats-grid-mgmt {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.partner-card, .stat-mgmt-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-footer-btns {
    margin-top: auto;
    padding-top: 1.5rem;
}

.partner-card.dragging, .stat-mgmt-card.dragging, .service-list-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    border-style: dashed;
}

.partner-card.inactive, .stat-mgmt-card.inactive, .service-list-item.inactive {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.drag-handle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    cursor: grab !important;
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

.card-actions-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-preview-box {
    width: 100%;
    height: 100px;
    background: var(--color-surface-alt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.logo-preview-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.partner-name {
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.card-footer-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Services List View */
.services-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list-item {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.service-icon-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.service-title-mgmt {
    flex: 1;
    font-weight: 600;
}

/* Modals & Drawers */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 32, 0.6);
    backdrop-filter: blur(8px);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-modal {
    background: var(--color-bg);
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1.5px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 2rem;
    border-top: 1.5px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form Styles Extension */
.drop-zone {
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s;
    background: var(--color-surface-alt);
    position: relative;
}

.drop-zone.dragover {
    border-color: var(--color-primary);
    background: rgba(125, 196, 168, 0.05);
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer !important;
}

.upload-preview {
    margin-top: 1rem;
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
}

/* Icon Picker */
.icon-picker-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.picker-tab {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: var(--color-surface-alt);
    border: none;
    font-weight: 600;
}

.picker-tab.active {
    background: var(--color-primary);
    color: #fff;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    background: var(--color-surface-alt);
    padding: 1rem;
    border-radius: 12px;
}

.icon-item-pick {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.icon-item-pick:hover {
    background: var(--color-surface-alt);
}

.icon-item-pick.selected {
    border-color: var(--color-primary);
    background: rgba(125, 196, 168, 0.1);
}

/* Stats Mgmt Extensions */
.stats-grid-mgmt {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-preview-live {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 16px;
    border: 4px solid var(--color-primary);
    margin-top: 2rem;
    text-align: center;
}

.stat-preview-live .value {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 900;
}

.delete-confirm-inline {
    text-align: center;
    padding: 1rem;
}

.delete-confirm-inline p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-outline-danger { border: 1.5px solid var(--color-error); color: var(--color-error); background: transparent; }
.btn-outline-danger:hover { background: var(--color-error); color: #fff; }

/* --- Standalone Admin Page Styles --- */
.admin-page-body, .admin-page-body * {
    cursor: auto !important;
}
.admin-page-body a,
.admin-page-body button,
.admin-page-body input,
.admin-page-body select,
.admin-page-body textarea,
.admin-page-body [role="button"],
.admin-page-body .icon-btn,
.admin-page-body .nav-item,
.admin-page-body .toggle-slider,
.admin-page-body .back-to-site-btn,
.admin-page-body .back-to-site-link,
.admin-page-body .picker-tab,
.admin-page-body .icon-item-pick,
.admin-page-body .drop-zone {
    cursor: pointer !important;
}

.admin-page-body {
    min-height: 100vh;
    background-color: var(--color-bg);
}

.admin-page-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.back-to-site-btn {
    font-size: 0.85rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
    font-weight: 600;
}

.back-to-site-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-to-site-link:hover {
    color: var(--color-primary);
}

/* --- Hamburger Menu Icon --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    z-index: 1001;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Backdrop Blur */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(242, 201, 184, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.mobile-menu-links a:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

/* --- Touch & Mobile Devices Reset Custom Cursor --- */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
    * {
        cursor: auto !important;
    }
    a, button, input, select, textarea, [role="button"], .admin-trigger, .hamburger {
        cursor: pointer !important;
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}

/* --- Responsive Layout Breakpoints --- */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .hero-title { font-size: 5rem; }
    .stats-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; gap: 4rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .stats-grid-admin { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Navigation Bar */
    .nav-links { display: none !important; }
    .hamburger { display: flex !important; opacity: 1 !important; visibility: visible !important; }
    .navbar { padding: 1.2rem 0; }
    
    /* Hero Section */
    .hero { height: auto; min-height: 90vh; padding: 8rem 0 4rem; }
    .hero-title { font-size: clamp(2.5rem, 8vw, 4.2rem); }
    .hero-tagline { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-btns { flex-direction: column; gap: 1rem; width: 100%; }
    .hero-btns .btn { width: 100%; text-align: center; }

    /* Services Grid */
    .services-grid { grid-template-columns: 1fr; gap: 2rem; }
    .service-card { height: 320px; }

    /* Stats Grid */
    .stats { padding: 5rem 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .stat-card { padding: 2rem 1.5rem; }
    .stat-number { font-size: 2.8rem; }

    /* Partners Marquee */
    .marquee-content { gap: 4rem; padding-right: 4rem; }
    .marquee-item { width: 160px; height: 70px; padding: 10px 15px; }

    /* Contact Section */
    .contact { padding: 5rem 0; }
    .contact-form-container { padding: 2rem 1.5rem; border-radius: 20px; }
    .form-row { flex-direction: column; gap: 0; }

    /* Footer */
    .footer { padding: 5rem 0 3rem; }
    .footer-top { grid-template-columns: 1fr; gap: 3rem; }
    .footer-social { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

    /* Admin Panel Standalone */
    .admin-dashboard { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1.5px solid var(--color-border); }
    .sidebar-header { padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; }
    .sidebar-logo { font-size: 1.4rem; }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 0.5rem 1rem; gap: 0.5rem; }
    .sidebar-span { display: inline !important; }
    .nav-item { padding: 0.8rem 1.2rem; white-space: nowrap; margin-bottom: 0; }
    .nav-item.active { border-left: none; border-bottom: 3px solid var(--color-primary); border-radius: 8px; }
    .sidebar-footer { padding: 1rem 2rem; }
    
    .admin-content { padding: 2rem 1.5rem 6rem; }
    .tab-title { font-size: 2rem; margin-bottom: 1.5rem; }
    .stats-grid-admin { grid-template-columns: 1fr; gap: 1rem; }
    .table-container { overflow-x: auto; }
    table { min-width: 600px; }
    .detail-drawer { width: 100%; }
    .partners-grid, .stats-grid-mgmt { grid-template-columns: 1fr; }
    .service-list-item { flex-direction: column; text-align: center; gap: 1rem; }
    
    .filters-bar { flex-direction: column; gap: 1rem; }
    .filters-bar select { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2.5rem; }
}

