/* === Global Reset === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === General Styling === */
body {
    background: #111111;
    font-family: 'IBM Plex Mono', monospace;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #B7FFD8;
    overflow-x: hidden;
}

body.light-mode {
    background: #fffbef;
    color: #333;
}

/* === Noise Effects === */
.page-noise {
    z-index: 99;
    opacity: 0.03;
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: url('https://cdn.prod.website-files.com/66cbef5d37466b4b4b03d4d7/67181187969ef81c792fa5cc_Grain_overlay.gif') repeat;
}

.page-loader_noise {
    z-index: 1;
    opacity: 0.01;
    background-image: url("https://cdn.prod.website-files.com/66cbef5d37466b4b4b03d4d7/67181187969ef81c792fa5cc_Grain_overlay.gif");
    background-position: center;
    background-size: cover;
    background-repeat: repeat;
    position: fixed;
    inset: 0;
    pointer-events: none;
}

/* === Header Logo === */
.header-logo-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    max-width: 40px;
    height: auto;
}

body:not(.light-mode) .header-icon {
    filter: brightness(0) invert(1);
}

.header-logo {
    max-width: 150px;
    height: auto;
    padding-top: 5px;
}

body:not(.light-mode) .header-logo {
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
    .header-logo {
        max-width: 150px;
    }
    .header-icon {
        max-width: 30px;
    }
}

/* === Top Controls === */
.top-controls {
    display: flex;
    gap: 15px;
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 2500;
    background: transparent !important;
}

/* Theme Toggle */
#theme-toggle {
    background: transparent !important;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2500;
    width: 40px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    width: 24px;
    height: 24px;
    fill: #fffbef !important;
    background: transparent !important;
    transition: transform 0.3s ease, fill 0.3s ease;
    display: block;
}

body.light-mode .theme-icon {
    fill: #111111 !important;
    transform: rotate(180deg);
}

/* === Menu Styling === */
.hamburger-menu-toggle {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    padding: 0;
    z-index: 2600;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #B7FFD8;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.light-mode .hamburger-bar {
    background: #333;
}

.hamburger-menu-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #222;
    z-index: 2400;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.menu-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.05;
    background: url('https://cdn.prod.website-files.com/66cbef5d37466b4b4b03d4d7/67181187969ef81c792fa5cc_Grain_overlay.gif') repeat;
    pointer-events: none;
}

body.light-mode .menu-overlay {
    background: #fffbef;
}

.menu-overlay.active {
    transform: translateX(0);
    opacity: 1;
    display: block !important;
}

.menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2450;
}

/* Mobile Star Menu */
.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2400;
    display: none;
}

@media (max-width: 767px) {
    .mobile-menu {
        display: block;
    }
}

.menu-toggle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 50px;
    transition: transform 0.8s ease;
    z-index: 2450;
}

.menu-toggle.raised {
    transform: translateX(-50%);
}

.star {
    width: 40px;
    height: 40px;
    transform: rotate(0deg);
    transition: transform 1s ease;
    position: absolute;
    bottom: 0;
    cursor: pointer;
    animation-delay: 0.6s;
}

.star.rotated {
    transform: rotate(45deg);
}

.circle-blur {
    width: 150px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px 50px 0 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    bottom: 0;
    z-index: -1;
}

body.light-mode .circle-blur {
    background: rgba(0, 255, 227, 0.2);
}

.menu-panel {
    width: 100%;
    height: 100vh;
    background: #222;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.8s ease, opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 2400;
}

.menu-panel::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.05;
    background: url('https://cdn.prod.website-files.com/66cbef5d37466b4b4b03d4d7/67181187969ef81c792fa5cc_Grain_overlay.gif') repeat;
    pointer-events: none;
}

body.light-mode .menu-panel {
    background: #fffbef;
}

.menu-panel.active {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
    display: flex !important;
}

.menu-btn {
    display: block !important;
    width: 100%;
    max-width: 200px;
    padding: 10px;
    margin: 5px 0;
    background: transparent;
    color: #B7FFD8;
    border: 1px solid #B7FFD8;
    border-radius: 5px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2450;
}

body.light-mode .menu-btn {
    color: #333;
    border: 1px solid #00ffe3;
}

.menu-btn:hover {
    background: #B7FFD8;
    color: #111111;
    box-shadow: 0 0 10px #B7FFD8;
}

body.light-mode .menu-btn:hover {
    background: #00ffe3;
    color: #333;
    box-shadow: 0 0 10px #00ffe3;
}

.menu-btn:active {
    background: #B7FFD8;
    color: #111111;
}

body.light-mode .menu-btn:active {
    background: #00ffe3;
    color: #333;
}

.menu-btn.placeholder {
    display: none !important;
    pointer-events: none;
}

