/**
 * Simple Web3 Identity Public Styles
 * Futuristic Premium UI with enhanced visual feedback
 * Color scheme: #2dc0ff (blue) and #ff7230 (orange)
 */

/* Identity Card Styles */
.swi-identity-card {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    box-shadow: 
        0 12px 35px rgba(45, 192, 255, 0.08),
        0 2px 5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 15px rgba(45, 192, 255, 0.06);
    margin: 25px 0;
    max-width: 100%;
    overflow: hidden;
    padding: 28px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: fit-content;
}

/* Premium gradient shine effect */
.swi-identity-card::before {
    background: linear-gradient(135deg, rgba(45, 192, 255, 0.15), transparent);
    content: '';
    height: 250%;
    left: -100%;
    opacity: 0.4;
    position: absolute;
    top: -100%;
    transform: rotate(45deg);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 200%;
    z-index: -1;
}

/* Additional subtle edge glow */
.swi-identity-card::after {
    background: linear-gradient(to right, rgba(45, 192, 255, 0.1), transparent);
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.6s ease;
    width: 3px;
    z-index: 0;
}

.swi-identity-card:hover {
    box-shadow: 
        0 15px 40px rgba(45, 192, 255, 0.12),
        0 4px 12px rgba(45, 192, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 25px rgba(45, 192, 255, 0.08);
    transform: translateY(-4px);
}

.swi-identity-card:hover::before {
    left: -40%;
    opacity: 0.6;
    top: -40%;
}

.swi-identity-card:hover::after {
    opacity: 1;
}

.swi-identity-card h3 {
    color: #222;
    font-size: 1.6em;
    margin-bottom: 22px;
    margin-top: 0;
    position: relative;
    letter-spacing: -0.2px;
    font-weight: 600;
}

.swi-identity-card h3::after {
    background: linear-gradient(90deg, #2dc0ff, transparent);
    bottom: -10px;
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    width: 50px;
    border-radius: 3px;
    box-shadow: 0 1px 5px rgba(45, 192, 255, 0.15);
}

.swi-card-content {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #444;
    letter-spacing: 0.2px;
}

/* Web3 identity details styling */
.swi-address-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 12px;
    position: relative;
}

.swi-address-label {
    color: #555;
    flex: 0 0 auto;
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 10px;
}

.swi-address-value {
    background: rgba(45, 192, 255, 0.05);
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 0.6px;
    padding: 12px 16px;
    position: relative;
    transition: all 0.25s ease;
    word-break: break-all;
    border: 1px solid rgba(45, 192, 255, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.swi-address-value:hover {
    background: rgba(45, 192, 255, 0.07);
    transform: translateY(-1px);
}

.swi-address-truncated {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #444;
}

/* Enhanced copy button for addresses */
.swi-copy-button {
    background: rgba(45, 192, 255, 0.12);
    border-radius: 6px;
    border: none;
    color: #2dc0ff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-left: 10px;
    padding: 6px 12px;
    transition: all 0.25s ease;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(45, 192, 255, 0.07);
}

.swi-copy-button:hover {
    background: rgba(45, 192, 255, 0.18);
    color: #2dc0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 192, 255, 0.12);
}

.swi-copy-button.copied {
    background: rgba(32, 212, 137, 0.15);
    color: #20d489;
    box-shadow: 0 2px 5px rgba(32, 212, 137, 0.1);
}

/* Connection status indicators with improved feedback */
.swi-connection-status {
    border-radius: 12px;
    margin-top: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.swi-connection-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.swi-status-connected {
    background: rgba(32, 212, 137, 0.08);
    border-left: 3px solid #20d489;
}

.swi-status-connected::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(32, 212, 137, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.swi-status-connected:hover::before {
    opacity: 1;
}

.swi-status-disconnected {
    background: rgba(255, 114, 48, 0.08);
    border-left: 3px solid #ff7230;
}

.swi-status-disconnected::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 114, 48, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.swi-status-disconnected:hover::before {
    opacity: 1;
}

/* Network badge with futuristic styling */
.swi-network-badge {
    align-items: center;
    background: rgba(45, 192, 255, 0.07);
    border-radius: 30px;
    display: inline-flex;
    font-size: 13px;
    margin-top: 12px;
    padding: 7px 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 192, 255, 0.1);
    box-shadow: 0 2px 8px rgba(45, 192, 255, 0.05);
    font-weight: 500;
}

.swi-network-badge:hover {
    background: rgba(45, 192, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 192, 255, 0.08);
}

.swi-network-indicator {
    background: #ff7230;
    border-radius: 50%;
    height: 10px;
    margin-right: 10px;
    width: 10px;
    position: relative;
    box-shadow: 0 0 0 rgba(255, 114, 48, 0.4);
    animation: swi-pulse 2s infinite;
}

@keyframes swi-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 114, 48, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 114, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 114, 48, 0);
    }
}

.swi-network-ethereum .swi-network-indicator {
    background: #2dc0ff;
    animation: swi-pulse-eth 2s infinite;
}

@keyframes swi-pulse-eth {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 192, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(45, 192, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 192, 255, 0);
    }
}

