:root {
    --bg-color: #09090b;
    --card-bg: rgba(24, 24, 27, 0.6);
    --card-border: rgba(255, 255, 255, 0.06);
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.3);
    --secondary: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #71717a;
    --success: #10b981;
    --error: #ef4444;
    --gold: #eab308;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* ============================================ */
body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
}

/* Glow orbs */
.bg-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 30s infinite alternate ease-in-out;
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.blob-2 {
    bottom: -30%;
    right: -15%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.6) 0%, transparent 70%);
    animation-delay: -15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 8%) scale(1.15); }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header with badge */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.logo .highlight {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0.6rem;
    font-weight: 400;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.cursor-blink {
    color: var(--primary);
    font-weight: 300;
    animation: blink-cursor 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Main Card */
.generator-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle top border glow */
.generator-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-indicator .dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* === BUTTON STYLES === */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-generate {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: none;
}

.btn-generate:active {
    transform: scale(0.98);
}

.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Random Token - subtle outline */
#btn-generate {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

#btn-generate:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Premium Token - primary CTA */
.btn-premium {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: var(--primary) !important;
}

.btn-premium:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1)) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.15), 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Premium Indo - highlighted */
.btn-premium-indo {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(234, 179, 8, 0.04)) !important;
    border-color: rgba(234, 179, 8, 0.2) !important;
    color: var(--gold) !important;
}

.btn-premium-indo:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.08)) !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.12), 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon-random {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.btn-icon-premium {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
}

.btn-icon-indo {
    background: rgba(234, 179, 8, 0.15);
    color: var(--gold);
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.btn-price {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.6;
    letter-spacing: 0.3px;
}

.btn-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-arrow {
    opacity: 0.3;
    transition: transform 0.2s ease;
}

.btn-generate:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 0.6;
}

.badge-recomend {
    font-size: 0.55rem;
    font-weight: 700;
    background: var(--gold);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.loader {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

/* Pulse */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Floating Buttons */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.fab-help, .fab-contact {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.fab-contact {
    background: rgba(0, 136, 204, 0.25);
    border-color: rgba(0, 136, 204, 0.3);
    color: #0088cc;
    text-decoration: none;
}

.fab-help:hover {
    transform: translateY(-3px);
    color: var(--text-main);
    border-color: rgba(255,255,255,0.15);
}

.fab-contact:hover {
    transform: translateY(-3px);
    background: rgba(0, 136, 204, 0.45);
    border-color: rgba(0, 136, 204, 0.6);
    color: #4db8ff;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(40px);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 25px 50px -12px rgba(0,0,0,0.5);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

/* Skeleton */
.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skeleton-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.skeleton-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-label {
    height: 10px; width: 60%;
}

.skeleton-value {
    height: 16px; width: 80%;
}

.skeleton-token {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-block {
    height: 60px;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Live Data */
.account-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.5rem;
    animation: slideUp 0.4s ease;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-group .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-group .value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-all;
}

.highlight-text {
    color: var(--primary) !important;
}

.token-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    animation: slideUp 0.5s ease;
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.token-header .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.btn-copy-small {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-copy-small:hover {
    background: rgba(16, 185, 129, 0.18);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

textarea {
    width: 100%;
    height: 60px;
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    resize: none;
    outline: none;
}

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

/* Responsive */
@media (max-width: 500px) {
    .container { padding: 1rem; }
    .generator-card { padding: 1.25rem; border-radius: 16px; }
    .logo { font-size: 2rem; }
    .logo-icon { width: 30px; height: 30px; font-size: 1rem; }
    .account-details { grid-template-columns: 1fr; }
    .btn-title { font-size: 0.85rem; }
    .btn-icon { width: 28px; height: 28px; }
    .modal-content { padding: 1.5rem; }
}

/* ============================================ */
/* CUSTOM CURSOR (placed last to override all) */
/* ============================================ */
html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='26' viewBox='0 0 20 26'%3E%3Cpath d='M1 1L17 17L10.5 18L8.5 24L6 21L3 24L4.5 17Z' fill='%2310b981' opacity='0.9'/%3E%3C/svg%3E") 1 1, auto;
}

a, button, .btn-generate, .btn-copy-small, .fab-help, .fab-contact,
select, summary, label[for], [role="button"], input[type="submit"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='%2310b981' opacity='0.85'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%23ffffff' opacity='0.9'/%3E%3C/svg%3E") 10 10, pointer !important;
}

input, textarea, [contenteditable="true"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='20' viewBox='0 0 4 20'%3E%3Crect x='0.5' y='0' width='3' height='20' rx='1.5' fill='%2310b981' opacity='0.9'/%3E%3C/svg%3E") 2 10, text !important;
}
