@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0066d4;
    --primary-bright: #00aaff;
    --primary-dark: #004fa3;
    --accent: #00aaff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --bg-dark: #000000;
    --bg-darker: #0a0a0a;
    --surface: #111111;
    --surface-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: rgba(0, 102, 212, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 102, 212, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    background:
        radial-gradient(ellipse at top, rgba(0, 102, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 102, 212, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #000308 50%, #0a0a0a 75%, #000000 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    transition: 0.5s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    color: var(--accent);
}

.nav-logo i {
    margin-right: 1rem;
    font-size: 2.8rem;
    color: var(--accent);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(45deg, rgba(0, 102, 212, 0.1), rgba(0, 102, 212, 0.2));
    border-radius: 50px;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(0, 102, 212, 0.8);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

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

.btn-secondary:hover {
    background: rgba(0, 102, 212, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}

.btn-large {
    padding: 1.8rem 3.5rem;
    font-size: 1.6rem;
}

.lookup-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12rem 5% 4rem;
}

.lookup-form-section {
    margin-bottom: 4rem;
}

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

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(0, 102, 212, 0.5);
    margin-bottom: 1rem;
}

.section-header h2 i {
    margin-right: 1rem;
    color: var(--primary);
}

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

.lookup-form-card {
    background: linear-gradient(145deg, var(--surface-light), var(--surface));
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.modern-form {
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.form-group label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.form-group label i {
    margin-right: 0.8rem;
    color: var(--accent);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1.8rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.6rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 102, 212, 0.1);
    box-shadow: 0 0 20px rgba(0, 102, 212, 0.2);
}

.form-help {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 102, 212, 0.1);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 102, 212, 0.2);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--accent);
}

.feature-item span {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.lookup-section {
    margin-bottom: 4rem;
}

.hidden {
    display: none !important;
}

.loading-card {
    background: linear-gradient(145deg, var(--surface-light), var(--surface));
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
}

.loading-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.loading-circle {
    width: 100%;
    height: 100%;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-card h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.loading-status {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.step {
    font-size: 1.3rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step i {
    color: var(--primary);
}

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

.results-badge {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 50px;
    font-size: 1.4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.results-badge i {
    margin-right: 0.8rem;
}

.results-header h2 {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.results-header h2 i {
    margin-right: 1rem;
}

.analyzed-url {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.analyzed-url strong {
    color: var(--text-primary);
}

.analyzed-url span {
    color: var(--accent);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.result-card {
    background: linear-gradient(145deg, var(--surface-light), var(--surface));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2rem;
    color: var(--text-primary);
}

.card-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.info-label i {
    margin-right: 0.8rem;
    color: var(--primary);
}

.info-value {
    font-size: 1.3rem;
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

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

.download-section p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.download-info {
    margin-top: 1.5rem;
}

.download-info small {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.download-info small i {
    margin-right: 0.5rem;
    color: var(--warning);
}

.analysis-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.modal-header h3 i {
    margin-right: 1rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

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

.unauthorized-icon {
    font-size: 5rem;
    color: var(--warning);
    margin-bottom: 2rem;
}

.unauthorized-content h4 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.unauthorized-content p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.user-ip-display {
    background: rgba(0, 102, 212, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.user-ip-display strong {
    color: var(--text-primary);
}

.user-ip-display span {
    color: var(--accent);
}

.unauthorized-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-logo i {
    color: var(--accent);
}

.footer p {
    font-size: 1.4rem;
    color: var(--text-muted);
}

#notification-container {
    position: fixed;
    top: 10rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 1200px) {
    html { font-size: 58%; }
}

@media (max-width: 900px) {
    .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 52%; }
    .nav-container { flex-direction: column; gap: 1.5rem; }
    .nav-user { flex-direction: column; gap: 1rem; }
    .welcome-text { display: none; }
    .lookup-container { padding: 10rem 3% 3rem; }
    .lookup-form-card { padding: 2.5rem; }
    .features-preview { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    html { font-size: 48%; }
    .features-preview { grid-template-columns: 1fr; }
    .analysis-actions { flex-direction: column; }
    .unauthorized-actions { flex-direction: column; }
}
