* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #131829;
    --bg-tertiary: #1a1f35;
    --border-color: #2a2f45;
    --text-primary: #e4e6eb;
    --text-secondary: #9ca3af;
    --accent-green: #00d4aa;
    --accent-red: #f6465d;
    --accent-blue: #00a3ff;
    --accent-purple: #8b5cf6;
    --shadow-glow: rgba(0, 212, 170, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* 区块链背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 212, 170, 0.03) 2px, rgba(0, 212, 170, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 92, 246, 0.03) 2px, rgba(139, 92, 246, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.login-box, .main-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 170, 0.1);
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.login-box::before, .main-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.login-box {
    text-align: center;
}

.login-box h2 {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-box h3 {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 400;
}

.main-box .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.main-box .header h2 {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-box .header h2::before {
    content: '⛓';
    font-size: 20px;
    filter: drop-shadow(0 0 5px var(--accent-green));
}

.user-info {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-link {
    color: var(--accent-red);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--accent-red);
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 13px;
}

.logout-link:hover {
    background: var(--accent-red);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(246, 70, 93, 0.3);
}

.content-box {
    margin-top: 20px;
}

.content-box h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-box h3::before {
    content: '🔗';
    font-size: 18px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    background: var(--bg-secondary);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.7;
}

/* 按钮组容器 */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    align-items: center;
}

.button-group .btn {
    flex: 1;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* 单独按钮时的样式 */
.btn:not(.button-group .btn) {
    margin-right: 12px;
    margin-top: 10px;
}

.error-message {
    background: rgba(246, 70, 93, 0.1);
    color: var(--accent-red);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-red);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.error-message::before {
    content: '⚠';
    font-size: 18px;
}

.success-message {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-green);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-green);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.success-message::before {
    content: '✓';
    font-size: 18px;
    font-weight: bold;
}

.quota-info, .contract-info {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.quota-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-green), var(--accent-blue));
    animation: borderPulse 3s ease-in-out infinite;
}

.quota-info::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent-green), transparent);
    opacity: 0.3;
    animation: dataFlow 2s linear infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes dataFlow {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.quota-info label, .contract-info label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quota-display-wrapper {
    position: relative;
}

.quota-amount {
    font-size: 42px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.quota-number {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
    letter-spacing: 1px;
    position: relative;
    animation: numberGlow 2s ease-in-out infinite;
}

.quota-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    opacity: 0.1;
    filter: blur(10px);
    z-index: -1;
}

.quota-unit {
    font-size: 20px;
    color: var(--accent-green);
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quota-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    opacity: 0.8;
    margin-bottom: 8px;
}

.quota-source {
    display: flex;
    align-items: center;
    gap: 6px;
}

.signal-icon {
    animation: signalPulse 2s ease-in-out infinite;
}

.chain-link-icon {
    font-size: 10px;
    opacity: 0.6;
}

.quota-update {
    color: var(--accent-green);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.update-dot {
    width: 4px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: updatePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px var(--accent-green);
}

.quota-verified-icon {
    font-size: 16px;
    color: var(--accent-green);
    margin-left: 8px;
    animation: verifiedPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px var(--accent-green));
}

.quota-chain-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    padding: 8px 12px;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 170, 0.1);
    margin-top: 8px;
}

@keyframes signalPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes updatePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes verifiedPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes numberGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* 链上验证标识 */
.chain-verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 12px;
    font-size: 11px;
}

.chain-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: chainPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-green);
}

@keyframes chainPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.contract-address {
    font-family: 'Courier New', monospace;
    color: var(--accent-green);
    word-break: break-all;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    display: inline-block;
    position: relative;
}

.contract-address::before {
    content: '🔐';
    margin-right: 8px;
}

.transfer-info {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    display: grid;
    gap: 20px;
}

.info-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.info-item:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.1);
}

.info-item label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item span {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    padding: 8px 0;
}

.waiting-message {
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

/* 区块链加载动画 */
.blockchain-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.block {
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 2px;
    animation: blockPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-green);
}

.block:nth-child(1) { animation-delay: 0s; }
.block:nth-child(2) { animation-delay: 0.2s; }
.block:nth-child(3) { animation-delay: 0.4s; }
.block:nth-child(4) { animation-delay: 0.6s; }
.block:nth-child(5) { animation-delay: 0.8s; }

@keyframes blockPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
}

.spinner {
    border: 3px solid rgba(0, 212, 170, 0.2);
    border-top: 3px solid var(--accent-green);
    border-right: 3px solid var(--accent-blue);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.waiting-message p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 15px;
}