/* User Info */
.user-info {
    position: absolute;
    top: 70px;
    left: 20px;
    background: linear-gradient(45deg, rgba(211, 255, 238, 0.51), #b8f0e961);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #B8F0E9;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    z-index: 200;
}

.user-info-mobile {
    background: linear-gradient(45deg, rgba(211, 255, 238, 0.51), #b8f0e961);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #B8F0E9;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Support/Contact */
.support-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2500;
    background: transparent;
    color: #B7FFD8;
    border: 1px solid #B7FFD8;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

body.light-mode .support-contact {
    color: #333;
    border: 1px solid #00ffe3;
}

.support-contact:hover {
    background: #B7FFD8;
    color: #111111;
    box-shadow: 0 0 10px #B7FFD8;
}

body.light-mode .support-contact:hover {
    background: #00ffe3;
    color: #333;
    box-shadow: 0 0 10px #00ffe3;
}

@media (max-width: 767px) {
    .support-contact {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* === Buttons === */
.btn-terminal, .top-up .btn, .get-plan, .search-btn {
    background: transparent !important;
    color: #B7FFD8 !important;
    border: 1px solid #B7FFD8 !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    z-index: 101;
}

body.light-mode .btn-terminal, body.light-mode .top-up .btn, body.light-mode .get-plan, body.light-mode .search-btn {
    color: #333 !important;
    border: 1px solid #00ffe3 !important;
}

.btn-terminal:hover, .top-up .btn:hover, .get-plan:hover, .search-btn:hover {
    background: #B7FFD8 !important;
    color: #111111 !important;
    box-shadow: 0 0 10px #B7FFD8;
}

body.light-mode .btn-terminal:hover, body.light-mode .top-up .btn:hover, body-light-mode .get-plan:hover, body.light-mode .search-btn:hover {
    background: #00ffe3 !important;
    color: #fffbef78 !important;
    box-shadow: 0 0 10px #00ffe3;
}

.btn-terminal:focus, .top-up .btn:focus, .get-plan:focus, .search-btn:focus {
    box-shadow: 0 0 15px #B7FFD8;
}

body.light-mode .btn-terminal:focus, body.light-mode .top-up .btn:focus, body-light-mode .get-plan:focus, body.light-mode .search-btn:focus {
    box-shadow: 0 0 15px #00ffe3;
}

.btn-primary {
    background: #ffbbbb42;
    border-color: #E91E63;
    text-align: center;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgb(255 211 211 / 40%);
    transition: transform 0.2s, background 0.3s;
    color: #333;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
    .btn-primary {
        width: auto;
        max-width: 200px; /* Fixed width for desktop */
    }
}

body.light-mode .btn-primary {
    background: #ffbbbb42;
    border-color: #E91E63;
    color: #333;
}

.btn-primary:hover {
    background: #fb8181;
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgb(255 122 122);
    color: #ffffff;
}

body.light-mode .btn-primary:hover {
    background: #fb8181;
    border-color: #ff0000;
    color: #ffffff;
}

.btn-secondary {
    background: linear-gradient(45deg, rgb(211 255 238), #b8f0e9);
    border-color: #00ffe3;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(211, 255, 238, 0.8);
    color: #333;
    font-size: 1.2rem;
}

body.light-mode .btn-secondary {
    background: linear-gradient(45deg, rgba(211, 255, 238, 0.51), #b8f0e961);
    border-color: #00ffe3;
}

.btn-discord {
    background-color: #5865F2;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
}

body.light-mode .btn-discord {
    background-color: #4752C4;
}

.btn-discord:hover {
    background-color: #4752C4;
    color: #FFFFFF;
}

body.light-mode .btn-discord:hover {
    background-color: #5865F2;
}

.discord-logo {
    width: 24px;
    height: 24px;
}

/* Modal Styling */
.modal-content {
    background: #222;
    border: 1px solid #B7FFD8;
    border-radius: 10px;
    color: #B7FFD8;
    font-family: 'IBM Plex Mono', monospace;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.light-mode .modal-content {
    background: #fffbef;
    border: 1px solid #00ffe3;
    color: #333;
}

.modal-header {
    border-bottom: 1px solid #B7FFD8;
    padding: 15px;
}

body.light-mode .modal-header {
    border-bottom: 1px solid #00ffe3;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
    font-size: 0.9rem;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer {
    border-top: 1px solid #B7FFD8;
    padding: 15px;
}

body.light-mode .modal-footer {
    border-top: 1px solid #00ffe3;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

body.light-mode .btn-close {
    filter: none;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

.modal .btn-outline-primary {
    background: transparent;
    border: 1px solid #B7FFD8;
    color: #B7FFD8;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s;
}

body.light-mode .modal .btn-outline-primary {
    border: 1px solid #00ffe3;
    color: #333;
}

.modal .btn-outline-primary:hover {
    background: #B7FFD8;
    color: #111111;
    box-shadow: 0 0 10px #B7FFD8;
}

body.light-mode .modal .btn-outline-primary:hover {
    background: #00ffe3;
    color: #333;
    box-shadow: 0 0 10px #00ffe3;
}

.modal .btn-outline-info {
    background: transparent;
    border: 1px solid #17a2b8;
    color: #17a2b8;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s;
}

body.light-mode .modal .btn-outline-info {
    border: 1px solid #17a2b8;
    color: #17a2b8;
}

.modal .btn-outline-info:hover {
    background: #17a2b8;
    color: #FFFFFF;
    box-shadow: 0 0 10px #17a2b8;
}

.modal .btn-outline-danger {
    background: transparent;
    border: 1px solid #ff5555;
    color: #ff5555;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s;
}

body.light-mode .modal .btn-outline-danger {
    border: 1px solid #ff5555;
    color: #ff5555;
}

.modal .btn-outline-danger:hover {
    background: #ff5555;
    color: #FFFFFF;
    box-shadow: 0 0 10px #ff5555;
}

.modal .btn-secondary {
    background: linear-gradient(45deg, rgba(211, 255, 238, 0.51), #b8f0e961);
    border: 1px solid #B7FFD8;
    color: #333;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s;
}

body.light-mode .modal .btn-secondary {
    border: 1px solid #00ffe3;
}

.modal .btn-secondary:hover {
    background: #B7FFD8;
    color: #111111;
    box-shadow: 0 0 10px #B7FFD8;
}

body.light-mode .modal .btn-secondary:hover {
    background: #00ffe3;
    color: #333;
    box-shadow: 0 0 10px #00ffe3;
}

.modal .btn-info {
    background: #17a2b8;
    border: 1px solid #17a2b8;
    color: #FFFFFF;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s;
}

.modal .btn-info:hover {
    background: #138496;
    box-shadow: 0 0 10px #17a2b8;
}

.modal .btn-danger {
    background: #ff5555;
    border: 1px solid #ff5555;
    color: #FFFFFF;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s;
}

.modal .btn-danger:hover {
    background: #dc3545;
    box-shadow: 0 0 10px #ff5555;
}

/* Copy Text */
.copy-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    color: #B7FFD8;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    line-height: 1.8;
}

body.light-mode .copy-text {
    color: #333;
}

.copy-text p {
    margin: 0;
    padding: 2px 0;
}

/* Search Form */
#search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.search-btn {
    padding: 10px 20px;
    line-height: 1;
    height: 38px; /* Match .terminal-input height */
}

/* Get Plan */
.get-plan-container {
    margin-bottom: 10px;
}

/* Trust/Distrust Buttons */
#trust-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

#trust-form button[name="action"][value="trust"] {
    background: transparent !important;
    color: #B7FFD8 !important;
    border: 1px solid #B7FFD8 !important;
    padding: 10px 20px;
    font-size: 1rem;
    width: 120px;
    text-align: center;
}

#trust-form button[name="action"][value="distrust"] {
    background: transparent !important;
    color: #ff5555 !important;
    border: 1px solid #ff5555 !important;
    padding: 10px 20px;
    font-size: 1rem;
    width: 120px;
    text-align: center;
}

body.light-mode #trust-form button[name="action"][value="trust"] {
    color: #333 !important;
    border: 1px solid #00ffe3 !important;
}

body.light-mode #trust-form button[name="action"][value="distrust"] {
    color: #ff5555 !important;
    border: 1px solid #ff5555 !important;
}

#trust-form button[name="action"][value="trust"]:hover {
    background: #B7FFD8 !important;
    color: #111111 !important;
    box-shadow: 0 0 10px #B7FFD8;
}

#trust-form button[name="action"][value="distrust"]:hover {
    background: #ff5555 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 10px #ff5555;
}

body.light-mode #trust-form button[name="action"][value="trust"]:hover {
    background: #00ffe3 !important;
    color: #333 !important;
    box-shadow: 0 0 10px #00ffe3;
}

body.light-mode #trust-form button[name="action"][value="distrust"]:hover {
    background: #ff5555 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 10px #ff5555;
}

/* Trustees Toggle */
/* Add global styling for #toggle-trustees */
#toggle-trustees {
    display: none; /* Initial hidden state, overridden by JS */
    padding: 8px 16px;
    font-size: 1rem;
    background-color: #333;
    color: #B7FFD8;
    border: 1px solid #B7FFD8;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    width: 150px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s ease;
}

/* Light mode adjustments */
body.light-mode #toggle-trustees {
    background-color: #fffbef;
    color: #333;
    border-color: #00ffe3;
}

