.new-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.new-modal.active {
    display: flex;
}
.new-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.new-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: newModalIn 0.3s ease;
}
@keyframes newModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.new-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.new-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}
.new-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}
.new-modal-close:hover {
    color: #ffffff;
}
.new-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.new-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.new-form-group {
    margin-bottom: 20px;
}
.new-form-group:last-child {
    margin-bottom: 0;
}
.new-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    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-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.new-btn-primary {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
    border: 1px solid rgba(79, 209, 199, 0.3);
}
.new-btn-primary:hover {
    background: rgba(79, 209, 199, 0.3);
}
.new-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.new-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.new-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.new-btn-danger {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}
.new-btn-danger:hover {
    background: rgba(255, 107, 107, 0.3);
}

.new-modal-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}
.new-modal-message.success {
    display: block;
    background: rgba(79, 209, 199, 0.15);
    border: 1px solid rgba(79, 209, 199, 0.3);
    color: #4fd1c7;
}
.new-modal-message.error {
    display: block;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .new-modal-content {
        width: 95%;
        margin: 20px;
    }
}

.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;
}

.member-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

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

.member-type-item,
.pay-type-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.member-type-item:hover,
.pay-type-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 209, 199, 0.3);
}

.member-type-item.selected,
.pay-type-item.selected {
    background: rgba(79, 209, 199, 0.15);
    border-color: rgba(79, 209, 199, 0.5);
}

.member-type-icon,
.pay-type-icon {
    font-size: 32px;
}

.member-type-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.member-type-price {
    font-size: 18px;
    color: #4fd1c7;
    font-weight: 600;
}

@media (max-width: 600px) {
    .member-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pay-type-grid {
        grid-template-columns: 1fr;
    }
}
