/* ========== OPTIMIZED ANIMATIONS ========== */
@keyframes resultsReveal {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== LIGHTWEIGHT RESET ========== */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

*:focus {
    outline: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1e293b;
    word-break: break-word;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 20px;
    padding-top: 90px;
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-weight: 700;
    text-transform: capitalize;
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #0f172a;
}

h2 {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

p {
    margin-bottom: 16px;
    color: #475569;
    font-size: 1.05rem;
}
p:first-letter {
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: #2563eb;
    transition: color 0.2s ease;
}
a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* ========== INPUT & BUTTON (MAIN FOCUS) ========== */
input, button {
    width: 100%;
    padding: 16px 24px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[disabled], button[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

input {
    text-align: left;
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}
input::placeholder {
    color: #94a3b8;
    transition: opacity 0.2s ease;
}
input:focus::placeholder {
    opacity: 0.5;
}

button {
    cursor: pointer;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ========== GRID (floats, unchanged widths) ========== */
.row {
    margin: -1%;
}
.row::after {
    content: "";
    display: table;
    clear: both;
}
.row > div {
    float: left;
    padding: 1%;
}
.row > .col1  { width: 8.33%; }
.row > .col2  { width: 16.66666%; }
.row > .col3  { width: 24.99%; }
.row > .col4  { width: 33.33%; }
.row > .col5  { width: 33.33%; }
.row > .col6  { width: 50%; }
.row > .col7  { width: 58.333%; }
.row > .col8  { width: 66.66666664%; }
.row > .col9  { width: 74.999997%; }
.row > .col10 { width: 83.33%; }
.row > .col11 { width: 91.666663%; }
.row > .col12 { width: 100%; }

/* ========== MAIN LAYOUT ========== */
#desc, #main {
    display: table;
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
}
#desc {
    height: auto;
    padding: 40px 0;
}
#main {
    height: 100%;
    padding: 40px 0;
}
#main > div {
    display: table-cell;
    vertical-align: middle;
}
#main > div:not(.active) {
    display: none;
}
#main > div > div > div > h1,
#main > div > div > div > p {
    text-align: center;
}
#main > div > div > div > h1 > i,
#main > div > div > div > p > i {
    font-weight: 600;
    font-style: normal;
    color: #2563eb;
}
#main > div > div > div > p {
    padding: 15px 0;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Highlighting the main search box container wrapper if targeted */
#main input {
    font-size: 1.15rem;
    padding: 18px 24px;
}

/* ========== RESULTS PANEL ========== */
#se-results-panel {
    animation: resultsReveal 0.4s ease both;
}
#se-results-panel > div > .row {
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
#se-results-panel > div > .row::-webkit-scrollbar {
    width: 8px;
    background: none;
}
#se-results-panel > div > .row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Result cards */
#se-results-panel > div > .row > div > a {
    display: block;
    color: #1e293b;
    padding: 16px 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
#se-results-panel > div > .row > div > a:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
#se-results-panel > div > .row > div > a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
#se-results-panel > div > .row > div > a::after {
    content: attr(data-value);
    display: block;
    font-weight: 600;
    color: #64748b;
    margin-top: 6px;
    font-size: 0.85rem;
}

/* Status colours */
#se-results-panel > div > .row > div > a[data-value="exists"] {
    text-decoration: none;
    opacity: 0.9;
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
#se-results-panel > div > .row > div > a[data-value="exists"]::after {
    color: #dc2626;
}
#se-results-panel > div > .row > div > a[data-value="Available!!!"] {
    opacity: 1;
    text-shadow: none;
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
#se-results-panel > div > .row > div > a[data-value="Available!!!"]::after {
    color: #059669;
}

/* Action buttons */
#se-results-panel > div > .col3:nth-last-of-type(2) > button {
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
#se-results-panel > div > .col3:nth-last-of-type(2) > button:hover {
    background: #1d4ed8;
}
#se-results-panel > div > .col3:nth-last-of-type(1) > button {
    background: #475569;
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.3);
}
#se-results-panel > div > .col3:nth-last-of-type(1) > button:hover {
    background: #334155;
}

/* ========== CONTENT SECTIONS ========== */
section {
    background: #ffffff;
    padding: 36px;
    margin-bottom: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    color: #334155;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}
ul li {
    background: #f8fafc;
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    color: #334155;
    border-left: 4px solid #10b981;
    transition: background 0.2s, border-color 0.2s;
}
ul li:hover {
    background: #f1f5f9;
    border-color: #059669;
}
ul li strong {
    color: #0f172a;
}
ul li::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
    display: inline-block;
    width: 1.2em;
    margin-right: 8px;
    font-size: 1.1em;
    line-height: 1.2;
}
ol {
    padding-left: 24px;
}
ol li {
    margin-bottom: 12px;
    color: #475569;
    list-style-type: decimal-leading-zero;
    padding-left: 6px;
}

/* Footer & nativeads */
footer {
    text-align: center;
    background: #ffffff;
    padding: 24px;
    margin-top: 48px;
    font-size: 0.95rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}
nativeads {
    text-align: center;
    display: block;
    background: #ffffff;
    padding: 10px;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ========== HEADER ========== */
.header {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}
.logo {
    font-size: 1.5rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
}
.logo-dot {
    color: #2563eb;
}
.main-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: visible;
}
.main-menu li {
    margin-left: 20px;
    background: transparent;
    border-left: none;
    padding: 0;
}
.main-menu li a {
    color: #475569;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.main-menu li a:hover {
    color: #2563eb;
    background: #eff6ff;
    text-decoration: none;
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: none;
    min-width: 180px;
    z-index: 1001;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu li a {
    color: #334155;
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}
.dropdown-menu li a:hover {
    background: #f8fafc;
    color: #2563eb;
}
.arrow-down {
    display: inline-block;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #64748b;
    vertical-align: middle;
    transition: transform 0.2s;
}
.arrow-down.rotate {
    transform: rotate(180deg);
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 8px;
}
.bar {
    width: 24px;
    height: 2px;
    background: #0f172a;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.2s;
}
.hamburger.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding-left: 0;
        padding-right: 0;
    }
    .navbar {
        padding: 12px 20px;
    }
    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        background: #ffffff;
        width: 100%;
        text-align: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        padding: 20px 0;
        z-index: 999;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }
    .main-menu.active {
        display: flex;
    }
    .main-menu li {
        margin: 8px 0;
        width: 100%;
    }
    .main-menu li a {
        display: block;
        padding: 12px 24px;
        font-size: 1.1rem;
    }
    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        width: 100%;
        background: #f8fafc;
        display: none;
    }
    .dropdown-menu.active {
        display: block;
    }
    .dropdown-menu li a {
        padding: 10px 32px;
        font-size: 1rem;
    }
    .hamburger {
        display: flex;
    }
    #main {
        width: 95%;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .logo { font-size: 1.35rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    section {
        padding: 20px;
        margin-bottom: 16px;
    }
    ul li { border-left-width: 3px; }
}