/* Hover effects */
#toggle-trustees:hover {
    background-color: #444;
    border-color: #00ffe3;
    box-shadow: 0 0 10px #B7FFD8;
}

body.light-mode #toggle-trustees:hover {
    background-color: #e6e2d3;
    box-shadow: 0 0 10px #00ffe3;
}

/* Trust Actions Container */
.trust-actions {
    text-align: center;
    margin-bottom: 20px;
}

/* Top Up Button in User Info */
.user-info .top-up .btn, .user-info-mobile .top-up .btn {
    padding: 2px 6px;
    font-size: 1rem;
    line-height: 1;
    min-height: auto;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

/* Quick Top-Up */
.quick-top-up {
    margin-left: 15px;
}

/* === Network Loader === */
.network-loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.loader-text {
    color: #ff5555;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

body.light-mode .network-loader .loader-text {
    color: #ff5555;
    text-shadow: 0 0 5px rgba(255, 85, 85, 0.3);
}

/* === Populating Text === */
.populating-text {
    display: none;
    margin-bottom: 15px;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.populating-text p {
    color: #B7FFD8;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(183, 255, 216, 0.5);
}

body.light-mode .populating-text p {
    color: #333;
    text-shadow: none;
}

.populating-text .populating-dots {
    color: #B7FFD8;
}

body.light-mode .populating-text .populating-dots {
    color: #333;
}

/* === Autocomplete === */
.ui-autocomplete {
    z-index: 1000 !important;
    background: #222;
    border: 1px solid #B7FFD8;
    color: #B7FFD8;
    font-family: 'IBM Plex Mono', monospace;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 5px;
    width: 50% !important;
    max-width: 100%;
    box-sizing: border-box;
}

body.light-mode .ui-autocomplete {
    background: #fffbef;
    border: 1px solid #00ffe3;
    color: #333;
}

.ui-menu-item {
    padding: 8px;
    cursor: pointer;
}

.ui-menu-item:hover {
    background: #B7FFD8;
    color: #111111;
}

body.light-mode .ui-menu-item:hover {
    background: #00ffe3;
    color: #333;
}

/* === Header and Cards === */
header {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.light-mode header {
    background: rgba(0, 255, 227, 0.9);
}

.subscription-section {
    text-align: center;
    padding: 40px 20px;
}

.subscription-section h2 {
    color: #B7FFD8;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 27.8571px;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(183, 255, 216, 0.7);
}

body.light-mode .subscription-section h2 {
    background: 0;
    border: 0;
}

.subscription-section p {
    color: #B7FFD8;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 27.8571px;
}

body.light-mode .subscription-section p {
    color: #333;
}

.welcome-message {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: rgb(255 255 255);
    border-radius: 20px;
    box-shadow: 0 .125rem 15px rgb(255 255 255) !important;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    padding: 15px;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 400px;
    height: 400px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    box-sizing: border-box;
    color: #333;
    font-family: sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    border: none;
}

body.light-mode .card {
    background: rgb(255 255 255);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0;
    justify-content: space-between;
}

.card-title {
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

body.light-mode .card-title {
    color: #333;
}

.card-text {
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
}

body.light-mode .card-text {
    color: #333;
}

.card-text .display-5 {
    font-size: 2rem;
    display: inline;
    font-weight: bold;
}

.card-text small {
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 5px;
}

.list-group {
    width: 100%;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    margin-top: 1.2rem;
}

.list-group-item {
    background-color: transparent;
    border: none;
    padding: 6px 10px;
    color: #333;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.light-mode .list-group-item {
    color: #333;
}

.card form {
    margin-top: 10px;
}

.toggle-container {
    text-align: center;
    margin-bottom: 20px;
}

.btn-group-toggle .btn {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(237, 236, 236, 0.4);
    border: none;
    box-shadow: 0 2px 8px rgba(211, 255, 238, 0.1);
    transition: transform 0.2s, background 0.3s, scale 0.2s;
    color: #333;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.light-mode .btn-group-toggle .btn {
    background: rgb(169 169 169 / 17%);
}

.btn-group-toggle .btn.active {
    font-size: 1rem;
    padding: 10px 20px;
    background: linear-gradient(45deg, rgb(211 255 238), #b8f0e9);
    box-shadow: 0 0 15px rgba(183, 255, 216, 0.7);
    transform: translateY(-3px);
    border-color: #00ffe3;
    border-radius: 4px;
    color: #333;
}

body.light-mode .btn-group-toggle .btn.active {
    background: #b7ffd8a8;
}

.btn-group-toggle .btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(211, 255, 238, 0.2);
    color: #333;
}

body.light-mode .btn-group-toggle .btn:hover:not(.active) {
    background: rgba(0, 255, 227, 0.4);
}

.row#pricingCards {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.col-md-4 {
    width: 100%;
    max-width: 400px;
}

/* === Trust Page Specific === */
.terminal {
    background: #111111;
    padding: 20px;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

body.light-mode .terminal {
    background: #fffbef;
}

.trust-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    color: #B7FFD8;
    z-index: 100;
    text-align: left !important;
    display: flex;
    flex-direction: column;
}

body.light-mode .trust-container {
    color: #B7FFD8;
    text-shadow: 0 0 10px rgba(183, 255, 216, 0.7);
}

.pre-search-section, .trust-section {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center !important;
    padding: 20px;
    order: 1;
}

.search-container {
    margin-bottom: 15px;
}

.trust-section {
    margin-top: 0;
    text-align: center;
}

.trust-section .trust-score-container {
    margin-bottom: 10px;
}

.trust-section #trust-form {
    margin-top: 10px;
}
.trust-container.loading-hidden {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.trust-section #search-form-post {
    margin: 10px 0;
    display: flex;
    gap: 5px;
}

.trust-section #search-form-post .terminal-input {
    flex: 1;
}

.trust-section #trust-form {
    margin-top: 10px;
}

.search-form-placeholder {
    margin: 20px 0;
    width: 100%;
    display: block;
    text-align: left !important;
}

#search-error {
    color: #ff5555;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: left;
    display: none;
}

