* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #000000;
    line-height: 1.8;
    font-size: 0.75rem;
    letter-spacing: 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 
                 -1px -1px 2px rgba(255, 255, 255, 0.9),
                 1px -1px 2px rgba(255, 255, 255, 0.9),
                 -1px 1px 2px rgba(255, 255, 255, 0.9);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Header */
.header {
    border-bottom: 2px solid #000000;
    padding-bottom: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 0.65rem;
    color: #333333;
    margin-bottom: 20px;
}

.wallet-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* Remove text shadow from Web3Modal button for clarity */
w3m-button {
    text-shadow: none !important;
}

w3m-button * {
    text-shadow: none !important;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border: 1px solid #000000;
}

/* Navigation */
.nav {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border: 2px solid #000000;
}

.nav-btn {
    flex: 1;
    padding: 15px;
    background-color: #ffffff;
    border: none;
    border-right: 2px solid #000000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.nav-btn:last-child {
    border-right: none;
}

.nav-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.nav-btn.active {
    background-color: #000000;
    color: #ffffff;
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

.view h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000000;
}

/* Forms */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form-inline {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: left;
}

.form-inline .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-inline button {
    flex-shrink: 0;
    margin-top: 35px;
}

.form-group {
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #000000;
    background-color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #f9f9f9;
}

.form-group textarea {
    resize: vertical;
}

.form-help {
    font-size: 0.8rem;
    color: #555555;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.4;
    font-style: italic;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-warning {
    padding: 12px 30px;
    border: 2px solid #000000;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-danger {
    background-color: #ffffff;
    color: #cc0000;
    border-color: #cc0000;
}

.btn-danger:hover {
    background-color: #cc0000;
    color: #ffffff;
}

.btn-warning {
    background-color: #ffffff;
    color: #ff6600;
    border-color: #ff6600;
}

.btn-warning:hover {
    background-color: #ff6600;
    color: #ffffff;
}

/* Result Box */
.result-box {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    border: 2px solid #000000;
    background-color: #f9f9f9;
}

.result-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #cccccc;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.result-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.instruction-box {
    margin-top: 25px;
    padding: 20px;
    border: 2px solid #000000;
    background-color: #ffffff;
}

.instruction-box p {
    font-size: 1rem;
}

/* Details Box */
.details-box {
    max-width: 900px;
    margin: 0 auto;
}

.details-box h3,
.details-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.details-box h4 {
    font-size: 1.1rem;
    margin-top: 30px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    border: 2px solid #000000;
    background-color: #f9f9f9;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.detail-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Approval Section */
.approval-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #000000;
}

.approval-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.approval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
}

.approval-status {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Action Section */
.action-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-section button {
    flex: 1;
    min-width: 200px;
}

/* Modal */
.form-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;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border: 3px solid #000000;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.button-group button {
    flex: 1;
}

/* Info Box */
.info-box {
    padding: 30px;
    border: 2px solid #000000;
    background-color: #f9f9f9;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #cccccc;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.info-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.info-section {
    margin-bottom: 40px;
}

.info-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000000;
}

.info-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333333;
}

.info-subheading {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #000000;
}

.instruction-list,
.feature-list {
    padding-left: 25px;
}

