* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #222222;
}

html {
    background-color: #222222;
}

.main {
    background-color: #222222;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(180deg, rgba(34, 72, 48, 1) 0%, rgba(34, 34, 34, 1) 36%);
    padding-bottom: 2rem;
}

nav {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    padding-top: 2.5rem;
}

.profilePictureContainer {
    border-radius: 100%;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #343235;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .8rem;
}

.nameContainer {
    display: flex;
    flex-direction: column;
}

.name {
    color: #a7a7a7;
    font-size: .9rem;
    font-weight: 500;
}

.account {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Settings Container */
.settingsContainer {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section Header */
.settingsSection {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sectionHeader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.2rem;
}

.sectionTitle {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

/* Settings Card */
.settingsCard {
    background-color: #2c2e2f;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input Groups */
.inputGroup {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.inputLabel {
    color: #8e8e8e;
    font-size: 0.85rem;
    font-weight: 500;
}

.inputWrapper {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    transition: border-color 0.2s ease;
}

.inputWrapper:focus-within {
    border-color: #a8a1ee;
}

.inputPrefix {
    color: #8e8e8e;
    padding-left: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.settingsInput {
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 0.8rem;
    color: #ffffff;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease;
}

.inputWrapper .settingsInput {
    border: none;
    background-color: transparent;
}

.settingsInput:focus {
    outline: none;
    border-color: #a8a1ee;
}

.settingsInput::placeholder {
    color: #5a5a5a;
}

.settingsSelect {
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 0.8rem;
    color: #ffffff;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.settingsSelect:focus {
    outline: none;
    border-color: #a8a1ee;
}

.settingsSelect option {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Toggle Switch */
.toggleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggleInfo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.toggleLabel {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.toggleDescription {
    color: #8e8e8e;
    font-size: 0.8rem;
}

.toggleSwitch {
    width: 50px;
    height: 28px;
    background-color: #3a3a3a;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggleSwitch.active {
    background-color: #a8a1ee;
}

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

.toggleKnob {
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.toggleSwitch.active .toggleKnob {
    transform: translateX(22px);
}

/* Rugpull Options */
.rugpullOptions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #3a3a3a;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add Coin Button */
.addCoinBtn {
    background-color: #a8a1ee;
    border: none;
    border-radius: 10px;
    padding: 0.8rem;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.addCoinBtn:hover {
    background-color: #b8b1f5;
}

.addCoinBtn:active {
    transform: scale(0.98);
}

/* Coins List */
.coinsList {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coinItem {
    background-color: #2c2e2f;
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coinItemInfo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.coinItemIcon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #343638;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8a1ee;
    font-weight: 700;
    font-size: 0.75rem;
}

.coinItemDetails {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.coinItemName {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.coinItemTicker {
    color: #8e8e8e;
    font-size: 0.8rem;
}

.coinItemPrice {
    color: #24e86e;
    font-size: 0.9rem;
    font-weight: 600;
}

.coinItemDelete {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.coinItemDelete:hover {
    background-color: rgba(255, 107, 107, 0.15);
}

/* Save Button */
.saveSection {
    padding: 0.5rem 0;
}

.saveBtn {
    background-color: #24e86e;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.saveBtn:hover {
    background-color: #2ef07a;
}

.saveBtn:active {
    transform: scale(0.98);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #3a3a3a;
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.warning {
    background-color: #ff6b6b;
}

.toast.desktop-warning {
    top: 1rem;
    bottom: auto;
    background-color: #dc2626 !important;
    color: #ffffff;
    transform: translateX(-50%) translateY(-100px) !important;
    max-width: min(36rem, calc(100vw - 2rem));
    text-align: center;
}

.toast.desktop-warning.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.toastClose {
    display: none;
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    padding: 0.2rem;
    margin-left: 0.25rem;
    line-height: 0;
}

.toastClose svg {
    width: 1rem;
    height: 1rem;
}

.toast.desktop-warning .toastClose {
    display: grid;
    place-items: center;
}

.toast.success {
    background-color: #24e86e;
    color: #1a1a1a;
}

#ptr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    z-index: 999999;
    background: #111111;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    transition: height 0.2s ease;
}

#ptr-spinner {
    width: 22px;
    height: 22px;
    margin-bottom: 15px;

    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;

    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#ptr.ready #ptr-spinner {
    opacity: 1;
    transform: scale(1);
}

#ptr.refreshing #ptr-spinner {
    opacity: 1;
    transform: scale(1);
    animation: ptr-spin 0.7s linear infinite;
}

@keyframes ptr-spin {
    to {
        transform: rotate(360deg);
    }
}