
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    background-color: #160d1f;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.quicksand-all {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

h1, h2, h3 {
    margin: 0;
    color: #f0f4f8;
    font-weight: 700;
}

hr {
    margin: 0;
    border: 0;
    border-top: 2px solid rgba(0, 0, 0, 0.3);
}

/* HEADER */

.Search_btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.Search_btn:hover {
    background-color: #ffffff;
    color: #160d1f;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.Search_btn:active {
    transform: translateY(1px);
}

.head_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 24px 40px;
    background: linear-gradient(to bottom, rgba(22, 13, 31, 0.8), transparent);
}

.head_container h1 {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
    font-size: 32px;
    letter-spacing: -0.5px;
}

.head_container .buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.head_container .Search_btn {
    padding: 12px 28px;
    font-size: 16px;
}

/* INTRO VIDEO */

.Intro_vid {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0b0611;
}

.Background_video {
    width: 100% !important;
    height: 100vh !important;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: 0.35;
}

.Intro_text {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    text-align: left;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 60px;
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    grid-template-rows: auto auto auto;
    column-gap: 40px;
    align-content: center;
    align-items: center;
}

.Intro_text h1 {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 20px 0;
    font-size: 64px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.Intro_text p {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 35px 0;
    color: #dcd1eb;
    font-size: 22px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 700px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.OS_selector {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    gap: 16px;
    pointer-events: auto;
    flex-wrap: wrap;
}

.OS_selector button {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    font-size: 16px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.OS_selector .Windows:hover {
    background-color: #007acc;
    border-color: #00a2ff;
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
}

.OS_selector .Apple:hover {
    background-color: #d62222;
    border-color: #ff4a4a;
    box-shadow: 0 0 15px rgba(214, 34, 34, 0.5);
}

.OS_selector .Linux:hover {
    background-color: #fd5b20;
    border-color: #ff794d;
    box-shadow: 0 0 15px rgba(233, 84, 32, 0.5);
}

/* QUEUE */

.Queue_box {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    padding: 24px;
    background-color: rgba(22, 13, 31, 0.85);
    border: 2px solid #a855f7;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    pointer-events: auto;
}

.Queue_box[hidden] {
    display: none;
}

.Queue_box h2,
.Queue_box h3 {
    margin-bottom: 16px;
}

.Queue_box.Windows,
.Queue_box.windows-theme {
    border-color: #007acc;
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.25);
}

.Queue_box.Apple,
.Queue_box.apple-theme {
    border-color: #d62222;
    box-shadow: 0 0 20px rgba(214, 34, 34, 0.25);
}

.Queue_box.Linux,
.Queue_box.linux-theme {
    border-color: #e95420;
    box-shadow: 0 0 20px rgba(233, 84, 32, 0.25);
}

.Windows.selected {
    background-color: #007acc;
    border-color: #00a2ff;
}

.Apple.selected {
    background-color: #d62222;
    border-color: #ff4a4a;
}

.Linux.selected {
    background-color: #e95420;
    border-color: #ff794d;
}

.Queue_box button {
    background-color: #a855f7;
    color: #ffffff;
    border: 2px solid #a855f7;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.Queue_box button:hover {
    background-color: #7e22ce;
    border-color: #c084fc;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.Queue_box button:active {
    transform: translateY(1px);
}

#join-queue-btn {
    background-color: rgba(255,255,255,0.06);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 24px;
    font-size: 16px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transform: none;
    transition: all 0.20s ease;
}

#join-queue-btn:hover:not(:disabled) {
    background-color: #A855F7;
    border-color: #281938;
    transform: none;
}

#join-queue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#join-queue-btn[hidden] {
    display: none;
}

/* CONTACT FORM */

.Form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 40px 20px 20px 20px;
    box-sizing: border-box;
}

