/* --- VARIABLES & RESET --- */
:root {
    --blue: #2563eb;
    --dark: #020617;
    --slate: #475569;
    --light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --jakarta: 'Plus Jakarta Sans', sans-serif;
}

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

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

body {
    font-family: var(--jakarta);
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    border: 1px solid #bcf0da;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    border: 1px solid #fecaca;
}


/* --- CENTERED HERO SECTION --- */
.hero-centered {
    position: relative;
    padding: 120px 0 160px 0;
    text-align: center;
    overflow: hidden;
}

.hero-header {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Background Radial Glow */
.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    z-index: -1;
}

/* AI Badge */
.badge-ai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gradient Heading */
.gradient-text {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.gradient-text span {
    color: #2563eb;
}

/* If you want the actual gradient effect on the dark text: */
.gradient-text {
    background: linear-gradient(to bottom, #0f172a 60%, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text span {
    background: none;
    -webkit-text-fill-color: #2563eb;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

/* Button with Icon Logic */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-with-icon svg {
    transition: transform 0.2s ease;
}

.btn-with-icon:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-outline:hover {
    background: #f8fafc;
}

/* Icon button base styles */
.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-complete:hover {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.btn-delete:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Base Action Button Style */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Specific Hover States */
.btn-complete:hover {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.btn-edit:hover {
    background: #f8fafc;
    color: #2563eb;
    border-color: #bfdbfe;
}

.btn-delete {
    padding: 0.5rem;
    /* Make delete just an icon square */
}

.btn-delete:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Hide text on mobile to save space */
@media (max-width: 640px) {
    .btn-action span {
        display: none;
    }

    .btn-action {
        padding: 0.5rem;
    }
}


/* Responsive Fix for Text */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .hero-centered {
        padding: 80px 0;
    }
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 100px 0;
    background-color: #f8fafc;
    /* Subtle light grey/blue */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
    color: #0f172a;
}

.section-header p {
    color: #64748b;
    font-weight: 500;
}

/* The Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Icon Colors */
.icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.icon-green {
    background: #f0fdf4;
    color: #16a34a;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
}

.feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .feature-card {
        padding: 30px;
    }
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: #0f172a;
    border-radius: 48px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.cta-card p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.btn-cta {
    background: #2563eb;
    color: white;
    padding: 20px 40px;
    font-size: 1.1rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.btn-cta:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.cta-glow {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.2);
    filter: blur(80px);
    border-radius: 50%;
}

/* --- FOOTER --- */
.main-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 80px 20px 40px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.footer-tagline {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 24px;
}


/* Systems Status Dot */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #16a34a;
    background: #f0fdf4;
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-group h4 {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.footer-group ul {
    list-style: none;
    padding: 0;
}

.footer-group li {
    margin-bottom: 12px;
}

.footer-group a {
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.footer-group a:hover {
    color: var(--blue);
}

.footer-bottom {
    max-width: 1100px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-legal a {
    margin-left: 20px;
    text-decoration: none;
    color: #94a3b8;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* end of footer */

/* The Artistic Blobs */
.blob {
    position: absolute;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #60a5fa;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #818cf8;
    bottom: -50px;
    left: -50px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -4px;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--slate);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}



/* Container & Layout */
.maintenance-container {
    background-color: #f8fafc;
    /* slate-50/50 */
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

.content-wrapper {
    max-width: 1024px;
    /* max-w-5xl */
    margin: 0 auto;
}

/* Typography */
.main-title {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.accent-blue {
    color: #2563eb;
}

.subtitle {
    color: #64748b;
    font-weight: 500;
    font-style: italic;
}

/* Header & Actions */
.hub-header {
    margin-bottom: 3rem;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    background: rgba(2, 6, 23, 0.7);
    display: flex;
    align-items: center;
    /* Vertical Center */
    justify-content: center;
    /* Horizontal Center */
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-box {
    margin: auto;
    /* Safety fallback for centering */
    animation: modal-pop 0.25s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Essential for absolute positioning of the button */
}

.btn-close {
    position: absolute;
    top: 0rem;
    right: 0rem;
    background: #f1f5f9;
    /* Light slate gray */
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Makes it circular */
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #e2e8f0;
    /* Slightly darker on hover */
    color: #1e293b;
    transform: rotate(90deg);
    /* Nice little interactive touch */
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styling for Locked/Disabled Features */
.btn-locked {
    background: var(--light) !important;
    border: 2px dashed var(--border) !important;
    color: var(--slate) !important;
    opacity: 0.7;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    filter: grayscale(100%);
    /* Removes all icon/text color */
    transition: filter 0.3s ease;
}

.btn-locked i {
    opacity: 0.5;
}

/* Optional: Slight reveal on hover to encourage clicks/upgrades */
.btn-locked:hover {
    filter: grayscale(50%);
    border-color: var(--slate) !important;
}

/* Ensure the blue icon class doesn't override the grayscale when locked */
.btn-locked .icon-blue {
    color: var(--slate) !important;
}

/* maintenance log partials file */

/* Table Base Styling */
.history-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.history-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--light);
    color: var(--slate);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.history-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.accent-blue {
    color: var(--blue);
}

/* --- MOBILE RESPONSIVE STACKING --- */
@media (max-width: 768px) {
    .history-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .history-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 1rem;
        padding: 0.5rem;
        background: #ffffff;
    }

    .history-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 12px;
        border-bottom: 1px dashed var(--border);
    }

    .history-table td:last-child {
        border-bottom: none;
    }

    /* This creates the labels on the left side of the "table" */
    .history-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--slate);
        font-size: 0.8rem;
        text-transform: uppercase;
        margin-right: 1rem;
    }
}

/* Service History Specifics */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.history-table th {
    background: var(--light);
    color: var(--slate);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.history-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    font-size: 0.9rem;
}

.history-table tr:hover {
    background-color: #f8fafc;
    /* Very light hover effect */
}

/* Reusing your existing history-cost style with a slight tweak */
.history-cost {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    /* Success Green */
    background: #f0fdf4;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #bcf0da;
}

/* Mobile Responsiveness Stacking */
@media (max-width: 768px) {
    .history-table thead {
        display: none;
    }

    .history-table tr {
        display: block;
        border-bottom: 4px solid var(--border);
        padding: 1rem 0;
    }

    .history-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--light);
        padding: 0.75rem 1.5rem;
    }

    .history-table td::before {
        content: attr(data-label);
        font-weight: 800;
        font-size: 10px;
        text-transform: uppercase;
        color: var(--slate);
    }
}

/* end of maintenance log partials */

/* Status Cards Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Slightly narrower min-width */
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.status-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid #f1f5f9;
    /* Soft border for definition */
    display: flex;
    flex-direction: column;
    /* Stack vertically for a modern look */
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Icon Nests - Gives them a clean, focused look */
.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon i {
    width: 24px;
    height: 24px;
}

/* Specific Coloring Logic */
.status-card.urgent .status-icon {
    background: #fef2f2;
    color: #dc2626;
}

.status-card.urgent .status-value {
    color: #dc2626;
}

.status-card.upcoming .status-icon {
    background: #eff6ff;
    color: #2563eb;
}

.status-card.upcoming .status-value {
    color: #2563eb;
}

.status-card.completed .status-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.status-card.completed .status-value {
    color: #16a34a;
}

/* Info Layout */
.status-info {
    display: flex;
    flex-direction: column-reverse;
    /* Put the number on top of the label */
}

.status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 700;
    color: #94a3b8;
    /* Muted slate */
    margin-top: 0.25rem;
}

.status-value {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

/* Main Task Card */
.task-container.card {
    background: white;
    border-radius: 2.5rem;
    /* The signature Next.js look */
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-ai:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    /* This physically stops clicks from passing through */
    filter: grayscale(100%);
}

/* Task item buttons */

/* Ensure the row handles space correctly */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.task-item:hover {
    background-color: #f8fafc;
}

.task-name {
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.task-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.due-date {
    font-weight: 700;
    color: #2563eb;
}


/* Let the details take up the remaining space */
.task-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    /* This pushes the actions to the far right */
}

/* Group buttons horizontally */
.task-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Space between complete and delete */
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-dark {
    background: #0f172a;
    color: white;
}

.btn-dark:hover {
    background: #1e293b;
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-white {
    background: white;
    color: #2563eb;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Increase padding significantly to clear the 2.5rem corners */
    padding: 5rem 2rem;
    min-height: 200px;
}

.empty-state p {
    color: #64748b;
    /* slate-500 */
    font-weight: 500;
    font-style: italic;
    max-width: 400px;
    /* Keeps text from stretching too wide */
    line-height: 1.6;
    margin: 0;
}

/* About page */

/* Layout Utilities */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.text-blue {
    color: var(--blue);
}

.bg-blue-light {
    background-color: #eff6ff;
}

.text-amber {
    color: #d97706;
}

.bg-amber-light {
    background-color: #fffbeb;
}

.text-green {
    color: #16a34a;
}

.bg-green-light {
    background-color: #f0fdf4;
}

/* Hero Section */
.about-hero {
    padding: 6rem 0;
    background-color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate);
    line-height: 1.6;
}

/* Mission Grid */
.mission-section {
    padding: 5rem 0;
    background-color: #fcfdfe;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.mission-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mission-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
}

.card-text {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
}

/* Builder Section */
.builder-section {
    padding: 6rem 0;
}

.avatar-gradient {
    display: inline-block;
    padding: 4px;
    background: linear-gradient(45deg, var(--blue), #a855f7);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.avatar-inner {
    width: 96px;
    height: 96px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--dark);
}

.builder-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.builder-text {
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.builder-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: var(--dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary,
.nav-link,
.stat-card {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-outline {
    background: white;
    border: 1px solid var(--border);
    color: var(--slate);
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.btn-outline:hover {
    background: var(--light);
}

/* end about page */

/* Pricing page */

.pricing-page {
    padding: 80px 0;
    background-color: #f8fafc;
}

.pricing-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.pricing-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: var(--slate);
}

/* The Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

/* Base Card */
.pricing-card {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 40px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Primary (Pro) Plan styling */
.pricing-card.is-primary {
    background: var(--dark);
    color: white;
    border: 4px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

@media (min-width: 1024px) {
    .pricing-card.is-primary {
        transform: scale(1.05);
    }

    .pricing-card.is-primary:hover {
        transform: scale(1.08) translateY(-5px);
    }
}

/* Elements */
.badge-popular {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.icon-wrapper {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    color: var(--slate);
}

.is-primary .icon-wrapper {
    background: var(--blue);
    color: white;
}

.tier-name {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.amount {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 800;
}

.period {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate);
}

.is-primary .period {
    color: #94a3b8;
}

.description {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--slate);
}

.is-primary .description {
    color: #94a3b8;
}

.feature-list {
    list-style: none;
    margin: 32px 0;
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.check-icon {
    color: var(--blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.is-primary .check-icon {
    color: #60a5fa;
}

/* Button */
.btn-pricing {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 20px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.2s;
    background: var(--dark);
    color: white;
}

.is-primary .btn-pricing {
    background: var(--blue);
}

.is-primary .btn-pricing:hover {
    background: #1d4ed8;
}

.pricing-card:not(.is-primary) .btn-pricing:hover {
    background: #1e293b;
}

/* Trust Section */
.pricing-trust {
    margin-top: 80px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    pt: 40px;
}

.trust-label {
    font-size: 11px;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.trust-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    color: #cbd5e1;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-item span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Toggle Container */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.toggle-label.is-active {
    color: #1e293b;
}

.discount-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
}

/* The actual Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2563eb;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Highlights the user's active plan card */
.pricing-card.current-border {
    border: 2px solid #2563eb;
    transform: scale(1.02);
}

/* Badge for the active plan */
.badge-current {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Disabled state for buttons */
.btn-current {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: default;
    border: 1px solid #e2e8f0;
}

.btn-included {
    background: #f8fafc !important;
    color: #64748b !important;
    cursor: default;
    border: none;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensures all cards are the same height in the grid */
}

.card-footer {
    margin-top: auto;
    /* Pushes the button to the very bottom of the card */
    padding-top: 20px;
}

/* end of pricing page */

/* Login Page */

/* Layout Wrapper */
.split-login-page {
    min-height: calc(100vh - 75px);
    /* Adjust based on your navbar height */
    display: grid;
    grid-template-columns: 1fr;
    background: white;
}

@media (min-width: 1024px) {
    .split-login-page {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left Side (Form) */
.login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
}

.login-form-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.login-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -3px;
    margin-bottom: 1rem;
}

.login-subtitle {
    color: var(--slate);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Buttons Stack */
.auth-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-google-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    text-decoration: none;
    color: var(--slate);
    font-weight: 700;
    transition: 0.2s;
}

.btn-google-auth img {
    width: 18px;
    filter: grayscale(1);
    transition: 0.2s;
}

.btn-google-auth:hover {
    background: #f8fafc;
    border-color: var(--blue);
}

.btn-google-auth:hover img {
    filter: grayscale(0);
}

.btn-email-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: var(--dark);
    color: white;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-email-auth:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.arrow-icon {
    opacity: 0.5;
    width: 18px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.divider-text {
    font-size: 10px;
    font-weight: 900;
    color: #cbd5e1;
    letter-spacing: 2px;
}

.auth-brand-footer {
    margin-top: 60px;
    font-size: 10px;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

/* Right Side (Art) */
.login-right {
    display: none;
    background: #f8fafc;
    padding: 32px;
}

@media (min-width: 1024px) {
    .login-right {
        display: flex;
    }
}

.art-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--dark);
    border-radius: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.art-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 340px;
}

.art-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.art-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* The Blurry Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-top {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, 0.15);
}

.orb-bottom {
    bottom: -10%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, 0.1);
}

/* Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    color: #60a5fa;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* end of Login page */

/* Login direct page */
/* Back Link */
.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: 0.2s;
}

.back-link:hover {
    color: var(--blue);
}

.back-link i {
    width: 14px;
}

/* Form Elements */
.direct-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    color: #cbd5e1;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfdfe;
    font-family: var(--jakarta);
    font-size: 1rem;
    transition: 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.05);
}

/* Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 6px;
}

.remember-me label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
}

/* Button */
.btn-direct-login {
    width: 100%;
    padding: 18px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 1rem;
}

.btn-direct-login:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.auth-switch-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate);
}

.auth-switch-footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
}

.error-text {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
}

/* end login direct */
/* Register page */

/* Import the core split-screen layout 
uses login page and auth-direct css
*/

/* Register Specific Styles */
.register-variant {
    background: linear-gradient(to bottom right, #020617, #0f172a);
}

.orb-register-1 {
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.15);
    /* Purple tint */
}

.orb-register-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, 0.1);
}

/* Stats Badge inside the Art Card */
.stats-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
}

.stat-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.terms-text {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

.terms-text a {
    color: var(--slate);
    font-weight: 700;
    text-decoration: underline;
}

/* end register page */

/* Settings page */
/* Layout & Grid */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Specifics */
.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-icon-header i {
    width: 18px;
}

.card-dark-mode {
    background: var(--dark) !important;
    border: none !important;
    padding: 1.5rem;
    border-radius: 1.25rem;
}

/* Form Styles */
.card-body-padding {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label-alt {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.input-dark {
    width: 100%;
    padding: 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    color: white;
    outline: none;
    font-family: var(--jakarta);
}

.full-width {
    width: 100%;
}

/* Standards Form Alignment */
.standard-entry-form {
    margin-bottom: 3rem;
}

.action-row {
    margin-top: 1rem;
}



/* List Styling */
.section-divider-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.category-tag {
    background: var(--light);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 900;
    color: var(--slate);
    text-transform: uppercase;
}

/* Back Link */
.back-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--slate);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: var(--blue);
}

/* Vertical Stack Container */
.form-group-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Tight gap between label and input */
    margin-bottom: 20px;
    /* Space between different groups */
}

/* Label styled to sit on top */
.form-label-top {
    font-size: 11px;
    font-weight: 800;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 4px;
    /* Slight indent to align with the input curve */
}

/* Ensure the structured input looks consistent */
.structured-input {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--white);
    border: 2px solid var(--border);
    border-radius: 14px;
    font-family: var(--jakarta);
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.structured-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.05);
    /* Soft glow */
}

