* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    cursor: none !important; /* Hide default cursor */
}

.hidden {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0b0b10;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 15px 4px rgba(255, 255, 255, 0.8);
    will-change: transform;
}

/* --- LIQUID BACKGROUND & NOISE --- */
.noise-overlay {
    display: none;
}

.blobs-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    filter: blur(40px);
    opacity: 0.15;
    transform: translateZ(0); 
    will-change: transform;
}

.blob {
    position: absolute;
    background: #ffffff;
    will-change: transform, border-radius;
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: 5vh;
    left: 20vw;
    transform-origin: 60% 80%;
    animation: blobAnim1 20s linear infinite;
    background: linear-gradient(to right, #6b21a8, #4c1d95);
}

.blob-2 {
    width: 650px;
    height: 650px;
    top: 30vh;
    left: 45vw;
    transform-origin: -10% 50%;
    animation: blobAnim2 24s linear infinite;
    background: linear-gradient(to right, #854d0e, #a16207);
}

.blob-3 {
    width: 500px;
    height: 500px;
    top: 15vh;
    left: 30vw;
    transform-origin: 100% -10%;
    animation: blobAnim3 18s linear infinite;
    background: linear-gradient(to right, #166534, #15803d);
}

@keyframes blobAnim1 {
    0% { transform: rotate(0deg) scale(1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { transform: rotate(180deg) scale(1.1); border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { transform: rotate(360deg) scale(1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes blobAnim2 {
    0% { transform: rotate(0deg) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { transform: rotate(180deg) scale(1.15); border-radius: 70% 30% 50% 50% / 30% 40% 60% 70%; }
    100% { transform: rotate(360deg) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes blobAnim3 {
    0% { transform: rotate(0deg) scale(1); border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%; }
    50% { transform: rotate(180deg) scale(0.9); border-radius: 40% 60% 60% 40% / 50% 50% 40% 60%; }
    100% { transform: rotate(360deg) scale(1); border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%; }
}

/* --- ENTRANCE SCREEN --- */
#entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease-out;
}

#entrance-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.enter-text {
    font-size: 2.2rem;
    color: rgba(255,255,255, 0.7);
    font-weight: 600;
    letter-spacing: 2px;
}

.enter-text::after {
    content: '|';
    animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- DASHBOARD LAYOUT --- */
.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    z-index: 10;
    transition: all 1s ease;
    opacity: 1;
    position: relative;
}

.dashboard-container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
}

.category-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 1rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.section-count {
    background: rgba(255,255,255,0.05);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255,255,255,0.05);
}

/* Category Colors */
.misc-section .section-icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.crypto-section .section-icon { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.gen-section .section-icon { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.misc-section .section-line { background: linear-gradient(to right, rgba(168,85,247,0.3), rgba(255,255,255,0.05) 50%); }
.crypto-section .section-line { background: linear-gradient(to right, rgba(234,179,8,0.3), rgba(255,255,255,0.05) 50%); }
.gen-section .section-line { background: linear-gradient(to right, rgba(34,197,94,0.3), rgba(255,255,255,0.05) 50%); }

/* --- CARDS GRID --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.tool-card {
    background: rgba(20, 20, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 180px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0,0,0,0.3);
}

.tool-card:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 15px 40px rgba(0,0,0,0.4);
}

.card-bg-icon {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 140px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    transform: rotate(10deg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.card-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
    background: rgba(0,0,0,0.3);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.card-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    transition: gap 0.3s ease;
    align-self: flex-start;
}

.card-link:hover {
    gap: 12px;
}

/* Card Themes */
.tool-card.misc .card-icon { background: rgba(168, 85, 247, 0.1); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.tool-card.misc .card-badge { color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.tool-card.misc .card-link { color: #c084fc; }
.tool-card.misc:hover .card-icon { background: rgba(168, 85, 247, 0.2); }

.tool-card.crypto .card-icon { background: rgba(234, 179, 8, 0.1); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.2); }
.tool-card.crypto .card-badge { color: #facc15; border: 1px solid rgba(234, 179, 8, 0.2); }
.tool-card.crypto .card-link { color: #facc15; }
.tool-card.crypto:hover .card-icon { background: rgba(234, 179, 8, 0.2); }

.tool-card.gen .card-icon { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.tool-card.gen .card-badge { color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.tool-card.gen .card-link { color: #4ade80; }
.tool-card.gen:hover .card-icon { background: rgba(34, 197, 94, 0.2); }

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

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: rgba(20, 20, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(0) scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-card {
    transform: translateY(20px) scale(0.95);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.modal-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.modal-search-box input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.modal-search-box input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-search-box button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-search-box button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* History Tags */
.history-container {
    margin-bottom: 25px;
}

.history-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Loading & Error */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.7);
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
}

/* Results Grid */
.modal-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.result-box.main-balance {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
    align-items: center;
    padding: 25px 15px;
}

.result-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.main-balance .result-value {
    font-size: 2rem;
    color: #facc15;
}

.result-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* --- TRANSACTION MODAL STYLES --- */
.tx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tx-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.tx-modal-card {
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tx-modal-overlay.hidden .tx-modal-card {
    transform: scale(0.95);
}

.tx-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.tx-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.tx-close-btn:hover {
    color: white;
}

.tx-modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tx-modal-body::-webkit-scrollbar {
    width: 8px;
}
.tx-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.tx-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.tx-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    transition: background 0.2s;
}

.tx-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tx-item-full {
    grid-column: span 2;
}

.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.tx-row:last-child {
    margin-bottom: 0;
}

.tx-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
}

.tx-val {
    font-size: 0.95rem;
    color: white;
    font-weight: 600;
    word-break: break-all;
}

.tx-val.amount {
    font-size: 1.2rem;
    font-weight: 800;
}

.tx-val.positive {
    color: #4ade80;
}

.tx-val.negative {
    color: #f87171;
}

.tx-usd {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.tx-hash-link {
    color: #60a5fa;
    text-decoration: none;
}
.tx-hash-link:hover {
    text-decoration: underline;
}

.tx-show-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: all 0.2s;
}

.tx-show-more:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Make Transactions Result Box Clickable */
#res-tx-box {
    cursor: pointer;
    transition: all 0.2s;
}
#res-tx-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .tx-item {
        grid-template-columns: 1fr;
    }
    .tx-item-full {
        grid-column: span 1;
    }
}
/* =========================================
   RANDOM STRING GENERATOR STYLES
   ========================================= */

.gen-output-box {
    background: rgba(25, 25, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gen-output-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    word-break: break-all;
    letter-spacing: 2px;
    margin-right: 15px;
}

.gen-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gen-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.gen-copy-btn.copied {
    background: #10b981;
    color: #fff;
}

/* Slider Styles */
.gen-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    margin-top: 10px;
}

.gen-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #a855f7;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    transition: transform 0.1s ease;
}

.gen-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Toggles Grid */
.gen-toggles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gen-toggle {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.gen-toggle.full-width {
    grid-column: 1 / -1;
}

.gen-toggle input {
    display: none;
}

.gen-toggle-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gen-toggle:hover .gen-toggle-custom {
    border-color: rgba(255, 255, 255, 0.4);
}

.gen-toggle input:checked + .gen-toggle-custom {
    background: #a855f7;
    border-color: #a855f7;
}

.gen-toggle input:checked + .gen-toggle-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.gen-main-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    background: #a855f7;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    transition: all 0.2s ease;
}

.gen-main-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}
