* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global scrollbar styling - invisible on desktop */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* For Firefox */
html {
    scrollbar-width: none;
    scroll-behavior: smooth;
}

/* For IE and Edge */
body {
    -ms-overflow-style: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e5e5e5;
    background: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.main {
    flex: 1;
}

.header {
    background: #111111;
    border-bottom: 1px solid #333333;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo i {
    font-size: 32px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
    margin-left: 44px;
}

.card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #333333;
}

.input-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #e5e5e5;
}

.description {
    color: #a0a0a0;
    margin-bottom: 24px;
    font-size: 16px;
}

.imei-form .input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

#imei-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #333333;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: #2a2a2a;
    color: #e5e5e5;
}

#imei-input:focus {
    outline: none;
    border-color: #666666;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
}

#imei-input:invalid {
    border-color: #e53e3e;
}

#lookup-btn {
    padding: 16px 24px;
    background: #333333;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#lookup-btn:hover {
    background: #444444;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#lookup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.input-help {
    color: #888888;
    font-size: 14px;
}

.input-help i {
    margin-right: 4px;
    color: #666666;
}

.loading-section {
    text-align: center;
}

.loading-spinner {
    font-size: 32px;
    color: #666666;
    margin-bottom: 16px;
}

.results-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #e5e5e5;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 32px;
}

.result-card {
    margin-bottom: 0;
}

.result-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    margin-bottom: 0;
}

.database-selector {
    margin-bottom: 16px;
}

.country-selector {
    margin-bottom: 16px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
}

.dropdown-selected:hover {
    border-color: #666666;
    background: #333333;
}

.dropdown-selected.open {
    border-color: #666666;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-main {
    color: #e5e5e5;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.option-sub {
    color: #999999;
    font-size: 12px;
    line-height: 1.2;
}

.dropdown-arrow {
    color: #999999;
    font-size: 12px;
    transition: transform 0.3s ease;
}

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

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #666666;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-options.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #333333;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #333333;
}

.dropdown-option.active {
    background: #404040;
}

.dropdown-option.active .option-main {
    color: #ffffff;
}

.database-dropdown {
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #e5e5e5;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.database-dropdown:hover {
    border-color: #666666;
}

.database-dropdown:focus {
    outline: none;
    border-color: #666666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
}

.database-card {
    border-left: 4px solid #4CAF50;
}

.osmocom-card {
    border-left: 4px solid #2196F3;
}

.randommer-card {
    border-left: 4px solid #9C27B0;
}

.providers-card {
    grid-column: 2;
    grid-row: 1 / 3;
    border-left: 4px solid #FF9800;
}

.info-section {
    margin-bottom: 16px;
}

.info-details {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #a0a0a0;
}

.info-value {
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
}

.provider-results {
    display: grid;
    gap: 16px;
}

.provider-result {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid transparent;
}

.provider-result.success {
    border-left-color: #48bb78;
}

.provider-result.warning {
    border-left-color: #ed8936;
}

.provider-result.error {
    border-left-color: #e53e3e;
}

.provider-result.neutral {
    border-left-color: #666666;
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.provider-name {
    font-weight: 500;
    color: #e5e5e5;
}

.provider-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-ok {
    background: #c6f6d5;
    color: #22543d;
}

.status-blocked {
    background: #fed7d7;
    color: #742a2a;
}

.status-error {
    background: #fed7d7;
    color: #742a2a;
}

.status-unknown {
    background: #333333;
    color: #a0a0a0;
}

.provider-details {
    color: #a0a0a0;
    font-size: 14px;
}

.provider-detail-main {
    font-weight: 600;
    color: #e5e5e5;
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.provider-detail-sub {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.provider-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.3;
}

.provider-detail-item i {
    color: #888888;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}

.provider-detail-tech {
    color: #888888;
    font-size: 12px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #333333;
}

.action-buttons {
    text-align: center;
    margin-top: 24px;
}

.btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: #666666;
    border: 2px solid #666666;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #666666;
    color: white;
}

.privacy-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-summary {
    color: #a0a0a0;
    margin-bottom: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #888888;
}

.btn-link.expanded i {
    transform: rotate(180deg);
}

.privacy-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333333;
}

.privacy-item {
    margin-bottom: 16px;
}

.privacy-item h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e5e5e5;
}

.privacy-item p {
    color: #a0a0a0;
    margin-bottom: 8px;
    font-size: 14px;
}

.privacy-item ul {
    list-style: none;
    padding-left: 16px;
}

.privacy-item li {
    color: #666666;
    font-size: 14px;
    margin-bottom: 4px;
}

.privacy-item li:before {
    content: "•";
    margin-right: 8px;
}

.footer {
    background: #111111;
    border-top: 1px solid #333333;
    padding: 12px 0;
    margin-top: auto;
    text-align: center;
    flex-shrink: 0;
}