.Form h1 {
    font-size: 40px;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.Form h6 {
    font-size: 16px;
    font-weight: 400;
    color: #dcd1eb;
    max-width: 650px;
    line-height: 1.5;
    margin: 0;
}

.Box {
    width: 100%;
    max-width: 800px;
    height: auto;
    min-height: 600px;
    background-color: #0c0712;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 48px;
    box-sizing: border-box;
    margin: 0 auto 60px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.input-group label {
    font-size: 15px;
    font-weight: 600;
    color: #dcd1eb;
    padding-left: 4px;
    text-align: left;
}

.Box input[type="text"],
.Box input[type="email"],
.Box textarea {
    width: 100%;
    padding: 16px;
    background-color: #160d1f;
    border: 1px solid #281938;
    border-radius: 10px;
    color: #ffffff;
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.Box input[type="text"]:focus,
.Box input[type="email"]:focus,
.Box textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    background-color: #1b1026;
}

.Box input::placeholder,
.Box textarea::placeholder {
    color: #7b6f8a;
}

.Box textarea {
    height: 180px;
    resize: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding-left: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #dcd1eb;
    user-select: none;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    height: 18px;
    width: 18px;
    background-color: #160d1f;
    border: 1px solid #281938;
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.radio-label:hover input[type="radio"] ~ .custom-radio {
    border-color: #a855f7;
}

.radio-label input[type="radio"]:checked ~ .custom-radio {
    border-color: #10a352;
    background-color: #10a352;
    box-shadow: inset 0 0 0 4px #160d1f;
}

.button-group {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    margin-top: auto;
}

.Box .Clear_btn,
.Box .Send_btn {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    font-size: 16px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.Box .Send_btn:hover {
    background-color: #107c41;
    border-color: #10a352;
    box-shadow: 0 0 15px rgba(16, 124, 65, 0.5);
}

.Box .Clear_btn:hover {
    background-color: #d62222;
    border-color: #ff4a4a;
    box-shadow: 0 0 15px rgba(214, 34, 34, 0.5);
}

#form-status {
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

#form-status.success {
    color: #10a352;
}

#form-status.error {
    color: #ff4a4a;
}

/* COMMANDS */

.Commands {
    width: 100%;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}

.Commands .Box {
    width: 100%;
    max-width: 1000px;
    min-height: 400px;
    height: auto;
    margin: 0 auto 60px auto;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.Command_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
}

.Command_table th {
    padding: 18px;
    font-size: 20px;
    color: #ffffff;
    border-bottom: 2px solid #281938;
}

.Command_table td {
    padding: 20px;
    vertical-align: top;
}

.Category_buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.Category_btn {
    flex: 1;
    padding: 15px 20px;
    background-color: #21162d;
    color: #ffffff;
    border: 1px solid #49345b;
    border-radius: 10px;
    font-family: "Quicksand", sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.Category_btn:hover {
    background-color: #ffffff;
    color: #160d1f;
    transform: translateY(-2px);
}

.Category_btn.active {
    background-color: #ffffff;
    color: #160d1f;
    border-color: #ffffff;
}

.Commands .Category_btn {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    font-size: 16px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.Commands .Category_btn[data-os="Windows"]:hover,
.Commands .Category_btn[data-os="Windows"].active {
    background-color: #007acc;
    border-color: #00a2ff;
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
}

.Commands .Category_btn[data-os="Apple"]:hover,
.Commands .Category_btn[data-os="Apple"].active {
    background-color: #d62222;
    border-color: #ff4a4a;
    box-shadow: 0 0 15px rgba(214, 34, 34, 0.5);
}

.Commands .Category_btn[data-os="Linux"]:hover,
.Commands .Category_btn[data-os="Linux"].active {
    background-color: #e95420;
    border-color: #ff794d;
    box-shadow: 0 0 15px rgba(233, 84, 32, 0.5);
}

.Subcategory_container {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    display: flex;
    gap: 12px;
}

.Subcategory_container[hidden],
.Command_grid[hidden],
#command-message[hidden] {
    display: none !important;
}

.Subcategory_btn {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    background: #160d1f;
    color: white;
    border: 1px solid #281938;
    border-radius: 8px;
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    flex: 1;
    max-width: 300px;
    padding: 13px 25px;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.2);
}

.Subcategory_btn:hover {
    background-color: #007acc;
    border-color: #00a2ff;
    box-shadow: 0 0 15px rgba(0,122,204,0.4);
}

.Subcategory_btn.active {
    background-color: #A855F7;
    border-color: #A855F7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.Commands .Subcategory_btn[data-terminal="CMD"]:hover,
.Commands .Subcategory_btn[data-terminal="CMD"].active {
    background-color: #ffffff;
    color: #160d1f;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.Commands .Subcategory_btn[data-terminal="PowerShell"]:hover,
.Commands .Subcategory_btn[data-terminal="PowerShell"].active {
    background-color: #007acc;
    color: #ffffff;
    border-color: #00a2ff;
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
}

.Subcategory_container[hidden] {
    display: none;
}

.Command_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(125px, auto));
    gap: 18px;
    width: 100%;
}

.Command_tile {
    min-width: 0;
    min-height: 125px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 13px;
    background-color: #160d1f;
    border: 1px solid #392449;
    border-radius: 12px;
    transition: all 0.25s ease;
    overflow-wrap: anywhere;
    position: relative;
}

.Command_tile:hover {
    border-color: #a855f7;
    background-color: #21162d;
    transform: translateY(-3px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.3);
}

.Command_tile h3 {
    margin: 0;
    color: #f0f4f8;
    font-size: 17px;
    font-weight: 700;
}

.Command_tile code {
    color: #c69aff;
    font-family: "Quicksand", monospace;
    font-size: 14px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.Command_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background: #160d1f;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    box-sizing: border-box;
}

.Command_row code {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

.Copy_btn {
    flex-shrink: 0;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 7px 12px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.Copy_btn:hover {
    background-color: #ffffff;
    color: #160d1f;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.Copy_btn:active {
    transform: translateY(1px);
}

#command-message {
    margin: 0;
    color: #a99bb8;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

#view-commands {
    background-color: rgba(255,255,255,0.06);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 12px !important;
    width: fit-content !important;
    min-width: 0;
    flex: 0 0 auto;
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transform: none;
    transition: all 0.20s ease;
}

#view-commands:hover {
    background-color: #A855F7;
    border-color: #281938;
    transform: none;
}

.Command_section_title {
    grid-column: 1 / -1;
    width: 100%;
    color: #A855F7;
    text-align: center;
    margin: 20px 0 10px;
    font-size: 26px;
}

.View_more_btn {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 20px;
    padding: 12px 28px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #A855F7;
    border-radius: 30px;
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.View_more_btn:hover {
    background-color: #A855F7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.View_more_btn:active {
    transform: none;
}

#view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

#view-all-btn {
    padding: 12px 30px;
    font-size: 16px;
}

#view-all-container[hidden] {
    display: none;
}

/* DIAGNOSIS */

#Diagnosis {
    padding: 30px 20px 60px;
}

