/* ===== CSS Variables ===== */
:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary-color: #84cc16;
    --accent-color: #22d3ee;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f0fdfa;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1440px; /* Increased to fit more links */
}

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

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-subtext {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced gap */
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem; /* Increased text size */
    white-space: nowrap; /* Prevent wrapping */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    list-style: none;
    pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
    pointer-events: auto;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-primary) !important;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a::after {
    display: none !important;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color) !important;
}

/* ===== Modal Styles ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-icon {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.modal-form-group {
    margin-bottom: 16px;
}

.modal-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #fff;
}

.modal-form-group input::placeholder,
.modal-form-group textarea::placeholder {
    color: var(--text-light);
}

.modal-submit-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    margin-top: 4px;
}

.modal-submit-btn:hover {
    background: var(--primary-dark);
}

.modal-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-submit-btn.loading {
    background: #10b981;
    cursor: wait;
}

.modal-back-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    margin-bottom: 16px;
    display: block;
    transition: color 0.2s;
}

.modal-back-btn:hover {
    color: var(--text-primary);
}

.login-role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.login-role-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.25s ease;
}

.login-role-btn:hover {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.login-role-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.login-role-text {
    flex: 1;
}

.login-role-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.login-role-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.login-role-arrow {
    font-size: 16px;
    color: var(--text-light);
    transition: color 0.2s, transform 0.2s;
}

.login-role-btn:hover .login-role-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* ===== Empannel Welcome Back Page ===== */
.empannel-page {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 50%, #ecfdf5 100%);
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.empannel-page.active {
    opacity: 1;
    visibility: visible;
}

.empannel-page-inner {
    width: 100%;
    max-width: 500px;
    padding: 40px 24px 60px;
}

.empannel-page.active .empannel-page-inner {
    animation: empannelFadeUp 0.5s ease-out;
}

@keyframes empannelFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.empannel-back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px 10px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow-sm);
}

.empannel-back-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.empannel-brand {
    text-align: center;
    margin-bottom: 20px;
}

.empannel-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.25);
}

.empannel-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empannel-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.empannel-app-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.empannel-app-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 36px -8px rgba(13, 148, 136, 0.15);
    transform: translateY(-2px);
}

.empannel-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.empannel-app-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.empannel-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.empannel-app-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.empannel-app-id {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-light);
    margin-top: 2px;
}

.empannel-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
    white-space: nowrap;
}

.empannel-app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.empannel-app-date {
    font-size: 12px;
    color: var(--text-light);
}

.empannel-app-link {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.empannel-app-card:hover .empannel-app-link {
    color: var(--primary-color);
}

.empannel-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
}

.empannel-divider::before,
.empannel-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.empannel-divider span {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.06em;
    font-weight: 500;
}

.empannel-new-card {
    padding: 24px 20px;
    background: #fff;
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.empannel-new-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(13, 148, 136, 0.12);
}