.footer p {
    color: #888888;
    font-size: 12px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid #333333;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

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

.consent-modal .modal-content {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.consent-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.consent-content h4 {
    margin-bottom: 16px;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.consent-text {
    color: #a0a0a0;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
}

/* Custom scrollbar for consent text */
.consent-text::-webkit-scrollbar {
    width: 8px;
}

.consent-text::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.consent-text::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 4px;
}

.consent-text::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.consent-summary {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid #4CAF50;
}

.consent-summary h5 {
    color: #e5e5e5;
    margin-bottom: 8px;
    font-size: 14px;
}

.consent-summary ul {
    margin: 0;
    padding-left: 20px;
    color: #a0a0a0;
}

.consent-summary li {
    margin-bottom: 4px;
    font-size: 14px;
}

.consent-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: flex-end;
    flex-shrink: 0;
    padding-top: 8px;
    flex-wrap: nowrap;
}

.consent-buttons .btn-secondary {
    background: transparent;
    border: 2px solid #666666;
    color: #666666;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 44px;
    white-space: nowrap;
}

.consent-buttons .btn-secondary:hover {
    background: #666666;
    color: white;
}

.consent-buttons .btn-primary {
    background: #4CAF50;
    border: 2px solid #4CAF50;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 44px;
    white-space: nowrap;
}

.consent-buttons .btn-primary:hover {
    background: #45a049;
    border-color: #45a049;
}

.page-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #e5e5e5;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #e5e5e5;
    margin-bottom: 8px;
}

.last-updated {
    color: #666666;
    font-size: 14px;
    font-style: italic;
}

.content-section {
    margin-bottom: 40px;
}

.policy-content {
    max-width: none;
    max-height: none;
    display: block;
}

.policy-content h2 {
    color: #e5e5e5;
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

.policy-content h2:first-of-type {
    margin-top: 0;
}

.policy-content h3 {
    color: #e5e5e5;
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

.policy-content p {
    color: #a0a0a0;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 16px;
}

.policy-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.policy-content li {
    color: #a0a0a0;
    margin-bottom: 8px;
    line-height: 1.6;
}

.policy-content li strong {
    color: #e5e5e5;
    font-weight: 600;
}

.policy-content a {
    color: #4CAF50;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: #45a049;
}

.policy-summary-box {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 32px 0;
}

.policy-summary-box h3 {
    color: #4CAF50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-summary-box p {
    color: #b8b8b8;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
}

.policy-content h4 {
    flex-shrink: 0;
}

.policy-text {
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 14px;
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for policy text */
.policy-text::-webkit-scrollbar {
    width: 8px;
}

.policy-text::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.policy-text::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 4px;
}

.policy-text::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.policy-text h5 {
    color: #e5e5e5;
    margin: 20px 0 8px 0;
    font-size: 16px;
}

.policy-text ul {
    margin: 8px 0;
    padding-left: 20px;
}

.policy-text li {
    margin-bottom: 4px;
}

.policy-text p {
    margin-bottom: 12px;
}

.modal-content h4 {
    margin-bottom: 16px;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content h4.error-title {
    color: #e53e3e;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #888888;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

.btn-primary {
    padding: 12px 24px;
    background: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #444444;
}

.hidden {
    display: none !important;
}

.device-image {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333333;
}

.device-image img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.device-image img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .card {
        padding: 24px;
    }
    
    .imei-form .input-group {
        flex-direction: column;
    }
    
    #lookup-btn {
        justify-content: center;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .tagline {
        margin-left: 40px;
        font-size: 14px;
    }

    /* Show scrollbars on mobile */
    .consent-text::-webkit-scrollbar,
    .policy-text::-webkit-scrollbar {
        width: 12px;
    }
    
    .consent-text::-webkit-scrollbar-track,
    .policy-text::-webkit-scrollbar-track {
        background: #2a2a2a;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 16px 0;
        margin-bottom: 24px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .logo {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .tagline {
        margin-left: 0;
    }
    
    .input-section h2 {
        font-size: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
    }
    
    .providers-card {
        grid-column: 1;
        grid-row: auto;
    }
    
    .device-image img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .info-item .info-label {
        font-weight: 600;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .database-dropdown {
        min-width: 120px;
        font-size: 13px;
    }
    
    .modal-content {
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .consent-content {
        padding: 20px;
    }
    
    .consent-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .consent-buttons button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .policy-content {
        max-width: none;
        max-height: none;
    }
    
    .policy-content h2 {
        font-size: 20px;
        margin: 24px 0 12px 0;
    }
    
    .policy-content h3 {
        font-size: 18px;
        margin: 20px 0 10px 0;
    }
    
    .policy-content p,
    .policy-content li {
        font-size: 14px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .policy-summary-box {
        padding: 16px;
        margin: 24px 0;
    }
    
    .policy-summary-box h3 {
        font-size: 16px;
    }
}