.terminal-output {
    color: #B7FFD8;
    font-family: 'IBM Plex Mono', monospace;
    white-space: pre-wrap;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(183, 255, 216, 0.5);
    max-width: 800px;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    visibility: visible;
    text-align: left !important;
    margin-bottom: 15px;
    font-weight: 200;
}

body.light-mode .terminal-output {
    color: #B7FFD8;
    text-shadow: 0 0 10px rgba(183, 255, 216, 0.7);
}

#greeting.terminal-output {
    text-align: left !important;
    margin: 0 0 15px 0;
    width: 100%;
}

.terminal-input {
    background: #fffbef78 !important;
    border: 1px solid #B7FFD8 !important;
    color: #B7FFD8 !important;
    font-family: 'IBM Plex Mono', monospace;
    padding: 10px;
    border-radius: 5px;
    width: 100% !important;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
    margin: 15px 0px 15px;
    line-height: 1;
    height: 38px; /* Match .search-btn height */
}

body.light-mode .terminal-input {
    background: #fffbef !important;
    border: 1px solid #00ffe3 !important;
    color: #333 !important;
}

.terminal-input:focus {
    box-shadow: 0 0 15px #B7FFD8;
}

body.light-mode .terminal-input:focus {
    box-shadow: 0 0 15px #00ffe3;
}

