* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Mono', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: 'Roboto Mono', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    min-height: 100vh;
    padding: 0;
    padding-top: 8rem;
    overflow-x: hidden;
}

.fluid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    line-height: 1;
}

.fluid-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    white-space: pre;
    font-size: 12px;
    color: #0099ff;
    opacity: 0.35;
    letter-spacing: 0;
    line-height: 1;
    z-index: 2;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    word-break: break-all;
    text-align: left;
    display: block;
}

.wallet-header {
    height: 5.5rem;
    border: 0.1rem solid rgba(53, 65, 84, 0.5);
    background: rgba(16, 23, 41, 0.5);
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1000px;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background 0.3s;
    border-radius: 48px;
}

.wallet-header-container {
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 20px;
}

header {
    text-align: center;
    color: #00ffff;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px #00ff00;
}

.scrambled {
    display: inline-block;
    color: #00ff00;
    opacity: 0.8;
    transition: color 0.8s ease-in-out, text-shadow 0.8s ease-in-out;
}

.revealed {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.loading-bar {
    width: 300px;
    height: 2px;
    background: #001100;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 0s forwards;
    max-width: 80%;
}

.loading-progress {
    width: 0;
    height: 100%;
    background: #ffffff;
    animation: loadProgress 2s ease-in-out 0s forwards;
}

@keyframes loadProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

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

.subtitle {
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 0s forwards;
}

.balance-section {
    margin-bottom: 1.5rem;
}

.accordion-item {
    margin-bottom: 1.5rem;
}

.accordion-header {
    border: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.accordion-header:hover {
    background: #00ff00;
    box-shadow: 0 0 20px #00ff00;
}

.accordion-header:hover h2 {
    color: #000000;
}

.accordion-header:hover .accordion-icon {
    color: #000000;
}

.accordion-header h2 {
    font-size: 1.2rem;
    color: #00ff00;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-weight: normal;
    margin: 0;
}

.accordion-item.active .accordion-header {
    border-color: #00ffff;
    background: rgba(0, 0, 0, 0.7);
}

.accordion-item.active .accordion-header h2 {
    color: #00ffff;
}

.accordion-icon {
    font-size: 2rem;
    transition: color 0.3s ease;
    color: #00ff00;
    font-weight: bold;
}

.accordion-icon::before {
    content: '+';
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.15s ease;
}

.accordion-item.active .accordion-icon {
    color: #00ffff;
}

.accordion-item.active .accordion-icon::before {
    transform: rotate(180deg);
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    background: rgba(0, 0, 0, 0.5);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    border-left-color: #00ffff;
    border-right-color: #00ffff;
    border-bottom-color: #00ffff;
}

.accordion-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #00ffff;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.accordion-item.active .accordion-body {
    opacity: 1;
    transform: translateY(0);
}

.oracle-section {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.oracle-section h2 {
    margin-bottom: 1.5rem;
    color: #00ffff;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.oracle-info {
    margin-bottom: 1.5rem;
}

.oracle-info-header {
    border: 2px solid #00ffff;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 1.5rem;
    margin-bottom: 0;
}

.oracle-info-header h2 {
    margin: 0;
    color: #00ffff;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.oracle-info-content {
    border-left: 2px solid #00ffff;
    border-right: 2px solid #00ffff;
    border-bottom: 2px solid #00ffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
}

h2 {
    margin-bottom: 20px;
    color: #00ff00;
}

.btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.btn-primary {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    color: #00ff00;
}

#connectBtn {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    transition: all 0.3s ease;
}

#connectBtn:hover {
    background: #00ff00;
    color: #000000;
    transform: none;
    box-shadow: 0 0 20px #00ff00;
}

.btn-primary:hover:not(:disabled) {
    background: #00ff00;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 0 20px #00ff00;
}

.btn-secondary {
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    color: #00ffff;
}

#disconnectBtn,
#refreshBalances,
#addPstTokenBtn {
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    transition: all 0.3s ease;
}

#disconnectBtn:hover,
#refreshBalances:hover:not(:disabled),
#addPstTokenBtn:hover:not(:disabled) {
    background: #00ffff;
    color: #000000;
    box-shadow: 0 0 20px #00ffff;
}

.btn-secondary:hover:not(:disabled) {
    background: #00ffff;
    color: #000000;
    box-shadow: 0 0 20px #00ffff;
}

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

.wallet-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00ffff;
}

.wallet-info span {
    display: inline-block;
}

.wallet-info strong {
    color: #00ff00;
    margin-right: 0.5rem;
}

#walletAddress,
#networkName {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #00ffff;
}

.hidden {
    display: none;
}

.balances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.balance-card {
    background: rgba(0, 255, 0, 0.1);
    color: #00ffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Roboto Mono', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s ease;
}

.balance-card:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.balance-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #00ff00;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
}

.info-boxes-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.info-box {
    flex: 1;
    padding: 10px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 5px;
}

.info-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #00ffff;
}

.info-box strong {
    color: #00ff00;
}

.info-box span {
    color: #00ffff;
}

.info-box a {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-box a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px #00ffff;
}

.interact-section {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 5px;
}

.interact-section h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #00ffff;
    text-align: center;
    letter-spacing: 0.1em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #00ff00;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #00ff00;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: #00ffff;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-group input::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: rgba(0, 255, 0, 0.7);
    font-size: 14px;
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.result.success {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
}

.result.error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    color: #ff6666;
}

.info-grid {
    display: grid;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 5px;
}

.info-item .label {
    font-weight: 600;
    color: #00ff00;
}

.info-item span:last-child {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: #00ffff;
}

.info-item a {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px #00ffff;
}

@media (max-width: 768px) {
    body {
        padding-top: 9rem;
    }

    .wallet-header {
        height: auto;
        min-height: 5.5rem;
        top: 0.5rem;
        width: calc(100% - 1rem);
        border-radius: 24px;
    }

    .wallet-header-container {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.5rem;
        justify-content: center;
    }

    .wallet-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    .wallet-info span {
        font-size: 0.85rem;
    }

    .wallet-info button {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    #connectBtn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    h1 {
        font-size: 2rem;
    }

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

    .info-boxes-container {
        flex-direction: column;
    }
}