.empannel-new-icon {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.empannel-new-card:hover .empannel-new-icon {
    color: var(--primary-color);
}

.empannel-new-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.empannel-new-card:hover .empannel-new-title {
    color: var(--text-primary);
}

.empannel-new-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== Ops Dashboard ===== */
.ops-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.ops-stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.ops-stat-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.ops-stat-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.ops-app-list {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ops-app-list-header {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.ops-app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    cursor: pointer;
}

.ops-app-row:last-child {
    border-bottom: none;
}

.ops-app-row:hover {
    background: var(--bg-secondary);
}

/* ===== Ops Detail Page ===== */
.ops-detail-inner {
    padding-top: 90px;
}

.ops-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.ops-detail-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.ops-detail-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ops-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.ops-detail-row:last-child {
    border-bottom: none;
}

.ops-detail-label {
    color: var(--text-light);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 80px;
}

.ops-detail-value {
    color: var(--text-primary);
    font-family: monospace;
    text-align: right;
    word-break: break-all;
}

.ops-action-btns {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.ops-approve-btn {
    flex: 1;
    padding: 13px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.ops-approve-btn:hover {
    background: var(--primary-dark);
}

.ops-sendback-btn {
    flex: 1;
    padding: 13px;
    background: transparent;
    color: #d97706;
    border: 1.5px solid #d97706;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.ops-sendback-btn:hover {
    background: #fffbeb;
}

.ops-sendback-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ops-sendback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.ops-cancel-btn {
    padding: 13px 20px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.ops-cancel-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(6px);
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-shape {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 8s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* ===== About Section ===== */
.about {
    background-color: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Services Section ===== */
.services {
    background-color: var(--bg-secondary);
}

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

.service-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.service-link:hover {
    gap: 0.5rem;
}

/* ===== Team Section ===== */
.team {
    background-color: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.team-card:hover {
    background-color: var(--bg-secondary);
}

.team-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin: 0 auto;
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-light);
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-shape {
        width: 300px;
        height: 300px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links.active .nav-dropdown-menu {
        position: static;
        transform: none;
        display: block;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        padding: 4px;
        margin-top: 4px;
        opacity: 1;
        visibility: visible;
        min-width: auto;
        pointer-events: auto;
    }

    .nav-dropdown-menu {
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-subtext {
        font-size: 0.75rem;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-logo {
        height: 60px;
    }
}

/* ===== Loading Screen ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
}

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

.loader-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Section Tag ===== */
.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Hero Trust Badges ===== */
.hero-trust {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-item svg {
    color: var(--primary-color);
}

/* ===== Stats Banner ===== */
.stats-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ===== About Features ===== */
.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    max-width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ===== Service Card Enhancements ===== */
.service-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== How It Works Section ===== */
.how-it-works {
    background-color: var(--bg-primary);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 250px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin-top: 4rem;
    display: none;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(13, 148, 136, 0.1) 100%);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--primary-light);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== FAQ Section ===== */
.faq {
    background-color: var(--bg-primary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question svg {
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Contact Form Enhancements ===== */
.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
}

.info-card.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.info-card.highlight .info-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.info-card.highlight h4,
.info-card.highlight p {
    color: white;
}

.btn-full {
    gap: 0.5rem;
}

/* ===== Footer Enhancements ===== */
.footer-content {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer-services h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-services a {
    color: var(--text-light);
}

.footer-services a:hover {
    color: white;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-style: italic;
}

.footer-newsletter p {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: white;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
}

/* ===== Nav Button ===== */
.btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-nav::after {
    display: none !important;
}

/* ===== Responsive Design ===== */
@media (min-width: 992px) {
    .step-connector {
        display: block;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .step-connector {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item .stat-number {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-trust {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }

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

    .footer-legal {
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 5rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-text-wrapper {
        display: none;
    }

    .logo-img {
        height: 45px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-title .highlight {
        display: block;
    }

    .hero-logo {
        max-width: 220px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-shape {
        width: 250px;
        height: 250px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-item .stat-number {
        font-size: 1.75rem;
    }

    .stat-item .stat-label {
        font-size: 0.8rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Mobile: Dropdown, Modals, Empannel & Ops Pages ===== */
@media (max-width: 768px) {
    /* Dropdown - show inline in mobile menu */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        padding: 4px;
        margin-top: 4px;
        opacity: 1;
        visibility: visible;
        min-width: auto;
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    /* Modal - full screen on mobile */
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px 36px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(40px);
    }

    .modal-overlay {
        align-items: flex-end;
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }

    .modal-title {
        font-size: 20px;
    }

    .login-role-btn {
        padding: 14px 14px;
    }

    .login-role-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    /* Empannel & Ops full page */
    .empannel-page-inner {
        padding: 80px 16px 32px;
        max-width: 100%;
    }

    .empannel-back-btn {
        top: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .empannel-title {
        font-size: 22px;
    }

    .empannel-app-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .empannel-status-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .ops-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ops-stat-number {
        font-size: 22px;
    }

    .ops-stat-card {
        padding: 14px 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 24px 16px 32px;
    }

    .modal-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }

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

    .modal-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .ops-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .empannel-app-info {
        gap: 8px;
    }

    .empannel-app-name {
        font-size: 14px;
    }

    /* Fix #2: Reduce side padding on very small screens */
    .empannel-page-inner {
        padding: 80px 16px 32px;
    }
}

/* ===== Mobile Responsiveness Fixes ===== */

/* Fix #1: Modal bottom sheet on mobile */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px 36px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(40px);
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }
}

/* Fix #2 & #10: Empannel page scrollable + padding */
@media (max-width: 768px) {
    .empannel-page {
        overflow: hidden;
    }

    .empannel-page-inner {
        padding-top: 80px;
        overflow-y: auto;
        max-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix #3: Ops detail page padding for back button */
@media (max-width: 768px) {
    .ops-detail-inner {
        padding-top: 80px;
    }
}

/* Fix #4: Ops stats grid 2-column on mobile with smaller fonts */
@media (max-width: 768px) {
    .ops-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ops-stat-number {
        font-size: 22px;
    }

    .ops-stat-label {
        font-size: 11px;
    }

    .ops-stat-card {
        padding: 14px 10px;
    }
}

/* Fix #5: Ops app rows touch targets + arrow hint */
@media (max-width: 768px) {
    .ops-app-row {
        min-height: 48px;
        padding: 12px 20px;
    }

    .ops-app-row::after {
        content: '\2192';
        color: var(--text-light);
        font-size: 16px;
        margin-left: 8px;
        flex-shrink: 0;
    }
}

/* Fix #6: Dropdown always visible inside hamburger menu */
@media (max-width: 768px) {
    .nav-links.active .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        padding: 4px;
        margin-top: 4px;
        min-width: auto;
        width: 100%;
        display: block;
    }

    .nav-links.active .nav-dropdown-toggle .nav-dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Fix #7: Login role buttons - easy tap targets */
@media (max-width: 768px) {
    .login-role-btn {
        min-height: 56px;
        width: 100%;
        padding: 14px 14px;
        overflow: hidden;
    }

    .login-role-name,
    .login-role-desc {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Fix #8: Ops detail rows stack on very narrow screens */
@media (max-width: 360px) {
    .ops-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .ops-detail-value {
        text-align: left;
    }
}

/* Fix #9: Approve/Send Back buttons touch targets */
@media (max-width: 768px) {
    .ops-approve-btn,
    .ops-sendback-btn {
        min-height: 52px;
        font-size: 15px;
    }

    .ops-cancel-btn {
        min-height: 48px;
        font-size: 14px;
    }
}

/* Fix #11: Back button positioning on very small screens */
@media (max-width: 480px) {
    .empannel-back-btn {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 10;
        padding: 8px 14px;
        font-size: 13px;
        max-width: calc(100% - 32px);
    }
}

/* ===== Agent Dashboard — Redesigned ===== */
.agent-dashboard {
    display: flex;
    height: 100vh;
    background: #f1f5f9;
    font-family: 'Inter', sans-serif;
}

.agent-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    z-index: 100;
}

.agent-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.agent-sidebar-title {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.agent-sidebar-nav {
    flex: 1;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.agent-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

.agent-nav-item.active {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.agent-nav-icon {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.agent-logout-btn {
    margin: 12px 14px;
    padding: 12px;
    border: 1px solid #334155;
    background: rgba(255,255,255,0.03);
    color: #94a3b8;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.agent-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.agent-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}

.agent-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.agent-topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.agent-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.agent-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.agent-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #475569;
}

.agent-tab {
    display: none;
    padding: 32px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

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

.agent-tab-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.agent-tab-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 28px;
}

.agent-welcome-card {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
    color: #fff;
    padding: 32px;
    border-radius: 18px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.25);
}

.agent-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.agent-welcome-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.agent-welcome-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.agent-welcome-card p {
    opacity: 0.85;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.agent-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.agent-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.agent-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.agent-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.agent-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.agent-stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}

.agent-recent-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.agent-recent-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
}

.agent-customer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.agent-customer-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
}

.agent-customer-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.agent-customer-meta {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 3px;
}

.agent-customer-status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* Agent Form */
.agent-customer-form {
    max-width: 800px;
}

.agent-form-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.agent-form-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0d9488;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.agent-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.agent-form-grid select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-form-grid select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Agent Customers List */
.agent-customers-header {
    margin-bottom: 20px;
}

.agent-filter-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.agent-filter-select {
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    min-width: 150px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-search-input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-search-input:focus,
.agent-filter-select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Agent Profile */
.agent-profile-card {
    text-align: center;
    padding: 40px 30px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.agent-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 34px;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

/* ===== Mobile Responsive — Agent Dashboard ===== */
@media (max-width: 768px) {
    .agent-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: none;
    }

    .agent-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    }

    .agent-menu-toggle {
        display: block;
    }

    .agent-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .agent-tab {
        padding: 20px 16px;
    }

    .agent-topbar {
        padding: 14px 16px;
    }

    .agent-topbar-title {
        font-size: 16px;
    }

    .agent-welcome-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .agent-welcome-card h2 {
        font-size: 20px;
    }

    .agent-filter-row {
        flex-direction: column;
    }

    .agent-form-grid {
        grid-template-columns: 1fr;
    }

    .agent-stat-card {
        padding: 16px;
    }

    .agent-stat-number {
        font-size: 24px;
    }

    .agent-recent-section {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .agent-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .agent-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .agent-stat-number {
        font-size: 22px;
    }

    .agent-stat-label {
        font-size: 12px;
    }

    .agent-tab {
        padding: 16px 12px;
    }

    .agent-welcome-card {
        padding: 20px 16px;
    }

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

    .agent-topbar-user span {
        display: none;
    }
}

/* ===== Empanel Multi-Step Wizard ===== */
.empanel-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px 0 28px;
    padding: 0 10px;
}

.empanel-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
}

.empanel-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #334155;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.empanel-progress-step.active .empanel-step-circle {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-color: #14b8a6;
    color: #fff;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
}

.empanel-progress-step.done .empanel-step-circle {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.empanel-step-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.empanel-progress-step.active .empanel-step-label,
.empanel-progress-step.done .empanel-step-label {
    color: #14b8a6;
}

.empanel-progress-line {
    flex: 1;
    height: 2px;
    background: #334155;
    margin: 0 6px;
    margin-bottom: 22px;
    max-width: 80px;
}

.empanel-step-content {
    animation: empanelFadeIn 0.3s ease;
}

@keyframes empanelFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Same-as-permanent button */
.empanel-same-addr-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 14px;
    font-size: 12px;
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.empanel-same-addr-btn:hover {
    background: rgba(20, 184, 166, 0.2);
}

/* ===== Document Upload Slots ===== */
.empanel-doc-slot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1.5px dashed #334155;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.empanel-doc-slot:hover {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.04);
}

.empanel-doc-slot.uploaded {
    border-color: #059669;
    border-style: solid;
    background: rgba(5, 150, 105, 0.08);
}

.empanel-doc-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.empanel-doc-info {
    flex: 1;
    min-width: 0;
}

.empanel-doc-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 2px;
}

.empanel-doc-required {
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0.5px;
}

.empanel-doc-sublabel {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empanel-doc-action {
    font-size: 20px;
    color: #64748b;
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
    transition: all 0.2s;
}

.empanel-doc-slot.uploaded .empanel-doc-action {
    color: #059669;
    background: rgba(5, 150, 105, 0.15);
}

.empanel-doc-slot.uploaded .empanel-doc-icon {
    color: #059669;
}

/* Ops detail doc link rows */
.ops-doc-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ops-doc-link-row:last-child {
    border-bottom: none;
}

.ops-doc-link-name {
    font-size: 13px;
    color: var(--text-primary, #f1f5f9);
    font-weight: 500;
}

.ops-doc-link-btn {
    font-size: 12px;
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.25);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.ops-doc-link-btn:hover {
    background: rgba(20, 184, 166, 0.2);
}

/* ===== Legal Section ===== */
.legal-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.legal-item {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.legal-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.legal-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.legal-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-item ul {
    list-style: none;
    padding: 0;
}

.legal-item ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