.Diagnosis {
    width: 100%;
    padding: 40px 20px 60px;
    box-sizing: border-box;
}

.Diagnosis .Box {
    max-width: 1000px;
    min-height: auto;
    gap: 25px;
    text-align: center;
}

.Diagnosis .Box.diagnosis-box {
    width: 100%;
    max-width: 1100px;
    min-height: 0;
    height: auto;
    padding: 35px;
    gap: 28px;
    border: 1px solid #392449;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.diagnosis-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.diagnosis-header h2 {
    font-size: 30px;
}

#Diagnosis-reason {
    color: #a99bb8;
}

.diagnosis-header p {
    color: #a99bb8;
    margin: 8px 0 0;
}

.diagnosis-state {
    padding: 8px 14px;
    border: 1px solid #a855f7;
    border-radius: 20px;
    color: #c69aff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.health-panel {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: #160d1f;
    border: 1px solid #392449;
    border-radius: 14px;
}

.health-score {
    min-width: 120px;
    text-align: center;
}

.health-score div {
    color: #c69aff;
    font-size: 55px;
    font-weight: 700;
}

.health-score small,
.health-info p,
.health-info small {
    color: #a99bb8;
}

.health-info {
    flex: 1;
    min-width: 0;
}

.health-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.health-info p {
    line-height: 1.5;
    margin: 0 0 15px;
}

.health-progress {
    height: 9px;
    width: 100%;
    background: #392449;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

#health-progress-bar {
    width: 0%;
    height: 100%;
    background: #a855f7;
    transition: width .4s ease;
}

.diagnostic-main-btn,
.network-actions button,
#download-diagnostic-report,
#clear-error-log {
    background: #a855f7;
    color: white;
    border: 1px solid #a855f7;
    border-radius: 9px;
    padding: 13px 22px;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: .2s ease;
}

.diagnostic-main-btn {
    width: 100%;
}

.diagnostic-main-btn:hover,
.network-actions button:hover,
#download-diagnostic-report:hover,
#clear-error-log:hover {
    background: #7e22ce;
    border-color: #c084fc;
    transform: translateY(-2px);
}

.diagnostic-main-btn:disabled,
.network-actions button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.diagnostic-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 24px;
    background: #100918;
    border: 1px solid #392449;
    border-radius: 14px;
    min-width: 0;
}