/* Button Layout */
.form-action-container {
    margin-top: 10px;
}

.w-full {
    width: 100%;
}

/* Helper for the select arrow */
select.structured-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
}



/* end of settings


/* Contact page */

.contact-page-wrapper {
    min-height: calc(100vh - 80px);
    /* Subtracts the approximate height of your navbar */
    background-color: #fcfdfe;
    display: flex;
    align-items: flex-start;
    /* Changed from center to flex-start */
    justify-content: center;
    padding-top: 60px;
    /* Controlled distance from the navbar */
    padding-bottom: 60px;
}

.contact-container {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    /* Aligns the top of the text with the top of the form */
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Info Column Styling */
.contact-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

.glass-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: 0.3s;
}

.glass-card:hover {
    transform: translateX(10px);
    border-color: var(--blue);
}

/* Form Surface Styling */
.form-surface {
    background: white;
    padding: 48px;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    position: relative;
}

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

.form-field label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 16px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 500;
    outline: none;
    transition: 0.3s;
}

.form-field input:focus {
    background: white;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-submit-contact {
    width: 100%;
    padding: 18px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Container for the success state to center everything */
.success-state-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    /* Matches the approximate height of the form */
    animation: fadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid #dcfce7;
}

.success-icon-wrapper i {
    width: 40px;
    height: 40px;
}

.success-heading {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.success-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 32px;
}

/* The "Send Another" Button - Styled like a pro */
.btn-reset-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #f1f5f9;
    color: var(--slate);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s all;
}