.table-dark {
    --bs-table-bg: #222 !important;
    background: #222 !important;
    color: #B7FFD8 !important;
    font-family: 'IBM Plex Mono', monospace;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 15px;
}

body.light-mode .table-dark {
    --bs-table-bg: #fffbef !important;
    background: #fffbef !important;
    color: #333 !important;
}

.table-dark th {
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
    color: #B7FFD8 !important;
    padding: 12px;
    border: 1px solid #B7FFD8 !important;
}

body.light-mode .table-dark th {
    color: #333 !important;
    border: 1px solid #00ffe3 !important;
}

.table-dark td {
    font-weight: 400;
    font-family: 'IBM Plex Mono', monospace;
    color: #B7FFD8 !important;
    padding: 12px;
    border: 1px solid #B7FFD8 !important;
}

body.light-mode .table-dark td {
    color: #333 !important;
    border: 1px solid #00ffe3 !important;
}

.table-dark tr:hover {
    background: rgba(183, 255, 216, 0.1);
}

body.light-mode .table-dark tr:hover {
    background: rgba(0, 255, 227, 0.1);
}

/* Trust Table */
.trust-table {
    --bs-table-bg: #222 !important;
    background: #fffbef78 !important;
    color: #B7FFD8 !important;
    font-family: 'IBM Plex Mono', monospace;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 15px;
}

body.light-mode .trust-table {
    --bs-table-bg: #fffbef !important;
    background: #fffbef !important;
    color: #333 !important;
}

.trust-table th {
    font-weight: 700;
    color: #B7FFD8 !important;
    padding: 12px;
    border: 1px solid #B7FFD8 !important;
    text-align: left;
    display: none; /* Hide header to prevent old structure interference */
}

body.light-mode .trust-table th {
    color: #333 !important;
    border: 1px solid #00ffe3 !important;
}

