@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;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

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);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 102, 212, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0, 102, 212, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 60% 40%, rgba(0, 102, 212, 0.06) 0%, transparent 25%);
  z-index: -2;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: moveUp linear infinite;
}

@keyframes moveUp {
  0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(var(--drift, 0px)); opacity: 0; }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: var(--shadow-glow);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav a {
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.header-nav a:hover {
  background: rgba(0, 102, 212, 0.2);
  color: var(--text-primary);
}

a {
  color: var(--accent);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--text-primary);
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 12rem 2rem 4rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(0, 102, 212, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.tool-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.tool-header i {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
}

.tool-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.tool-header p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.input-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

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

.input-group label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

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

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

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

.input-group select {
    cursor: pointer;
}

.input-group select option {
    background: var(--surface);
    color: var(--text-primary);
}

.lookup-btn {
    width: 100%;
    padding: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.lookup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 212, 0.4);
}

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

.lookup-btn.loading i {
    animation: spin 1s linear infinite;
}

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

.results-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.results-section.show {
    display: block;
}

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

.result-card {
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
}

.result-header {
    background: linear-gradient(135deg, rgba(0, 102, 212, 0.2), rgba(0, 102, 212, 0.1));
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.result-header i {
    font-size: 2.5rem;
    color: var(--primary);
}

.result-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.result-body {
    padding: 2rem;
}

.result-body p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

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

.info-row:hover {
    background: rgba(0, 102, 212, 0.05);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    color: var(--text-muted);
    min-width: 180px;
}

.info-label i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.info-value {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
    flex: 1;
    margin-left: 2rem;
}

.info-value.success {
    color: var(--success);
}

.info-value.warning {
    color: var(--warning);
}

.info-value.error {
    color: var(--error);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--error);
    font-size: 1.5rem;
    display: none;
    margin-bottom: 2rem;
}

.error-message.show {
    display: block;
}

.copy-btn {
    background: rgba(0, 102, 212, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.copy-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.raw-data {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

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

.site-footer .brand {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 1.3rem;
    margin: 0;
}

::-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);
}

@media (max-width: 768px) {
    html { font-size: 52%; }
    .tool-container { padding: 10rem 1.5rem 3rem; }
    .tool-header h1 { font-size: 2.8rem; }
    .info-row { flex-direction: column; gap: 1rem; }
    .info-label { min-width: auto; }
    .info-value { text-align: left; margin-left: 0; }
    header { flex-direction: column; gap: 1rem; padding: 1rem 3%; }
}

@media (max-width: 480px) {
    html { font-size: 48%; }
    .tool-header h1 { font-size: 2.4rem; }
    .input-section { padding: 2rem; }
}