.btn-reset-form i {
    width: 16px;
    height: 16px;
}

.btn-reset-form:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    transform: translateY(-2px);
}

/* Smooth Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
}

/* end of contact page */

/* FAQ page */

.faq-categories {
    width: 100%;
}

.faq-header{margin-bottom:20px;}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    background: var(--surface); /* or white/light gray depending on your theme */
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.category-card i {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
}

.category-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

/* Mobile Tweak: On very small screens, 2x2 grid looks better than 4 stacked */
@media (max-width: 640px) {
    .faq-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*  new stuff */
.category-flex-container {
    display: flex;
    flex-direction: row; /* Force them onto one line */
    gap: 20px;
    width: 100%;
    margin-bottom: 4rem; /* mb-16 equivalent */
}

.category-card {
    flex: 1; /* This forces all cards to be the exact same width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 0; /* Prevents flex items from bulging */
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
}

/* Responsive: Stack them on mobile devices */
@media (max-width: 768px) {
    .category-flex-container {
        flex-wrap: wrap; /* Allow wrapping on tablets */
    }
    .category-card {
        flex: 1 1 calc(50% - 20px); /* Show 2 per row on smaller screens */
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 1 1 100%; /* Show 1 per row on phones */
    }
}



/* Accordion Styles */
.accordion-item {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 700;
    color: var(--dark);
}

.accordion-header i {
    transition: 0.3s;
    width: 18px;
}

.accordion-content {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: 0.3s ease-out;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding-bottom: 24px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: var(--blue);
}

/* The "Still Have Questions" Card at the bottom */
.faq-footer-card {
    margin-top: 80px;
    padding: 60px 40px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 48px;
    /* High-end rounded look */
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.03);
    /* Subtle depth */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* This creates the space between H3, P, and the Button */
}