.diagnostic-section > h3 {
    color: #c69aff;
    font-size: 20px;
}

.diagnostic-description {
    color: #a99bb8;
    line-height: 1.5;
    margin: 0;
}

.diagnostic-results {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.diagnostic-placeholder {
    color: #a99bb8;
    text-align: center;
    padding: 20px;
}

.diagnostic-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 13px 15px;
    background: #160d1f;
    border: 1px solid #392449;
    border-radius: 9px;
}

.diagnostic-result > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.diagnostic-result strong {
    color: white;
}

.diagnostic-result small {
    color: #a99bb8;
    overflow-wrap: anywhere;
}

.diagnostic-badge {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.diagnostic-badge.pass {
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
}

.diagnostic-badge.warning {
    background: rgba(234, 179, 8, .12);
    color: #facc15;
}

.diagnostic-badge.fail {
    background: rgba(239, 68, 68, .12);
    color: #f87171;
}

/* NETWORK */

.network-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.network-metric {
    min-width: 0;
    padding: 18px 10px;
    text-align: center;
    background: #160d1f;
    border: 1px solid #392449;
    border-radius: 10px;
}

.network-metric small {
    display: block;
    color: #a99bb8;
    margin-bottom: 10px;
}

.network-metric strong {
    display: block;
    color: #c69aff;
    font-size: 22px;
    overflow-wrap: anywhere;
}

.network-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#network-status {
    color: #a99bb8;
    font-size: 14px;
}

.network-log {
    max-height: 180px;
    overflow-y: auto;
    padding: 15px;
    background: #160d1f;
    border-radius: 9px;
    color: #c69aff;
    font-family: "Quicksand", monospace;
    font-size: 13px;
}

.network-log p {
    margin: 0 0 9px;
    overflow-wrap: anywhere;
}

/* SPEED TEST */

.Speed_Graph {
    width: 100%;
    height: 300px;
    background: #160d1f;
    border: 1px solid #30213b;
    border-radius: 12px;
    padding: 15px;
}

.Speed_Graph canvas {
    width: 100%;
    height: 100%;
}

.Speed_Results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.Speed_Result {
    background: #160d1f;
    border: 1px solid #30213b;
    border-radius: 12px;
    padding: 18px 10px;
}

.Speed_Result h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.Speed_Result p {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

#start-speed-test {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background: #8b5cf6;
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

#start-speed-test:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#speed-test-status {
    margin: 0;
    font-size: 14px;
    color: #564961;
}

.Diagnosis .Speed_Graph {
    width: 100%;
    height: 260px;
    min-width: 0;
}

#speed-graph {
    display: block;
    width: 100%;
    height: 100%;
}

.Diagnosis .Speed_Results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.Diagnosis .Speed_Result {
    min-width: 0;
    padding: 16px 10px;
    text-align: center;
    background: #160d1f;
    border: 1px solid #392449;
    border-radius: 10px;
}

.Diagnosis .Speed_Result h3 {
    color: #a99bb8;
    font-size: 14px;
}

.Diagnosis .Speed_Result p {
    color: #c69aff;
    font-size: 23px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#server-selector {
    padding: 10px 14px;
    border: 1px solid #392449;
    border-radius: 8px;
    background: #24152f;
    color: white;
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.Diagnosis #server-selector {
    width: 100%;
    padding: 12px;
    background: #160d1f;
    border: 1px solid #392449;
    border-radius: 8px;
    color: white;
    font-family: "Quicksand", sans-serif;
}

.Diagnosis #start-speed-test {
    padding: 12px;
    background: #a855f7;
    color: white;
    border: 0;
    border-radius: 8px;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.Diagnosis #start-speed-test:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* RESOURCE MONITOR */

.resource-monitor {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    box-sizing: border-box;
    background: #0c0712;
    border: none;
    border-radius: 16px;
    box-shadow: none;
}

.resource-monitor h2 {
    color: #ffffff;
    font-size: 28px;
}

