body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.glass-card-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
}

.glass-button {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.glass-button-primary {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
    transition: all 0.2s ease;
}

.glass-button-primary:hover {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.3), rgba(250, 204, 21, 0.15));
}

.glass-input {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    outline: none;
    transition: border-color 0.2s ease;
}

.glass-input:focus {
    border-color: rgba(250, 204, 21, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#app-content {
    scroll-behavior: smooth;
}

.nav-item.active {
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

#modal-container {
    transition: opacity 0.2s ease;
}

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

#modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #facc15;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

#wallet-address {
    user-select: all;
}

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

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

#app-content > div {
    animation: fadeIn 0.25s ease-out;
}

.animate-fade-in {
    animation: fadeInUp 0.25s ease-out;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(250, 204, 21, 0.1); }
    50% { box-shadow: 0 0 40px rgba(250, 204, 21, 0.25); }
}

.glow-ring {
    animation: pulse-glow 2s ease-in-out infinite;
}

.success-chip {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.coin-3d {
    perspective: 400px;
}

.coin-3d .coin-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: coinSpin 10s linear infinite;
}

.coin-3d .coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fbbf24, #b45309);
    border: 2px solid rgba(250, 204, 21, 0.5);
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.15), inset 0 -2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-3d .coin-face.coin-front {
    z-index: 2;
}

.coin-3d .coin-face.coin-back {
    transform: rotateY(180deg);
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

.shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
