* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg-0: #0b0b0b;        /* deep black */
    --bg-1: #160000;        /* dark blood tint */
    --accent-1: #e50914;    /* primary blood red (neon) */
    --accent-2: #ff4444;    /* secondary red (hover) */
    --accent-3: #a60000;    /* deep crimson */
    --accent-4: #ff1e56;    /* neon pink/red for highlights */
    --accent-5: #5a0000;    /* dark maroon */
    --accent-6: #ff0044;    /* pulse red */
    --accent-7: #d10000;    /* warning blood */
    --accent-8: #660000;    /* darkest red */
    --accent-9: #ffcc00;    /* maintenance yellow (kept) */
    --accent-10: #4caf50;    /* online green (kept) */
    --accent-11: #4ecdc499;    /* status blue (kept) */
    --accent-12: #6a5acd; /* Slate blue for quaternary start */
    --accent-13: #8a2be2; /* Blue-violet for quaternary end */
    --icon-hover-color: #e5091424; /* neon-ish hover for icons */
    --muted: rgba(255,255,255,0.72);
    --glass: rgba(255,255,255,0.03);
    --glass-strong: rgba(255,255,255,0.06);
    --glow: 0 0 18px rgba(229,9,20,0.45);
    --soft-glow: 0 0 10px rgba(255,20,20,0.18);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-0) 70%);
    color: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preserve top spacing behavior */
main, .section, .hero {
    padding-top: 5.5rem; /* compensar header fixo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header / Nav ========== */
header {
    background: rgba(10, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(229,9,20,0.12);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), var(--soft-glow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 12px rgba(229,9,20,0.45);
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.nav-links a::after{
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(229,9,20,0.9), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    opacity: 0.95;
}

.nav-links a:hover{
    color: var(--accent-2);
    transform: translateY(-2px);
    text-shadow: var(--glow);
}

.nav-links a:hover::after{
    transform: scaleX(1);
}

/* Auth buttons container */
.auth-buttons {
    display: inline-flex;
    gap: 1rem;
    margin-top: 0.4%;
}

/* ========== Buttons ========== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.22s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

/* Primary: glass + blood outline */
.btn-primary {
    background: transparent;
    color: white;
    border: 2px solid rgba(229,9,20,0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.btn-primary:hover {
    background: rgba(229,9,20,0.08);
    border-color: rgba(229,9,20,0.4);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* Secondary: solid blood gradient */
.btn-secondary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    color: white;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 30px rgba(229,9,20,0.18);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(229,9,20,0.35);
    filter: saturate(1.05);
}

/* Tertiary: subtle red glass */
.btn-tertiary {
    background: linear-gradient(135deg, var(--accent-10), var(--accent-10));
    color: white;
    transition: all 0.22s ease;
    border: 1px solid rgba(229,9,20,0.12);
}

.btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

/* Quaternary kept but recolored */
.btn-quaternary {
    background: linear-gradient(45deg, var(--accent-12), var(--accent-13));
    color: white;
    transition: all 0.22s ease;
    border: 1px solid rgba(255,255,255,0.03);
}

.btn-quaternary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
}

/* Add / edit uses neon variant */
.btn-adicionar,
.btn-edit {
    background: linear-gradient(135deg, #00bcd4, #3f51b5);
    color: white;
    border: none;
    transition: all 0.22s ease;
    box-shadow: 0 6px 25px rgba(255,34,34,0.12);
}

.btn-adicionar:hover,
.btn-edit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 50px rgba(255,34,34,0.28);
}

/* Warning button */
.btn-warning {
    background: transparent;
    color: var(--accent-7);
    border: 2px solid var(--accent-7);
    transition: all 0.22s ease;
}

.btn-warning:hover {
    background: rgba(209,0,0,0.08);
    border-color: rgba(209,0,0,0.36);
    color: white;
    box-shadow: var(--glow);
}

/* ========== Hero ========== */
.hero {
    padding: 2rem 0 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* subtle blood mist / particle */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        radial-gradient(50% 30% at 20% 20%, rgba(229,9,20,0.12), transparent 18%),
        radial-gradient(40% 25% at 80% 80%, rgba(255,68,68,0.06), transparent 25%);
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Title and subheads */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff 0%, var(--accent-1) 40%, var(--accent-4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(229,9,20,0.45);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-4), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Section / Titles ========== */
.section {
    padding: 4rem 0;
    display: none;
}

.section.active {
    display: block;
}

.section-title-gallery {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--accent-9), var(--accent-9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== Protected / Nav ========== */
.protected-section {
    position: relative;
}

.protected-nav {
    transition: all 0.3s ease;
}

/* ========== Grids & Product Cards ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--glass);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(229,9,20,0.06);
    transition: all 0.28s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229,9,20,0.28);
    box-shadow: 0 20px 60px rgba(229,9,20,0.14);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(229,9,20,0.25), rgba(255,68,68,0.12));
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.02);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-1);
    margin-bottom: 1rem;
}

/* ========== Server Grid ========== */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.server-card {
    background: var(--glass);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(229,9,20,0.06);
    backdrop-filter: blur(8px);
    transition: all 0.28s ease;
}

.server-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(229,9,20,0.12);
}

.server-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-online { color: var(--accent-10); font-weight: 600; }
.status-offline { color: var(--accent-2); font-weight: 600; }
.status-maintenance { color: var(--accent-9); font-weight: 600; }

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.status-indicator-team {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 0.5rem;
    box-shadow: 0 0 8px rgba(255,0,0,0.12);
}

.online {
    background: var(--accent-10);
    box-shadow: 0 0 10px var(--accent-10);
}

.offline {
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
}

.maintenance {
    background: var(--accent-9);
    box-shadow: 0 0 10px var(--accent-9);
}

/* ========== Forms ========== */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(229,9,20,0.06);
    backdrop-filter: blur(6px);
}

.admin-panel {
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(229,9,20,0.05);
}

.admin-list { display: grid; gap: 0.5rem; }
.admin-item { display:flex; justify-content:space-between; align-items:center; padding:0.5rem; border-radius:8px; background: rgba(0,0,0,0.15);} 

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: white;
    font-size: 1rem;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: var(--glow);
}

input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.validation-message {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.validation-message.success {
    color: var(--accent-1);
}

.validation-message.error {
    color: var(--accent-2);
}

.error-message {
    background: rgba(255, 34, 34, 0.06);
    border: 1px solid rgba(255, 34, 34, 0.18);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* ========== Floating Cart ========== */
.cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(229,9,20,0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cart:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 60px rgba(229,9,20,0.32);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-2);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid rgba(0,0,0,0.35);
}

/* ========== User profile blocks ========== */
.user-profile {
    display: none;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--glow);
}

.user-avatar.has-avatar {
    background: none !important;
    border: 2px solid rgba(255,255,255,0.04);
}

#userName {
  cursor: pointer;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

/* ========== Modal ========== */
.close-btn {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(20, 0, 0, 0.92);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(229,9,20,0.12);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--glow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== Footer ========== */
.site-footer {
    color: rgba(255,255,255,0.85);
    padding: 1rem 0;
    margin-top: 2rem;
    background: rgba(12, 0, 0, 0.6);
    border-top: 1px solid rgba(229,9,20,0.06);
}

.simple-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 0.2rem 0;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-0) 60%);
    text-align: center;
}

.container {
    padding-bottom: 0.5rem;
}

/* ========== Animations / helpers ========== */

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Payment element (neon bordered) */
#payment-element {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(229,9,20,0.06);
    margin-bottom: 1rem;
    box-shadow: 0 8px 30px rgba(229,9,20,0.06) inset;
}