.trust-table td {
    font-weight: 400;
    color: #B7FFD8 !important;
    padding: 12px;
    border: 1px solid #B7FFD8 !important;
    vertical-align: middle;
}

body.light-mode .trust-table td {
    color: #333 !important;
    border: 1px solid #00ffe3 !important;
}

.trust-table tr:hover {
    background: rgba(183, 255, 216, 0.1);
}

body.light-mode .trust-table tr:hover {
    background: rgba(0, 255, 227, 0.1);
}

.username-link {
    color: #B7FFD8;
    text-decoration: none;
    cursor: pointer;
}

body.light-mode .username-link {
    color: #333;
}

.username-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

body.light-mode .username-link:hover {
    color: #00ffe3;
}

.time-cell {
    cursor: pointer;
    color: #B7FFD8;
}

body.light-mode .time-cell {
    color: #333;
}

.time-cell:hover {
    color: #ffffff;
}

body.light-mode .time-cell:hover {
    color: #00ffe3;
}

.plan-pro {
    color: #B7FFD8 !important;
}

body.light-mode .plan-pro {
    color: #333 !important;
}

.plan-standard {
    color: #FFD700 !important;
}

body.light-mode .plan-standard {
    color: #FFD700 !important;
}

.plan-none {
    color: #FFFFFF !important;
}

body.light-mode .plan-none {
    color: #333 !important;
}

.trust {
    color: #B7FFD8;
    font-weight: bold;
}

body.light-mode .trust {
    color: #333;
}

.distrust {
    color: #ff5555;
    font-style: italic;
}

body.light-mode .distrust {
    color: #ff5555;
}

.typing-row {
    animation: typeRow 0.5s ease-in;
}

.typing-cursor::after {
    content: '|';
    display: inline-block;
    color: #B7FFD8;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

body.light-mode .typing-cursor::after {
    color: #333;
}

.plan-pro {
    color: #B7FFD8 !important;
}

body.light-mode .plan-pro {
    color: #333 !important;
}

.plan-standard {
    color: #FFD700 !important;
}

body.light-mode .plan-standard {
    color: #FFD700 !important;
}

.plan-none {
    color: #FFFFFF !important;
}

body.light-mode .plan-none {
    color: #333 !important;
}

.trust {
    color: #B7FFD8;
    font-weight: bold;
}

body.light-mode .trust {
    color: #333;
}

.distrust {
    color: #ff5555;
    font-style: italic;
}

body.light-mode .distrust {
    color: #333;
}

.trust-score-container {
    margin-bottom: 20px;
    text-align: center;
}

.trust-score-container h3 {
    font-size: 2.5rem;
    color: #B7FFD8;
    text-shadow: 0 0 5px rgba(183, 255, 216, 0.5);
    margin-bottom: 10px;
}

body.light-mode .trust-score-container h3 {
    color: #333;
    text-shadow: none;
}

.trust-score-label {
    font-size: 1rem;
    color: #B7FFD8;
    margin-top: 5px;
}

#trust-score {
    font-size: 4rem;
}

body.light-mode .trust-score-label {
    color: #333;
}

.decode-loading {
    color: #ff5555;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    text-shadow: 0 0 10px #ff5555;
    display: none;
    text-align: center;
    white-space: nowrap;
}

body.light-mode .decode-loading {
    color: #333;
    text-shadow: 0 0 10px #00ffe3;
}

.decode-pulse {
    animation: pulse 1s infinite alternate;
}

.oracle-message {
    color: #ff5555;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(255, 85, 85, 0.7);
    animation: fadeIn 1s ease-in;
    display: inline-block;
}

body.light-mode .oracle-message {
    color: #333;
    text-shadow: 0 0 8px rgba(0, 255, 227, 0.7);
}

#loading-dots {
    color: #B7FFD8;
}

body.light-mode #loading-dots {
    color: #333;
}

/* Parallax Scroll Effect for Background */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    color: #B7FFD8;
    position: relative;
    z-index: 100;
    text-align: center;
}

body.light-mode .hero {
    color: #333;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.hero .typing-fixed {
    font-size: 2.5rem;
    margin-bottom: 20px;
    min-height: 3rem;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    -webkit-text-stroke: 0.2px rgba(183, 255, 216, 0.8);
    color: #B7FFD8;
    text-shadow: 0 0 10px rgba(183, 255, 216, 0.6);
    position: relative;
    z-index: 1;
}


body.light-mode .hero .typing-fixed {
    -webkit-text-stroke: 0.2px rgba(183, 255, 216, 0.8);
    color: #B7FFD8;
    text-shadow: 0 0 10px rgba(183, 255, 216, 0.6);
}