.faq-footer-card h3 {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--dark);
    margin: 0;
    letter-spacing: -1px;
}

.faq-footer-card p {
    font-size: 1rem;
    color: #64748b;
    max-width: 400px;
    margin: 0 0 12px 0;
    /* Extra breathing room above button */
    line-height: 1.6;
}

/* Ensure the button stays centered and sized correctly */
.faq-footer-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 16px 32px;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    .faq-footer-card {
        padding: 40px 24px;
        margin-top: 40px;
        border-radius: 32px;
    }
}

/* end FAQ page */

/* feedback button */

.feedback-wrapper {
    position: fixed;
    bottom: 70px;
    right: 30px;
    z-index: 9999;
}

.btn-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    /* Deep black to contrast your blue */
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-feedback:hover {
    transform: translateY(-5px);
    background: var(--blue);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

/* Hide text on small mobile screens to stay out of the way */
@media (max-width: 600px) {
    .btn-feedback span {
        display: none;
    }

    .btn-feedback {
        padding: 12px;
        border-radius: 50%;
    }

    .feedback-wrapper {
        bottom: 20px;
        right: 20px;
    }
}

/*end of feedback*/



/* Navigation */

/* Navigation Base */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-wrapper {
    background: #020617;
    padding: 8px;
    border-radius: 12px;
    display: flex;
    transition: transform 0.2s;
}

.nav-logo:hover .logo-wrapper {
    transform: scale(1.05);
}

.logo-icon {
    color: #60a5fa;
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    color: #020617;
    letter-spacing: -1px;
}

.text-blue {
    color: #2563eb;
}

/* Desktop Menu */
.nav-links-desktop {
    display: none;
    /* Hidden by default for mobile-first */
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
    }
}

