@import url('modal.css');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-dim: #475569;
    --border: #e2e8f0;
    --shadow: 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);
    --transition: all 0.3s ease;
    --container: 1200px;
}

/* Custom Scrollbar - Global */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Firefox compatibility */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: #1e3a8a;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #1e3a8a;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: radial-gradient(circle at top right, #e0e7ff, transparent),
        radial-gradient(circle at bottom left, #f1f5f9, transparent);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: fit-content;
    margin: 0 auto;
}

/* Services */
.services {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.badge {
    background: #eff6ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card h2 {
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-header p {
    color: #475569;
    font-size: 14px;
}

.close {
    position: absolute;
    left: 20px;
    /* RTL switch: Close button on left */
    top: 20px;
    color: #64748b;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close:hover {
    color: #ef4444;
}

/* Modern Form Styles */
.modern-form .form-group {
    margin-bottom: 12px;
    /* Compact spacing */
    text-align: right;
    /* RTL alignment */
}

.service-search-container i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
    font-size: 16px;
    opacity: 0.6;
    transition: all 0.3s;
}

.search-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    font-size: 14px;
    background: linear-gradient(to bottom, #ffffff, #fdfdfd);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Tajawal', sans-serif;
    color: #1e293b;
}

.search-input:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.01);
    transform: translateY(-1px);
}

.search-input:focus+i {
    opacity: 1;
    color: var(--primary);
}

.search-input::placeholder {
    color: #64748b;
    font-weight: 500;
}

.modern-form label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
}

.modern-form .form-control {
    width: 100%;
    padding: 10px 14px;
    /* Slightly smaller padding */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: 'Tajawal', sans-serif;
}

.modern-form .form-control:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-form .btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.toggle-link {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #475569;
}

.toggle-link a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.toggle-link a:hover {
    text-decoration: underline;
}

/* Modern Floating Sidebar */
.dashboard-body {
    background: #f1f5f9;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #ffffff;
    color: var(--text-main);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: calc(100vh - 40px);
    right: 20px;
    top: 20px;
    z-index: 1000;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.sidebar-header {
    padding: 0 12px 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f8fafc;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar .logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.sidebar .logo span {
    color: #1e3a8a;
}

.sidebar-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
}

.sidebar-socials a {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding: 8px 4px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Reduced gap to fit all items */
}

.sidebar-nav a {
    color: #475569;
    text-decoration: none;
    padding: 12px 20px;
    /* Reduced padding to fit all items */
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 15px;
}

.sidebar-nav li.active a {
    background: #eff6ff;
    color: var(--primary);
}

.sidebar-nav a:hover:not(.active) {
    background: #f8fafc;
    color: #1e293b;
}

.sidebar-footer {
    padding-top: 16px;
    margin-top: auto;
    border-top: 2px solid #f8fafc;
}

.btn-logout {
    background: #fff1f2;
    color: #e11d48;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #ffe4e6;
    transform: translateY(-2px);
}

.main-content {
    flex: 1;
    margin-right: 320px;
    padding: 40px;
}

/* Table and Stats */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-grid .stat-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #9333ea;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.stat-icon.green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #ea580c;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.2);
}

.stat-details {
    position: relative;
    z-index: 1;
}

.stat-details h3 {
    transition: color 0.3s ease;
}