.time-remaining {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 32px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(0, 212, 170, 0.8);
    margin-top: 20px;
    display: inline-block;
    padding: 16px 32px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 170, 0.4);
    min-width: 100px;
    transition: all 0.3s ease;
    animation: pulse-glow 2s ease-in-out infinite;
}

.time-remaining:empty::before {
    content: '0s';
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
        border-color: rgba(0, 212, 170, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.6);
        border-color: rgba(0, 212, 170, 0.6);
    }
}

/* 原有的button-group样式已移到上面，这里保留用于其他页面 */
.button-group-center {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 链上数据流动效果 */
.data-flow {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    animation: flow 2s linear infinite;
    opacity: 0.3;
}

@keyframes flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 交易所风格的数据卡片 */
.data-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.data-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.1);
}

/* 网络统计项 */
.network-stat-item {
    padding: 8px;
    background: rgba(0, 212, 170, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 170, 0.1);
    transition: all 0.3s;
}

.network-stat-item:hover {
    background: rgba(0, 212, 170, 0.05);
    border-color: rgba(0, 212, 170, 0.2);
}

/* 节点指示器 */
.node-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    margin-right: 6px;
    animation: nodePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-green);
}

@keyframes nodePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* 链上事件日志 */
.chain-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chain-event-item {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
    transition: all 0.3s;
    font-size: 12px;
}

.chain-event-item:hover {
    border-left-color: var(--accent-green);
    background: rgba(0, 212, 170, 0.05);
}

.event-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-transfer {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.event-approval {
    background: rgba(0, 163, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 163, 255, 0.3);
}

.event-contractcall {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.event-blockmined {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.event-validatorchange {
    background: rgba(246, 70, 93, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(246, 70, 93, 0.3);
}

.data-card-title {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.data-card-value {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* 链上状态指示器 */
.chain-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-green);
}

.chain-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent-green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 交易对显示样式 */
.trading-pair {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.trading-pair::before {
    content: '💱';
    font-size: 16px;
}

/* 区块高度显示 */
.block-height {
    font-family: 'Courier New', monospace;
    color: var(--accent-green);
    font-size: 12px;
    opacity: 0.7;
}

/* 链上数据流动背景 */
.chain-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.chain-bg::before,
.chain-bg::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1), transparent);
    animation: float 20s infinite;
}

.chain-bg::before {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.chain-bg::after {
    bottom: -100px;
    right: -100px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, 50px) scale(1.2);
        opacity: 0.5;
    }
}

/* 交易所风格的标签 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-danger {
    background: rgba(246, 70, 93, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(246, 70, 93, 0.3);
}

/* 订单表格样式 */
.orders-table {
    margin-top: 24px;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.orders-list {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-tertiary);
}

.orders-list thead {
    background: var(--bg-secondary);
}

.orders-list th {
    padding: 16px;
    text-align: left;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.orders-list td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.orders-list tbody tr {
    transition: all 0.3s;
}

.orders-list tbody tr:hover {
    background: var(--bg-secondary);
}

.orders-list tbody tr:last-child td {
    border-bottom: none;
}

/* 订单操作按钮组 */
.order-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    position: relative;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn-view {
    border-color: var(--border-color);
    background: var(--bg-tertiary);
}

.action-btn-view:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.action-btn-revoke {
    border-color: var(--accent-blue);
    background: rgba(0, 163, 255, 0.1);
    color: var(--accent-blue);
}

.action-btn-revoke:hover {
    background: rgba(0, 163, 255, 0.2);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.3);
}

.action-btn-delete {
    border-color: var(--accent-red);
    background: rgba(246, 70, 93, 0.1);
    color: var(--accent-red);
}

.action-btn-delete:hover {
    background: rgba(246, 70, 93, 0.2);
    border-color: var(--accent-red);
    box-shadow: 0 4px 12px rgba(246, 70, 93, 0.3);
}

.badge-secondary {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

@media (max-width: 600px) {
    .login-box, .main-box {
        padding: 24px;
    }
    
    .main-box .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-info {
        margin-top: 0;
        flex-wrap: wrap;
    }
    
    .quota-amount {
        font-size: 24px;
    }
    
    .chain-status {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .orders-list {
        font-size: 12px;
    }
    
    .orders-list th,
    .orders-list td {
        padding: 10px 8px;
    }
    
    .table-container {
        overflow-x: scroll;
    }
    
    .orders-list td:last-child {
        min-width: 140px;
    }
    
    .order-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