.nav-link,
.dropdown-trigger {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.dropdown-trigger:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.chevron {
    width: 14px;
    transition: transform 0.2s;
}

.rotate-180 {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-top: 8px;
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

.menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 8px;
}

/* Auth Actions */
.nav-auth-group {
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px solid #e2e8f0;
    display: flex;
}

.btn-signin {
    background: #2563eb;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.btn-signin:hover {
    background: #1d4ed8;
}

.btn-logout {
    background: none;
    border: none;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
}

/* Mobile Toggle & Menu */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-link {
    display: block;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: 16px;
}

.mobile-link:hover {
    background: #eff6ff;
    color: #2563eb;
}

.w-full {
    width: 100%;
    justify-content: center;
}

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


.pill {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

/* PRO: The Signature Studio Green */
.pill-pro {
    color: #008f25;
    background: rgba(0, 143, 37, 0.1);
    border-color: rgba(0, 143, 37, 0.3);
}

/* PLUS: A sleek Cyan/Electric Blue */
.pill-plus {
    color: #0070f3;
    background: rgba(0, 112, 243, 0.1);
    border-color: rgba(0, 112, 243, 0.3);
}

/* FREE: A neutral slate/grey */
.pill-free {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

/* end of Navigation */




/* AI Maintenance */

.hub-header.container {
    padding-top: 40px;
    padding-bottom: 10px;
}

.mt-10 {
    margin-top: 3rem;
    /* Creates the gap between the header and the grid */
}

/* Section Header Alignment */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

/* Lucide Icon override if you want to swap the SVG for the Brain-style logic */
.card-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

/* AI Chat Window */

/* Chat Window Layout */
.chat-window {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* space-y-6 */
    padding: 1.5rem;
    height: 500px;
    overflow-y: auto;
    background: rgba(248, 250, 252, 0.5);
    /* slate-50/50 */
    scroll-behavior: smooth;
}

/* Base Bubble Style */
.message {
    max-width: 85%;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: relative;
}


/* User Bubble (Right Side) */
.message.user {
    align-self: flex-end;
    background: #2563eb;
    /* blue-600 */
    color: white;
    border: 1px solid #3b82f6;
    border-radius: 1.5rem 1.5rem 0 1.5rem;
    /* rounded-tr-none */
}

/* AI Bubble (Left Side) */
.message.system {
    align-self: flex-start;
    background: white;
    color: #1e293b;
    /* slate-800 */
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem 1.5rem 1.5rem 0;
    /* rounded-tl-none */
}

/* Loading Animation (Typing Dots) */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* end of ai message */

/* Markdown Content Styling */
.message p {
    margin-bottom: 0.75rem;
}

.message p:last-child {
    margin-bottom: 0;
}

.message ul,
.message ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}


/* end AI Chat Window */


/* upsell on maintenance */

/* Upsell Banner (Gradient) */
.upsell-banner {
    margin-top: 3rem;
    background: linear-gradient(to bottom right, #2563eb, #4338ca);
    border-radius: 2.5rem;
    padding: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.upsell-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.upsell-text {
    color: #dbeafe;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 500px;
}

.deco-icon {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    transform: rotate(12deg);
}

/* end upsell on maintenance */

/* Dashboard Layout (Side-by-Side) */
.dashboard-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* Fixed sidebar, flexible content */
    gap: 2.5rem;
    align-items: start;
}

/* Dashboard page */
.dashboard-wrapper {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 100vh;
}

/* Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.welcome-badge {
    font-size: 10px;
    font-weight: 900;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -1.5px;
}

.welcome-subtitle {
    color: var(--slate);
    font-weight: 500;
    margin-top: 4px;
}

.btn-add-smart {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--dark);
    color: white;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add-smart:hover {
    background: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    color: var(--blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
}

/* Content Layout */
.dash-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .dash-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* Empty State */
.empty-state-card {
    background: white;
    border: 2px dashed var(--border);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
}

.empty-icon-box {
    color: #cbd5e1;
    margin-bottom: 24px;
}

.empty-state-card h3 {
    font-weight: 800;
    margin-bottom: 8px;
}

.empty-state-card p {
    color: var(--slate);
    max-width: 300px;
    margin: 0 auto 24px;
    font-size: 0.9rem;
}

/* AI Panel */
.ai-tip-card {
    background: var(--dark);
    color: white;
    padding: 32px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 20px;
}

.tip-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    color: #cbd5e1;
}

.tip-footer {
    margin-top: 30px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

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

.view-all-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--slate);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-all-pill i {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

/* Hover State */
.view-all-pill:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* Make the arrow nudge to the right on hover */
.view-all-pill:hover i {
    transform: translateX(3px);
}

/* Active State for that tactile click feel */
.view-all-pill:active {
    transform: scale(0.96);
}

/* Status Badge Variants */
.welcome-badge {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bcf0da;
}

.badge-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Dashboard Layout Grid */
.dashboard-split-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .dashboard-split-layout {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Status Badges */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge.alert {
    background: #fef2f2;
    color: #dc2626;
}

.status-badge.check {
    background: #f0fdf4;
    color: #16a34a;
}

/* Section Specifics */
.view-all-pill {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

/* end of dashboard page */

/* Sidebar Styling */
.sidebar-card {
    background: white;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.p-4 {
    padding: 1.5rem;
}

/* Form Controls to match the Maintenance Modals */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
}

.label-sm {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: #475569;
}

/* Appliance Page */

/* Form Styling */

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--slate);
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.alert-limit {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 20px;
    border-radius: 20px;
    color: #92400e;
}

/* Appliance List Items */
.appliance-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appliance-card-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    gap: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.appliance-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-icon-box {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    /* Light blue */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-details {
    flex: 1;
}

.icon-blue {
    color: #2563eb;
}


/* dashboard upgrade success */
.alert-terminal {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #475569;
    padding: 15px;
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.terminal-header {
    background: #475569;
    color: #000;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.code-green {
    color: #00ff41;
    font-weight: bold;
}

.code-dim {
    color: rgba(0, 255, 65, 0.6);
    font-size: 12px;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* end dashboard upgrade success */


/* --- APPLIANCE DETAILS --- */

/* Container & Flow */
.detail-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
}

/* Header Adjustments */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Top Status Cards */
.appliance-status-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.status-card,
.standards-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* appliance edit button */

.btn-edit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 50px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-edit-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

.icon-xs {
    width: 14px;
    height: 14px;
}


/* end appliance edit button */

/* appliance edit modal */

/* Hide Alpine elements before they load */
[x-cloak] {
    display: none !important;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dimmed background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    /* Modern touch */
}

.custom-modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-close-minimal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* end appliance edit modal */

/* model, serial name styles */

.tech-pill {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

.tech-brand {
    font-weight: 800;
    color: #1e293b;
}

.tech-separator {
    margin: 0 10px;
    color: #cbd5e1;
    font-weight: 300;
}

.tech-model {
    font-weight: 500;
}

.tech-spacer {
    width: 1px;
    height: 14px;
    background: #e2e8f0;
    margin: 0 15px;
}

.tech-label {
    font-weight: 800;
    font-size: 0.65rem;
    margin-right: 6px;
    color: #94a3b8;
}

.tech-serial {
    font-family: 'Monaco', monospace;
    color: #475569;
    font-weight: 600;
}

.btn-copy-subtle {
    background: transparent;
    border: none;
    color: #94a3b8;
    margin-left: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-copy-subtle svg {
    width: 12px;
    height: 12px;
}

/* end of model/serial */

/* AI Chat Container - Full Width */

.ai-chat-card {
    width: 100%;
    background: white;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    max-height: 700px;
}

.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Chat Header Container */
.chat-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    border-radius: 2rem 2rem 0 0;
    /* Matches top of card */
    gap: 16px;
}

/* Icon Box */
.chat-icon-box {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.chat-icon-box i {
    width: 24px;
    height: 24px;
}

/* Title & Meta Text */
.chat-title-meta {
    flex-grow: 1;
}

.chat-title-meta h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.chat-title-meta p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Usage Stats Section */
.usage-stats {
    text-align: right;
    min-width: 120px;
}

.usage-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.usage-text.warning {
    color: #e11d48;
    /* Red for high usage */
}

/* Progress Bar */
.usage-bar-bg {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: #2563eb;
    /* Blue for normal */
    border-radius: 10px;
    transition: width 0.4s ease;
}

.usage-bar-fill.warning {
    background: #e11d48;
    /* Red for high usage */
}

/* Responsive fix for very small screens */
@media (max-width: 480px) {
    .chat-header {
        flex-wrap: wrap;
        padding: 16px;
    }

    .usage-stats {
        width: 100%;
        text-align: left;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f8fafc;
    }
}

/* Secondary Info Grid (Manuals & History) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns on desktop */
    gap: 24px;
}

.sidebar-card {
    background: white;
    padding: 24px;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .appliance-status-bar {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
        /* Stacked columns on mobile */
    }

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

    .ai-chat-card {
        max-height: 80vh;
        /* Better fit for mobile screens */
    }
}

/* Shared UI Elements */
.btn-upload {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 15px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.btn-sidebar-action {
    display: block;
    text-align: center;
    padding: 10px;
    background: #2563eb;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    margin-top: 15px;
}

/* 1. The Outer Container */
.chat-input-area {
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-radius: 0 0 2rem 2rem;
}


/* 4. The Hidden Input Field */
#chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    /* Removed so the wrapper handles the focus look */
}

#chat-input::placeholder {
    color: #94a3b8;
}

/* 5. The Nested Send Button */
.btn-send {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    /* Circle button inside the pill */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.btn-send:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.btn-send:active {
    transform: scale(0.92);
}

.btn-send i {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    /* Slight offset to visually center the 'send' icon */
}

/* Mobile adjustments for the input area */
@media (max-width: 480px) {
    .chat-input-area {
        padding: 16px;
    }

    .input-wrapper {
        padding: 4px 4px 4px 12px;
    }
}


/* Quick Actions Container */
.quick-actions-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 1.5rem 1rem 1.5rem;
    background: white;
}

/* Hide scrollbar but allow scrolling */
.quick-actions-row::-webkit-scrollbar {
    display: none;
}

.quick-actions-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.btn-quick-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    /* slate-50 */
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-quick-action:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-1px);
}

.btn-quick-action i {
    width: 14px;
    height: 14px;
}

/* AI Quick Chat */



/* Sidebar Cards */
.sidebar-card {
    background: white;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--slate);
}


.manual-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.manual-item a {
    text-decoration: none;
    color: var(--dark);
}

.manual-item a:hover {
    color: var(--blue);
}

.manual-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.manual-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
}

.manual-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.manual-actions a {
    color: #64748b;
    transition: color 0.2s;
}

.manual-actions a:hover {
    color: #2563eb;
}

.btn-icon-delete {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.btn-icon-delete:hover {
    color: #ef4444;
    /* Red on hover */
}

.btn-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 2px dashed var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 15px;
}

.btn-upload:hover {
    border-color: var(--blue);
    background: #eff6ff;
    color: var(--blue);
}

.empty-text {
    font-size: 0.8rem;
    color: var(--slate);
    text-align: center;
    margin: 10px 0;
}

/* Styling for Markdown inside the Chat */
.message.system h3 {
    font-size: 1.1rem;
    line-height: 1.4rem;
    margin: 15px 0 10px 0;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.message.system ul,
.message.system ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.message.system li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.message.system p {
    margin-bottom: 12px;
}

.message.system strong {
    color: var(--blue);
    /* Makes bolded warnings/parts pop in blue */
}


/* maintenance log on appliance chat */

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.history-info span {
    font-size: 10px;
    color: #94a3b8;
}

.history-cost {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    /* Success Green */
    background: #f0fdf4;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Sidebar Service Button */
.btn-sidebar-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 1rem;
    padding: 10px;
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    /* Dashed border gives it a "Fill this in" feel */
    border-radius: 12px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sidebar-action:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #2563eb;
    border-style: solid;
    transform: translateY(-1px);
}

.btn-sidebar-action i {
    width: 14px;
    height: 14px;
}

/* end maintenance log on appliance chat */


/* end of appliance */


/* Mobile Adjustments */
@media (max-width: 850px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        order: 2;
        /* Move form below the list on mobile */
    }
}

/* studio button */

/* Add this to your VitalHome CSS */

.nav-auth-group {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Space between Studio link and Logout */
}

.btn-studio-minimal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    /* Deep charcoal for visibility on light bg */
    color: #333333;
    text-decoration: none;
    padding: 5px 10px;
    /* Subtle dark border */
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-studio-minimal:hover {
    color: #008f25;
    /* A slightly deeper green for better contrast on light bg */
    border-color: #008f25;
    background: rgba(0, 143, 37, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-studio-minimal i {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    /* Keeps the icon from being too "heavy" */
}

/* Adjust the logo-text if it still feels tight */
.logo-text {
    margin-right: 20px;
}

/* end studio butotn */

/* health meter dashboard */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    /* Slightly tighter for a "top corner" look */
    background: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 50px;
    gap: 8px;
    white-space: nowrap;
    /* Prevents text from wrapping on small screens */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

/* Optional: Make it "Pop" on hover */
.status-pill:hover {
    border-color: #b7b9cc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
}

.status-value {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    border-left: 1px solid #eee;
    padding-left: 8px;
}

/* Dynamic State Colors */
.badge-success .status-dot {
    background-color: #27ae60;
    box-shadow: 0 0 6px rgba(39, 174, 96, 0.4);
}

.badge-warning .status-dot {
    background-color: #f39c12;
    box-shadow: 0 0 6px rgba(243, 156, 18, 0.4);
}

.badge-danger .status-dot {
    background-color: #e74c3c;
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.4);
}


/* end health meter dashboard */

/* plans */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge i {
    width: 14px;
    height: 14px;
}

/* Plan Specific Styling */
.is-free {
    background: #f0f0f0;
    color: #666;
}

.is-plus {
    background: #e3f2fd;
    color: #1976d2;
}

/* Soft Blue */
.is-pro {
    background: #fff3e0;
    color: #f57c00;
}

/* Soft Orange */
.is-vip {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Soft Purple */

/* Optional: Add a subtle glow for VIP */
.is-vip {
    box-shadow: 0 0 10px rgba(123, 31, 162, 0.1);
    border: 1px solid rgba(123, 31, 162, 0.2);
}

/* priority buttons */

/* Priority Badge Base Styles */
.priority-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Color Coding */
.priority-low {
    background-color: #f1f5f9;
    /* Slate 100 */
    color: #64748b;
    /* Slate 500 */
}

.priority-medium {
    background-color: #ecfdf5;
    /* Emerald 50 */
    color: #059669;
    /* Emerald 600 */
}

.priority-high {
    background-color: #fff7ed;
    /* Orange 50 */
    color: #ea580c;
    /* Orange 600 */
}

.priority-urgent {
    background-color: #fef2f2;
    /* Red 50 */
    color: #dc2626;
    /* Red 600 */
    border: 1px solid #fee2e2;
    animation: soft-pulse 2s infinite;
}

/* Subtle pulse for Urgent tasks */
@keyframes soft-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* end priority buttons */


/* my account setting page */
/* Add to settings.css or a style block */
.text-green {
    color: var(--primary) !important;
    /* Uses your terminal green */
}

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

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* end my account setting page */

/* navbar my account button */

.dropdown-menu-right {
    right: 0;
    left: auto !important;
    min-width: 200px;
}

.text-red {
    color: #ef4444 !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Rotation for the arrow */
.rotate-180 {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 0.2s ease;
    width: 14px;
    height: 14px;
}

/* end navbar account */

/* ai daily count chat */
.usage-monitor {
    padding: 15px;
    font-family: var(--jakarta);
}

.usage-text {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.usage-bar-bg {
    width: 100%;
    height: 4px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: #00ff41; /* Green for safe */
    transition: width 0.4s ease;
}

.usage-bar-fill.usage-full {
    background: #ff4444; /* Red for limit reached */
}

.usage-warning {
    font-size: 10px;
    font-weight:bold;
    color: #ff4444;
    margin-top: 8px;
    text-transform: uppercase;
}
/* end ai daily count - chat */

/* password extra styles for hide/show */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--slate); /* or your preferred dim color */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--primary); /* or your accent color */
}

.icon-xs {
    width: 16px;
    height: 16px;
}
.icon-sm {
    width: 18px !important;
    height: 18px !important;
    display: block; /* Ensures it takes up space */
}
/* end password hide/show */

