/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0F172A;
    color: #F8FAFC;
    line-height: 1.6;
    min-height: 100vh;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Banner Containers */
#top-banner,
#mid-banner,
#footer-banner {
    width: 100%;
    min-height: 90px;
    background-color: rgba(248, 250, 252, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.1);
    margin: 20px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
    background-color: #3B82F6;
    color: #F8FAFC;
    border: none;
    padding: 16px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Test Panel */
#test-panel-section {
    text-align: center;
    padding: 40px 20px;
    min-height: 100px;
}

.loader {
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Results Section */
#results-section {
    background-color: #F8FAFC;
    color: #0F172A;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#results-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#results-section .latency {
    font-size: 1.5rem;
    color: #3B82F6;
    font-weight: 600;
    margin-bottom: 20px;
}

#results-section .verdict {
    font-size: 1.25rem;
    color: #64748B;
}

#results-section .error {
    color: #F97316;
    font-size: 1.25rem;
}

#results-section.terrible h2 {
    color: #F97316;
}

#results-section.poor h2 {
    color: #F59E0B;
}

#results-section.okay h2 {
    color: #3B82F6;
}

#results-section.great h2 {
    color: #10B981;
}

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

/* Suggestions Section */
#suggestions-section {
    margin: 40px 0;
    animation: fadeIn 0.5s ease 0.2s both;
}

.content-card {
    background-color: rgba(248, 250, 252, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 40px;
}

.content-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #F8FAFC;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #94A3B8;
    font-size: 1.125rem;
}

.tips-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-weight: bold;
}

/* Recommendations Section */
.recommendations {
    margin: 60px 0;
}

.recommendations h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #F8FAFC;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-card {
    background-color: rgba(248, 250, 252, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

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

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #F8FAFC;
}

.product-card p {
    color: #94A3B8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.product-link {
    display: inline-block;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #60A5FA;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3B82F6;
}

.disclaimer {
    color: #64748B;
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    #results-section,
    .content-card {
        padding: 30px 20px;
    }
}
/* Shared shell for legal + admin pages */
body.legal-page,
body.admin-page {
  background: #0F172A;
  color: #F8FAFC;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.legal-container,
.admin-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: #020617;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

/* Make forms look like the main site */
.admin-container input,
.admin-container textarea,
.admin-container button {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
}

.admin-container button {
  background: #3B82F6;
  border-color: #3B82F6;
  cursor: pointer;
  font-weight: 600;
}

.admin-container button:hover {
  filter: brightness(1.1);
}
/* ADMIN PANEL STYLING */
body.admin-page {
  background: #0F172A;
  color: #F8FAFC;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.admin-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: #020617;
  border-radius: 16px;
  box-shadow: 0 25px 55px rgba(0,0,0,0.5);
}

/* Headings inside admin */
.admin-container h1,
.admin-container h2,
.admin-container h3 {
  color: #F8FAFC;
  margin-bottom: 0.75rem;
}

/* Labels */
.admin-container label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  color: #E2E8F0;
}

/* Text inputs & textareas */
.admin-container input[type="text"],
.admin-container input[type="password"],
.admin-container textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 8px;
  color: #F8FAFC;
}

/* Checkboxes */
.admin-container input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 0.5rem;
}

/* Buttons */
.admin-container button {
  background: #3B82F6;
  border: none;
  padding: 0.65rem 1.25rem;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.admin-container button:hover {
  filter: brightness(1.15);
}