.instruction-list li,
.feature-list li {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.instruction-list li strong,
.feature-list li strong {
    font-weight: 700;
    color: #000000;
}

/* Status Message */
.status-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

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

.status-message.success {
    background-color: #000000;
    color: #ffffff;
}

.status-message.error {
    background-color: #cc0000;
    color: #ffffff;
    border-color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .nav {
        flex-direction: column;
    }

    .nav-btn {
        border-right: none;
        border-bottom: 2px solid #000000;
    }

    .nav-btn:last-child {
        border-bottom: none;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .approval-grid {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 0.65rem;
    }

    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 0.9rem;
    }

    .subtitle {
        font-size: 0.5rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-warning {
        font-size: 0.55rem;
        padding: 10px 20px;
    }

    .form-inline {
        flex-direction: column;
    }

    .form-inline button {
        width: 100%;
    }

    .action-section {
        flex-direction: column;
    }

    .action-section button {
        width: 100%;
    }

    .wallet-section {
        flex-direction: column;
    }

    .wallet-address {
        font-size: 0.55rem;
    }

    .status-message {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 20px;
        max-width: 90%;
        text-align: center;
    }

    /* Platform info mobile fixes */
    .info-section {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    .info-description {
        font-size: 0.65rem;
    }

    .info-subheading {
        font-size: 0.7rem;
    }

    .instruction-list,
    .feature-list {
        padding-left: 15px;
    }

    .instruction-list li,
    .feature-list li {
        font-size: 0.6rem;
        margin-bottom: 10px;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

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

    /* Mobile dispute form adjustments */
    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }

    .modal-content h3 {
        font-size: 0.7rem;
    }

    .form-group label {
        font-size: 0.55rem;
    }

    .form-group textarea,
    .form-group input[type="file"] {
        font-size: 0.6rem;
    }

    .form-help {
        font-size: 0.5rem;
    }
}

/* File Upload Styles */
input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 0.5rem 1rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    cursor: pointer;
    margin-right: 1rem;
}

input[type="file"]::file-selector-button:hover {
    background: #333;
}

.file-preview {
    margin-top: 0.5rem;
}

.file-list {
    background: #f9f9f9;
    border: 2px solid #000;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.file-item {
    color: #000;
    font-size: 0.6rem;
    padding: 0.25rem 0;
    font-family: inherit;
}

/* Evidence Display */
.evidence-section {
    background: #f9f9f9;
    border: 2px solid #000;
    padding: 1rem;
    margin: 1rem 0;
}

.evidence-section h4 {
    color: #000;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.evidence-text {
    color: #000;
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
}

.evidence-files,
.evidence-links {
    margin-top: 0.5rem;
}

.evidence-files a,
.evidence-links a {
    color: #0066cc;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.65rem;
    text-decoration: none;
}

.evidence-files a:hover,
.evidence-links a:hover {
    text-decoration: underline;
}

/* ===== PLATFORM WALLET WIDGET ===== */
#platformWalletWidget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background: white;
    border: 3px solid #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    font-family: 'Space Mono', monospace;
}

.pw-header {
    background: #000;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    gap: 10px;
}

.pw-header:hover {
    background: #333;
}

.pw-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.pw-title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-shadow: none;
}

.pw-header-balance {
    font-size: 11px;
    text-shadow: none;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pw-toggle {
    font-size: 12px;
    text-shadow: none;
    flex-shrink: 0;
}

.pw-content {
    padding: 15px;
    border-top: 2px solid #000;
}

.pw-address,
.pw-balance {
    margin-bottom: 12px;
    font-size: 12px;
    color: #000;
    word-break: break-all;
    text-shadow: none;
}

.pw-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    padding: 2px 5px;
}

.pw-copy-btn:hover {
    background: #f0f0f0;
    border-radius: 3px;
}

.pw-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.pw-btn {
    padding: 10px;
    border: 2px solid #000;
    background: white;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.2s;
    font-family: 'Space Mono', monospace;
    text-shadow: none;
}

.pw-btn:hover:not(:disabled) {
    background: #000;
    color: white;
}

.pw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pw-btn-withdraw {
    background: #00aa00;
    color: white;
    border-color: #00aa00;
}

.pw-btn-withdraw:hover:not(:disabled) {
    background: #008800;
    border-color: #008800;
}

.pw-btn-seed {
    background: #cc0000;
    color: white;
    border-color: #cc0000;
}

.pw-btn-seed:hover:not(:disabled) {
    background: #aa0000;
    border-color: #aa0000;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
    
    #platformWalletWidget {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }
    
    .pw-header {
        padding: 12px 15px !important;
        border-radius: 0 !important;
    }
    
    .pw-title {
        font-size: 11px !important;
    }
    
    .pw-header-balance {
        font-size: 10px !important;
    }
    
    .pw-toggle {
        font-size: 14px !important;
    }
    
    .pw-content {
        padding: 12px !important;
    }
    
    .pw-btn {
        padding: 10px !important;
        font-size: 11px !important;
    }
}
