.settings-page {
    max-width: 1200px;
    margin: 0 auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.settings-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.settings-user {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.settings-masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.settings-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    flex: 1 1 auto;
}

.settings-group-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    padding-left: 4px;
    font-weight: 500;
}

.settings-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.settings-card {
    width: 90px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.settings-card:active {
    transform: scale(0.98);
}

.settings-card-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-card-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.settings-footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.settings-footer-item span {
    color: #4fd1c7;
    margin-left: 8px;
}

@media (max-width: 800px) {
    .settings-masonry {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .settings-cards {
        justify-content: space-between;
    }
    .settings-card {
        width: calc(33.33% - 8px);
        min-width: 90px;
    }
    .settings-footer {
        flex-wrap: wrap;
        gap: 16px 32px;
    }
}

@media (max-width: 400px) {
    .settings-card {
        width: calc(50% - 6px);
    }
}

.new-form-row-4 {
    display: flex;
    gap: 8px;
}
.new-form-row-4 input {
    flex: 1;
    min-width: 0;
}

.new-switch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.global-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}
.global-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.global-toast.success {
    background: rgba(16, 185, 129, 0.9);
}
.global-toast.error {
    background: rgba(239, 68, 68, 0.9);
}

.toggle-tabs {
    display: flex;
    width: 100%;
    height: 46px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.toggle-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.toggle-tab.active {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
}

.new-form-row {
    display: flex;
    gap: 12px;
}

.new-form-row .new-form-group {
    flex: 1;
    margin-bottom: 16px;
}

.new-form-row .new-flex-grow {
    flex: 1;
}

.new-form-row .new-flex-shrink {
    width: 100px;
    flex-shrink: 0;
}

.new-form-group {
    margin-bottom: 16px;
}

.new-form-group:last-child {
    margin-bottom: 0;
}

.new-form-group label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 8px;
}

.new-form-group input,
.new-form-group textarea,
.new-form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.new-form-group input:focus,
.new-form-group textarea:focus,
.new-form-group select:focus {
    outline: none;
    border-color: rgba(79, 209, 199, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.new-form-group input::placeholder,
.new-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.new-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.new-form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.new-input-suffix {
    position: relative;
}

.new-input-suffix input {
    padding-right: 56px;
}

.new-input-suffix-text {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: calc(100% - 2px);
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    pointer-events: none;
    box-sizing: border-box;
}

.new-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.new-switch-row:last-child {
    margin-bottom: 0;
}

.new-switch-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.new-switch {
    position: relative;
    display: block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.new-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.new-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.new-switch-slider::before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.new-switch input:checked + .new-switch-slider {
    background: #4fd1c7;
}

.new-switch input:checked + .new-switch-slider::before {
    left: 23px;
}

.new-tab-panel {
    display: none;
}

.new-tab-panel.active {
    display: block;
}

.new-data-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

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

.new-data-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.new-data-item-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    flex-shrink: 0;
}

.new-data-item-info {
    flex: 1;
}

.new-data-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.new-data-item-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
