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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1b2a 30%, #0f2027 50%, #0a1628 70%, #0a0e1a 100%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #e0e0e0;
}

/* Gradient overlay for the top-left teal glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at top left, rgba(0, 180, 180, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ===== Top Header: Logo + CA ===== */
.top-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
}

.token-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 180, 180, 0.3);
    flex-shrink: 0;
}

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

.ca-label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.ca-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(80, 100, 140, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.ca-box:hover {
    border-color: rgba(0, 180, 180, 0.5);
    background: rgba(15, 22, 40, 0.8);
}

.ca-box:active {
    transform: scale(0.97);
}

.ca-value {
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #00d4d4;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ca-copy-icon {
    flex-shrink: 0;
    color: #5a7a8a;
    transition: color 0.2s;
}

.ca-box:hover .ca-copy-icon {
    color: #00b4b4;
}

.ca-copy-feedback {
    display: none;
    font-size: 12px;
    color: #00d4d4;
    font-weight: 500;
}

.ca-copy-feedback.show {
    display: block;
    animation: fadeInOut 1.5s ease forwards;
}

/* ===== Payment section ===== */
.payment-section {
    text-align: center;
}

.payment-text {
    font-size: 15px;
    font-weight: 500;
    color: #b0c0d0;
    margin-bottom: 14px;
    line-height: 1.5;
}

.address-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(80, 100, 140, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.address-copy:hover {
    border-color: rgba(0, 180, 180, 0.4);
    background: rgba(15, 22, 40, 0.8);
}

.address-copy:active {
    transform: scale(0.98);
}

.address-text {
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #00d4d4;
    letter-spacing: 0.3px;
    word-break: break-all;
}

.copy-icon {
    flex-shrink: 0;
    color: #5a7a8a;
    transition: color 0.2s;
}

.address-copy:hover .copy-icon {
    color: #00b4b4;
}

.copy-feedback {
    display: none;
    font-size: 12px;
    color: #00d4d4;
    margin-top: 8px;
    font-weight: 500;
}

.copy-feedback.show {
    display: block;
    animation: fadeInOut 1.5s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-4px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Form sections */
.form-section {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Inputs */
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(8, 14, 28, 0.7);
    border: 1px solid rgba(100, 130, 170, 0.3);
    border-radius: 10px;
    color: #8892a8;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: rgba(0, 180, 180, 0.5);
    color: #e0e0e0;
}

.form-input::placeholder {
    color: #4a5568;
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(8, 14, 28, 0.7);
    border: 1px solid rgba(100, 130, 170, 0.3);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 170px;
    transition: border-color 0.2s;
}

.form-textarea:focus {
    border-color: rgba(0, 180, 180, 0.5);
}

.form-hint {
    margin-top: 10px;
    font-size: 13px;
    color: #4a8a8a;
    line-height: 1.5;
}

/* Links grid */
.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.link-btn {
    padding: 18px 24px;
    background: rgba(12, 18, 36, 0.8);
    border: 1px solid rgba(80, 100, 140, 0.2);
    border-radius: 12px;
    color: #c0c8d8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.link-btn:hover {
    background: rgba(20, 30, 55, 0.9);
    border-color: rgba(0, 180, 180, 0.3);
}

.link-btn.active {
    border-color: rgba(0, 180, 180, 0.5);
    color: #00b4b4;
}

/* Images section */
.image-upload-section {
    margin-bottom: 32px;
}

.image-label {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.image-specs {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.image-specs li {
    font-size: 13px;
    color: #7a8a9a;
    margin-bottom: 4px;
    line-height: 1.6;
}

.image-specs .highlight {
    color: #5ab8b8;
    text-decoration: line-through;
    opacity: 0.7;
}

.upload-btn {
    display: inline-block;
    padding: 14px 48px;
    background: rgba(12, 18, 36, 0.8);
    border: 1px solid rgba(80, 100, 140, 0.25);
    border-radius: 10px;
    color: #c0c8d8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.upload-btn:hover {
    background: rgba(20, 30, 55, 0.9);
    border-color: rgba(0, 180, 180, 0.3);
}

.preview-container {
    margin-top: 12px;
}

.preview-container img {
    max-width: 200px;
    border-radius: 8px;
    border: 1px solid rgba(80, 100, 140, 0.25);
}

/* Submit button */
.submit-section {
    margin-top: 40px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00b4b4, #008a8a);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #00cccc, #009a9a);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 180, 180, 0.3);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #111827;
    border: 1px solid rgba(80, 100, 140, 0.25);
    border-radius: 14px;
    padding: 24px;
    width: 90%;
    max-width: 440px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #7a8a9a;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

.modal-cancel {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(80, 100, 140, 0.25);
    border-radius: 8px;
    color: #c0c8d8;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.modal-cancel:hover {
    border-color: rgba(100, 120, 160, 0.4);
}

.modal-save {
    padding: 10px 24px;
    background: linear-gradient(135deg, #00b4b4, #008a8a);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.modal-save:hover {
    background: linear-gradient(135deg, #00cccc, #009a9a);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 32px 16px 60px;
    }

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

    .link-btn {
        padding: 14px 20px;
    }

    .top-header {
        gap: 14px;
    }

    .token-logo {
        width: 48px;
        height: 48px;
    }
}