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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(63, 195, 128, 0.15), transparent 50%),
        linear-gradient(135deg, #0d4f3c 0%, #1a7a60 25%, #2ecc71 50%, #1a7a60 75%, #0d4f3c 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Floating emojis background */
body::before {
    content: "🕊️🐸🌺🏰⚔️🤝🕊️🐸🌺🏰";
    position: fixed;
    font-size: 40px;
    top: 10%;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0.08;
    animation: drift 20s linear infinite;
    pointer-events: none;
    white-space: nowrap;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.03) 2px, rgba(255,255,255,.03) 4px);
    pointer-events: none;
    z-index: 0;
}

@keyframes drift {
    from { transform: translateX(-100px); }
    to { transform: translateX(100px); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    padding: 25px 30px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(46, 204, 113, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(46, 204, 113, 0.15); }
    50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(46, 204, 113, 0.25); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.emoji-large {
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    /* No animation - stays static */
}

.emoji-large:first-child {
    /* No animation delay needed */
}

.emoji-large:nth-child(2) {
    /* No animation delay needed */
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.lotus, .castle {
    font-size: 20px;
    /* No animation - stays static */
}

.lotus {
    /* No animation delay needed */
}

.castle {
    /* No animation delay needed */
}

.swords-static {
    font-size: 20px;
    /* No animation - stays static */
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.wallet-status-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-status {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: none;
    border: 2px solid #2ecc71;
    transition: all 0.3s;
    cursor: pointer;
}

.wallet-status:hover {
    transform: translateY(-2px);
    background: rgba(46, 204, 113, 0.2);
}

.wallet-toggle-text {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 11px;
    font-style: italic;
    color: #2ecc71;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
}

.wallet-toggle-text:hover {
    text-decoration: underline;
    color: #39d479;
    background: rgba(0, 0, 0, 0.8);
}

.wallet-status.disconnected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Creator Section */
.creator-section {
    text-align: center;
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    padding: 20px 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.creator-credit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.twitter-link {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.twitter-link:hover {
    color: #27ae60;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    text-decoration: underline;
}

.version-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 400;
    font-style: italic;
}

.wisdom-quote {
    color: #ff9500;
    font-style: italic;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease;
}

/* Swap Card */
.swap-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(46, 204, 113, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(46, 204, 113, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.tab-btn {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}
.tab-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.community-note {
    color: #27ae60;
    font-weight: 700;
    margin: 6px 0 10px 0;
}

.fee-hint {
    color: #7f8c8d;
    font-size: 12px;
    margin: 8px 0 14px;
}

/* Ensure disabled checkbox text is readable */
.fee-hint label input[type="checkbox"]:disabled + span {
    opacity: 0.7;
}

/* Kingdom fee preset buttons */
.kingdom-fee-preset {
    padding: 8px 12px;
    border: 2px solid rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.kingdom-fee-preset:hover:not(:disabled) {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
    transform: translateY(-2px);
}

.kingdom-fee-preset.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: #2ecc71;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.kingdom-fee-preset:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.kingdom-fee-preset:disabled:not(.active) {
    opacity: 0.4;
}

/* Kingdom Pond0x preset buttons */
.kingdom-pond0x-preset {
    padding: 8px 12px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.kingdom-pond0x-preset:hover:not(:disabled) {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
}

.kingdom-pond0x-preset.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.kingdom-pond0x-preset:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.kingdom-pond0x-preset:disabled:not(.active) {
    opacity: 0.4;
}

.swap-card::before {
    content: "⚔️";
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 50px;
    opacity: 0.08;
    transform: rotate(-10deg);
}

.swap-card::after {
    content: "🛡️";
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 50px;
    opacity: 0.08;
    transform: rotate(10deg);
}

h1 {
    color: #1a252f;
    margin-bottom: 6px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.subtitle {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(46, 204, 113, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(46, 204, 113, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #34e084 0%, #2ecc71 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Token Input */
.token-input {
    margin-bottom: 12px;
    position: relative;
}

.token-input label {
    display: block;
    color: #34495e;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group select,
.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
    font-weight: 500;
}

.input-group select {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
    transform: translateY(-1px);
}

.input-group input[readonly] {
    background: #f8f9fa;
    cursor: default;
}

.balance {
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 11px;
    font-weight: 500;
}

/* Swap Arrow */
.swap-arrow {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.swap-arrow button {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.swap-arrow button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.swap-arrow button:hover::before {
    width: 200px;
    height: 200px;
}

.swap-arrow button:hover {
    background: linear-gradient(135deg, #5d6d7e 0%, #34495e 100%);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Quote Info */
.quote-info {
    background: linear-gradient(135deg, #e8f8f5 0%, #d5f4e6 100%);
    padding: 12px;
    border-radius: 12px;
    margin: 14px 0;
    border: 2px solid #a8e6cf;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.1);
}

.quote-error-message {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 12px;
    border-radius: 12px;
    margin: 14px 0;
    border: 2px solid #e67e22;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.1);
    color: #d63031;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}

body.light-theme .quote-error-message {
    background: linear-gradient(135deg, rgba(255, 234, 167, 0.9) 0%, rgba(253, 203, 110, 0.9) 100%);
    border-color: #e67e22;
    color: #d63031;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #27ae60;
    font-weight: 600;
    font-size: 13px;
}

.quote-item:last-child {
    margin-bottom: 0;
}

.badge {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 
        0 3px 10px rgba(46, 204, 113, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Transaction Status */
.transaction-status {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #e8f8f5 0%, #d5f4e6 100%);
    border-radius: 18px;
    border: 3px solid #2ecc71;
    box-shadow: 
        0 6px 20px rgba(46, 204, 113, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tx-signature {
    margin-top: 12px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #1a7a60;
    background: white;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #a8e6cf;
}

/* Info Section */
.info-section {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(30px) saturate(180%);
    padding: 25px;
    border-radius: 20px;
    margin-top: 25px;
    color: white;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.info-section h3 {
    margin-bottom: 15px;
    color: #2ecc71;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info-section p {
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.8;
    color: #ecf0f1;
}

.info-section a {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
}

.info-section a:hover {
    color: #5dade2;
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #1a7a60 0%, #2ecc71 100%);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
    min-width: 320px;
    max-width: 500px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

.modal-content h2 {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-content p {
    margin-bottom: 24px;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Fee distribution styling in modals */
.modal-content p div {
    margin: 8px 0;
}

.modal-content p div.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.modal-content p a {
    color: #3498db;
    text-decoration: underline;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.modal-btn-yes {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.modal-btn-yes:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
}

.modal-btn-no {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.modal-btn-no:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Light theme modal */
body.light-theme .modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

body.light-theme .modal-content {
    background: linear-gradient(135deg, #2d383a 0%, #34495e 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hidden Class */
.hidden {
    display: none;
}

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

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Theme Toggle - Fixed Position */
.theme-toggle-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.wallet-status-fixed {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
}

.wallet-status-fixed .wallet-status-container {
    position: relative;
}

.theme-toggle-fixed .theme-btn {
    color: #2ecc71;
}

/* When body does NOT have light-theme class (showing Light Mode button) */
body:not(.light-theme) #themeToggle,
body:not(.light-theme) #themeToggle *,
body:not(.light-theme) .theme-toggle-fixed .theme-btn,
body:not(.light-theme) .theme-toggle-fixed .theme-btn * {
    color: white !important;
}

body:not(.light-theme) #themeToggle:hover,
body:not(.light-theme) #themeToggle:hover *,
body:not(.light-theme) .theme-toggle-fixed .theme-btn:hover,
body:not(.light-theme) .theme-toggle-fixed .theme-btn:hover * {
    color: #ecf0f1 !important;
}

.theme-btn {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 2px solid #2ecc71;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.theme-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

/* Swap Eligibility Indicator */
.eligibility-indicator {
    text-align: right;
    margin: 10px 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.1);
    display: inline-block;
    float: right;
    clear: both;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.eligibility-indicator.eligible {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.eligibility-indicator.marginal {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
}

.eligibility-indicator.too-small {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

#eligibilityLight {
    font-size: 14px;
    margin-right: 6px;
}

#eligibilityText {
    vertical-align: middle;
}

/* Slippage Section */
.slippage-section {
    margin: 14px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e8eaed;
    clear: both;
}

.slippage-section label {
    display: block;
    color: #34495e;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.slippage-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

#slippageSlider {
    flex: 1;
    height: 8px;
    border-radius: 10px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
}

#slippageSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2ecc71;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
}

#slippageSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2ecc71;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
}

.slippage-value {
    min-width: 70px;
    text-align: center;
}

.slippage-value span {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
}

.slippage-presets {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.preset-btn {
    flex: 1;
    padding: 8px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s;
}

.preset-btn:hover {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.preset-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-color: #2ecc71;
    box-shadow: 0 3px 12px rgba(46, 204, 113, 0.3);
}

/* Light Theme Styles - Soft Dark */
body.light-theme {
    background: 
        radial-gradient(circle at 20% 50%, rgba(46, 204, 113, 0.05), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(63, 195, 128, 0.05), transparent 50%),
        linear-gradient(135deg, #2a3638 0%, #1f282a 50%, #1a2224 100%);
}

body.light-theme header {
    background: rgba(35, 45, 50, 0.95);
    color: #2ecc71;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(46, 204, 113, 0.3);
}

body.light-theme .swap-card {
    background: rgba(40, 50, 55, 0.98);
    color: #ecf0f1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(46, 204, 113, 0.3);
}

body.light-theme .swap-card h1 {
    color: #ecf0f1;
}

body.light-theme .swap-card .subtitle {
    color: #bdc3c7;
}

body.light-theme .info-section {
    background: rgba(40, 50, 55, 0.95);
    color: #ecf0f1;
    border-color: rgba(46, 204, 113, 0.3);
}

body.light-theme .token-input label {
    color: #bdc3c7;
}

body.light-theme .balance {
    color: #95a5a6;
}

body.light-theme .quote-info {
    background: linear-gradient(135deg, #2d383a 0%, #252f30 100%);
    border-color: rgba(46, 204, 113, 0.3);
}

body.light-theme .quote-item {
    color: #bdc3c7;
}

body.light-theme .slippage-section {
    background: rgba(50, 60, 65, 0.8);
    border-color: rgba(46, 204, 113, 0.3);
}

body.light-theme .slippage-section label {
    color: #ecf0f1;
}

body.light-theme .input-group select,
body.light-theme .input-group input {
    background: rgba(45, 55, 60, 0.9);
    color: #ecf0f1;
    border-color: #34495e;
}

body.light-theme .preset-btn {
    background: rgba(45, 55, 60, 0.9);
    color: #ecf0f1;
    border-color: #34495e;
}

body.light-theme .preset-btn:hover {
    background: rgba(60, 70, 75, 0.9);
    border-color: rgba(46, 204, 113, 0.5);
}

body.light-theme .preset-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

body.light-theme #toAmount {
    background: rgba(45, 55, 60, 0.9);
    color: #ecf0f1;
}

/* Responsive */
@media (max-width: 600px) {
    .swap-card {
        padding: 35px 25px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .slippage-presets {
        flex-direction: column;
    }
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.status-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    margin-top: 10px;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.5);
}

/* Success Popup */
.success-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
    pointer-events: none; /* allow clicks to pass through outside the toast */
}

.success-popup.hidden {
    display: none;
}

.success-content {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    padding: 18px 22px;
    border-radius: 14px;
    text-align: left;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: slideUp 0.3s ease;
    min-width: 240px;
    max-width: 320px;
    pointer-events: auto; /* clickable if we ever add a close button */
}

.success-icon {
    font-size: 28px;
    margin-bottom: 8px;
    animation: bounce 1s ease infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Footer Links */
.footer-links {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-link {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #27ae60;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
}

body.light-theme .footer-links {
    color: rgba(255, 255, 255, 0.7);
}

body.light-theme .footer-link {
    color: #2ecc71;
}

body.light-theme .footer-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Tip Button */
.tip-button-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999998;
}

.tip-button-fixed-moved {
    position: fixed;
    top: 120px;
    left: 20px;
    z-index: 999998;
}

.tip-btn {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 2px solid #2ecc71;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.tip-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

body:not(.light-theme) .tip-btn,
body:not(.light-theme) .tip-btn * {
    color: white !important;
}

body:not(.light-theme) .tip-btn:hover {
    color: #ecf0f1 !important;
}

.tip-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(46, 204, 113, 0.3);
    min-width: 320px;
    z-index: 999999;
    animation: dropdownFadeIn 0.2s ease;
}

body.light-theme .tip-dropdown {
    background: rgba(40, 50, 55, 0.98);
    color: #ecf0f1;
    border-color: rgba(46, 204, 113, 0.4);
}

.tip-hint {
    font-size: 10px;
    text-align: center;
    margin-top: 12px;
    opacity: 0.7;
    font-style: italic;
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .tip-hint {
    color: rgba(255, 255, 255, 0.6);
}

.tip-dropdown.hidden {
    display: none;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tip-header {
    margin-bottom: 20px;
    text-align: center;
}

.tip-header h3 {
    color: #2ecc71;
    font-size: 18px;
    margin-bottom: 5px;
}

.tip-subtitle {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
}

body.light-theme .tip-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.tip-option {
    margin-bottom: 15px;
}

.tip-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 5px;
    text-transform: uppercase;
}

body.light-theme .tip-label {
    color: rgba(255, 255, 255, 0.6);
}

.tip-address {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #2ecc71;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
}

.tip-address:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

body.light-theme .tip-address {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.copy-toast {
    position: fixed;
    top: 70px;
    left: 20px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
    animation: toastFadeIn 0.3s ease;
    z-index: 1002;
}

.copy-toast.hidden {
    display: none;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* The Blooming Lotus Button */
.lotus-button-fixed {
    position: fixed;
    top: 70px;
    left: 20px;
    z-index: 999998;
}

.lotus-btn {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(221, 160, 221, 0.2));
    color: #ffb6c1;
    border: 2px solid rgba(255, 182, 193, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.lotus-btn:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(221, 160, 221, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

body:not(.light-theme) .lotus-btn,
body:not(.light-theme) .lotus-btn * {
    color: white !important;
}

/* Override text color for specific themed buttons */
#landclaimsButton,
#landclaimsButton * {
    color: #ff8c00 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#embassyButton,
#embassyButton * {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.lotus-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    border-radius: 16px;
    padding: 25px 25px 15px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 182, 193, 0.3);
    min-width: 380px;
    max-width: 450px;
    z-index: 999999;
    animation: dropdownFadeIn 0.2s ease;
    transform: translate(-50%, -50%) scale(0.975);
    transform-origin: center center;
}

body.light-theme .lotus-dropdown {
    background: rgba(40, 50, 55, 0.98);
    color: #ecf0f1;
    border-color: rgba(255, 182, 193, 0.4);
}

.lotus-dropdown.hidden {
    display: none;
}

.lotus-header {
    margin-bottom: 15px;
    text-align: center;
}

.lotus-header h3 {
    color: #ffb6c1;
    font-size: 20px;
    margin-bottom: 5px;
}

.lotus-subtitle {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
}

body.light-theme .lotus-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.lotus-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.lotus-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lotus-feature-label {
    font-size: 14px;
    font-weight: 700;
    color: #ffb6c1;
    margin-bottom: 5px;
}

.lotus-info {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

body.light-theme .lotus-info {
    color: rgba(255, 255, 255, 0.5);
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.preset-btn-lotus {
    background: rgba(255, 182, 193, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.3);
    color: #ffb6c1;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
}

.preset-btn-lotus:hover {
    background: rgba(255, 182, 193, 0.2);
    border-color: rgba(255, 182, 193, 0.5);
    transform: translateY(-2px);
}

.preset-btn-lotus.active {
    background: linear-gradient(135deg, #ffb6c1, #dda0dd);
    border-color: #ffb6c1;
    color: white;
}

.preset-btn-lotus-sponsor {
    background: rgba(255, 182, 193, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.3);
    color: #ffb6c1;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
}

.preset-btn-lotus-sponsor:hover {
    background: rgba(255, 182, 193, 0.2);
    border-color: rgba(255, 182, 193, 0.5);
    transform: translateY(-2px);
}

.preset-btn-lotus-sponsor.active {
    background: linear-gradient(135deg, #ffb6c1, #dda0dd);
    border-color: #ffb6c1;
    color: white;
}

.lotus-address-display {
    background: rgba(255, 182, 193, 0.05);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #ffb6c1;
}

.lotus-address-display span {
    cursor: pointer;
    transition: all 0.3s;
}

.lotus-address-display span:hover {
    color: #dda0dd;
    text-decoration: underline;
}

.slider-container {
    margin-bottom: 15px;
}

#fuelSlider {
    width: 100%;
    margin-bottom: 8px;
    accent-color: #ffb6c1;
}

.slider-value {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #ffb6c1;
}

.btn-send-fuel {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ffb6c1, #dda0dd);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send-fuel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4);
}

.btn-send-sponsor {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send-sponsor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.btn-send-sponsor-direct {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send-sponsor-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.sponsor-direct-info {
    margin-top: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.sponsor-direct-info small {
    font-size: 11px;
}

body.light-theme .sponsor-direct-info {
    color: rgba(0, 0, 0, 0.6);
}

/* Sponsorship Ready Section */
.sponsorship-ready-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    border: 2px solid rgba(46, 204, 113, 0.4);
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.sponsorship-ready-section.hidden {
    display: none;
}

.sponsorship-ready-content {
    text-align: center;
}

.sponsorship-ready-icon {
    font-size: 36px;
    margin-bottom: 10px;
    animation: bounce 1s ease infinite;
}

.sponsorship-ready-content h3 {
    color: #2ecc71;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sponsorship-ready-content p {
    color: #ecf0f1;
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.btn-send-sponsorship {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-send-sponsorship:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

body.light-theme .sponsorship-ready-section {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    border-color: rgba(46, 204, 113, 0.5);
}

body.light-theme .sponsorship-ready-content h3 {
    color: #2ecc71;
}

body.light-theme .sponsorship-ready-content p {
    color: #ecf0f1;
}

.sponsor-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sponsor-input-group input {
    flex: 1;
    padding: 10px;
    border: 2px solid rgba(46, 204, 113, 0.3) !important;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(46, 204, 113, 0.05) !important;
    color: #333;
}

body.light-theme .sponsor-input-group input {
    background: rgba(46, 204, 113, 0.1) !important;
    color: #ecf0f1;
    border-color: rgba(46, 204, 113, 0.4) !important;
}

.usd-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    min-width: 40px;
}

body.light-theme .usd-label {
    color: rgba(255, 255, 255, 0.6);
}

.wpond-value-display {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wpond-label {
    font-size: 13px;
    font-weight: 700;
    color: #2ecc71;
}

.wpond-amount {
    font-size: 16px;
    font-weight: 700;
    color: #2ecc71;
    font-family: 'Courier New', monospace;
}

body.light-theme .wpond-label,
body.light-theme .wpond-amount {
    color: #2ecc71;
}

.wpond-address-small {
    text-align: center;
    margin-bottom: 12px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: #2ecc71;
    opacity: 0.7;
}

.wpond-address-small span {
    cursor: pointer;
    transition: all 0.3s;
}

.wpond-address-small span:hover {
    opacity: 1;
    text-decoration: underline;
}

.wpond-words {
    text-align: center;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #2ecc71;
    font-style: italic;
    min-height: 18px;
}

.sponsor-green {
    color: #ffb3d9 !important;
    text-shadow: 0 0 10px rgba(255, 179, 217, 0.8), 0 0 20px rgba(255, 179, 217, 0.6), 0 0 30px rgba(255, 179, 217, 0.4);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(255, 179, 217, 0.8), 0 0 20px rgba(255, 179, 217, 0.6), 0 0 30px rgba(255, 179, 217, 0.4);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 20px rgba(255, 179, 217, 1), 0 0 30px rgba(255, 179, 217, 0.8), 0 0 40px rgba(255, 179, 217, 0.6);
        transform: scale(1.02);
    }
}

.usd-green {
    color: #2ecc71 !important;
}

.wpond-amount[contenteditable="true"] {
    cursor: text;
    outline: none;
}

/* Make Sponsor preset buttons green */
.preset-btn-lotus-sponsor {
    background: rgba(46, 204, 113, 0.1) !important;
    border: 2px solid rgba(46, 204, 113, 0.3) !important;
    color: #2ecc71 !important;
}

.preset-btn-lotus-sponsor:hover {
    background: rgba(46, 204, 113, 0.2) !important;
    border-color: rgba(46, 204, 113, 0.5) !important;
}

.preset-btn-lotus-sponsor.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    border-color: #2ecc71 !important;
    color: white !important;
}

/* Blooming Lotus Success Notifications - Color Schemes */
.hashboost-success {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

.fuel-success {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

.sponsor-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
}

/* Landclaims Dropdown Theme (Orange) */
.landclaims-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    border-radius: 16px;
    padding: 25px 25px 15px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 165, 0, 0.5);
    min-width: 380px;
    max-width: 450px;
    z-index: 999999;
    animation: dropdownFadeIn 0.2s ease;
    transform: translate(-50%, -50%) scale(0.975);
    transform-origin: center center;
}

body.light-theme .landclaims-dropdown {
    background: rgba(40, 50, 55, 0.98);
    color: #ecf0f1;
    border-color: rgba(255, 165, 0, 0.6);
}

.landclaims-dropdown.hidden {
    display: none;
}

.landclaims-dropdown .lotus-header h3 {
    color: #ff8c00;
    font-size: 20px;
    margin-bottom: 5px;
}

.landclaims-dropdown .lotus-section {
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
}

.landclaims-dropdown .lotus-feature-label {
    color: #ff8c00;
}

.landclaims-dropdown .preset-btn-lotus {
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.3);
    color: #ff8c00;
}

.landclaims-dropdown .preset-btn-lotus:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.5);
}

/* Area Tab Buttons */
.area-tab-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    color: #ff8c00;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.area-tab-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.5);
}

.area-tab-btn.active {
    background: rgba(255, 165, 0, 0.3);
    border-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.4);
}

body.light-theme .area-tab-btn {
    color: #ff8c00;
}

/* Embassy Dropdown Theme (Blue) */
.embassy-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    border-radius: 16px;
    padding: 25px 25px 15px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(25, 118, 210, 0.5);
    min-width: 380px;
    max-width: 450px;
    z-index: 999999;
    animation: dropdownFadeIn 0.2s ease;
    transform: translate(-50%, -50%) scale(0.975);
    transform-origin: center center;
}

body.light-theme .embassy-dropdown {
    background: rgba(40, 50, 55, 0.98);
    color: #ecf0f1;
    border-color: rgba(25, 118, 210, 0.6);
}

.embassy-dropdown.hidden {
    display: none;
}

.embassy-dropdown .lotus-header h3 {
    color: #1976d2;
    font-size: 20px;
    margin-bottom: 5px;
}

.embassy-dropdown .lotus-section {
    border-bottom: 1px solid rgba(25, 118, 210, 0.3);
}

.embassy-dropdown .lotus-feature-label {
    color: #1976d2;
}

.embassy-dropdown .preset-btn-lotus {
    background: rgba(25, 118, 210, 0.1);
    border: 2px solid rgba(25, 118, 210, 0.3);
    color: #1976d2;
}

.embassy-dropdown .preset-btn-lotus:hover {
    background: rgba(25, 118, 210, 0.2);
    border-color: rgba(25, 118, 210, 0.5);
}

/* Wallet Tracker Styles */
.demplarverse-panel {
    width: 280px;
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    padding: 15px;
    border: 2px solid rgba(46, 204, 113, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(46, 204, 113, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 20px;
}

body.light-theme .demplarverse-panel {
    background: rgba(15, 20, 25, 0.85);
    border-color: rgba(46, 204, 113, 0.3);
}

/* KnightsDemplar Panel Fixed Position (Top Right) */
.demplarverse-panel-fixed {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 280px;
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    padding: 15px;
    border: 2px solid rgba(46, 204, 113, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(46, 204, 113, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 999997;
}

body.light-theme .demplarverse-panel-fixed {
    background: rgba(15, 20, 25, 0.85);
    border-color: rgba(46, 204, 113, 0.3);
}

/* Leaderboard Dropdown Styles */
.leaderboard-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    border-radius: 16px;
    padding: 25px 25px 15px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(46, 204, 113, 0.5);
    min-width: 400px;
    max-width: 500px;
    z-index: 999999;
    animation: dropdownFadeIn 0.2s ease;
    transform: translate(-50%, -50%) scale(0.975);
    transform-origin: center center;
}

body.light-theme .leaderboard-dropdown {
    background: rgba(40, 50, 55, 0.98);
    color: #ecf0f1;
}

.leaderboard-dropdown.hidden {
    display: none;
}

.leaderboard-dropdown .lotus-header h3 {
    color: #2ecc71;
    font-size: 20px;
    margin-bottom: 5px;
}

.leaderboard-dropdown .lotus-section {
    border-bottom: 1px solid rgba(46, 204, 113, 0.3);
    max-height: 500px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 5px 0;
    background: rgba(46, 204, 113, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.leaderboard-entry:hover {
    background: rgba(46, 204, 113, 0.1);
}

.leaderboard-rank {
    font-weight: bold;
    color: #2ecc71;
    min-width: 30px;
}

.leaderboard-character-icon {
    font-size: 24px;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    color: #2ecc71;
}

.leaderboard-details {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.wallet-tracker-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

body.light-theme .wallet-tracker-container {
    background: transparent;
}

.tracker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.level-display {
    font-size: 18px;
    font-weight: bold;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    transition: all 0.3s ease;
}

.level-display.animate-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes confetti {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
    100% { transform: translateY(0) rotate(360deg); opacity: 1; }
}

.wallet-tracker-container.levelup-celebration {
    animation: confetti 0.5s ease-in-out 6, pulse 0.5s ease-in-out 3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rebirth-display {
    font-size: 20px;
}

.exp-bar-container {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.exp-bar {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 50%, #2ecc71 100%);
    background-size: 200% 100%;
    animation: barFlow 2s ease infinite;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
}

@keyframes barFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.light-theme .exp-bar-container {
    background: rgba(0, 0, 0, 0.4);
}

.exp-percentage {
    text-align: center;
    color: #2ecc71;
    font-weight: 600;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.8), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.character-info {
    font-size: 12px;
    color: #2ecc71;
    font-weight: 600;
    margin-left: 8px;
}

.character-id {
    font-size: 11px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.character-id:hover {
    color: rgba(46, 204, 113, 0.8);
}

/* Demplarverse Modal Styles */
.demplarverse-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demplarverse-modal.hidden {
    display: none;
}

.demplarverse-modal .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 2px solid rgba(46, 204, 113, 0.4);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(46, 204, 113, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: #2ecc71;
    font-size: 24px;
    margin: 0 0 8px 0;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.modal-label {
    display: block;
    color: #2ecc71;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    color: white !important;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.modal-input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.modal-section {
    margin-bottom: 20px;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.class-option-group {
    display: flex;
    gap: 8px;
    grid-column: 1 / -1;
}

.class-gender-btn {
    flex: 1;
}

.class-btn {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.class-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.6);
    transform: translateY(-2px);
}

.class-btn.selected {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.class-icon {
    font-size: 32px;
}

.class-name {
    font-size: 14px;
    font-weight: 600;
    color: #2ecc71;
}

.class-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.modal-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-style: italic;
    text-align: center;
    margin: 10px 0;
}

.modal-footer {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-modal {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    border-radius: 12px;
    padding: 12px 30px;
    color: #2ecc71;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-modal:hover:not(:disabled) {
    background: rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

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

.btn-modal-skip {
    background: rgba(149, 165, 166, 0.2) !important;
    border: 2px solid rgba(149, 165, 166, 0.6) !important;
    border-radius: 12px;
    padding: 12px 30px;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.btn-modal-skip:hover {
    background: rgba(149, 165, 166, 0.3);
    border-color: rgba(149, 165, 166, 0.8);
    transform: translateY(-2px);
}

body.light-theme .demplarverse-modal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(46, 204, 113, 0.5);
}

body.light-theme .modal-header h2,
body.light-theme .modal-label,
body.light-theme .class-name {
    color: #27ae60;
}

body.light-theme .modal-input {
    background: rgba(46, 204, 113, 0.05);
    border-color: rgba(46, 204, 113, 0.4);
    color: #000;
}

body.light-theme .class-btn {
    background: rgba(46, 204, 113, 0.05);
    border-color: rgba(46, 204, 113, 0.4);
}

body.light-theme .btn-modal {
    background: rgba(46, 204, 113, 0.1);
    border-color: #27ae60;
    color: #27ae60;
}

body.light-theme .btn-modal-skip {
    background: rgba(149, 165, 166, 0.1);
    border-color: rgba(149, 165, 166, 0.7);
    color: rgba(0, 0, 0, 0.7);
}

/* Welcome Popup Styles */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.welcome-popup.hidden {
    display: none;
}

.welcome-popup.showing {
    animation: welcomeFadeOut 3s ease forwards;
}

@keyframes welcomeFadeOut {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.welcome-content {
    text-align: center;
}

.welcome-icon {
    font-size: 80px;
    animation: frogBounce 1.5s ease infinite;
    margin-bottom: 20px;
}

@keyframes frogBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.welcome-content h2 {
    color: #2ecc71;
    font-size: 32px;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
    margin: 0;
}

/* RPG Start Button */
.btn-rpg-start {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.4);
    border-radius: 10px;
    padding: 10px 15px;
    color: #2ecc71;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-rpg-start:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    transform: translateY(-2px);
}

body.light-theme .btn-rpg-start {
    background: rgba(46, 204, 113, 0.05);
    border-color: rgba(46, 204, 113, 0.5);
    color: #27ae60;
}

/* Landclaim Fee Slider Styles */
.landclaim-fee-sliders {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.fee-slider-item {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.fee-slider-item:last-of-type {
    margin-bottom: 0;
}

.fee-slider-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.fee-slider-label {
    color: #2ecc71;
}

.fee-slider-percentage {
    color: #3498db;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
}

.fee-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.fee-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2ecc71;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.5);
    transition: all 0.2s;
}

.fee-slider::-webkit-slider-thumb:hover {
    background: #27ae60;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.7);
}

.fee-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2ecc71;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.5);
    transition: all 0.2s;
}

.fee-slider::-moz-range-thumb:hover {
    background: #27ae60;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.7);
}

.fee-slider-minmax {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    font-style: italic;
    pointer-events: none;
}

.fee-slider-total {
    margin-top: 15px;
    padding: 10px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #2ecc71;
    border: 2px solid rgba(46, 204, 113, 0.3);
}

#landclaimModalMessage {
    margin-bottom: 10px;
    font-size: 14px;
    color: white;
}

body.light-theme .landclaim-fee-sliders {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

body.light-theme .fee-slider {
    background: rgba(0, 0, 0, 0.3);
}