.stat-card:hover .stat-details h3 {
    color: var(--primary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.warning {
    background: #fef9c3;
    color: #a16207;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: right;
    padding: 12px 15px;
    background: #f8fafc;
    color: var(--text-dim);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.content-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
}

.header-info h1 {
    font-size: 22px;
    color: #1e3a8a;
    font-weight: 700;
}

.header-info h1 span {
    color: var(--primary);
}

.header-info p {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 4px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.admin-profile:hover {
    background: #f8fafc;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eff6ff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.profile-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.profile-text span {
    font-weight: 800;
    font-size: 14px;
    color: #1e3a8a;
    line-height: 1.2;
}

.profile-text small {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 2px;
    width: fit-content;
}

.analytics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.analytics-grid .col-main {
    flex: 2 1 600px;
}

.analytics-grid .col-side {
    flex: 1 1 300px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 18px;
    color: #1e3a8a;
    font-weight: 700;
}

.top-list {
    list-style: none;
    padding: 0;
}

.top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.top-item:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.top-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-item-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.top-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.top-item-count {
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    font-family: inherit;
}

footer {
    background: #1e3a8a;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 80px;
    border-top: 3px solid var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 992px) {
    .sidebar {
        width: 280px;
        right: -300px;
        /* Hide off-screen by default on mobile/tablet */
        height: 100vh;
        top: 0;
        border-radius: 0;
        transition: right 0.3s ease;
    }

    .sidebar.active {
        right: 0;
    }

    .main-content {
        margin-right: 0;
        padding: 20px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Show hamburger icon or mobile header */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 20px;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 25px;
    }

    .header-info h1 {
        font-size: 24px;
    }

    .header-info p {
        font-size: 13px;
    }

    .admin-profile {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* Global Premium Header Polish */
.dashboard-header {
    background: #fff;
    padding: 30px 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.header-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.header-info h1 span {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-info p {
    color: #475569;
    margin: 0;
    font-size: 14.5px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-profile:hover {
    background: #fff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.admin-profile img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-text {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.profile-text span {
    font-weight: 800;
    color: #1e293b;
    font-size: 14.5px;
    line-height: 1.2;
}

.profile-text small {
    color: #2563eb;
    font-weight: 700;
    font-size: 11px;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Support Chat Refinements */
.chat-input-row .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chat-input-row .btn-primary i {
    margin: 0;
    transform: none;
    /* Ensure no offset */
}

/* Final CSS tweaks for support chat empty state */
.empty-state img {
    max-width: 100%;
}

/* Default hidden state for Bottom Navigation */
.bottom-nav {
    display: none;
}

/* Service Discovery Upgrade - Final Phase 10 Fix */
.platform-selector {
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.platform-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.platform-pill {
    flex: 1 1 calc(25% - 12px);
    min-width: 80px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    font-weight: 700;
    color: #475569;
    font-size: 11px;
    text-align: center;
    min-height: 75px;
}

.platform-pill i {
    font-size: 20px;
    margin: 0;
    color: var(--primary);
}

.platform-pill:hover {
    border-color: var(--primary);
    background: #f1f5f9;
    transform: translateY(-2px);
}

.platform-pill.active {
    background: #eff6ff;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.service-discovery-tools {
    position: relative;
    margin-bottom: 25px;
}

.service-search-container {
    position: relative;
    z-index: 100;
}

.search-results-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.wizard-step {
    transition: opacity 0.3s ease;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-back {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.selected-service-badge {
    font-size: 11px;
    color: #16a34a;
    background: #dcfce7;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.cost-summary-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.cost-label {
    font-size: 12px;
    color: #475569;
    margin-bottom: 5px;
}

.cost-value {
    font-size: 24px;
    font-weight: 800;
    color: #16a34a;
}

.service-summary-pill {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .order-card .card-body {
        padding: 15px;
    }
}

.search-result-item .res-cat {
    font-size: 9px;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
}

.search-result-item .res-name {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.search-result-item .res-price {
    font-size: 11px;
    color: #16a34a;
    font-weight: 800;
}

@keyframes highlightFade {
    0% {
        background-color: #fef08a;
    }

    100% {
        background-color: transparent;
    }
}

.highlight-row {
    animation: highlightFade 3s ease-out;
}

.premium-order-form label {
    font-weight: 700;
    color: #1e3a8a;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

/* Admin Panels Toolbar */
.actions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.bulk-actions {
    display: flex;
    gap: 10px;
}

#bulkAction {
    width: 180px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

/* Add Funds Premium Styles */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
    gap: 0;
    align-items: start;
}

.methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.method-card {
    flex: 1 1 calc(20% - 15px);
    min-width: 140px;
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.method-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.05);
}

.method-card.active {
    background: #eff6ff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.method-card i {
    font-size: 24px;
    color: #64748b;
    transition: color 0.3s;
}

.method-card.active i {
    color: var(--primary);
}

.method-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.payment-focus-box {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: none;
    /* Shown via JS */
}

.focus-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 20px 30px;
    color: #fff;
}

.focus-header h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.focus-body {
    padding: 30px;
}

.instruction-highlight {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.instruction-highlight h4 {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.instruction-highlight p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.copy-box {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.address-val {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    word-break: break-all;
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 10px;
    width: 100%;
}

.btn-copy-lg {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-lg:hover {
    background: var(--primary);
    color: #fff;
}

.btn-done {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    transition: all 0.3s;
}

.btn-done:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

/* Note: All responsive styles moved to responsive.css for single-source-of-truth */