/* Progress bars */
.server-progress {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    height: 8px;
    margin: 0.5rem 0 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.02);
}

.server-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-4));
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 6px 20px rgba(229,9,20,0.12) inset;
}

/* Loading spinner uses accent color */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.06);
    border-top: 4px solid var(--accent-1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

/* ========== Team Card Styles (adapted) ========== */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(229,9,20,0.06);
    text-align: center;
    transition: all 0.28s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    color: #fff;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(229,9,20,0.02), transparent, rgba(255,68,68,0.02));
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(229,9,20,0.18);
    box-shadow: 0 30px 60px rgba(229,9,20,0.08);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(229,9,20,0);
    pointer-events: none;
    transition: all 0.5s ease;
}

.card:hover::after {
    border-color: rgba(229,9,20,0.06);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Avatars with neon border */
.team-avatar {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(229,9,20,0.14);
    transition: all 0.3s ease;
}

.card:hover .team-avatar {
    border-color: rgba(229,9,20,0.28);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover .team-avatar img {
    transform: scale(1.06);
}

.team-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .team-avatar::after {
    opacity: 1;
}

/* Social icons recolored */
.social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 1;
    position: relative;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-1);
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(229,9,20,0.45);
}

.card:hover .social-icons a {
    transform: translateY(-3px);
}

.card:hover .team-avatar::after {
    opacity: 1;
}

