/* Futuristic Tech Theme with Cyan Accents for Uranus.ag X Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&display=swap');

:root {
    --dark-bg: #08101e;
    --dark-surface: #0e1627;
    --dark-card: #121c30;
    --cyan-primary: #00e5ff;
    --cyan-secondary: #00b8d4;
    --cyan-glow: rgba(0, 229, 255, 0.4);
    --blue-accent: #0a84ff;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --error-red: #ff4d4d;
    --success-green: #4caf50;
    --neutral-gray: #6a7ea8;
    --gradient-dark: linear-gradient(135deg, #08101e, #121c30);
    --tech-border: 1px solid rgba(0, 229, 255, 0.2);
    --tech-shadow: 0 4px 20px rgba(0, 229, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', 'Segoe UI', 'Roboto', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 84, 147, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 191, 255, 0.2) 0%, transparent 33%),
        linear-gradient(135deg, #050b16 0%, #0a1428 50%, #101a2b 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Add cosmic nebula effect for space theme */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(76, 0, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 191, 0.03) 0%, transparent 20%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a84ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
    z-index: -1;
    
    /* Add subtle twinkling stars */
    box-shadow: 
        inset 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 3px rgba(255, 255, 255, 0.1),
        inset 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Add animated gradient overlay */
body::after {
    content: "";
    position: fixed;
    top: -150%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        217deg,
        rgba(0, 229, 255, 0.05) 0%,
        rgba(0, 229, 255, 0) 70%
    ), linear-gradient(
        127deg,
        rgba(10, 132, 255, 0.05) 0%,
        rgba(10, 132, 255, 0) 70%
    ), linear-gradient(
        336deg,
        rgba(0, 84, 147, 0.05) 0%,
        rgba(0, 84, 147, 0) 70%
    );
    z-index: -2;
    pointer-events: none;
    animation: gradientMovement 30s ease infinite;
    opacity: 0.8;
}

@keyframes gradientMovement {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(1deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Add tech grid lines to the background */
.container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: -3;
    pointer-events: none;
    opacity: 0.3;
}

/* Add top accent glow */
.container::after {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 229, 255, 0.2), 
        rgba(0, 229, 255, 0.5), 
        rgba(0, 229, 255, 0.2), 
        transparent
    );
    z-index: 10;
    pointer-events: none;
    filter: blur(2px);
}

/* Login Section */
#login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background-color: var(--dark-surface);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--tech-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: var(--tech-border);
    backdrop-filter: blur(10px);
}

.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
}

.login-box::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--cyan-primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.login-box header {
    margin-bottom: 30px;
    position: relative;
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.login-box h2 {
    color: var(--cyan-primary);
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.login-box h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-secondary), transparent);
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan-primary);
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid var(--neutral-gray);
    background-color: rgba(18, 28, 48, 0.8);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.input-group input:focus {
    border-color: var(--cyan-primary);
    box-shadow: 0 0 0 2px var(--cyan-glow);
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-primary), var(--blue-accent));
    color: var(--dark-bg);
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transform: rotate(30deg);
    transition: all 0.8s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: translateY(-2px);
}

.btn-primary:hover::after {
    transform: translateX(100%) rotate(30deg);
}

.login-alt {
    color: var(--text-secondary);
    margin: 25px 0;
    position: relative;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social {
    background-color: transparent;
    border: 1px solid var(--neutral-gray);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-social::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--cyan-primary) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
}

.btn-social:hover {
    border-color: var(--cyan-primary);
    transform: translateY(-3px);
}

.btn-social:hover::before {
    opacity: 0.2;
}

.btn-social img {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* Dashboard Section */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: var(--tech-border);
    position: relative;
}

.dashboard-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--cyan-primary), 
        transparent
    );
    opacity: 0.5;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#wallet-display {
    background-color: rgba(18, 28, 48, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Exo 2', monospace;
    color: var(--cyan-primary);
    font-weight: 600;
    border: var(--tech-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#wallet-display::after {
    content: '\f0c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#wallet-display:hover::after {
    opacity: 1;
}

#wallet-display.copied {
    background-color: rgba(0, 229, 255, 0.2);
    color: white;
    box-shadow: 0 0 20px var(--cyan-glow);
}

#wallet-display:hover {
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: translateY(-1px);
}

#wallet-display::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, 
        transparent, 
        rgba(0, 229, 255, 0.2), 
        transparent
    );
    animation: wallet-border-glow 3s linear infinite;
}

@keyframes wallet-border-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-secondary {
    background-color: rgba(18, 28, 48, 0.8);
    color: var(--cyan-primary);
    border: 1px solid var(--cyan-primary);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary i {
    font-size: 14px;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 229, 255, 0.1),
        transparent
    );
    left: -100%;
    top: 0;
    transition: all 0.6s ease;
}

.btn-secondary:hover {
    background-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--neutral-gray);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--error-red);
    color: var(--error-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.2);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-box {
    background-color: rgba(14, 22, 39, 0.8);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: var(--tech-shadow);
    border: var(--tech-border);
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stat-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cyan-primary), transparent);
}

.stat-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.15);
}

