 :root {
     --bg-color: #53280f;
     --panel-bg: rgba(30, 41, 59, 0.7);
     --primary: #3b82f6;
     --primary-hover: #2563eb;
     --text-main: #f8fafc;
     --text-muted: #94a3b8;
     --success: #10b981;
     --danger: #ef4444;
     --gradient-start: #3b82f6;
     --gradient-end: #8b5cf6;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 body {
     font-family: 'Inter', sans-serif;
     background-color: var(--bg-color);
     background-image:
         radial-gradient(circle at top right, rgba(83, 40, 15, 0.15), transparent 40%),
         radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.15), transparent 40%);
     color: var(--text-main);
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 header {
     width: 100%;
     padding: 20px;
     text-align: center;
     background: rgba(15, 23, 42, 0.5);
     backdrop-filter: blur(10px);
     border-bottom: 1px solid rgba(255, 255, 255, 0.05);
     position: sticky;
     top: 0;
     z-index: 10;
 }

 header h1 {
     font-family: 'Outfit', sans-serif;
     font-weight: 700;
     background: linear-gradient(to right, var(--text-main), var(--text-muted));
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
 }

 .container {
     width: 100%;
     max-width: 600px;
     padding: 30px 20px;
     flex: 1;
     display: flex;
     flex-direction: column;
 }

 /* Glassmorphism Card */
 .glass-card {
     background: rgba(30, 41, 59, 0.6);
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 24px;
     padding: 30px;
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
     margin-bottom: 25px;
     animation: slideUp 0.5s ease;
 }

 @keyframes slideUp {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Auth Modes */
 .auth-toggle {
     display: flex;
     background: rgba(15, 23, 42, 0.8);
     border-radius: 12px;
     margin-bottom: 25px;
     padding: 5px;
 }

 .auth-toggle button {
     flex: 1;
     padding: 12px;
     border: none;
     background: transparent;
     color: var(--text-muted);
     border-radius: 8px;
     cursor: pointer;
     font-weight: 600;
     transition: all 0.3s;
 }

 .auth-toggle button.active {
     background: rgba(255, 255, 255, 0.1);
     color: var(--text-main);
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
 }

 .input-group {
     margin-bottom: 20px;
 }

 .input-group label {
     display: block;
     margin-bottom: 8px;
     font-size: 20px;
     color: var(--text-muted);
 }

 .input-group input {
     width: 100%;
     padding: 14px 16px;
     background: rgba(15, 23, 42, 0.5);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 12px;
     color: white;
     font-size: 16px;
     outline: none;
     transition: all 0.3s;
 }

 .input-group input:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
 }

 .btn-primary {
     width: 100%;
     padding: 16px;
     border: none;
     border-radius: 12px;
     background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
     color: white;
     font-size: 20px;
     font-weight: 600;
     cursor: pointer;
     transition: transform 0.2s, box-shadow 0.2s;
     box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
 }

 .btn-primary:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
 }

 .btn-primary:active {
     transform: translateY(0);
 }

 /* Dashboard Styles */
 .wallet-card {
     background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
     border: 1px solid rgba(139, 92, 246, 0.3);
     text-align: center;
 }

 .wallet-title {
     font-size: 14px;
     text-transform: uppercase;
     letter-spacing: 1px;
     color: var(--text-muted);
     margin-bottom: 10px;
 }

 .wallet-amount {
     font-size: 48px;
     font-family: 'Outfit', sans-serif;
     font-weight: 700;
     background: linear-gradient(to right, #60a5fa, #c084fc);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     margin-bottom: 5px;
 }

 .wallet-unit {
     font-size: 16px;
     color: var(--text-muted);
 }

 .buy-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 15px;
     margin-top: 20px;
 }

 .buy-grid2 {
     display: grid;
     grid-template-columns: repeat(5, 1fr);
     gap: 15px;
     margin-top: 20px;
 }

 .buy-btn {
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
     padding: 15px 0;
     border-radius: 12px;
     color: white;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s;
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .buy-btn span {
     font-size: 20px;
     margin-bottom: 5px;
 }

 .buy-btn small {
     font-size: 12px;
     color: var(--text-muted);
 }

 .buy-btn:hover {
     background: rgba(255, 255, 255, 0.1);
     transform: translateY(-2px);
     border-color: var(--primary);
 }

 .machine-info {
     display: flex;
     align-items: center;
     gap: 15px;
     padding: 15px;
     background: rgba(0, 0, 0, 0.2);
     border-radius: 12px;
     margin-bottom: 20px;
 }

 .machine-icon {
     font-size: 24px;
     background: rgba(59, 130, 246, 0.2);
     width: 48px;
     height: 48px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .logout-btn {
     background: transparent;
     border: 1px solid rgba(239, 68, 68, 0.4);
     color: var(--danger);
     padding: 10px;
     border-radius: 8px;
     cursor: pointer;
     width: 100%;
     margin-top: 20px;
     transition: all 0.3s;
 }

 .logout-btn:hover {
     background: rgba(239, 68, 68, 0.1);
 }

 /* Toast Notification */
 #toast {
     position: fixed;
     bottom: -100px;
     left: 50%;
     transform: translateX(-50%);
     background: var(--primary);
     color: white;
     padding: 12px 24px;
     border-radius: 99px;
     font-weight: 500;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
     transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
     z-index: 1000;
 }

 #toast.show {
     bottom: 30px;
 }

 #toast.error {
     background: var(--danger);
 }

 #toast.success {
     background: var(--success);
 }

 .hidden {
     display: none !important;
 }