/* Team name styling */
.card > div:first-child {
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.card:hover > div:first-child {
    color: var(--accent-1);
}

/* Status badge */
.status-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.status-teamindicator {
    width: 8px;
    height: 8px;
    background: var(--accent-10);
    border-radius: 50%;
    animation: pulse-status 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-notteamindicator {
    width: 8px;
    height: 8px;
    background: var(--accent-3);
    border-radius: 50%;
    animation: pulse-status 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Muted override for team cards */
.card .muted {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

/* ========== Images ========== */
.home-pic {
    width: 180px;
    height: 180px;
    border-radius: 20%;
    object-fit: cover;
    margin: 0 auto 1rem; /* centers horizontally */
    transition: transform 0.3s ease;
    display: block; /* required for margin auto centering */
    border: 3px solid rgba(229,9,20,0.08);
}

.home-pic:hover {
    transform: scale(1.05);
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem; /* centers horizontally */
    border: 3px solid var(--icon-hover-color);
    transition: transform 0.3s ease;
    display: block; /* required for margin auto centering */
    box-shadow: 0 8px 30px rgba(229,9,20,0.06);
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* ========== Footer (recolor) ========== */
#footer {
  border-top: 1px solid rgba(229,9,20,0.08);
  background: rgba(8, 0, 0, 0.6);
  padding: 2rem 1rem;
  color: #d1d5db;
  font-family: 'Inter', sans-serif;
}

#footer .container {
  max-width: 1280px;
  margin: 0 auto;
}

#footer .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Logo section */
#footer .logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

#footer .logo-container img {
  width: 33px;
  height: 39px;
  position: relative;
  filter: drop-shadow(0 6px 18px rgba(229,9,20,0.12));
}

#footer .logo-text {
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
}

#footer .logo-text p:first-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

#footer .logo-text p:last-child {
  margin-top: -0.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.26rem;
  color: #fff;
}

/* Description text */
#footer .description {
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.6rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

/* Social icons */
#footer .social-links {
  display: flex;
  gap: 1.5rem;
}

#footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.12);
  border-radius: 0.5rem;
  background: rgba(18, 18, 18, 0.3);
  color: #9ca3af;
  transition: all 0.22s ease;
  text-decoration: none;
}

#footer .social-links a:hover {
  transform: scale(1.05);
  border-color: rgba(229,9,20,0.28);
  background: rgba(229,9,20,0.06);
  color: var(--accent-1);
}

/* Legal section */
#footer .info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-1);
  margin-bottom: 1rem;
}

#footer .info ul {
  list-style: none;
  padding: 0;
}

#footer .info li {
  margin-bottom: 0.75rem;
}

#footer .info a {
  font-size: 0.875rem;
  color: #9ca3af;
  transition: color 0.22s ease;
  text-decoration: none;
}

#footer .info a:hover {
  color: var(--accent-1);
}

/* Bottom copyright bar */
#footer .footer-bottom {
  border-top: 1px solid rgba(229,9,20,0.06);
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
}

#footer .footer-bottom p {
  font-size: 1rem;
  color: #9ca3af;
}

/* ========== Pre-footer blocks ========== */
.pre-footer--container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.pre-footer--column {
  display: flex;
  flex-direction: column;
}

.block {
  background-color: rgba(20,20,20,0.9);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  overflow: hidden;
  border: 1px solid rgba(229,9,20,0.04);
}

.block-container {
  padding: 20px;
}

.block-minorHeader {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 5px;
}

.block-body dl {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  margin: 0;
}

.block-body dt {
  font-weight: 600;
  color: #bbb;
}

.block-body dd {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.block-footer {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #999;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 10px;
}

.custom-select {
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: none;
  outline: none;
  appearance: none;
}

/* Apply dark theme to dropdown list items */
.custom-select option {
  background-color: #222; /* dark background */
  color: #fff;            /* white text */
}

/* Optional: change on hover/focus */
.custom-select option:checked,
.custom-select option:hover {
  background-color: #444;
}

.security-settings {
    padding: 1rem 0;
}

.security-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.security-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(78, 205, 196, 0.3);
}

.security-section h4 {
    margin: 0 0 0.25rem 0;
    color: #fff;
    font-size: 1.1rem;
}

.login-history {
    padding: 1rem 0;
}

/* 2FA Code Input Styling */
#2faVerificationCode {
    font-family: 'Courier New', monospace;
}

#2faCode {
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
}

#2faCode:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

#2faContainer {
    animation: slideDown 0.3s ease;
}


/* QR Code Container */
#qrCodeContainer {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* Backup Codes Display */
#backupCodesDisplay {
    animation: slideInUp 0.3s ease;
}

/* Security Badge */
.security-badge {
    display: inline-block;
    vertical-align: middle;
}

/* Account Lock Warning */
.lock-warning {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #ff6b6b;
    animation: shake 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.88); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@media (min-width: 900px) {
  #footer .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    
    #footer .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
        background: linear-gradient(90deg, var(--accent-1), var(--accent-4));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 12px rgba(229,9,20,0.45);
    }

    .nav-links {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: flex-start;
        background-color: #180000;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        padding: 0;
        z-index: 999;
        transition: max-height 0.4s ease;
    }

    .nav-links.active {
        max-height: 450px; /* adjust as needed */
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title-gallery {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 60px 20px;
    }
}