.hero .hero-hand {
    width: 50px;
    height: auto;
    display: block;
    margin: 12% 0% 9% 12%;
    transform: scaleX(-1) rotate(265deg) scale(15);
    transform-origin: centre;
    z-index: 2; /* Above typing-fixed */
    image-rendering: optimizeQuality; /* Sharp SVG rendering */
    will-change: transform; /* GPU acceleration */
}

.hero a {
    display: inline-block;
    margin-top: 20px;
}

/* Problem and Solution Sections */
.problem {
    padding: 40px 20px;
    color: #B7FFD8;
    max-width: 800px;
    margin: 0 auto;
}

body.light-mode .problem, body.light-mode .solution {
    color: #333;
}

.solution {
    padding: 0px 20px 40px 20px;
    color: #B7FFD8;
    max-width: 800px;
    margin: 0 auto;
}

.problem h2, .solution h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: left;
}

.problem-list, .solution-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.problem-list li, .solution-list li {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.problem-list li::before, .solution-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #B7FFD8;
}

body.light-mode .problem-list li::before, body.light-mode .solution-list li::before {
    color: #333;
}

/* Benefits Section */
.benefits {
    padding: 40px 20px;
    color: #B7FFD8;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

body.light-mode .benefits {
    color: #333;
}

.benefits h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.benefits p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 40px 20px;
    color: #B7FFD8;
    max-width: 800px;
    margin: 0 auto;
}

body.light-mode .faq-section {
    color: #333;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.accordion {
    background: #222;
    color: #B7FFD8;
    border: 1px solid #B7FFD8;
}

body.light-mode .accordion {
    background: #fffbef;
    color: #333;
    border: 1px solid #00ffe3;
}

.accordion-button {
    background: #222;
    color: #B7FFD8;
    border: none;
}

body.light-mode .accordion-button {
    background: #fffbef;
    color: #333;
}

.accordion-button:not(.collapsed) {
    background: #333;
    color: #B7FFD8;
}

body.light-mode .accordion-button:not(.collapsed) {
    background: #ddd;
    color: #333;
}

.accordion-body {
    background: #222;
    color: #B7ffd8;
}

body.light-mode .accordion-body {
    background: #fffbef;
    color: #333;
}
/* Blinking caret for elements with the typing effect */
.terminal-cursor::after {
  content: '▌';              /* character for cursor */
  margin-left: 2px;
  animation: blink 1s step-end infinite;  /* blink animation */
}
.terminal-typing {
  will-change: contents;     /* performance optimization during typing */
}

body {
    background: url("/static/Background.png") no-repeat center center fixed;
    background-size: cover;
}

/* Glassmorphic translucent backdrop for the main container */
.terminal {
    background: rgba(17, 17, 17, 0.5);      /* semi-transparent dark overlay */
    backdrop-filter: blur(20px);            /* frosted-glass blur effect */
    -webkit-backdrop-filter: blur(20px);    /* Safari support for blur */
}

/* Light mode variant: translucent light overlay */
body.light-mode .terminal {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 500px;
  margin: 2rem auto;
}

.source-dropdown {
  position: relative;
}

.source-btn {
  background: #2d2d2d;
  color: white;
  border: 1px solid #444;
  padding: 0.5rem 0.8rem;
  font-weight: bold;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  z-index: 100;
  width: 180px;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #ccc;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: #333;
  color: white;
}

.search-form {
  flex: 1;
}

#search-field {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #444;
  background: #1a1a1a;
  color: white;
  font-size: 1rem;
}

#search-field:focus {
  outline: 2px solid #00ff88;
}

/* === Animations === */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === Responsive Adjustments === */
@media (min-width: 768px) and (max-width: 1024px) {
    .card {
        height: 450px;
    }
    .list-group-item {
        padding: 9px 0;
        font-size: 0.72rem;
    }
    .card-text .display-5 {
        font-size: 1.5rem;
    }
    .card-text small {
        font-size: 0.7rem;
    }
    .terminal {
        padding: 15px;
    }
    .btn-terminal, .top-up .btn, .get-plan, .search-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    #trust-form button[name="action"] {
        width: 100px;
    }
    .hero .typing-fixed {
        font-size: 2rem;
    }
    .hero .hero-hand {
        width: 40px;
    }
}

