/* Jurisdictions Analysis Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Account for unified header */
body {
    padding-top: 60px;
}

/* Ensure footer sticks to bottom */
footer {
    margin-top: auto;
    background: #0a0a0a !important;
    position: relative;
    z-index: 10;
}

/* Kill any space after footer */
body::after {
    display: none !important;
}

html {
    background: #0a0a0a !important;
}

/* Force black background everywhere */
* {
    background-clip: padding-box;
}

/* Remove any phantom spacing */
body > *:last-child {
    margin-bottom: 0 !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    body {
        min-height: 100vh !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    footer {
        position: relative !important;
        margin-bottom: 0 !important;
        padding-bottom: 30px !important;
    }
    
    /* Kill any extra space */
    body > script,
    body > style,
    body > div:empty {
        display: none !important;
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    background: #0a0a0a;
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.last-update {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Navigation Tabs */
.nav-section {
    background: #111111;
    padding: 20px 0;
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 70px;
    z-index: 900;
}

.nav-tabs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    background: #374151;
    color: white;
}

.nav-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Hero Section - Matching Yield Strategies Style */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    background: #FFFFFF;
    width: 100%;
    overflow: visible;
}

.hero .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: visible;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #000000;
    letter-spacing: -0.02em;
    padding-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto 60px;
    font-weight: 400;
    line-height: 1.6;
    padding: 10px 20px;
    overflow: visible;
    display: block;
    min-height: auto;
}

/* Fix for cut-off letters */
.hero p {
    overflow: visible !important;
    clip: unset !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

/* Stats Cards - Matching Yield Strategies Style */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.stat-card {
    background: #111111;
    border: 2px solid #2a3441;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px -2px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.stat-label {
    color: #9ca3af;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Filters Section */
.filters-section {
    padding: 30px 40px;
    background: #111111;
    border-radius: 16px;
    margin-bottom: 30px;
    margin-left: 20px;
    margin-right: 20px;
}

.filter-group {
    margin-bottom: 20px;
    padding-left: 20px;
}

.filter-label {
    font-size: 0.875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    display: block;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid #374151;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.filter-btn:hover {
    background: #374151;
    color: white;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Main Table */
.table-wrapper {
    background: #111111;
    border-radius: 16px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1400px;
}

th, td {
    padding: 12px 8px;
    text-align: left;
    border: 1px solid #1f2937;
}

th {
    background: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

td {
    color: #e5e7eb;
    font-size: 0.875rem;
}

.jurisdiction-name {
    font-weight: 600;
    color: #ffffff;
}

.tier-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.tier-1 {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.tier-2 {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.tier-3 {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

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

.status-green {
    background: #22c55e;
}

.status-yellow {
    background: #fbbf24;
}

.status-red {
    background: #ef4444;
}

/* Category Sections */
.category-section {
    margin-bottom: 60px;
}

.category-header {
    background: #111111;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.icon-tier1 {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.icon-tier2 {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.icon-tier3 {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.category-info h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.category-info p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Services Matrix */
.matrix-section {
    padding: 40px 0;
    background: #111111;
    border-radius: 16px;
    margin-bottom: 40px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}

.matrix-table th {
    background: #1f2937;
    padding: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 120px;
}

.matrix-table th:first-child {
    writing-mode: horizontal-tb;
    height: auto;
}

.matrix-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #1f2937;
}

.service-status {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.service-allowed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.service-restricted {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.service-prohibited {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Decision Cards */
.decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.decision-card {
    background: #111111;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 25px;
}

.decision-card h3 {
    color: #3b82f6;
    margin-bottom: 15px;
    font-size: 1.125rem;
}

.decision-card ul {
    list-style: none;
    padding: 0;
}

.decision-card li {
    padding: 8px 0;
    color: #e5e7eb;
    font-size: 0.875rem;
    padding-left: 20px;
    position: relative;
}

.decision-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #111111;
    padding: 30px 0;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid #1f2937;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 5px 15px;
        min-height: auto;
    }
    
    .stats-container {
        gap: 20px;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
        border-width: 2px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .filters-section {
        padding: 20px 25px;
        margin-bottom: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .filter-buttons {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .table-wrapper {
        padding: 10px;
        border-radius: 12px;
        margin-bottom: 30px;
    }
    
    table {
        min-width: 800px;
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .nav-tabs {
        padding-bottom: 10px;
        gap: 10px;
    }
    
    .nav-tab {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .decision-grid {
        gap: 15px;
    }
    
    .decision-card {
        padding: 20px;
    }
    
    .decision-card h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .decision-card li {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .uae-section {
        padding: 30px 0;
    }
    
    .uae-section h2 {
        font-size: 1.5rem;
    }
    
    .uae-section table {
        min-width: 600px;
    }
    
    .tier-badge {
        font-size: 0.6rem;
        padding: 1px 6px;
    }
    
    .footer {
        padding: 20px 0;
        margin-top: 40px;
    }
}

/* UAE Section Styles */
.uae-section {
    background: #111111;
    padding: 40px 0;
    margin-top: 60px;
}

/* View Content */
.view-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.view-content:first-of-type {
    display: block;
}

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

/* Premium hover effects */
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.nav-tab {
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-tab:hover::before {
    left: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Table row hover */
tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Premium scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Small mobile devices - Matching Yield Strategies */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
}