/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.community {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    opacity: 0.9;
}

.logo i {
    font-size: 24px;
    animation: flame 2s ease-in-out infinite alternate;
}

@keyframes flame {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-info {
    text-align: right;
    font-size: 14px;
}

.bot-label {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 500;
}

.bot-address {
    font-weight: 500;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.bot-balance {
    font-size: 12px;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    padding: 20px;
    padding-bottom: 40px;
}

/* Status Card */
.status-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-item {
    text-align: center;
}

.status-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.status-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
}

/* Donation Section */
.donation-section {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.donation-header {
    text-align: center;
    margin-bottom: 15px;
}

.donation-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.donation-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.donation-address {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-label {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
}

.address-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
}

.copy-btn {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Action Sections */
.action-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
}

.section-header {
    margin-bottom: 25px;
    text-align: center;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header p {
    color: #6c757d;
    font-size: 14px;
}

/* Fixed Amount Display */
.fixed-amount-display {
    margin-bottom: 25px;
}

.amount-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 2px solid #667eea;
    position: relative;
    overflow: hidden;
}

.amount-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.burn-card {
    border-color: #ff6b6b;
}

.burn-card::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.amount-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    font-size: 32px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.burn-card .amount-value {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amount-desc {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}



/* Buttons */
.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    min-height: 52px;
}

.btn-large {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    font-size: 14px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Transaction History */
.history-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid transparent;
}

.transaction-item.buy {
    border-left-color: #667eea;
}

.transaction-item.burn {
    border-left-color: #ff6b6b;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-type {
    font-weight: 600;
    font-size: 14px;
}

.transaction-amount {
    font-size: 12px;
    color: #6c757d;
}

.transaction-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.transaction-status.success {
    background: #d4edda;
    color: #155724;
}

.transaction-status.pending {
    background: #fff3cd;
    color: #856404;
}

.transaction-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
    margin: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    background: linear-gradient(135deg, #00b894, #00a085);
}

.toast.error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.toast.info {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .header {
        padding: 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .action-section {
        padding: 20px;
    }
    
    .settings-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .status-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 360px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .input-buttons {
        flex-wrap: wrap;
    }
    
    .preset-btn {
        flex: 1;
        min-width: 60px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2d3436, #636e72);
    }
    
    .container {
        background: #2d3436;
        color: #ddd;
    }
    
    .action-section, .history-section {
        background: #363636;
        border-color: #4a4a4a;
    }
    
    .status-card {
        background: linear-gradient(135deg, #363636, #4a4a4a);
    }
    
    .status-value {
        color: #ddd;
    }
    
    .input-wrapper input {
        background: #4a4a4a;
        border-color: #636e72;
        color: #ddd;
    }
    
    .input-wrapper input:focus {
        background: #363636;
    }
    
    .preset-btn {
        background: #4a4a4a;
        border-color: #636e72;
        color: #ddd;
    }
    
    .transaction-item {
        background: #4a4a4a;
    }
    
    .loading-content {
        background: #363636;
        color: #ddd;
    }
}