/* Identity metadata */
.swi-identity-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
}

.swi-meta-item {
    color: #666;
}

/* Dark Theme with premium futuristic style */
.swi-theme-dark.swi-identity-card {
    background: rgba(22, 28, 36, 0.92);
    border: 1px solid rgba(45, 192, 255, 0.15);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(45, 192, 255, 0.05) inset,
        0 0 20px rgba(45, 192, 255, 0.08);
}

.swi-theme-dark h3 {
    color: #f8f9fa;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.swi-theme-dark h3::after {
    background: linear-gradient(90deg, #2dc0ff, transparent);
    box-shadow: 0 1px 5px rgba(45, 192, 255, 0.3);
}

.swi-theme-dark .swi-card-content {
    color: #bdc3c7;
}

.swi-theme-dark .swi-address-label {
    color: #e0e0e0;
}

.swi-theme-dark .swi-address-value {
    background: rgba(45, 192, 255, 0.08);
    color: #f8f9fa;
    border: 1px solid rgba(45, 192, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) inset;
}

.swi-theme-dark .swi-copy-button {
    background: rgba(45, 192, 255, 0.15);
    color: #2dc0ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.swi-theme-dark .swi-copy-button:hover {
    background: rgba(45, 192, 255, 0.25);
    color: #2dc0ff;
}

.swi-theme-dark .swi-copy-button.copied {
    background: rgba(32, 212, 137, 0.2);
    color: #20d489;
}

.swi-theme-dark .swi-network-badge {
    background: rgba(45, 192, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(45, 192, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.swi-theme-dark .swi-identity-meta {
    border-top-color: rgba(45, 192, 255, 0.15);
}

.swi-theme-dark .swi-meta-item {
    color: #aaa;
}

/* Premium Connect Button Styles */
.swi-button {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(135deg, #2dc0ff, #1a9ad2);
    border: none;
    border-radius: 10px;
    box-shadow: 
        0 6px 15px rgba(45, 192, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(45, 192, 255, 0.2);
    color: white;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.swi-button:before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: inherit;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: all 0.4s ease;
    width: 100%;
    z-index: 1;
}

/* Add a subtle edge glow */
.swi-button:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(45, 192, 255, 0);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.swi-button:hover {
    box-shadow: 
        0 8px 20px rgba(45, 192, 255, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 0 1px rgba(45, 192, 255, 0.3);
    transform: translateY(-3px);
}

.swi-button:hover:before {
    opacity: 1;
    transform: translateX(5px) translateY(-5px);
}

.swi-button:hover:after {
    opacity: 1;
    box-shadow: 0 0 20px 5px rgba(45, 192, 255, 0.3);
}

.swi-button:active {
    box-shadow: 0 3px 10px rgba(45, 192, 255, 0.2);
    transform: translateY(1px);
}

.swi-button span {
    position: relative;
    z-index: 2;
}

.swi-size-small {
    font-size: 14px;
    padding: 8px 16px;
}

.swi-size-medium {
    font-size: 16px;
    padding: 12px 24px;
}

.swi-size-large {
    font-size: 18px;
    padding: 14px 32px;
}

/* Button variations with futuristic gradient */
.swi-button-primary {
    background: linear-gradient(135deg, #2dc0ff, #1a9ad2);
}

.swi-button-secondary {
    background: linear-gradient(135deg, #ff7230, #e25a18);
}

.swi-button-success {
    background: linear-gradient(135deg, #20d489, #18b974);
}

.swi-button-info {
    background: linear-gradient(135deg, #2dc0ff, #1a9ad2);
}

/* Enhanced loading state for button */
.swi-button.is-loading {
    color: transparent;
    pointer-events: none;
}

.swi-button.is-loading::after {
    animation: swi-spinner 0.85s cubic-bezier(0.2, 0.6, 0.4, 0.8) infinite;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: white;
    content: '';
    height: 18px;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    position: absolute;
    top: 50%;
    width: 18px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 3;
}

@keyframes swi-spinner {
    to {transform: rotate(360deg);}
}

/* Enhanced loading animation */
@keyframes swi-pulse {
    0% {opacity: 0.6;}
    50% {opacity: 1;}
    100% {opacity: 0.6;}
}

.swi-size-large {
    font-size: 18px;
    padding: 14px 32px;
    letter-spacing: 0.3px;
}

.swi-theme-dark.swi-button {
    background: linear-gradient(135deg, #1e3a5f, #102848);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(45, 192, 255, 0.15) inset;
}

.swi-connected {
    background: linear-gradient(135deg, #18b974, #20d489);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.swi-connected:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: swi-connected-shine 3s infinite;
}

@keyframes swi-connected-shine {
    0% {
        left: -50%;
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    20% {
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.swi-theme-dark.swi-connected {
    background: linear-gradient(135deg, #18b974, #20d489);
}

.swi-connect-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.swi-connected-address {
    color: #555;
    font-size: 14px;
    margin-top: 8px;
}

.swi-theme-dark .swi-connected-address {
    color: #ddd;
}

/* Add futuristic hover effects */
.swi-theme-dark .swi-identity-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.swi-theme-dark .swi-identity-card:hover {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(45, 192, 255, 0.15),
        0 0 25px rgba(45, 192, 255, 0.15);
    transform: translateY(-4px) scale(1.01);
}

/* Enhanced notification Styles */
.swi-notice {
    border-left: 4px solid;
    border-radius: 8px;
    margin: 18px 0;
    padding: 14px 18px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.swi-notice::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.swi-notice:hover::after {
    transform: translateX(100%);
}

.swi-error {
    background-color: rgba(255, 114, 48, 0.08);
    border-color: #ff7230;
    color: #d63638;
}

/* Add animation for linked elements */
a.swi-button, .swi-copy-button, .swi-network-badge {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a.swi-button:hover, .swi-copy-button:hover, .swi-network-badge:hover {
    transform: translateY(-3px);
}

.swi-theme-dark .swi-notice.swi-error {
    background-color: rgba(214, 54, 56, 0.1);
    color: #ff6b6b;
}

/* Donation Button and Container Styles */
.swi-donation-container {
    display: inline-block;
    margin: 15px 0;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.swi-donation-container:hover {
    transform: translateY(-2px);
}

.swi-donation-button {
    background: linear-gradient(135deg, #2dc0ff, #1a9ad2);
    border: none;
    border-radius: 30px;
    box-shadow: 
        0 6px 16px rgba(45, 192, 255, 0.25),
        0 2px 5px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    overflow: hidden;
    padding: 12px 24px;
    position: relative;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.swi-donation-button:before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border-radius: inherit;
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transform: translateX(0) translateY(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    z-index: 1;
}

/* Add a subtle edge glow for donation button */
.swi-donation-button:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(45, 192, 255, 0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.swi-donation-button:hover {
    box-shadow: 
        0 8px 20px rgba(45, 192, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 0 1px rgba(45, 192, 255, 0.3);
    transform: translateY(-3px);
}

.swi-donation-button:hover:before {
    opacity: 1;
    transform: translateX(5px) translateY(-5px);
}

.swi-donation-button:hover:after {
    opacity: 1;
    box-shadow: 0 0 25px 5px rgba(45, 192, 255, 0.35);
}

.swi-donation-button:active {
    box-shadow: 0 3px 10px rgba(45, 192, 255, 0.2);
    transform: translateY(1px);
}

/* Donation icon styles */
.swi-donate-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-right: 10px;
    position: relative;
    width: 24px;
    transition: all 0.3s ease;
}

.swi-donation-button:hover .swi-donate-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Improved donation status display */
.swi-donation-status {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(45, 192, 255, 0.2);
    border-radius: 12px;
    box-shadow: 
        0 8px 24px rgba(45, 192, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.03);
    margin-top: 15px;
    opacity: 0;
    padding: 16px;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.swi-donation-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.swi-donation-success {
    align-items: center;
    display: flex;
}

.swi-donation-icon.success {
    animation: pulse-success 2s infinite;
    background: rgba(32, 212, 137, 0.15);
    color: #20d489;
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(32, 212, 137, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(32, 212, 137, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(32, 212, 137, 0);
    }
}

.swi-donation-info {
    flex: 1;
}

.swi-donation-hash {
    background: rgba(45, 192, 255, 0.05);
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    margin-top: 8px;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
    word-break: break-all;
}

.swi-donation-hash a {
    color: #2dc0ff;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.swi-donation-hash a:hover {
    color: #1a9ad2;
}

.swi-donation-hash a::after {
    background: rgba(45, 192, 255, 0.1);
    bottom: -2px;
    content: '';
    height: 1px;
    left: 0;
    position: absolute;
    transition: all 0.3s ease;
    width: 100%;
}

.swi-donation-hash a:hover::after {
    background: rgba(45, 192, 255, 0.5);
    height: 2px;
}

/* Completed donation state */
.swi-donation-button.swi-donation-complete {
    background: linear-gradient(135deg, #20d489, #18b974);
    box-shadow: 
        0 6px 16px rgba(32, 212, 137, 0.25),
        0 2px 5px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.swi-donation-button.swi-donation-complete:hover {
    box-shadow: 
        0 8px 20px rgba(32, 212, 137, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Dark theme for donation elements */
.swi-theme-dark .swi-donation-status {
    background: rgba(35, 42, 52, 0.85);
    border-color: rgba(45, 192, 255, 0.2);
    color: #e5e5e5;
}

.swi-theme-dark .swi-donation-hash {
    background: rgba(45, 192, 255, 0.08);
}

/* Donation Button Animation Effects */
.swi-ripple-effect {
    animation: ripple 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    height: 100px;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    z-index: 0;
}

@keyframes ripple {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3);
    }
}

.swi-success-animation {
    animation: success-pulse 1.5s ease-out;
    background: radial-gradient(circle, rgba(32, 212, 137, 0.7) 0%, rgba(32, 212, 137, 0) 70%);
    border-radius: 50%;
    height: 120px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    z-index: 0;
}

@keyframes success-pulse {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Donation amount form styling */
.swi-donation-amount-form {
    animation: fade-in 0.3s ease;
}

.swi-donation-amount-wrapper {
    align-items: center;
    background: rgba(45, 192, 255, 0.04);
    border: 1px solid rgba(45, 192, 255, 0.15);
    border-radius: 8px;
    display: flex;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 3px 3px 3px 12px;
    position: relative;
}

.swi-donation-amount-input {
    background: transparent;
    border: none;
    color: inherit;
    flex: 1;
    font-size: 16px;
    outline: none;
    padding: 10px 0;
}

.swi-donation-currency {
    background: rgba(45, 192, 255, 0.08);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
}

/* Input error animation */
.swi-input-error {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.swi-donation-amount-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.swi-donation-amount-cancel,
.swi-donation-amount-confirm {
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.swi-donation-amount-cancel {
    color: #666;
}

.swi-donation-amount-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
}

.swi-donation-amount-confirm {
    background: linear-gradient(135deg, #2dc0ff, #1a9ad2);
    color: white;
}

.swi-donation-amount-confirm:hover {
    box-shadow: 0 2px 8px rgba(45, 192, 255, 0.3);
    transform: translateY(-2px);
}

/* Processing animation */
.swi-donation-processing {
    align-items: center;
    display: flex;
    gap: 15px;
}

.swi-processing-spinner {
    animation: spinner-rotate 1.5s linear infinite;
    border-radius: 50%;
    border: 2px solid rgba(45, 192, 255, 0.1);
    border-top-color: #2dc0ff;
    height: 24px;
    width: 24px;
}

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

.swi-processing-text {
    font-weight: 500;
}

/* Typing dots animation */
.swi-dot-typing {
    display: inline-block;
    position: relative;
    width: 15px;
    height: 15px;
}

.swi-dot-typing::after {
    content: '...';
    position: absolute;
    animation: dot-typing 1.5s infinite linear;
    overflow: hidden;
    width: 0;
    left: 3px;
}

@keyframes dot-typing {
    0% { width: 0; }
    20% { width: 3px; }
    40% { width: 6px; }
    60% { width: 9px; }
    80% { width: 12px; }
    100% { width: 15px; }
}

/* Error styling */
.swi-donation-error {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.swi-donation-icon.error {
    background: rgba(255, 114, 48, 0.1);
    color: #ff7230;
    margin-top: 3px;
}

.swi-error-message {
    background: rgba(255, 114, 48, 0.05);
    border-radius: 6px;
    margin-top: 6px;
    padding: 8px 10px;
    word-break: break-word;
}

/* Mobile responsive improvements */
@media (max-width: 767px) {
    .swi-donation-button {
        display: flex;
        width: 100%;
    }
    
    .swi-donation-container {
        display: block;
        width: 100%;
    }
    
    .swi-donation-status {
        padding: 14px;
    }
    
    .swi-donation-success {
        flex-direction: column;
        gap: 10px;
    }
    
    .swi-donation-icon {
        margin-bottom: 5px;
    }
    
    .swi-donation-hash {
        font-size: 12px;
        overflow-x: auto;
        padding: 8px;
    }
}