.resource-subtitle {
    color: #a99bb8;
    margin-bottom: 25px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.resource-card {
    padding: 20px;
    background: #160d1f;
    border: 1px solid #392449;
    border-radius: 12px;
    min-width: 0;
}

.resource-card h3 {
    color: #c69aff;
    font-size: 16px;
    margin-bottom: 12px;
}

.resource-card p {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.resource-card small {
    color: #a99bb8;
}

.resource-bar {
    width: 100%;
    height: 9px;
    background: #392449;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

#resource-memory-bar {
    width: 0%;
    height: 100%;
    background: #a855f7;
    transition: width .4s ease;
}

#resource-status {
    color: #a99bb8;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* BROWSER RESPONSIVENESS */

.resource-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
}

.responsiveness-card {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
}

.responsiveness-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.response-metric {
    background: #0c0712;
    border: 1px solid #392449;
    border-radius: 10px;
    padding: 15px 8px;
    text-align: center;
    min-width: 0;
}

.response-metric p {
    color: #ffffff;
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 7px;
    overflow-wrap: anywhere;
}

.response-metric small {
    color: #a99bb8;
}

.response-status {
    color: #c69aff;
    font-size: 14px;
    margin-bottom: 10px;
}

.response-note {
    display: block;
    line-height: 1.5;
}

/* ERROR MONITOR */

.error-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.error-summary strong {
    color: #c69aff;
    font-size: 35px;
}

.error-summary small {
    color: #a99bb8;
}

.browser-error-log {
    max-height: 220px;
    overflow-y: auto;
    padding: 15px;
    background: #160d1f;
    border-radius: 9px;
    color: #f87171;
    font-family: "Quicksand", monospace;
    font-size: 13px;
}

.browser-error-log p {
    overflow-wrap: anywhere;
    margin: 0 0 10px;
}

#clear-error-log {
    align-self: flex-start;
    background: #21162d;
    border-color: #49345b;
}

.report-section #report-status {
    color: #a99bb8;
    font-size: 13px;
    margin: 0;
}

/* REPORT */

#resource-status {
    margin: 0;
}

/* FOOTER AND ADVERTISEMENTS */

footer {
    background-color: #210342;
}

.Ad_Banner {
    width: 100%;
    max-width: 970px;
    height: 70px;
    margin: 25px auto;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(168, 85, 247, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.Ad_Banner span {
    color: #999;
    font-size: 11px;
    letter-spacing: 2px;
}

/* DIAGNOSIS BUTTONS */

.Diagnosis .diagnosis-box button {
    background-color: rgba(255,255,255,0.06);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 24px;
    font-size: 16px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transform: none;
    transition: all 0.20s ease;
}

.Diagnosis .diagnosis-box button:hover:not(:disabled) {
    background-color: #A855F7;
    border-color: #281938;
    transform: none;
}

.Diagnosis .diagnosis-box button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* FINAL BUTTON OVERRIDES */

#run-network-test,
#start-speed-test,
#run-diagnostics,
#clear-error-log,
#download-diagnostic-report {
    background-color: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 10px 24px !important;
    font-size: 16px !important;
    font-family: "Quicksand", sans-serif !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transform: none !important;
    box-shadow: none !important;
    transition: all 0.20s ease !important;
}

#run-network-test:hover:not(:disabled),
#start-speed-test:hover:not(:disabled),
#run-diagnostics:hover:not(:disabled),
#clear-error-log:hover:not(:disabled),
#download-diagnostic-report:hover:not(:disabled) {
    background-color: #A855F7 !important;
    border-color: #281938 !important;
    transform: none !important;
    box-shadow: none !important;
}

#run-network-test:disabled,
#start-speed-test:disabled,
#run-diagnostics:disabled,
#clear-error-log:disabled,
#download-diagnostic-report:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

