/* Main Stylesheet for Compliance Auditor */
:root {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.85);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.08);
    --secondary: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(79, 70, 229, 0.08);
    --border-active: rgba(79, 70, 229, 0.35);
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navigation */
header {
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-main);
}

.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    box-shadow: none;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.15);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Auditor Form & Card */
.auditor-box {
    width: 100%;
    max-width: 780px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.auditor-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.form-group {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.form-input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-main);
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    font-family: var(--font);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auditor-box .btn {
    padding: 0 2rem;
    border-radius: 16px;
    font-size: 1rem;
}

/* Live audit states */
.audit-status-container {
    margin-top: 2rem;
    text-align: left;
    display: none;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%;
    transition: width 0.4s ease;
}

.status-step {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results section */
.results-card {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.results-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.results-title p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.score-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.score-badge span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
}

.score-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.score-orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.score-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.metric-info p {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.indicator-yes { background: var(--success); box-shadow: 0 0 10px var(--success); }
.indicator-no { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.indicator-warn { background: var(--warning); box-shadow: 0 0 10px var(--warning); }

.violations-list {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.violations-list h4 {
    color: var(--danger);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.violations-list ul {
    list-style: none;
}

.violations-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.violations-list li::before {
    content: '✕';
    color: var(--danger);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.violations-list li.success-item::before {
    content: '✓';
    color: var(--success);
}

.violations-list li.success-item {
    color: var(--text-main);
}

/* Features section */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Laws grid */
.laws-section {
    background: rgba(0, 0, 0, 0.02);
    border-y: 1px solid var(--border);
    padding: 6rem 2rem;
}

.laws-container {
    max-width: 1200px;
    margin: 0 auto;
}

.laws-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.law-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
}

.law-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    white-space: nowrap;
}

.law-card h3 span {
    font-size: 0.9rem;
    background: rgba(124, 58, 237, 0.08);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.law-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.law-checklist {
    list-style: none;
}

.law-checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.law-checklist li::before {
    content: '→';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Pricing Section */
.pricing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.65rem 0;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.stat-card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.75rem;
    font-weight: 800;
}

/* Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow-x: auto;
    margin-bottom: 3rem;
}

.table-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: #f1f5f9;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#audits-table th, #audits-table td {
    padding: 1rem 0.6rem;
    font-size: 0.85rem;
}

tr:hover td {
    background: rgba(0, 0, 0, 0.01);
}

/* Badges for status */
.badge-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* Login overlay styling */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-box h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.login-box .form-group {
    flex-direction: column;
    gap: 1.25rem;
}

.login-box .btn {
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

/* Responsive Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.02);
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== MOBILE RESPONSIVE ========== */

/* Burger menu button */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}
.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet breakpoint */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .laws-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Header & Navigation */
    .burger-menu {
        display: block;
    }
    .nav-container {
        padding: 1rem 1.25rem;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 150;
    }
    .nav-links.active {
        right: 0;
    }
    .logo {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 1.25rem 2.5rem;
    }
    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Auditor Form */
    .auditor-box {
        padding: 1.5rem;
        border-radius: 16px;
        margin-bottom: 3rem;
    }
    .form-group {
        flex-direction: column;
    }
    .auditor-box .btn {
        width: 100%;
        padding: 1rem;
    }

    /* Features */
    .features-section {
        padding: 3rem 1.25rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .feature-card {
        padding: 1.75rem;
    }
    .section-title h2 {
        font-size: 1.75rem;
    }
    .section-title {
        margin-bottom: 2.5rem;
    }

    /* Laws */
    .laws-section {
        padding: 3rem 1.25rem;
    }
    .law-card {
        padding: 1.75rem;
        border-radius: 16px;
    }
    .law-card h3 {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }

    /* Pricing */
    .pricing-section {
        padding: 3rem 1.25rem;
    }
    .pricing-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    .pricing-price {
        font-size: 2.25rem;
    }

    /* Results */
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Fix proposal */
    .fix-proposal-card {
        padding: 1.5rem;
    }
    .fix-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .order-inputs {
        grid-template-columns: 1fr;
    }

    /* Footer */
    footer {
        padding: 2.5rem 1.25rem 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    /* Admin & Tables */
    .admin-container {
        padding: 0 1rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .table-container {
        border-radius: 12px;
    }
    .table-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    th, td {
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Login */
    .login-box {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    /* Modals */
    .modal-card {
        padding: 1.75rem;
        width: 95%;
    }

    /* Badge for score */
    .badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Service Offering Card */
.fix-proposal-card {
    background: rgba(79, 70, 229, 0.03);
    border: 1px dashed rgba(79, 70, 229, 0.25);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.proposal-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fix-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.fix-list {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.fix-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.fix-list li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.fix-list li strong {
    color: var(--text-main);
}

.fix-selector-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.fix-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.fix-option-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fix-option-left input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.fix-option-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.fix-option-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.05rem;
}

.fix-option:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.01);
}

.fix-option.active {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

.total-cost-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.total-cost-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.total-cost-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.order-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.order-inputs .form-input {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.order-submit-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
}

.order-success-msg {
    display: none;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    animation: fadeIn 0.4s ease;
}

@media(max-width: 768px) {
    .order-inputs {
        grid-template-columns: 1fr;
    }
}

/* Modals styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 24px;
    padding: 2.25rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    color: var(--text-main);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.limit-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-control-modal {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-control-modal:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-main);
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Recent Audits Grid styling */
.recent-audits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.recent-audit-item-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-main);
}

.recent-audit-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.9);
}

.recent-audit-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.recent-audit-item-site {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.recent-audit-item-score {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.recent-audit-item-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-audit-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
}

/* CRM Table Fixes */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Fix for crooked table */
}

.admin-table th, .admin-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: top;
    word-wrap: break-word;
    border-bottom: 1px solid var(--border);
}

.admin-table th:nth-child(1) { width: 22%; } /* Название */
.admin-table th:nth-child(2) { width: 18%; } /* Сайт */
.admin-table th:nth-child(3) { width: 15%; } /* Email */
.admin-table th:nth-child(4) { width: 13%; } /* Телефон */
.admin-table th:nth-child(5) { width: 14%; } /* Статус */
.admin-table th:nth-child(6) { width: 18%; } /* Комментарий */

.admin-table td {
    font-size: 0.85rem;
}

/* 2026-11-16: off-canvas mobile menu (right:-100%) must not widen the page */
@media (max-width: 768px) {
    header { overflow-x: clip; }
}
@media (max-width: 768px) {
    .laws-grid > * { min-width: 0; }
    .law-card h3 { white-space: normal; }
    .results-header h4 { flex-wrap: wrap; }
    .results-header > div { width: 100%; }
}
@media (max-width: 768px) {
    #order-fix-form .order-inputs,
    #order-fix-form details > div { grid-template-columns: 1fr !important; }
    #order-fix-form .order-inputs > *,
    #order-fix-form details > div > * { grid-column: auto !important; min-width: 0; }
}
@media (max-width: 768px) {
    .total-cost-box { flex-direction: column !important; align-items: flex-start !important; gap: 0.5rem; }
    #order-total-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
}