@media (min-width: 768px) {
    .row#pricingCards {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .col-md-4 {
        flex: 0 0 33.333333%;
    }
    .btn-terminal, .top-up .btn, .get-plan, .search-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    h2 {
        font-size: 1.5rem;
    }
    .quick-top-up {
        margin-left: 10px;
    }
    .btn-sm {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .btn-secondary {
        font-size: 0.8rem;
    }
    .btn-terminal, .top-up .btn, .get-plan, .search-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    #trust-form button[name="action"] {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 100px;
    }
    .card {
        border-radius: 15px;
        padding: 10px;
        height: 350px;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-text .display-5 {
        font-size: 1.5rem;
    }
    .card-text .display-5 + small {
        font-size: 0.8rem;
    }
    .list-group-item {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    .modal-body p {
        font-size: 0.9rem;
    }
    .modal-footer .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .terminal {
        padding: 10px;
        align-items: flex-start !important;
        width: 100vw;
        min-height: 100vh;
    }
    .terminal-output {
        font-size: 0.8rem;
        text-align: left !important;
    }
    .trust-container {
        padding: 10px;
        text-align: left !important;
        width: 100%;
    }
    .pre-search-section {
        text-align: left !important;
        padding: 10px;
    }
    .trust-section {
        padding: 10px;
    }
    .terminal-input {
        font-size: 0.9rem;
        padding: 8px;
        height: 34px;
    }
    .search-btn {
        height: 34px;
    }
    .table-dark th, .table-dark td {
        font-size: 0.8rem;
        padding: 8px;
    }
    .trust-table {
        display: block;
        border: none;
        font-size: 0.9rem;
    }
    .trust-table thead {
        display: none;
    }
    .trust-table tbody {
        display: block;
    }
    .trust-table tr {
        display: grid;
        grid-template-columns: 1fr; /* Single column by default */
        gap: 8px;
        margin-bottom: 15px;
        padding: 12px;
        background: #222;
        border: 1px solid #B7FFD8;
        border-radius: 5px;
        width: 100%;
        overflow-wrap: break-word; /* Prevent overflow */
    }
    @media (min-width: 480px) and (max-width: 767px) {
        .trust-table tr {
            grid-template-columns: 2fr 1fr 1fr; /* Three columns on wider mobiles */
        }
    }
    body.light-mode .trust-table tr {
        background: #fffbef;
        border: 1px solid #00ffe3;
    }
    .trust-table td {
        padding: 8px;
        border: none;
        min-width: 0; /* Allow content to shrink */
    }
    .trust-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #B7FFD8;
        margin-right: 12px;
    }
    body.light-mode .trust-table td:before {
        color: #333;
    }
    .trust-table td[data-label="Name"] {
        font-weight: bold;
    }
    .trust-score-container h3 {
        font-size: 2rem;
    }
    #trust {
        font-size: 2.5rem;
    }
    .trust-score-label {
        font-size: 0.9rem;
    }
    .network-wrapper .loader-text {
        font-size: 1rem;
    }
    .populating {
        font-size: 0.9rem;
    }
    .decode-loading {
        font-size: 1.2rem;
    }
    .oracle {
        font-size: 1rem; /* Corrected from color */
    }
    .hamburger-menu-toggle { /* Hide hamburger menu on mobile */
        display: none;
    }
    .support-contact {
        bottom: 15px;
        right: 5px;
    }
    .user-info {
        background: none;
    }
    .hero {
        padding: 60px 10px;
    }
    .hero-content {
        min-height: 20rem;
        padding-bottom: 30px;
    }
    .hero .hero-heading {
        font-size: 1.5rem;
        min-height: 2rem;
    }
    .hero .typing-fixed {
        font-size: 1.8rem;
        white-space: normal;
        min-height: 4rem;
        line-height: 2rem;
        text-align: center;
        max-width: 90%;
        z-index: 1;
        -webkit-text-stroke: 0;
    }
    .hero .hero-hand {
        width: 100%;
        margin: 0% 0% 2% 0%;
        position: absolute;
        transform: scaleX(-1) rotate(265deg) translateY(20%) translateX(15%);
        z-index: 2;
        image-rendering: optimizeQuality;
        will-change: transform;
        left: 0;
        top: 0;
    }
    .problem-list li, .solution-list li {
        font-size: 1rem;
    }
    .hero a {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        width: 80%;
        max-width: 250px;
        min-width: 150px;
        padding: 6px 15px;
        white-space: nowrap;
        box-sizing: border-box;
        z-index: 3;
    }
    .hero a:hover {
        background: #fb8181;
        border-color: #ff0000;
        box-shadow: 0 6px 18px rgb(255 122 122);
        color: #ffffff;
        transform: translateX(-50%) scale(1.05);
    }
    #toggle-trustees {
        width: 100%; /* Full width on mobile */
        font-size: 0.9rem;
        padding: 8px 16px;
        margin-top: 10px;
        text-align: center;
    }

    /* Ensure consistency with Trust/Distrust buttons */
    #trust-form button[name="action"] {
        width: 100%; /* Full width on mobile */
        margin-bottom: 10px;
    }
}
/* Ensure proper alignment in trust-section */
.trust-section {
    text-align: center; /* Center align buttons and toggle */
}
.loading-hidden {
    display: none !important;
}