/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #dfe0e1;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
}

/* Main Header */
.main-header {
    background: blur(10px);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: black;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.tagline {
    font-size: 1rem;
    font-weight: 300;
    color: black;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-btn {
    background: transparent;
    border: none;
    color: black;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.wallet-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.profile-btn {
    background: transparent;
    border: none;
    color: black;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Main content */
.main {
    max-width: 70vw;
    flex: 1;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
}

/* Messages section */
.messages-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.messages-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.section-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Messages header */
.messages-header {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
    gap: 15px;
}

.send-message-btn {
    background: black;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: .4rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    margin-right: auto;
}

.message-body{
    min-height: 20rem;
    padding: .5rem;
    margin-top: .2rem;
    border-radius: .11111111111111111111111111111111rem;
}

.send-design {
    color: black;
    font-weight: 1000;
    font-size: 2.8vh;
}

.back-design {
    color: black;
    font-weight: 1000;
    font-size: 2.8vh;
}

.send-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.how-it-works-btn {
    background: transparent;
    border: none;
    color: black;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.how-it-works-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Messages controls */
.messages-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.9);
}

.search-container:focus-within {
    border-color: #667eea;
}

.search-input {
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1rem;
    min-width: 250px;
    outline: none;
}

.clear-search-btn {
    background: transparent;
    color: #666;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.clear-search-btn:hover {
    background: #e2e8f0;
    color: #333;
}

.search-btn {
    background: black;
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-btn:hover {
    background: #5a67d8;
}

.view-all-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: none;
}

.view-all-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10000;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 0 30px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

.modal-body {
    padding: 0 30px 30px 30px;
}

/* How It Works Modal Styles */
.how-it-works-content {
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
    border-radius: .5rem;
    padding: .5rem;
    border: 3px solid black;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.step-content p {
    margin: 0 0 15px 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.app-store-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img {
    height: 56px;
    margin-top: -.555rem;
}

.sol-info {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.sol-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.sol-icon {
    font-size: 1.2rem;
    color: #0ea5e9;
}

.sol-text {
    font-weight: 600;
    color: #0c4a6e;
    font-size: 1rem;
}

.sol-note {
    margin: 0;
    color: #0369a1;
    font-size: 0.9rem;
    font-style: italic;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-box h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
}

.info-box p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
}

.cancel-btn {
    flex: 1;
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    min-width: 100px;
    max-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.cancel-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.submit-btn {
    flex: 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.submit-btn.loading {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    animation: pulse 2s infinite;
    cursor: wait;
    position: relative;
    overflow: hidden;
    flex: none !important;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
}

.submit-btn.loading:hover {
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

/* Tip slider styles */
.tip-checkbox-container {
    margin-bottom: 15px;
}

.tip-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    user-select: none;
}

.tip-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    display:flex;
}

.tip-checkbox:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tip-checkbox:checked ~ .checkmark:after {
    display: block;
}

.tip-slider-container {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.tip-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #4a5568;
}

.tip-usd {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.tip-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

.tip-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.tip-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tip-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.tip-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

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

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.load-more-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.load-more-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Messages container */
.messages-container {
    display: flex;
    max-height: none;
    overflow-y: visible;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.message-card {
    background: #f8fafc;
    border: 5px solid black;
    padding: .5rem;
    margin-bottom: 5rem;
    transition: all 0.3s ease;
    max-width: 30rem;
    width: 30rem;
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    align-items: center;
}

.header-design-1-inner {
    background: black;
    font-size: 3.5vh;
    font-weight: 1000;
    color: white;
    font-family: auto;
    margin-right: .555rem;
    padding-top: 0px;
    padding-bottom: 0px;
    height: 3.6vh;
    display: flex;
    align-items: center;
    letter-spacing: -.0333rem;
}

.recipient-name {
    font-weight: 500;
    color: black;
    font-size: 2.5vh;
    letter-spacing: .111rem;
}

.message-timestamp {
    color: rgba(0, 0, 0, 0.333);
    font-size: 0.9rem;
}

.message-content {
    color: black;
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 4.5vh;
    text-align: left;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
    margin-top: -.3rem;
    margin-bottom: -.6rem;
}

.from-address {
    font-family: 'Courier New', monospace;
    background: #edf2f7;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.transaction-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.transaction-link:hover {
    text-decoration: underline;
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

.fuzzy {
    filter: blur(0.4px) contrast(0.95) saturate(0.95)
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

.loading {
    text-align: center;
    color: #718096;
    font-style: italic;
}

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

.empty-state h3 {
    margin-bottom: 10px;
    color: #4a5568;
}

.send-message-btn2 {
display: none;
background: black;
color: white;
border: none;
padding: 12px 20px;
border-radius: .4rem;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .send-message-btn2 {
        display: flex;
        }

    .send-message-btn {
        display: none;
    }

    .messages-container {
        justify-content: space-around;
        flex-direction: row;
    }
    
    .header-right {
        gap: 15px;
        width: 100%;
    }
    
    .send-message-btn, .how-it-works-btn, .wallet-btn {
        max-width: 300px;
        width: 7rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .messages-header {
        justify-content: center;
        gap: 20px;
    }
    
    .messages-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-input {
        min-width: auto;
        flex: 1;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .app-store-buttons {
        justify-content: center;
    }
    
    .app-store-btn img {
        height: 35px;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .main {
        max-width: 100vw;
        padding: 15px;
    }
    
    .messages-section {
        padding: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .header-right {
        justify-content: space-evenly;
        gap: 12px;
    }
    
    .send-message-btn, .how-it-works-btn, .wallet-btn {
        font-size: 0.9rem;
    }
    
    .messages-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .message-header {
        align-items: flex-start;
    }
    
    .app-store-btn img {
        height: 30px;
    }
    
    .sol-info {
        padding: 12px;
    }
    
    .sol-amount {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-card {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar styling */
.messages-container::-webkit-scrollbar {
    width: 8px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Color Palette Styles */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.color-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.color-item:hover {
    transform: scale(1.1);
    border-color: #333;
}

.color-item.selected {
    border-color: #333;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #333;
}

.color-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.color-item.selected::after {
    opacity: 1;
}

/* Profile Modal Styles */
.profile-content {
    padding: 20px 0;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.profile-section p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.referral-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    background: #f9f9f9;
    cursor: text;
}

.referral-input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Earnings Display Styles */
.earnings-display {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.earnings-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.earnings-amount .sol-icon {
    font-size: 24px;
    color: #007bff;
}

.earnings-amount #totalEarned {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    font-family: 'Courier New', monospace;
}

.earnings-note {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.payout-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 15px;
}

.payout-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}

.payout-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.payout-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.payout-info p {
    margin: 5px 0;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

.payout-info p:first-child {
    font-weight: 600;
}

/* Debug Panel Styles */
#debugPanel {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 300px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 10px;
    border-radius: 5px;
    z-index: 10000;
    overflow-y: auto;
    border: 1px solid #00ff00;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
}

#debugPanel button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
}

#debugPanel button:hover {
    background: #cc0000;
}

#debugContent {
    max-height: 300px;
    overflow-y: auto;
}

#debugContent div {
    margin: 2px 0;
    word-wrap: break-word;
}

/* Error State Styles */
.error-state {
    text-align: center;
    padding: 40px 20px;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    margin: 20px;
}

.error-state h3 {
    color: #c53030;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.error-state p {
    color: #742a2a;
    margin-bottom: 20px;
    line-height: 1.5;
}

.error-state button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-state button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Success State Styles */
.success-state {
    text-align: center;
    padding: 40px 20px;
    background: #f0fff4;
    border: 2px solid #9ae6b4;
    border-radius: 12px;
    margin: 20px;
}

.success-state h3 {
    color: #22543d;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Loading State Styles */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin: 20px;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.empty-state p {
    color: #6c757d;
    margin: 0;
}

/* Mobile-specific debug panel adjustments */
@media (max-width: 768px) {
    #debugPanel {
        width: 280px;
        max-height: 300px;
        font-size: 10px;
        padding: 8px;
    }
    
    #debugContent {
        max-height: 200px;
    }
    
    .error-state,
    .success-state,
    .empty-state {
        margin: 10px;
        padding: 30px 15px;
    }
} 