#clear-error-log:hover:not(:disabled) {
    background-color: #d62222 !important;
    border-color: #ff4a4a !important;
    color: #ffffff !important;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 900px) {
    .Intro_text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 30px;
        overflow-y: auto;
    }

    .Intro_text h1 {
        font-size: 42px;
    }

    .Intro_text p {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .Intro_text .Queue_box {
        width: 100%;
        max-width: 520px;
        margin-top: 26px;
    }

    .OS_selector {
        flex-wrap: wrap;
        gap: 10px;
    }

    .OS_selector button {
        flex: 1;
        min-width: 120px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .head_container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .head_container h1 {
        font-size: 26px;
        width: 100%;
        padding-right: 0;
    }

    .head_container .buttons {
        width: 100%;
        gap: 10px;
    }

    .head_container .Search_btn {
        flex: 1;
        padding: 12px 0;
        font-size: 15px;
        text-align: center;
    }

    .Box {
        margin: 0 15px 40px 15px;
        padding: 24px;
        min-height: auto;
        gap: 16px;
    }

    .button-group {
        flex-direction: row;
        gap: 10px;
    }

    .Box .Clear_btn,
    .Box .Send_btn {
        flex: 1;
        width: 50%;
    }

    .Commands .Box {
        padding: 22px;
        gap: 18px;
    }

    .Category_buttons {
        gap: 8px;
    }

    .Category_btn {
        padding: 12px 8px;
        font-size: 14px;
    }

    .Subcategory_container {
        gap: 10px;
    }

    .Subcategory_btn {
        padding: 12px 10px;
        font-size: 14px;
    }

    .Command_grid {
        gap: 10px;
        grid-template-rows: repeat(3, minmax(105px, auto));
    }

    .Command_tile {
        padding: 12px;
        min-height: 105px;
        gap: 10px;
    }

    .Command_tile h3 {
        font-size: 14px;
    }

    .Command_tile code {
        font-size: 12px;
    }

    .Diagnosis .Box.diagnosis-box {
        padding: 20px;
        gap: 20px;
    }

    .diagnosis-header h2 {
        font-size: 23px;
    }

    .health-panel {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .health-info {
        width: 100%;
    }

    .network-metrics,
    .Diagnosis .Speed_Results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .responsiveness-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .diagnostic-section {
        padding: 17px;
    }

    .diagnostic-result {
        align-items: flex-start;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card:last-child {
        grid-column: auto;
    }

    .network-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .network-actions button {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .Speed_Results {
        grid-template-columns: repeat(2, 1fr);
    }

    .Speed_Graph {
        height: 230px;
    }
}

@media (max-width: 600px) {
    .Ad_Banner {
        height: 60px;
        margin: 18px auto;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card:last-child {
        width: 100%;
    }

    .responsiveness-card {
        width: 100%;
    }

    .responsiveness-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 400px) {
    .Commands .Box {
        padding: 14px;
    }

    .Command_grid {
        gap: 7px;
    }

    .Command_tile {
        padding: 9px;
    }

    .Command_tile h3 {
        font-size: 12px;
    }

    .Command_tile code {
        font-size: 11px;
    }
}

/* SEARCH PAGE */

.Search_Page {
    width: 100%;
    max-width: 1600px;
    margin: 35px auto 60px;
    padding: 0 35px;
    box-sizing: border-box;
}

.Search_Page > h2 {
    font-size: 30px;
    margin-bottom: 22px;
}

.Search_Page h4 {
    color: #a99bb8;
}

#search-input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 28px;
    box-sizing: border-box;
    background: #0c0712;
    border: 1px solid #392449;
    border-radius: 10px;
    color: #ffffff;
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    outline: none;
}

#search-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.Search_Layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
}

.Search_sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: #0c0712;
    border: 1px solid #392449;
    border-radius: 12px;
}

.Search_sidebar h3 {
    font-size: 17px;
    color: #c69aff;
}

.Search_sidebar label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dcd1eb;
    font-size: 15px;
    cursor: pointer;
}

.Search_sidebar input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #a855f7;
    cursor: pointer;
}

.Search_sidebar hr {
    width: 100%;
    border-top: 1px solid #392449;
}

.Search_Results {
    min-width: 0;
}

#results-count {
    margin: 0 0 18px;
    color: #a99bb8;
    font-size: 14px;
}

.Search_results_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.Search_results_grid .Command_tile {
    min-width: 0;
    min-height: 125px;
    position: relative;
}

.Search_results_grid .Command_badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.Search_results_grid .Command_tile h3 {
    padding-right: 75px;
}

.Command_os {
    color: #a855f7;
    font-size: 12px;
    font-weight: 700;
}

.Command_badge {
    padding: 4px 9px;
    border-radius: 6px;
    background-color: #392449;
    color: #d9b8ff;
    font-size: 11px;
    font-weight: 700;
    align-self: flex-end;
}

#search-no-results {
    color: #a99bb8;
    text-align: center;
    padding: 30px 10px;
}

#search-no-results[hidden] {
    display: none;
}

#category-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 24px;
    margin-top: 12px;
}

#category-filters label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

#category-filters input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #a855f7;
}

/* SEARCH PAGE RESPONSIVENESS */

