/* ==========================
   AIRDROPS PAGE STYLES
   ========================== */

/* Header with History Button */
.detail-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1A1D29;
    border-bottom: 1px solid #2A2F3F;
    height: 60px;
}

.detail-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.history-icon-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 109, 255, 0.15);
    border: 1px solid rgba(0, 109, 255, 0.3);
    color: #006dff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 10px;
}

.history-icon-btn:hover {
    background: rgba(0, 109, 255, 0.25);
    border-color: #006dff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 109, 255, 0.3);
}

.history-icon-btn svg {
    width: 22px;
    height: 22px;
}

/* Addresses Button Section */
.addresses-button-section {
    padding: 12px 20px;
    background: #1A1D29;
}

.addresses-button-section.compact {
    padding: 12px 20px 8px 20px;
}

.addresses-btn {
    width: 100%;
    background: #242938;
    border: 1px solid #2A2F3F;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.addresses-btn.compact {
    padding: 12px 16px;
    border-radius: 12px;
}

.addresses-btn:hover {
    border-color: #006dff;
    background: #282C3D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 109, 255, 0.15);
}

.addresses-btn-icon {
    width: 38px;
    height: 38px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.addresses-btn.compact .addresses-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.addresses-btn-icon svg {
    width: 22px;
    height: 22px;
    color: #667eea;
}

.addresses-btn.compact .addresses-btn-icon svg {
    width: 18px;
    height: 18px;
}

.addresses-btn-content {
    flex: 1;
    text-align: left;
}

.addresses-btn-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.addresses-btn.compact .addresses-btn-title {
    font-size: 14px;
    margin-bottom: 0;
}

.addresses-btn-subtitle {
    font-size: 13px;
    color: #6B7088;
}

.addresses-btn-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.addresses-btn-arrow svg {
    width: 20px;
    height: 20px;
    color: #6B7088;
}

/* Section Wrapper */
.airdrops-section-wrapper {
    padding: 20px;
}

.airdrops-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

/* Airdrop Items - Enhanced Display */
.airdrops-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Empty State for Airdrops */
.airdrops-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: #6B7088;
    line-height: 1.5;
    margin-bottom: 24px;
}

.refresh-button {
    width: 56px;
    height: 56px;
    background: rgba(107, 112, 136, 0.15);
    border: 1px solid rgba(107, 112, 136, 0.3);
    border-radius: 50%;
    color: #6B7088;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.refresh-button:hover {
    background: rgba(107, 112, 136, 0.25);
    border-color: #6B7088;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(107, 112, 136, 0.2);
}

.refresh-button svg {
    width: 28px;
    height: 28px;
}