.stat-box h3 {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-box p {
    font-size: 28px;
    font-weight: 700;
    color: var(--cyan-primary);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    font-family: 'Exo 2', sans-serif;
}

/* Positions Table */
.positions-table-container {
    background-color: var(--dark-surface);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.positions-table-container h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.positions-table {
    width: 100%;
    border-collapse: collapse;
}

.positions-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--neutral-gray);
    color: var(--text-secondary);
    font-weight: 500;
}

.positions-table td {
    padding: 12px;
    border-bottom: 1px solid var(--dark-card);
    color: var(--text-primary);
}

.positions-table tr:last-child td {
    border-bottom: none;
}

.positions-table tr:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.empty-state td {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--dark-surface);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 30px var(--cyan-glow);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--cyan-primary);
}

.modal-content h3 {
    color: var(--cyan-primary);
    margin-bottom: 20px;
}

.warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.warning i {
    color: var(--error-red);
    font-size: 20px;
}

.key-display {
    background-color: var(--dark-card);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
}

#private-key-display {
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 10px;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid var(--neutral-gray);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    opacity: 0.7;
    transition: all 0.3s ease;
    background-color: var(--dark-card);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 229, 255, 0.3);
}

.social-links img {
    width: 20px;
    height: 20px;
}

/* Notification for copy actions */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--dark-surface), var(--dark-card));
    color: var(--cyan-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 0 20px var(--cyan-glow);
    border: var(--tech-border);
    z-index: 1000;
    animation: slide-in 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-notification::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-green);
}

.copy-notification.fade-out {
    animation: fade-out 0.3s ease forwards;
}

@keyframes slide-in {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-out {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.clickable {
    cursor: pointer;
    user-select: none;
}

/* Positive and negative values styling */
.positive {
    color: var(--success-green) !important;
}

.negative {
    color: var(--error-red) !important;
}

/* Position styles */
.position-long {
    color: var(--success-green);
    font-weight: 600;
}

.position-short {
    color: var(--error-red);
    font-weight: 600;
}

.btn-action {
    background-color: #1DA1F2; /* Twitter blue */
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    background-color: #0c85d0; /* Darker Twitter blue on hover */
    box-shadow: 0 0 8px rgba(29, 161, 242, 0.5);
}

.btn-action i {
    margin-right: 4px;
}

/* Fix for display class */
.display {
    display: block !important;
}

/* PNL unified display */
.pnl-cell {
    padding: 12px 8px !important;
}

.pnl-value {
    font-weight: 600;
    font-size: 14px;
}

.pnl-percent {
    font-size: 12px;
    opacity: 0.8;
}

/* How It Works Panel */
.how-it-works-container {
    background-color: var(--dark-surface);
    border-radius: 12px;
    margin-bottom: 30px;
    border: var(--tech-border);
    box-shadow: var(--tech-shadow);
    overflow: hidden;
    position: relative;
}

.how-it-works-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230a84ff' fill-opacity='0.05'%3E%3Cpath d='M0 0h20L0 20z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.how-it-works-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.how-it-works-header h2 {
    color: var(--cyan-primary);
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.how-it-works-header h2 i {
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.how-it-works-header:hover {
    background-color: rgba(0, 229, 255, 0.05);
}

.how-it-works-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.how-it-works-content.expanded {
    padding: 0 20px 30px;
    max-height: 1000px;
}

.tech-intro {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.command-card {
    background-color: rgba(14, 22, 39, 0.6);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: var(--tech-border);
    position: relative;
    overflow: hidden;
}

/* Add a scroll indicator element for command examples that overflow */
.command-card:has(.command-example[data-scrollable="true"]) .command-example::before {
    content: "";
    position: absolute;
    right: 30px;
    top: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(0, 229, 255, 0.1));
    pointer-events: none;
    z-index: 1;
}

.command-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-primary), transparent);
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.1);
}

.command-card h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.command-card h4 i {
    color: var(--cyan-primary);
}

.command-example {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    cursor: pointer;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-primary) rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        height: 4px;
    }
    
    /* Track */
    &::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
    
    /* Handle */
    &::-webkit-scrollbar-thumb {
        background: var(--cyan-primary);
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    /* Handle on hover */
    &::-webkit-scrollbar-thumb:hover {
        background: var(--blue-accent);
    }
    
    /* Scroll indicator */
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.command-example::after {
    content: "\f0c5";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.command-example:hover::after {
    opacity: 1;
    color: var(--cyan-primary);
}

.command-example.copied::after {
    content: "\f00c";
    color: var(--success-green);
}

.command-example code {
    font-family: 'Consolas', monospace;
    color: var(--cyan-secondary);
    font-size: 14px;
    padding-right: 15px; /* Space for copy icon */
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Add a subtle animation when scrolling the code */
.command-example:active code {
    transform: scale(0.99);
}

.command-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

::selection {
    background-color: rgba(0, 229, 255, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .user-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .positions-table {
        display: block;
        overflow-x: auto;
    }
    
    .stat-box p {
        font-size: 20px;
    }
    
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .how-it-works-content.expanded {
        max-height: 2000px;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        padding: 20px;
    }
}

/* Add twinkling stars effect */
@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.8; }
}

.container::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1px 1px at 20% 50%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 30%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1px 1px at 65% 25%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1px 1px at 70% 90%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 65%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    animation: twinkle 8s ease-in-out infinite alternate;
}