@media (max-width: 1100px) {
    .Search_results_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .Search_Layout {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 15px;
    }

    .Search_results_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .Search_Page {
        padding: 0 20px;
    }
}

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

    .Search_sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .Search_sidebar h3,
    .Search_sidebar hr {
        grid-column: 1 / -1;
    }

    .Search_results_grid {
        grid-template-columns: 1fr;
    }
}

/* =================================
   MOBILE RESPONSIVENESS FIXES
================================= */

/* Make sizing predictable */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* TABLETS */
@media (max-width: 900px) {

    /* Intro section */
    .Intro_text {
        padding: 25px;
        gap: 15px;
    }

    .Intro_text h1 {
        font-size: clamp(30px, 6vw, 42px);
    }

    .Intro_text p {
        font-size: 16px;
    }

    .Queue_box {
        width: 100%;
        max-width: 100%;
        padding: 18px;
    }

    /* Popular commands */
    .Commands .Command_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: minmax(105px, auto);
    }

    .Commands .Category_buttons {
        flex-wrap: wrap;
    }

    .Commands .Category_btn {
        flex: 1 1 130px;
    }

    /* Search page */
    .Search_Layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 15px;
    }

    .Search_results_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE PHONES */
@media (max-width: 600px) {

    /* Header */
    .head_container {
        padding: 18px;
        gap: 15px;
    }

    .head_container h1 {
        font-size: 24px;
    }

    /* Intro */
    .Intro_text {
        padding: 20px;
    }

    .Intro_text h1 {
        font-size: 32px;
    }

    .Intro_text p {
        font-size: 15px;
        line-height: 1.5;
    }

    .OS_selector {
        width: 100%;
        gap: 8px;
    }

    .OS_selector button {
        flex: 1 1 100px;
        min-width: 0;
        padding: 10px;
    }

    /* Popular commands */
    .Commands {
        padding: 20px 12px 40px;
    }

    .Commands .Box {
        width: 100%;
        margin: 0 auto 30px;
        padding: 16px;
    }

    .Commands .Command_grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: minmax(90px, auto);
        gap: 12px;
    }

    .Commands .Command_tile {
        min-height: 90px;
        padding: 15px;
    }

    .Commands .Category_buttons {
        flex-direction: column;
        width: 100%;
    }

    .Commands .Category_btn {
        width: 100%;
        flex: none;
    }

    .Commands .Subcategory_container {
        flex-direction: column;
        align-items: stretch;
    }

    .Commands .Subcategory_btn {
        max-width: 100%;
    }

    /* Search page */
    .Search_Page {
        padding: 0 15px;
        margin-top: 20px;
    }

    .Search_Page > h2 {
        font-size: 25px;
    }

    .Search_Layout {
        grid-template-columns: 1fr;
    }

    .Search_sidebar {
        display: flex;
        width: 100%;
        padding: 16px;
    }

    .Search_results_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Contact form */
    .Form {
        padding: 25px 0;
    }

    .Form h1 {
        font-size: 30px;
    }

    .Form h6 {
        font-size: 14px;
        padding: 0 15px;
    }

    .Form .Box {
        width: calc(100% - 30px);
        margin: 0 auto 30px;
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .Box .Clear_btn,
    .Box .Send_btn {
        width: 100%;
    }

    /* Diagnosis */
    .Diagnosis .Box.diagnosis-box {
        padding: 15px;
    }

    .health-panel {
        padding: 15px;
    }

    .network-metrics,
    .Diagnosis .Speed_Results,
    .Speed_Results,
    .responsiveness-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .Speed_Graph {
        height: 200px;
    }

    /* Resource monitor */
    .resource-monitor {
        padding: 18px;
        margin: 20px auto;
    }

    .resource-card:last-child,
    .responsiveness-card {
        width: 100%;
    }

    /* Footer advertisements */
    .Ad_Banner {
        width: calc(100% - 30px);
    }
}

/* VERY SMALL PHONES */
@media (max-width: 380px) {

    .head_container h1 {
        font-size: 21px;
    }

    .Intro_text h1 {
        font-size: 27px;
    }

    .Intro_text p {
        font-size: 14px;
    }

    .Commands .Box {
        padding: 12px;
    }

    .Command_tile h3 {
        font-size: 13px;
    }

    .Command_tile code {
        font-size: 11px;
    }

    .diagnosis-header h2 {
        font-size: 20px;
    }

    .network-metric strong,
    .Diagnosis .Speed_Result p {
        font-size: 18px;
    }
}
.Search_Pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