.refresh-button.rotating svg {
    animation: rotate 1s linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.drop-item {
    background: #242938;
    border: 1px solid #2A2F3F;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
}

.drop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.drop-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.drop-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drop-icon svg {
    width: 22px;
    height: 22px;
}

.drop-icon.ethereum {
    background: rgba(98, 126, 234, 0.15);
    color: #627eea;
}

.drop-icon.solana {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
}

.drop-icon.ton {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc;
}

.drop-title-block {
    flex: 1;
}

.drop-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.drop-network {
    font-size: 13px;
    color: #6B7088;
    font-weight: 500;
}

.drop-timer {
    font-size: 11px;
    font-weight: 700;
    color: #006dff;
    background: rgba(0, 109, 255, 0.15);
    border: 1px solid rgba(0, 109, 255, 0.3);
    padding: 5px 11px;
    border-radius: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wallet-label {
    font-size: 14px;
    font-weight: 600;
    color: #6B7088;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: -8px;
    padding-left: 4px;
}

/* Enhanced Wallet Block */
.drop-wallet-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(102, 126, 234, 0.03) 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
}

.wallet-icon {
    width: 36px;
    height: 36px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-icon svg {
    width: 18px;
    height: 18px;
    color: #667eea;
}

.wallet-address {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: -0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Enhanced Amounts Display */
.drop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.drop-amounts-block {
    background: rgba(107, 112, 136, 0.05);
    border: 1px solid rgba(107, 112, 136, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    min-width: 140px;
}

.amount-value {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.amount-value.tokens {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.amount-value.usd {
    color: #6B7088;
    font-size: 16px;
    font-weight: 600;
}

.collect-btn {
    background: linear-gradient(135deg, #006dff 0%, #0056cc 100%);
    border: none;
    border-radius: 10px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 109, 255, 0.3);
    flex-shrink: 0;
}

.collect-btn:hover {
    background: linear-gradient(135deg, #0056cc 0%, #006dff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 109, 255, 0.45);
}

.collect-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 109, 255, 0.3);
}

/* Responsive */
@media (max-width: 400px) {
    .drop-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .collect-btn {
        width: 100%;
    }
}

/* ==========================
   ADDRESSES EDITOR
   ========================== */

.back-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 109, 255, 0.15);
    border: 1px solid rgba(0, 109, 255, 0.3);
    color: #006dff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(0, 109, 255, 0.25);
    border-color: #006dff;
}

.back-btn svg {
    width: 22px;
    height: 22px;
}

.header-spacer {
    width: 40px;
    height: 40px;
}

.addresses-editor-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.addresses-list-container {
    background: #242938;
    border: 1px solid #2A2F3F;
    border-radius: 16px;
    padding: 16px;
}

.addresses-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #1A1D29;
    border: 1px solid #2A2F3F;
    border-radius: 12px;
    padding: 12px;
}

.address-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7088;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-display {
    flex: 1;
    width: 100%;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 10px 5px;
    border-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-input {
    flex: 1;
    width: 100%;
    background: #242938;
    border: 1px solid #006dff;
    outline: none;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
}

.address-edit-btn,
.address-cancel-btn,
.address-delete-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 109, 255, 0.15);
    border: 1px solid rgba(0, 109, 255, 0.3);
    color: #006dff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.address-edit-btn:hover,
.address-cancel-btn:hover,
.address-delete-btn:hover {
    background: rgba(0, 109, 255, 0.25);
    border-color: #006dff;
}

.address-edit-btn.save-mode {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

.address-cancel-btn {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.address-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #EF4444;
}

.address-edit-btn svg,
.address-cancel-btn svg,
.address-delete-btn svg {
    width: 18px;
    height: 18px;
}

.addresses-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    width: 60px;
    height: 60px;
    background: rgba(107, 112, 136, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.empty-icon svg {
    width: 28px;
    height: 28px;
    color: #6B7088;
}

.empty-text {
    font-size: 15px;
    color: #6B7088;
    font-weight: 500;
}

.add-address-section {
    background: #242938;
    border: 1px solid #2A2F3F;
    border-radius: 16px;
    padding: 20px;
}

.add-address-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.add-address-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-address-input {
    width: 100%;
    background: #1A1D29;
    border: 1px solid #2A2F3F;
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.new-address-input:focus {
    border-color: #006dff;
}

.new-address-input::placeholder {
    color: #6B7088;
}

.add-address-btn {
    background: linear-gradient(135deg, #006dff 0%, #0056cc 100%);
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-address-btn:hover {
    background: linear-gradient(135deg, #0056cc 0%, #006dff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 109, 255, 0.3);
}

.add-address-btn svg {
    width: 20px;
    height: 20px;
}

/* Delete Confirmation Modal */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-modal-overlay.active {
    opacity: 1;
}

.delete-modal {
    background: #1A1D29;
    border: 1px solid #2A2F3F;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.delete-modal-overlay.active .delete-modal {
    transform: scale(1);
}

.delete-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.delete-modal-text {
    font-size: 14px;
    color: #6B7088;
    margin-bottom: 24px;
}

.delete-modal-buttons {
    display: flex;
    gap: 12px;
}

.delete-modal-cancel,
.delete-modal-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-modal-cancel {
    background: #2A2F3F;
    color: #FFFFFF;
}

.delete-modal-cancel:hover {
    background: #363C4F;
}

.delete-modal-confirm {
    background: #FF4444;
    color: #FFFFFF;
}

.delete-modal-confirm:hover {
    background: #E63939;
    transform: translateY(-1px);
}

/* Delete Confirmation Modal */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-modal-overlay.active {
    opacity: 1;
}

.delete-modal {
    background: #1A1D29;
    border: 1px solid #2A2F3F;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.delete-modal-overlay.active .delete-modal {
    transform: scale(1);
}

.delete-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.delete-modal-text {
    font-size: 13px;
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    background: #242938;
    padding: 10px 12px;
    border-radius: 8px;
    word-break: break-all;
    margin-bottom: 8px;
}

.delete-modal-notice {
    font-size: 13px;
    color: #6B7088;
    margin-bottom: 24px;
}

.delete-modal-buttons {
    display: flex;
    gap: 12px;
}

.delete-modal-cancel,
.delete-modal-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-modal-cancel {
    background: #2A2F3F;
    color: #FFFFFF;
}

.delete-modal-cancel:hover {
    background: #363C4F;
}

.delete-modal-confirm {
    background: #FF4444;
    color: #FFFFFF;
}

.delete-modal-confirm:hover {
    background: #E63939;
    transform: translateY(-1px);
}

/* History Page */
.history-filters {
    display: flex;
    gap: 8px;
    padding: 16px 16px 0;
    margin-bottom: 16px;
}

.filter-btn {
    flex: 1;
    padding: 10px 16px;
    background: #1A1D29;
    border: 1px solid #2A2F3F;
    border-radius: 10px;
    color: #6B7088;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: rgba(0, 109, 255, 0.15);
    border-color: rgba(0, 109, 255, 0.3);
    color: #006dff;
}

.filter-btn:hover:not(.active) {
    background: #242938;
    border-color: #363C4F;
}

.history-content {
    padding: 0 16px 16px;
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: #1A1D29;
    border: 1px solid #2A2F3F;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.history-item.collected {
    opacity: 1;
}

.history-item.uncollected {
    opacity: 0.85;
    border-color: rgba(42, 47, 63, 0.5);
}

.history-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
}

.history-status-badge svg {
    width: 16px;
    height: 16px;
}

.status-collected {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-uncollected {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-wallet {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #6B7088;
    padding: 8px 12px;
    background: rgba(107, 112, 136, 0.1);
    border-radius: 8px;
}

.history-amounts {
    display: flex;
    gap: 12px;
}

.history-amount-item {
    flex: 1;
    background: rgba(42, 47, 63, 0.5);
    border: 1px solid #2A2F3F;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-amount-label {
    font-size: 11px;
    color: #6B7088;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.history-amount-value {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 600;
}

.history-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: #6B7088;
    font-weight: 500;
}

/* ==========================
   SUPPORTED NETWORKS MODAL
   ========================== */

.networks-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.networks-modal.active {
    opacity: 1;
}

.networks-modal.active .networks-modal-content {
    transform: translateY(0);
}

.networks-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.networks-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #1A1D29;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.networks-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.networks-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.networks-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.networks-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.networks-modal-close svg {
    width: 20px;
    height: 20px;
}

.networks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.network-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(42, 47, 63, 0.4);
    border: 1px solid #2A2F3F;
    border-radius: 16px;
    transition: all 0.2s;
}

.network-item.supported {
    border-color: rgba(0, 200, 83, 0.3);
}

.network-item.soon {
    opacity: 0.6;
}

.network-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.network-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.network-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.network-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.network-status {
    font-size: 13px;
    font-weight: 500;
}

.network-status.available {
    color: #00C853;
}

.network-status.coming-soon {
    color: #FF9800;
}
