/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff3679;
    --secondary-color: #ff5c8d;
    --success-color: #00b894;
    --danger-color: #ff7675;
    --warning-color: #fdcb6e;
    --light-bg: #fbf5f2;
    --lighter-bg: #fff9f6;
    --dark-bg: #2d2d2d;
    --darker-bg: #1a1a1a;
    --card-bg: #ffffff;
    --text-primary: #2d2d2d;
    --text-secondary: #6b6b6b;
    --text-light: #999999;
    --border-color: #f0e6e0;
    --gradient-primary: linear-gradient(135deg, #ff3679 0%, #ff5c8d 100%);
    --gradient-secondary: linear-gradient(135deg, #ff5c8d 0%, #ffa3c1 100%);
    --gradient-accent: linear-gradient(135deg, #ff3679 0%, #ff6b9d 100%);
    --shadow-sm: 0 2px 8px rgba(255, 54, 121, 0.08);
    --shadow-md: 0 4px 16px rgba(255, 54, 121, 0.12);
    --shadow-lg: 0 8px 32px rgba(255, 54, 121, 0.16);
    --shadow-hover: 0 12px 40px rgba(255, 54, 121, 0.2);
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: opacity 0.3s ease;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-brand-text .brand-line-1 {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.nav-brand-text .brand-line-2 {
    display: block;
    background: linear-gradient(135deg, #ff5c8d 0%, #ff8fb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand i {
    color: var(--primary-color);
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--light-bg);
}

.mobile-menu-toggle i {
    display: block;
}

.mobile-menu-toggle .fa-times {
    display: none;
}

.mobile-menu-toggle.active .fa-bars {
    display: none;
}

.mobile-menu-toggle.active .fa-times {
    display: block;
}

.btn-lang {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    font-weight: 500;
    font-size: 14px;
}

.btn-lang:hover {
    background: var(--lighter-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    overflow: hidden;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--lighter-bg);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--lighter-bg);
    color: var(--primary-color);
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(255, 54, 121, 0.1), rgba(255, 143, 179, 0.1));
    color: var(--primary-color);
    font-weight: 600;
}

.lang-flag {
    font-size: 20px;
    line-height: 1;
}

.lang-name {
    font-size: 14px;
    font-weight: 500;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .detail-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .tools-grid,
[dir="rtl"] .features-grid,
[dir="rtl"] .calculator-section {
    direction: rtl;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(251,245,242,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-text {
    text-align: center;
    color: white;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.ip-display-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.ip-main-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.ip-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.ip-icon-compact {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.ip-info-compact {
    flex: 1;
}

.ip-label-compact {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 6px;
}

.ip-address-compact {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.ip-location-compact {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ip-location-compact i {
    color: var(--primary-color);
    font-size: 12px;
}

.ip-right {
    flex-shrink: 0;
}

.anonymous-score-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--lighter-bg);
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.score-circle-compact {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.progress-ring-compact {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 54, 121, 0.1);
    stroke-width: 5;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 188;
    stroke-dashoffset: 188;
    transition: stroke-dashoffset 1s ease;
}

.score-text-compact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.score-label-compact {
    font-size: 12px;
}

.score-info-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.score-title-compact {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.score-desc-compact {
    font-size: 11px;
    color: var(--text-secondary);
}

.status-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 184, 148, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--success-color);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Compact Stats Grid */
.quick-stats-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.stat-item-compact {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-icon-compact {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.stat-content-compact {
    flex: 1;
    min-width: 0;
}

.stat-label-compact {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.stat-value-compact {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quick Stats Grid */
.stats-wrapper {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-item {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Details Section */
.details-section {
    padding: 40px 0;
    background: var(--lighter-bg);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 20px;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.detail-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
}

.detail-card h2 i {
    color: var(--primary-color);
    font-size: 20px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.detail-row:hover {
    background: var(--lighter-bg);
    transform: translateX(4px);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    min-width: 120px;
}

.detail-label i {
    color: var(--primary-color);
    width: 16px;
    font-size: 14px;
}

.detail-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
    text-align: right;
    word-break: break-word;
    padding-left: 12px;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-yes {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success-color);
}

.badge-no {
    background: rgba(255, 118, 117, 0.15);
    color: var(--danger-color);
}

.badge-low {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success-color);
}

/* Map Container */
.map-container {
    margin-top: 20px;
    height: 220px;
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.map-container .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 12px;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

/* Leaflet Map Customization */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px;
    font-family: inherit;
}

/* ASN Section */
.asn-section {
    padding: 40px 0;
    background: var(--card-bg);
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 22px;
}

.asn-table {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: var(--gradient-primary);
    color: white;
}

table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
}

table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

table tbody tr:hover {
    background: var(--light-bg);
}

table tbody tr:last-child {
    border-bottom: none;
}

/* Fraud Section */
.fraud-section {
    padding: 40px 0;
    background: var(--lighter-bg);
}

.fraud-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fraud-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.fraud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.fraud-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.fraud-score {
    font-size: 42px;
    font-weight: 800;
    color: var(--success-color);
    line-height: 1;
}

.fraud-bar {
    height: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.fraud-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 12px;
    width: 0%;
    transition: width 1s ease, background 0.5s ease;
}

.fraud-desc {
    color: var(--text-secondary);
    font-size: 13px;
}

.fraud-checks {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.fraud-checks h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.check-item:hover {
    background: var(--lighter-bg);
    transform: translateX(4px);
}

.check-item i {
    color: var(--success-color);
    font-size: 18px;
}

/* Charts Section */
.charts-section {
    padding: 30px 0;
    background: var(--card-bg);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 12px;
}

.chart-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-card h3 i {
    color: var(--primary-color);
    font-size: 16px;
}

.chart-card canvas {
    max-height: 220px;
    width: 100% !important;
    height: auto !important;
}

/* Tools Section */
.tools-section {
    padding: 60px 0;
    background: var(--lighter-bg);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: white;
    box-shadow: var(--shadow-md);
}

.tool-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.tool-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-input {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.tool-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.export-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.speed-result {
    margin-top: 16px;
    padding: 16px;
    background: var(--light-bg);
    border-radius: 12px;
    font-weight: 600;
    display: none;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--card-bg);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 24px 28px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 16px;
}

.faq-question:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

.faq-item.active .faq-answer {
    padding: 0 28px 24px;
    max-height: 400px;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.footer-brand i {
    color: var(--primary-color);
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    backdrop-filter: blur(5px);
}

.loading-overlay.hidden {
    display: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 54, 121, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    font-size: 16px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quick-stats-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .fraud-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        max-height: 500px;
        padding: 16px 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--light-bg);
        color: var(--primary-color);
    }
    
    .nav-brand {
        font-size: 22px;
    }
    
    .nav-brand-text {
        font-size: 0.85em;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .hero-section {
        padding: 40px 0 50px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .ip-display-card {
        padding: 24px 20px;
    }
    
    .ip-main-compact {
        flex-direction: column;
        gap: 20px;
    }
    
    .ip-icon-compact {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .ip-address-compact {
        font-size: 26px;
    }
    
    .ip-location-compact {
        font-size: 13px;
    }
    
    .anonymous-score-compact {
        width: 100%;
        justify-content: center;
    }
    
    .quick-stats-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item-compact {
        padding: 14px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .section-title i {
        font-size: 20px;
    }
    
    /* Compact Tools Section */
    .tools-section {
        padding: 40px 0;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .detail-card,
    .tool-card,
    .fraud-card,
    .fraud-checks,
    .chart-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .tool-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .tool-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .tool-card p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .faq-question,
    .faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-grid {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 30px 0 40px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .ip-display-card {
        padding: 20px 16px;
    }
    
    .ip-icon-compact {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .ip-address-compact {
        font-size: 22px;
    }
    
    .ip-location-compact {
        font-size: 12px;
    }
    
    .quick-stats-compact {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item-compact {
        padding: 12px;
    }
    
    .stat-icon-compact {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .section-title i {
        font-size: 18px;
    }
    
    .detail-card,
    /* Ultra Compact Tools Section */
    .tools-section {
        padding: 30px 0;
    }
    
    .tools-grid {
        gap: 12px;
    }
    
    .tool-card,
    .fraud-card,
    .fraud-checks,
    .chart-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .tool-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-lang {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .tool-input,
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        min-height: 44px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-card,
.tool-card,
.faq-item,
.stat-item {
    animation: fadeIn 0.6s ease backwards;
}

.detail-card:nth-child(1) { animation-delay: 0.1s; }
.detail-card:nth-child(2) { animation-delay: 0.2s; }
.detail-card:nth-child(3) { animation-delay: 0.3s; }
.detail-card:nth-child(4) { animation-delay: 0.4s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
